3 # Only build shared lib here, libpam.a is built by static_libpam.
4 # This is done to avoid circular dependencies for static modules.
7 SHLIB_NAME
= libpam.so.
${SHLIB_MAJOR}
10 SRCDIR
= ${.CURDIR
}/..
/..
/..
/contrib
/openpam
12 MODULE_DIR
= ${LIBDIR}/security
14 CFLAGS
+= -DHAVE_CONFIG_H
15 CFLAGS
+= -DOPENPAM_MODULES_DIRECTORY
='"${MODULE_DIR}/"'
16 CFLAGS
+= -I
${SRCDIR}/lib
/libpam
-I
${SRCDIR}/include -I
${.CURDIR
}/..
/libpam
20 openpam_borrow_cred.c \
21 openpam_check_owner_perms.c \
29 openpam_free_envlist.c \
30 openpam_get_feature.c \
31 openpam_get_option.c \
38 openpam_restore_cred.c \
39 openpam_set_feature.c \
40 openpam_set_option.c \
71 SRCS
+= pam_debug_log.c
82 INCS?
= ${PAMINCS
:S
;^
;${SRCDIR}/include/security
/;} security
/pam_mod_misc.h
83 INCSDIR
= ${INCLUDEDIR}/security
86 openpam_borrow_cred
.3 \
88 openpam_free_envlist
.3 \
89 openpam_get_feature
.3 \
90 openpam_get_option
.3 \
96 openpam_restore_cred
.3 \
97 openpam_set_feature
.3 \
98 openpam_set_option
.3 \
106 pam_close_session
.3 \
125 pam_sm_authenticate
.3 \
127 pam_sm_close_session
.3 \
128 pam_sm_open_session
.3 \
137 .PATH
: ${SRCDIR}/lib
/libpam
${SRCDIR}/doc
/man
139 .
include <bsd.lib.mk
>