aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2017-02-23 16:52:35 +0100
committerMarc André Tanner <mat@brain-dump.org>2017-02-24 09:55:32 +0100
commitf2090b4b13c13711e6e1b9d3a7cde2cf5f121efe (patch)
tree0deb128262b23ef103e3160ddc3f8064b2307956 /Makefile
parent615a2c403833f0db591d56c5406dae23ca711777 (diff)
downloadvis-f2090b4b13c13711e6e1b9d3a7cde2cf5f121efe.tar.gz
vis-f2090b4b13c13711e6e1b9d3a7cde2cf5f121efe.tar.xz
vis: make help texts optional to produce a smaller binary
$ ./configure --disable-help shrinks the binary by about 20K on a x86_64 system.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 6f75197..b702955 100644
--- a/Makefile
+++ b/Makefile
@@ -20,6 +20,7 @@ MANPREFIX ?= ${PREFIX}/man
VERSION = $(shell git describe --always --dirty 2>/dev/null || echo "0.2-git")
+CONFIG_HELP ?= 1
CONFIG_LUA ?= 1
CONFIG_LPEG ?= 0
CONFIG_TRE ?= 0
@@ -34,6 +35,7 @@ CFLAGS_VIS = $(CFLAGS_AUTO) $(CFLAGS_TERMKEY) $(CFLAGS_CURSES) $(CFLAGS_ACL) \
$(CFLAGS_SELINUX) $(CFLAGS_TRE) $(CFLAGS_LUA) $(CFLAGS_LPEG) $(CFLAGS_STD)
CFLAGS_VIS += -DVIS_PATH=\"${SHAREPREFIX}/vis\"
+CFLAGS_VIS += -DCONFIG_HELP=${CONFIG_HELP}
CFLAGS_VIS += -DCONFIG_LUA=${CONFIG_LUA}
CFLAGS_VIS += -DCONFIG_LPEG=${CONFIG_LPEG}
CFLAGS_VIS += -DCONFIG_TRE=${CONFIG_TRE}