From db6d680765b4b9a4d404f6b2e6d5644b2fe3418d Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Wed, 2 Feb 2011 18:18:55 -0600 Subject: rework pam, ncurses and termcap include files This allows error checking inside the included files instead of either including the appropriate file or a blank file. Also the blank file named .mk gets removed by this change. --- mk/termcap.mk | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'mk/termcap.mk') diff --git a/mk/termcap.mk b/mk/termcap.mk index 7a603e3..b716276 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 -- cgit v1.2.3