Imported Upstream version 2.4.3
[platform/upstream/audit.git] / audisp / plugins / remote / Makefile.am
1 # Makefile.am --
2 # Copyright 2008-2009,2011,2015 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
23 CONFIG_CLEAN_FILES = *.loT *.rej *.orig
24 EXTRA_DIST = au-remote.conf audisp-remote.conf notes.txt $(man_MANS)
25 AM_CPPFLAGS = -I${top_srcdir} -I${top_srcdir}/lib 
26 prog_confdir = $(sysconfdir)/audisp
27 prog_conf = audisp-remote.conf
28 plugin_confdir=$(prog_confdir)/plugins.d
29 plugin_conf = au-remote.conf
30 sbin_PROGRAMS = audisp-remote
31 noinst_HEADERS = remote-config.h queue.h remote-fgets.h
32 man_MANS = audisp-remote.8 audisp-remote.conf.5
33 check_PROGRAMS = test-queue
34 TESTS = $(check_PROGRAMS)
35
36 audisp_remote_SOURCES = audisp-remote.c remote-config.c queue.c remote-fgets.c
37 audisp_remote_CFLAGS = -fPIE -DPIE -g -D_REENTRANT -D_GNU_SOURCE -Wundef
38 audisp_remote_LDFLAGS = -pie -Wl,-z,relro -Wl,-z,now $(gss_libs)
39 audisp_remote_LDADD = $(CAPNG_LDADD)
40
41 test_queue_SOURCES = queue.c test-queue.c
42
43 install-data-hook:
44         mkdir -p -m 0750 ${DESTDIR}${plugin_confdir}
45         $(INSTALL_DATA) -D -m 640 ${srcdir}/$(plugin_conf) ${DESTDIR}${plugin_confdir}
46         $(INSTALL_DATA) -D -m 640 ${srcdir}/$(prog_conf) ${DESTDIR}${prog_confdir}
47
48 uninstall-hook:
49         rm ${DESTDIR}${plugin_confdir}/$(plugin_conf)
50         rm ${DESTDIR}${prog_confdir}/$(prog_conf)
51