]> Sergey Matveev's repositories - nnn.git/commitdiff
Also use pkg-config for regular ncurses
authorSijmen J. Mulder <ik@sjmulder.nl>
Sun, 16 Dec 2018 16:59:20 +0000 (17:59 +0100)
committerSijmen J. Mulder <ik@sjmulder.nl>
Sun, 16 Dec 2018 19:19:08 +0000 (20:19 +0100)
Makefile

index 30d66f4cf98907bcfa4e30cc13facabee01cbae6..7d983e8fba1fc59d292f87206d3fd0ea83a6bcd8 100644 (file)
--- 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