aboutsummaryrefslogtreecommitdiff
path: root/mk/pam.mk
blob: 199896cc2ca6ed17e1979f7f8b225c2692d6d842 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
ifeq (${MKPAM},pam)
LIBPAM?=	-lpam
CPPFLAGS+=	-DHAVE_PAM
LDADD+=		${LIBPAM}

ifeq (${MKSELINUX},yes)
# with selinux, pam_misc is needed too
LIBPAM_MISC?=	-lpam_misc
LDADD+=		${LIBPAM_MISC}
endif

PAMDIR?=	/etc/pam.d
PAMMODE?=	0644
else ifneq (${MKPAM},)
$(error if MKPAM is defined, it must be "pam")
endif