aboutsummaryrefslogtreecommitdiff
path: root/modules/pam_unix/Makefile.am
blob: 44f8b24e0cdccffd4875044abbc4199a54364abc (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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
#
# Copyright (c) 2005, 2006, 2009, 2011 Thorsten Kukuk <kukuk@suse.de>
#

CLEANFILES = *~
MAINTAINERCLEANFILES = $(MANS) README

EXTRA_DIST = md5.c md5_crypt.c lckpwdf.-c yppasswd_xdr.c $(XMLS)

if HAVE_DOC
dist_man_MANS = pam_unix.8 unix_chkpwd.8
if WITH_SELINUX
dist_man_MANS += unix_update.8
endif
endif

XMLS = README.xml pam_unix.8.xml unix_chkpwd.8.xml
if WITH_SELINUX
XMLS += unix_update.8.xml
endif

dist_check_SCRIPTS = tst-pam_unix
TESTS = $(dist_check_SCRIPTS)

securelibdir = $(SECUREDIR)
if HAVE_VENDORDIR
secureconfdir = $(VENDOR_SCONFIGDIR)
else
secureconfdir = $(SCONFIGDIR)
endif

AM_CFLAGS = -I$(top_srcdir)/libpam/include \
	-DCHKPWD_HELPER=\"$(sbindir)/unix_chkpwd\" \
	-DUPDATE_HELPER=\"$(sbindir)/unix_update\" \
	@TIRPC_CFLAGS@ @NSL_CFLAGS@ $(WARN_CFLAGS)

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 = $(top_builddir)/libpam_internal/libpam_internal.la \
	$(top_builddir)/libpam/libpam.la \
	@LIBCRYPT@ @LIBSELINUX@ @TIRPC_LIBS@ @NSL_LIBS@

securelib_LTLIBRARIES = pam_unix.la

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

sbin_PROGRAMS = unix_chkpwd
if WITH_SELINUX
sbin_PROGRAMS += unix_update
endif

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 md5_good.c md5_broken.c
if HAVE_NIS
  pam_unix_la_SOURCES += yppasswd_xdr.c
endif

bigcrypt_SOURCES = bigcrypt.c bigcrypt_main.c
bigcrypt_CFLAGS = $(AM_CFLAGS)
bigcrypt_LDADD = $(top_builddir)/libpam_internal/libpam_internal.la @LIBCRYPT@

unix_chkpwd_SOURCES = unix_chkpwd.c audit.c md5_good.c md5_broken.c bigcrypt.c \
	passverify.c
unix_chkpwd_CFLAGS = $(AM_CFLAGS) @EXE_CFLAGS@ -DHELPER_COMPILE=\"unix_chkpwd\"
unix_chkpwd_LDFLAGS = @EXE_LDFLAGS@
unix_chkpwd_LDADD = $(top_builddir)/libpam_internal/libpam_internal.la \
		    @LIBCRYPT@ @LIBSELINUX@ @LIBAUDIT@

if WITH_SELINUX
unix_update_SOURCES = unix_update.c audit.c md5_good.c md5_broken.c bigcrypt.c \
	passverify.c
unix_update_CFLAGS = $(AM_CFLAGS) @EXE_CFLAGS@ -DHELPER_COMPILE=\"unix_update\"
unix_update_LDFLAGS = @EXE_LDFLAGS@
unix_update_LDADD = $(top_builddir)/libpam_internal/libpam_internal.la \
		    @LIBCRYPT@ @LIBSELINUX@ @LIBAUDIT@
endif

if ENABLE_REGENERATE_MAN
dist_noinst_DATA = README
-include $(top_builddir)/Make.xml.rules
endif