5acfbb01be767489d83171a50d093d9868410487
[dragonfly.git] / lib / libpam / libpam / Makefile
1
2 #
3 # Only build shared lib here, libpam.a is built by static_libpam.
4 # This is done to avoid circular dependencies for static modules.
5 #
6 .if !defined(LIB)
7 SHLIB_NAME=     libpam.so.${SHLIB_MAJOR}
8 .endif
9
10 SRCDIR= ${.CURDIR}/../../../contrib/openpam
11
12 MODULE_DIR=     ${LIBDIR}/security
13
14 CFLAGS+= -DHAVE_CONFIG_H
15 CFLAGS+= -DOPENPAM_MODULES_DIRECTORY='"${MODULE_DIR}/"'
16 CFLAGS+= -I${SRCDIR}/lib/libpam -I${SRCDIR}/include -I${.CURDIR}/../libpam
17
18 # Dist files
19 SRCS=   \
20         openpam_borrow_cred.c \
21         openpam_check_owner_perms.c \
22         openpam_configure.c \
23         openpam_constants.c \
24         openpam_dispatch.c \
25         openpam_dynamic.c \
26         openpam_features.c \
27         openpam_findenv.c \
28         openpam_free_data.c \
29         openpam_free_envlist.c \
30         openpam_get_feature.c \
31         openpam_get_option.c \
32         openpam_load.c \
33         openpam_log.c \
34         openpam_nullconv.c \
35         openpam_readline.c \
36         openpam_readlinev.c \
37         openpam_readword.c \
38         openpam_restore_cred.c \
39         openpam_set_feature.c \
40         openpam_set_option.c \
41         openpam_straddch.c \
42         openpam_strlset.c \
43         openpam_subst.c \
44         openpam_ttyconv.c \
45         pam_acct_mgmt.c \
46         pam_authenticate.c \
47         pam_chauthtok.c \
48         pam_close_session.c \
49         pam_end.c \
50         pam_error.c \
51         pam_get_authtok.c \
52         pam_get_data.c \
53         pam_get_item.c \
54         pam_get_user.c \
55         pam_getenv.c \
56         pam_getenvlist.c \
57         pam_info.c \
58         pam_open_session.c \
59         pam_prompt.c \
60         pam_putenv.c \
61         pam_set_data.c \
62         pam_set_item.c \
63         pam_setcred.c \
64         pam_setenv.c \
65         pam_start.c \
66         pam_strerror.c \
67         pam_verror.c \
68         pam_vinfo.c \
69         pam_vprompt.c
70 # Local files
71 SRCS+=  pam_debug_log.c
72
73 PAMINCS=openpam.h \
74         openpam_attr.h \
75         openpam_version.h \
76         pam_appl.h \
77         pam_constants.h \
78         pam_modules.h \
79         pam_types.h
80 INCS?=  ${PAMINCS:S;^;${SRCDIR}/include/security/;} security/pam_mod_misc.h
81 INCSDIR=        ${INCLUDEDIR}/security
82
83 MAN?=   openpam.3 \
84         openpam_borrow_cred.3 \
85         openpam_free_data.3 \
86         openpam_free_envlist.3 \
87         openpam_get_feature.3 \
88         openpam_get_option.3 \
89         openpam_log.3 \
90         openpam_nullconv.3 \
91         openpam_readline.3 \
92         openpam_readlinev.3 \
93         openpam_readword.3 \
94         openpam_restore_cred.3 \
95         openpam_set_feature.3 \
96         openpam_set_option.3 \
97         openpam_straddch.3 \
98         openpam_subst.3 \
99         openpam_ttyconv.3 \
100         pam.3 \
101         pam_acct_mgmt.3 \
102         pam_authenticate.3 \
103         pam_chauthtok.3 \
104         pam_close_session.3 \
105         pam_conv.3 \
106         pam_end.3 \
107         pam_error.3 \
108         pam_get_authtok.3 \
109         pam_get_data.3 \
110         pam_get_item.3 \
111         pam_get_user.3 \
112         pam_getenv.3 \
113         pam_getenvlist.3 \
114         pam_info.3 \
115         pam_open_session.3 \
116         pam_prompt.3 \
117         pam_putenv.3 \
118         pam_set_data.3 \
119         pam_set_item.3 \
120         pam_setcred.3 \
121         pam_setenv.3 \
122         pam_sm_acct_mgmt.3 \
123         pam_sm_authenticate.3 \
124         pam_sm_chauthtok.3 \
125         pam_sm_close_session.3 \
126         pam_sm_open_session.3 \
127         pam_sm_setcred.3 \
128         pam_start.3 \
129         pam_strerror.3 \
130         pam_verror.3 \
131         pam_vinfo.3 \
132         pam_vprompt.3 \
133         pam.conf.5
134
135 .PATH: ${SRCDIR}/lib/libpam ${SRCDIR}/doc/man
136
137 .include <bsd.lib.mk>