From 8d38abc054d048f89dadd92c993d2febafeece8e Mon Sep 17 00:00:00 2001 From: midipix Date: Sat, 31 Oct 2015 18:02:40 -0400 Subject: build system: configure: usage(): initial documentation. --- config.usage | 77 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ configure | 6 +++++ 2 files changed, 83 insertions(+) create mode 100644 config.usage 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 diff --git a/configure b/configure index 7139ece..a21df9e 100755 --- a/configure +++ b/configure @@ -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 -- cgit v1.2.3