diff options
Diffstat (limited to 'mk')
-rw-r--r-- | mk/.mk | 0 | ||||
-rw-r--r-- | mk/ncurses.mk | 3 | ||||
-rw-r--r-- | mk/pam.mk | 4 | ||||
-rw-r--r-- | mk/termcap.mk | 8 |
4 files changed, 12 insertions, 3 deletions
diff --git a/mk/.mk b/mk/.mk deleted file mode 100644 index e69de29b..00000000 --- a/mk/.mk +++ /dev/null diff --git a/mk/ncurses.mk b/mk/ncurses.mk deleted file mode 100644 index d93e8fbe..00000000 --- a/mk/ncurses.mk +++ /dev/null @@ -1,3 +0,0 @@ -LIBTERMCAP?= -lncurses -CPPFLAGS+= -DHAVE_TERMCAP -LDADD+= ${LIBTERMCAP} @@ -1,6 +1,10 @@ +ifeq (${MKPAM},pam) LIBPAM?= -lpam CPPFLAGS+= -DHAVE_PAM LDADD+= ${LIBPAM} PAMDIR?= /etc/pam.d PAMMODE?= 0644 +else ifneq (${MKPAM},) +$(error if MKPAM is defined, it must be "pam") +endif 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 |