aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2016-11-18 21:35:52 -0800
committerMichael Forney <mforney@mforney.org>2016-12-12 17:41:16 -0800
commitfceff74eae7daf2026a515448f62eb99ba1b83d6 (patch)
treeffac00002a1f8915cee9f7836e72ae6bccc02ae1 /Makefile
parent37d98f3119d5d3a63492bf9683ec6a4d68cc1e28 (diff)
downloadvis-fceff74eae7daf2026a515448f62eb99ba1b83d6.tar.gz
vis-fceff74eae7daf2026a515448f62eb99ba1b83d6.tar.xz
Allow building lpeg into vis
If lpeg is built statically, this allows for a completely static vis binary that still supports syntax highlighting.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 962fb7e..2311f3d 100644
--- a/Makefile
+++ b/Makefile
@@ -16,6 +16,7 @@ MANPREFIX ?= ${PREFIX}/man
VERSION = $(shell git describe --always 2>/dev/null || echo "0.2")
CONFIG_LUA ?= 1
+CONFIG_BUILTIN_LPEG ?= 0
CONFIG_ACL ?= 0
CONFIG_SELINUX ?= 0
@@ -28,6 +29,7 @@ CFLAGS_VIS = $(CFLAGS_AUTO) $(CFLAGS_TERMKEY) $(CFLAGS_CURSES) $(CFLAGS_ACL) \
CFLAGS_VIS += -DVIS_PATH=\"${SHAREPREFIX}/vis\"
CFLAGS_VIS += -DCONFIG_LUA=${CONFIG_LUA}
+CFLAGS_VIS += -DCONFIG_BUILTIN_LPEG=${CONFIG_BUILTIN_LPEG}
CFLAGS_VIS += -DCONFIG_SELINUX=${CONFIG_SELINUX}
CFLAGS_VIS += -DCONFIG_ACL=${CONFIG_ACL}
CFLAGS_VIS += ${CFLAGS_DEBUG}