From: Sijmen J. Mulder Date: Sun, 16 Dec 2018 16:59:20 +0000 (+0100) Subject: Also use pkg-config for regular ncurses X-Git-Tag: v2.2~12^2~3 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=599f4e82b7cc030eb3d10876677f44fabe5194b5;p=nnn.git Also use pkg-config for regular ncurses --- diff --git a/Makefile b/Makefile index 30d66f4c..7d983e8f 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