summaryrefslogtreecommitdiff
path: root/modules/pam_unix/Makefile.am
blob: a74d97622b1283001812063f8ced287ef5347a59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#
# Copyright (c) 2005, 2006 Thorsten Kukuk <kukuk@suse.de>
#

CLEANFILES = *~

EXTRA_DIST = README md5.c md5_crypt.c lckpwdf.-c $(MANS) CHANGELOG \
		tst-pam_unix $(XMLS) 

man_MANS = pam_unix.8 unix_chkpwd.8
XMLS = README.xml pam_unix.8.xml

TESTS = tst-pam_unix

securelibdir = $(SECUREDIR)
secureconfdir = $(SCONFIGDIR)

AM_CFLAGS = -I$(top_srcdir)/libpam/include -I$(top_srcdir)/libpamc/include \
	-DCHKPWD_HELPER=\"$(sbindir)/unix_chkpwd\"

if HAVE_LIBSELINUX
  AM_CFLAGS += -D"WITH_SELINUX"
endif
if HAVE_LIBCRACK
  AM_CFLAGS += -D"USE_CRACKLIB"
endif

pam_unix_la_LDFLAGS = -no-undefined -avoid-version -module
if HAVE_VERSIONING
  pam_unix_la_LDFLAGS += -Wl,--version-script=$(srcdir)/../modules.map
endif
pam_unix_la_LIBADD = @LIBCRACK@ @LIBNSL@ -L$(top_builddir)/libpam -lpam \
	@LIBCRYPT@ @LIBSELINUX@

securelib_LTLIBRARIES = pam_unix.la

noinst_HEADERS = md5.h support.h yppasswd.h bigcrypt.h passverify.h

sbin_PROGRAMS = unix_chkpwd

noinst_PROGRAMS = bigcrypt

pam_unix_la_SOURCES = bigcrypt.c pam_unix_acct.c \
	pam_unix_auth.c pam_unix_passwd.c pam_unix_sess.c support.c \
	passverify.c yppasswd_xdr.c md5_good.c md5_broken.c

bigcrypt_SOURCES = bigcrypt.c bigcrypt_main.c
bigcrypt_CFLAGS = $(AM_CFLAGS)
bigcrypt_LDADD = @LIBCRYPT@

unix_chkpwd_SOURCES = unix_chkpwd.c md5_good.c md5_broken.c bigcrypt.c \
	passverify.c
unix_chkpwd_CFLAGS = $(AM_CFLAGS) @PIE_CFLAGS@
unix_chkpwd_LDFLAGS = @PIE_LDFLAGS@ 
unix_chkpwd_LDADD = @LIBCRYPT@ @LIBSELINUX@

if ENABLE_REGENERATE_MAN
noinst_DATA = README
README: pam_unix.8.xml
-include $(top_srcdir)/Make.xml.rules
endif