diff options
author | midipix <writeonce@midipix.org> | 2015-10-31 18:02:18 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-11-10 23:35:25 -0500 |
commit | a554c20592765a09bcc59a008cf4a29abc58aeb4 (patch) | |
tree | ed866d6846f22ef27e6f5f790ae116b6ffaae657 | |
parent | 3d3888f9db42f8c97bc076899ae691f2a2530f78 (diff) | |
download | perk-a554c20592765a09bcc59a008cf4a29abc58aeb4.tar.bz2 perk-a554c20592765a09bcc59a008cf4a29abc58aeb4.tar.xz |
build system: configure: usage(): initial documentation.
-rw-r--r-- | config.usage | 77 | ||||
-rwxr-xr-x | configure | 6 |
2 files changed, 83 insertions, 0 deletions
diff --git a/config.usage b/config.usage new file mode 100644 index 0000000..2175510 --- /dev/null +++ b/config.usage @@ -0,0 +1,77 @@ +configure: a skinny configuration script. + +supported switches: +------------------- + --help + + --prefix + --bindir + --libdir + --includedir + --syslibdir + --mandir + --libexecdir + + --build + --host + --target + --arch + --toolchain + --sysroot + --cross-compile + --shell + --debug + + +supported variables: +-------------------- + PREFIX + BINDIR + LIBDIR + INCLUDEDIR + LIBDIR + MANDIR + DOCDIR + LIBEXECDIR + + CC + CPP + CXX + + BUILD + HOST + TARGET + ARCH + TOOLCHAIN + SYSROOT + CROSS_COMPILE + SHELL + + CFLAGS + CFLAGS_DEBUG + CFLAGS_COMMON + CFLAGS_CMDLINE + CFLAGS_CONFIG + CFLAGS_SYSROOT + CFLAGS_PATH + + LDFLAGS + LDFLAGS_DEBUG + LDFLAGS_COMMON + LDFLAGS_CMDLINE + LDFLAGS_CONFIG + LDFLAGS_SYSROOT + LDFLAGS_PATH + + PE_SUBSYSTEM + PE_IMAGE_BASE + PE_CONFIG_DEFS + + ELF_EH_FRAME + ELF_HASH_STYLE + ELF_CONFIG_DEFS + + NATIVE_CC + NATIVE_OS + NATIVE_OS_BITS + NATIVE_OS_UNDERSCORE @@ -5,6 +5,12 @@ # as well as both LDFLAGS and LDFLAGS_CMDLINE, however # the latter variable of each pair should be preferred. +usage() +{ + cat config.usage + exit $? +} + error_msg() { echo $@ >&2 |