initial commit
This commit is contained in:
17
mk/termcap.mk
Normal file
17
mk/termcap.mk
Normal file
@@ -0,0 +1,17 @@
|
||||
ifeq (${MKTERMCAP},ncurses)
|
||||
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 ${TERMCAP_CFLAGS}
|
||||
LDADD+= ${LIBTERMCAP}
|
||||
else ifeq (${MKTERMCAP},termcap)
|
||||
LIBTERMCAP?= -ltermcap
|
||||
CPPFLAGS+= -DHAVE_TERMCAP
|
||||
LDADD+= ${LIBTERMCAP}
|
||||
else ifneq (${MKTERMCAP},)
|
||||
$(error If MKTERMCAP is defined, it must be ncurses or termcap)
|
||||
endif
|
||||
Reference in New Issue
Block a user