Imported Upstream version 2.4.3
[platform/upstream/audit.git] / src / mt / Makefile.am
1 # Makefile.am -- 
2 # Copyright 2005-06,2008,2012,2014-15 Red Hat Inc., Durham, North Carolina.
3 # All Rights Reserved.
4 #
5 # This library is free software; you can redistribute it and/or
6 # modify it under the terms of the GNU Lesser General Public
7 # License as published by the Free Software Foundation; either
8 # version 2.1 of the License, or (at your option) any later version.
9
10 # This library 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 GNU
13 # Lesser General Public License for more details.
14
15 # You should have received a copy of the GNU Lesser General Public
16 # License along with this library; 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 # This make file builds a static multi-threaded libary for the audit
23 # daemon's own use.
24
25 AUTOMAKE_OPTIONS = no-dependencies
26 AM_CPPFLAGS = -I${top_srcdir}/lib -I${top_builddir}/lib
27 CONFIG_CLEAN_FILES = *.rej *.orig
28 AM_CFLAGS = -fPIC -DPIC -D_REENTRANT -D_GNU_SOURCE -DNO_TABLES
29
30 noinst_LIBRARIES = libauditmt.a
31
32 libauditmt_a_SOURCES = ${top_srcdir}/lib/libaudit.c \
33         ${top_srcdir}/lib/message.c ${top_srcdir}/lib/netlink.c \
34         ${top_srcdir}/lib/lookup_table.c ${top_srcdir}/lib/audit_logging.c \
35         ${top_srcdir}/lib/deprecated.c ${top_srcdir}/lib/strsplit.c
36 libauditmt_a_HEADERS: ${top_builddir}/config.h ${top_srcdir}/lib/libaudit.h \
37         ${top_srcdir}/lib/private.h
38 libauditmt_a_DEPENDENCIES = $(libaudit_a_SOURCES) ${top_builddir}/config.h \
39         ${top_srcdir}/lib/gen_tables.h ${top_builddir}/lib/i386_tables.h \
40         ${top_builddir}/lib/ia64_tables.h ${top_builddir}/lib/ppc_tables.h \
41         ${top_builddir}/lib/s390_tables.h ${top_builddir}/lib/s390x_tables.h \
42         ${top_builddir}/lib/x86_64_tables.h ${top_srcdir}/lib/private.h \
43         ${top_builddir}/lib/actiontabs.h ${top_builddir}/lib/fieldtabs.h \
44         ${top_builddir}/lib/flagtabs.h ${top_builddir}/lib/ftypetabs.h \
45         ${top_builddir}/lib/machinetabs.h ${top_builddir}/lib/msg_typetabs.h \
46         ${top_builddir}/lib/optabs.h
47 AM_LDFLAGS = -Wl,-z,relro
48
49 lib_OBJECTS = $(libauditmt_a_OBJECTS)