]> granicus.if.org Git - linux-pam/blob - modules/pam_unix/Makefile.am
Relevant BUGIDs: none
[linux-pam] / modules / pam_unix / Makefile.am
1 #
2 # Copyright (c) 2005 Thorsten Kukuk <kukuk@suse.de>
3 #
4
5 CLEANFILES = *~
6
7 EXTRA_DIST = README md5.c md5_crypt.c lckpwdf.-c $(MANS) CHANGELOG
8
9 man_MANS = unix_chkpwd.8
10
11 securelibdir = $(SECUREDIR)
12 secureconfdir = $(SCONFIGDIR)
13
14 AM_CFLAGS = -I$(top_srcdir)/libpam/include -I$(top_srcdir)/libpamc/include \
15         -I$(top_srcdir)/modules/pammodutil/include/ \
16         -DCHKPWD_HELPER=\"$(sbindir)/unix_chkpwd\"
17
18 AM_LDFLAGS = -L$(top_builddir)/libpam -lpam @LIBCRYPT@ @LIBSELINUX@
19
20 if HAVE_LIBSELINUX
21   AM_CFLAGS += -D"WITH_SELINUX"
22 endif
23 if HAVE_LIBCRACK
24   AM_CFLAGS += -D"USE_CRACKLIB"
25 endif
26
27 pam_unix_la_LDFLAGS = -no-undefined -avoid-version -module \
28         -L$(top_builddir)/modules/pammodutil -lpammodutil \
29         @LIBCRACK@ @LIBNSL@
30 if HAVE_VERSIONING
31   pam_unix_la_LDFLAGS += -Wl,--version-script=../modules.map
32 endif
33
34 securelib_LTLIBRARIES = pam_unix.la
35
36 noinst_HEADERS = md5.h support.h yppasswd.h
37
38 sbin_PROGRAMS = unix_chkpwd
39
40 noinst_PROGRAMS = bigcrypt
41
42 pam_unix_la_SOURCES = bigcrypt.c pam_unix_acct.c \
43         pam_unix_auth.c pam_unix_passwd.c pam_unix_sess.c support.c \
44         yppasswd_xdr.c md5_good.c md5_broken.c
45
46 bigcrypt_SOURCES = bigcrypt.c bigcrypt_main.c
47
48 unix_chkpwd_SOURCES = unix_chkpwd.c md5_good.c md5_broken.c bigcrypt.c