Imported Upstream version 2.4.3
[platform/upstream/audit.git] / src / Makefile.am
1 # Makefile.am-- 
2 # Copyright 2004-2006, 2008,2011-15 Red Hat Inc., Durham, North Carolina.
3 # All Rights Reserved.
4 #
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 2 of the License, or
8 # (at your option) any later version.
9 #
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 # GNU General Public License for more details.
14 #
15 # You should have received a copy of the GNU General Public License
16 # along with this program; if not, write to the Free Software
17 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
18 #
19 # Authors:
20 #   Steve Grubb <sgrubb@redhat.com>
21 #
22
23 CONFIG_CLEAN_FILES = *.rej *.orig
24 AUTOMAKE_OPTIONS = no-dependencies
25 SUBDIRS = test
26 AM_CPPFLAGS = -I${top_srcdir} -I${top_srcdir}/lib -I${top_srcdir}/src/libev -I${top_srcdir}/auparse
27 sbin_PROGRAMS = auditd auditctl aureport ausearch autrace
28 AM_CFLAGS = -D_GNU_SOURCE
29 noinst_HEADERS = auditd-config.h auditd-event.h auditd-listen.h ausearch-llist.h ausearch-options.h auditctl-llist.h aureport-options.h ausearch-parse.h aureport-scan.h ausearch-lookup.h ausearch-int.h auditd-dispatch.h ausearch-string.h ausearch-nvpair.h ausearch-common.h ausearch-avc.h ausearch-time.h ausearch-lol.h auditctl-listing.h ausearch-checkpt.h
30
31 auditd_SOURCES = auditd.c auditd-event.c auditd-config.c auditd-reconfig.c auditd-sendmail.c auditd-dispatch.c
32 if ENABLE_LISTENER
33 auditd_SOURCES += auditd-listen.c
34 endif
35 auditd_CFLAGS = -fPIE -DPIE -g -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pthread
36 auditd_LDFLAGS = -pie -Wl,-z,relro -Wl,-z,now
37 auditd_DEPENDENCIES = mt/libauditmt.a libev/libev.a
38 auditd_LDADD = @LIBWRAP_LIBS@ -Llibev -lev -Lmt -lauditmt -lpthread -lrt -lm $(gss_libs)
39
40 auditctl_SOURCES = auditctl.c auditctl-llist.c delete_all.c auditctl-listing.c
41 auditctl_CFLAGS = -fPIE -DPIE -g -D_GNU_SOURCE
42 auditctl_LDFLAGS = -pie -Wl,-z,relro -Wl,-z,now
43 auditctl_LDADD = -L${top_builddir}/lib -laudit -L${top_builddir}/auparse -lauparse
44
45 aureport_SOURCES = aureport.c auditd-config.c ausearch-llist.c aureport-options.c ausearch-string.c ausearch-parse.c aureport-scan.c aureport-output.c ausearch-lookup.c ausearch-int.c ausearch-time.c ausearch-nvpair.c ausearch-avc.c ausearch-lol.c
46 aureport_LDADD = -L${top_builddir}/lib -laudit
47
48 ausearch_SOURCES = ausearch.c auditd-config.c ausearch-llist.c ausearch-options.c ausearch-report.c ausearch-match.c ausearch-string.c ausearch-parse.c ausearch-int.c ausearch-time.c ausearch-nvpair.c ausearch-lookup.c ausearch-avc.c ausearch-lol.c ausearch-checkpt.c
49 ausearch_LDADD = -L${top_builddir}/lib -laudit -L${top_builddir}/auparse -lauparse
50
51 autrace_SOURCES = autrace.c delete_all.c auditctl-llist.c
52 autrace_LDADD = -L${top_builddir}/lib -laudit
53
54 mt/libauditmt.a:
55         make -C mt
56 libev/libev.a:
57         make -C libev