aboutsummaryrefslogtreecommitdiff
path: root/mk/pam.mk
diff options
context:
space:
mode:
Diffstat (limited to 'mk/pam.mk')
-rw-r--r--mk/pam.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/mk/pam.mk b/mk/pam.mk
index 65115d5d..15ffb546 100644
--- a/mk/pam.mk
+++ b/mk/pam.mk
@@ -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