mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 05:41:31 +00:00
Also use pkg-config for regular ncurses
This commit is contained in:
parent
f257cda04a
commit
599f4e82b7
3
Makefile
3
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
|
||||
|
|
Loading…
Reference in a new issue