diff options
-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 | ||||
-rw-r--r-- | src/libeinfo/Makefile | 2 | ||||
-rw-r--r-- | src/rc/Makefile | 4 |
6 files changed, 15 insertions, 6 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 diff --git a/src/libeinfo/Makefile b/src/libeinfo/Makefile index 1569f8f4..b93b5e50 100644 --- a/src/libeinfo/Makefile +++ b/src/libeinfo/Makefile @@ -10,4 +10,4 @@ MK= ../../mk include ${MK}/lib.mk include ${MK}/cc.mk include ${MK}/debug.mk -include ${MK}/${MKTERMCAP}.mk +include ${MK}/termcap.mk diff --git a/src/rc/Makefile b/src/rc/Makefile index ca71b4a4..cf63ccab 100644 --- a/src/rc/Makefile +++ b/src/rc/Makefile @@ -41,9 +41,9 @@ include ${MK}/prog.mk include ${MK}/git.mk include ${MK}/cc.mk -include ${MK}/${MKTERMCAP}.mk +include ${MK}/termcap.mk LDADD+= ${LIBDL} ${LIBKVM} -include ${MK}/${MKPAM}.mk +include ${MK}/pam.mk # create symlinks to rc if not an SELINUX system, otherwise create a wrapper # script to call rc with the proper name of the applet to execute. |