2011-02-03 05:48:55 +05:30
|
|
|
ifeq (${MKTERMCAP},ncurses)
|
2016-06-29 17:57:37 +05:30
|
|
|
TERMCAP_CFLAGS:= $(shell ${PKG_CONFIG} ncurses --cflags 2> /dev/null)
|
|
|
|
LTERMCAP:= $(shell ${PKG_CONFIG} ncurses --libs 2> /dev/null)
|
2013-02-24 01:34:09 +05:30
|
|
|
ifeq ($(LTERMCAP),)
|
2011-02-03 05:48:55 +05:30
|
|
|
LIBTERMCAP?= -lncurses
|
2013-02-24 01:34:09 +05:30
|
|
|
else
|
|
|
|
LIBTERMCAP?= $(LTERMCAP)
|
|
|
|
endif
|
2014-10-23 04:29:57 +05:30
|
|
|
CPPFLAGS+= -DHAVE_TERMCAP ${TERMCAP_CFLAGS}
|
2011-02-03 05:48:55 +05:30
|
|
|
LDADD+= ${LIBTERMCAP}
|
|
|
|
else ifeq (${MKTERMCAP},termcap)
|
2008-01-06 00:55:55 +05:30
|
|
|
LIBTERMCAP?= -ltermcap
|
2008-06-20 04:42:00 +05:30
|
|
|
CPPFLAGS+= -DHAVE_TERMCAP
|
2008-01-07 15:09:44 +05:30
|
|
|
LDADD+= ${LIBTERMCAP}
|
2011-02-03 05:48:55 +05:30
|
|
|
else ifneq (${MKTERMCAP},)
|
|
|
|
$(error If MKTERMCAP is defined, it must be ncurses or termcap)
|
|
|
|
endif
|