aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-01-24 23:28:30 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-01-24 23:29:05 +0530
commit1684d7b24efa49f890d59f260a86be3aaddad256 (patch)
treec556df7926a1a3b0ad8057843711c711ed76094a /Makefile
parente5ad7d81fffc4a96e9112cf9bdec18b66ff735ce (diff)
downloadnnn-1684d7b24efa49f890d59f260a86be3aaddad256.tar.gz
Makefile option to compile with PCRE lib
Command: make O_PCRE=1 strip
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 6b99a05..0f64d45 100644
--- a/Makefile
+++ b/Makefile
@@ -37,6 +37,11 @@ else
LDLIBS += -lreadline
endif
+ifeq ($(O_PCRE),1)
+ CPPFLAGS += -DPCRE
+ LDLIBS += -lpcre
+endif
+
ifeq ($(O_NOLOC),1)
CPPFLAGS += -DNOLOCALE
endif