From: Arun Prakash Jana Date: Fri, 24 Jan 2020 17:58:30 +0000 (+0530) Subject: Makefile option to compile with PCRE lib X-Git-Tag: v3.0~43 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=1684d7b24efa49f890d59f260a86be3aaddad256;p=nnn.git Makefile option to compile with PCRE lib Command: make O_PCRE=1 strip --- diff --git a/Makefile b/Makefile index 6b99a059..0f64d450 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 diff --git a/README.md b/README.md index 3b9dbd85..f86441b1 100644 --- 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_)