aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-09-20 12:13:00 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-09-20 12:13:00 +0530
commitfaddaa5c3ac11d1ab1e7b7a8cb8897d9df77b46b (patch)
tree221793c515873881c394cc28090b650deb249630 /Makefile
parent88256206d7ed38b2142e6d4d267a7d5081be77e1 (diff)
downloadnnn-faddaa5c3ac11d1ab1e7b7a8cb8897d9df77b46b.tar.gz
make option O_NOSSN to compile out session
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 0e15af4..4a8d2b0 100644
--- a/Makefile
+++ b/Makefile
@@ -23,6 +23,7 @@ O_ICONS := 0 # support icons-in-terminal
O_NERD := 0 # support icons-nerdfont
O_QSORT := 0 # use Alexey Tourbin's QSORT implementation
O_BENCH := 0 # benchmark mode (stops at first user input)
+O_NOSSN := 0 # enable session support
# convert targets to flags for backwards compatibility
ifneq ($(filter debug,$(MAKECMDGOALS)),)
@@ -90,6 +91,10 @@ ifeq ($(O_BENCH),1)
CPPFLAGS += -DBENCH
endif
+ifeq ($(O_NOSSN),1)
+ CPPFLAGS += -DNOSSN
+endif
+
ifeq ($(shell $(PKG_CONFIG) ncursesw && echo 1),1)
CFLAGS_CURSES ?= $(shell $(PKG_CONFIG) --cflags ncursesw)
LDLIBS_CURSES ?= $(shell $(PKG_CONFIG) --libs ncursesw)