diff options
Diffstat (limited to 'mk')
-rw-r--r-- | mk/termcap.mk | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mk/termcap.mk b/mk/termcap.mk index 6f590da6..2d6ad01b 100644 --- a/mk/termcap.mk +++ b/mk/termcap.mk @@ -1,11 +1,12 @@ ifeq (${MKTERMCAP},ncurses) - LTERMCAP:= $(shell pkg-config ncurses --libs 2> /dev/null) +TERMCAP_CFLAGS:= $(shell pkg-config ncurses --cflags 2> /dev/null) +LTERMCAP:= $(shell pkg-config ncurses --libs 2> /dev/null) ifeq ($(LTERMCAP),) LIBTERMCAP?= -lncurses else LIBTERMCAP?= $(LTERMCAP) endif -CPPFLAGS+= -DHAVE_TERMCAP +CPPFLAGS+= -DHAVE_TERMCAP ${TERMCAP_CFLAGS} LDADD+= ${LIBTERMCAP} else ifeq (${MKTERMCAP},termcap) LIBTERMCAP?= -ltermcap |