]> Sergey Matveev's repositories - nnn.git/commitdiff
Makefile option to compile with PCRE lib
authorArun Prakash Jana <engineerarun@gmail.com>
Fri, 24 Jan 2020 17:58:30 +0000 (23:28 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Fri, 24 Jan 2020 17:59:05 +0000 (23:29 +0530)
Command: make O_PCRE=1 strip

Makefile
README.md

index 6b99a0590e2b66fb301dcc4145b18314d0f46cae..0f64d450de095274e1e5ed2d59b4ba092ea6c79d 100644 (file)
--- 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
index 3b9dbd85176c56b7787352091dff4a079a8d9c04..f86441b16775044f1d27657953de815afe233715 100644 (file)
--- a/README.md
+++ b/README.md
@@ -58,7 +58,7 @@ It runs smoothly on the Pi, [Termux](https://www.youtube.com/watch?v=AbaauM7gUJw
   - CD on quit (*easy* shell integration)
 - Search
   - Instant filtering with *search-as-you-type*
-  - Regex and substring (default) matches
+  - Regex (POSIX/PCRE) and string (default) filters
   - Subtree search plugin to open or edit files
 - Sort
   - Ordered pure numeric names by default (visit _/proc_)