aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2017-04-20 19:45:52 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2017-04-20 20:10:58 +0530
commit89224cfa980f4e3470e7e52decf5f9f19831dba6 (patch)
tree0e77a84ab9858be9f5bd338413681dfe732e9c4c /Makefile
parent01c1ef6e58c195821ff9ccb9489bd99a9101b0ec (diff)
downloadnnn-89224cfa980f4e3470e7e52decf5f9f19831dba6.tar.gz
Use readline() at chdir prompt
With the features the readline library provides it would be too naive to ignore. We break out of the curses mode into the prompt and get back in. This change introduces dependency on libncurses.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index c07e950..bb450f9 100644
--- a/Makefile
+++ b/Makefile
@@ -4,10 +4,11 @@ PREFIX = /usr/local
MANPREFIX = $(PREFIX)/share/man
CFLAGS += -O3 -march=native -Wall -Wextra -Wno-unused-parameter
+LDLIBS = -lreadline
ifeq ($(shell uname), Darwin)
- LDLIBS = -lncurses
+ LDLIBS += -lncurses
else
- LDLIBS = -lncursesw
+ LDLIBS += -lncursesw
endif
DISTFILES = nnn.c config.def.h nnn.1 Makefile README.md LICENSE