aboutsummaryrefslogtreecommitdiff
path: root/mk/termcap.mk
diff options
context:
space:
mode:
Diffstat (limited to 'mk/termcap.mk')
-rw-r--r--mk/termcap.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/mk/termcap.mk b/mk/termcap.mk
index 7a603e38..b716276b 100644
--- a/mk/termcap.mk
+++ b/mk/termcap.mk
@@ -1,3 +1,11 @@
+ifeq (${MKTERMCAP},ncurses)
+LIBTERMCAP?= -lncurses
+CPPFLAGS+= -DHAVE_TERMCAP
+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