aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Sijmen J. Mulder <ik@sjmulder.nl>2018-12-16 17:59:20 +0100
committerGravatar Sijmen J. Mulder <ik@sjmulder.nl>2018-12-16 20:19:08 +0100
commit599f4e82b7cc030eb3d10876677f44fabe5194b5 (patch)
tree40c314f939c9e277d133c96467596568cc2c8a2a
parentf257cda04ad0f5b6efbb435de61e45d2ae5acbb1 (diff)
downloadnnn-599f4e82b7cc030eb3d10876677f44fabe5194b5.tar.gz
Also use pkg-config for regular ncurses
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 30d66f4..7d983e8 100644
--- a/Makefile
+++ b/Makefile
@@ -14,6 +14,9 @@ CFLAGS += $(CFLAGS_OPTIMIZATION)
ifeq ($(shell $(PKG_CONFIG) ncursesw && echo 1),1)
CFLAGS += $(shell $(PKG_CONFIG) --cflags ncursesw)
LDLIBS += $(shell $(PKG_CONFIG) --libs ncursesw)
+else ifeq ($(shell $(PKG_CONFIG) ncurses && echo 1),1)
+ CFLAGS += $(shell $(PKG_CONFIG) --cflags ncurses)
+ LDLIBS += $(shell $(PKG_CONFIG) --libs ncurses)
else
LDLIBS += -lncurses
endif