summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2015-10-31 18:02:18 -0400
committermidipix <writeonce@midipix.org>2016-11-10 23:35:25 -0500
commita554c20592765a09bcc59a008cf4a29abc58aeb4 (patch)
treeed866d6846f22ef27e6f5f790ae116b6ffaae657
parent3d3888f9db42f8c97bc076899ae691f2a2530f78 (diff)
downloadperk-a554c20592765a09bcc59a008cf4a29abc58aeb4.tar.bz2
perk-a554c20592765a09bcc59a008cf4a29abc58aeb4.tar.xz
build system: configure: usage(): initial documentation.
-rw-r--r--config.usage77
-rwxr-xr-xconfigure6
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
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