summaryrefslogtreecommitdiffstats
path: root/modules/pam_faillock/Makefile.am
blob: 44a496606c2af302eebc9c27bec814ff72fe622c (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
#
# Copyright (c) 2005, 2006, 2007, 2009 Thorsten Kukuk <kukuk@thkukuk.de>
# Copyright (c) 2008, 2018, 2020 Red Hat, Inc.
# Copyright (c) 2010 Tomas Mraz <tmraz@redhat.com>
#

CLEANFILES = *~
MAINTAINERCLEANFILES = $(MANS) README

EXTRA_DIST = $(XMLS)

if HAVE_DOC
dist_man_MANS = pam_faillock.8 faillock.8 faillock.conf.5
endif
XMLS = README.xml pam_faillock.8.xml faillock.8.xml faillock.conf.5.xml

dist_check_SCRIPTS = tst-pam_faillock
TESTS = $(dist_check_SCRIPTS)

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

noinst_HEADERS = faillock.h

AM_CFLAGS = -I$(top_srcdir)/libpam/include -I$(top_srcdir)/libpamc/include \
	$(WARN_CFLAGS)

faillock_CFLAGS = $(AM_CFLAGS) @EXE_CFLAGS@

pam_faillock_la_LDFLAGS = -no-undefined -avoid-version -module
pam_faillock_la_LIBADD = $(top_builddir)/libpam/libpam.la $(LIBAUDIT)
if HAVE_VERSIONING
  pam_faillock_la_LDFLAGS += -Wl,--version-script=$(srcdir)/../modules.map
endif

faillock_LDFLAGS = @EXE_LDFLAGS@
faillock_LDADD = $(top_builddir)/libpam/libpam.la $(LIBAUDIT)

dist_secureconf_DATA = faillock.conf

securelib_LTLIBRARIES = pam_faillock.la
sbin_PROGRAMS = faillock

pam_faillock_la_SOURCES = pam_faillock.c faillock.c
faillock_SOURCES = main.c faillock.c

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