2011-02-03 05:48:55 +05:30
|
|
|
ifeq (${MKTERMCAP},ncurses)
|
2013-02-24 01:34:09 +05:30
|
|
|
LTERMCAP:= $(shell pkg-config ncurses --libs 2> /dev/null)
|
|
|
|
ifeq ($(LTERMCAP),)
|
2011-02-03 05:48:55 +05:30
|
|
|
LIBTERMCAP?= -lncurses
|
2013-02-24 01:34:09 +05:30
|
|
|
else
|
|
|
|
LIBTERMCAP?= $(LTERMCAP)
|
|
|
|
endif
|
2011-02-03 05:48:55 +05:30
|
|
|
CPPFLAGS+= -DHAVE_TERMCAP
|
|
|
|
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
|