Update build for OpenPAM Lycopsida.
[dragonfly.git] / lib / libpam / Makefile
1 LIB=    pam
2
3 SRCDIR= ${.CURDIR}/../../contrib/openpam
4
5 MODULE_DIR=     ${LIBDIR}/security
6
7 CFLAGS+= -DHAVE_CONFIG_H
8 CFLAGS+= -DOPENPAM_MODULES_DIR='"${MODULE_DIR}/"'
9 CFLAGS+= -I${SRCDIR}/lib -I${.CURDIR}
10
11 SRCS=   openpam_borrow_cred.c openpam_check_owner_perms.c
12 SRCS+=  openpam_configure.c openpam_constants.c openpam_dispatch.c
13 SRCS+=  openpam_dynamic.c openpam_findenv.c openpam_free_data.c
14 SRCS+=  openpam_free_envlist.c openpam_get_option.c openpam_load.c
15 SRCS+=  openpam_log.c openpam_nullconv.c openpam_readline.c
16 SRCS+=  openpam_restore_cred.c openpam_set_option.c openpam_static.c
17 SRCS+=  openpam_subst.c
18 SRCS+=  openpam_ttyconv.c pam_acct_mgmt.c pam_authenticate.c
19 SRCS+=  pam_chauthtok.c pam_close_session.c pam_end.c pam_error.c
20 SRCS+=  pam_get_authtok.c pam_get_data.c pam_get_item.c pam_get_user.c
21 SRCS+=  pam_getenv.c pam_getenvlist.c pam_info.c pam_open_session.c
22 SRCS+=  pam_prompt.c pam_putenv.c pam_set_data.c pam_set_item.c pam_setcred.c
23 SRCS+=  pam_setenv.c pam_start.c pam_strerror.c pam_verror.c pam_vinfo.c
24 SRCS+=  pam_vprompt.c
25 SRCS+=  pam_debug_log.c
26
27 PAMINCS=        openpam.h openpam_version.h pam_appl.h pam_constants.h
28 PAMINCS+=       pam_modules.h pam_types.h openpam_attr.h
29 INCS=   ${PAMINCS:S;^;${SRCDIR}/include/security/;} pam_mod_misc.h
30 INCSDIR=        ${INCLUDEDIR}/security
31
32 MAN=    openpam.3 openpam_borrow_cred.3 openpam_free_data.3
33 MAN+=   openpam_free_envlist.3 openpam_get_option.3 openpam_log.3
34 MAN+=   openpam_nullconv.3 openpam_readline.3 openpam_restore_cred.3
35 MAN+=   openpam_set_option.3 openpam_subst.3
36 MAN+=   openpam_ttyconv.3 pam.3 pam_acct_mgmt.3
37 MAN+=   pam_authenticate.3 pam_chauthtok.3 pam_close_session.3 pam_conv.3
38 MAN+=   pam_end.3 pam_error.3 pam_get_authtok.3 pam_get_data.3 pam_get_item.3
39 MAN+=   pam_get_user.3 pam_getenv.3 pam_getenvlist.3 pam_info.3
40 MAN+=   pam_open_session.3 pam_prompt.3 pam_putenv.3 pam_set_data.3
41 MAN+=   pam_set_item.3 pam_setcred.3 pam_setenv.3 pam_sm_acct_mgmt.3
42 MAN+=   pam_sm_authenticate.3 pam_sm_chauthtok.3 pam_sm_close_session.3
43 MAN+=   pam_sm_open_session.3 pam_sm_setcred.3 pam_start.3 pam_strerror.3
44 MAN+=   pam_verror.3 pam_vinfo.3 pam_vprompt.3 pam.conf.5
45
46 .PATH: ${SRCDIR}/lib ${SRCDIR}/doc/man
47
48 .include <bsd.lib.mk>