Imported Upstream version 2.4.3
[platform/upstream/audit.git] / audisp / plugins / zos-remote / Makefile.am
1 # Makefile.am--
2 # Copyright (C) 2007,2008 International Business Machines  Corp.
3 # Copyright (C) 2011, 2015 Red Hat., Durham, North Carolina.
4 # All Rights Reserved.
5 #
6 # This program is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 2 of the License, or
9 # (at your option) any later version.
10 #
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 # GNU General Public License for more details.
15 #
16 # You should have received a copy of the GNU General Public License
17 # along with this program; if not, write to the Free Software
18 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19 #
20 # Authors:
21 #   Klaus Heinrich Kiwi <klausk@br.ibm.com>
22 #
23
24 AM_CPPFLAGS = -I${top_srcdir} -I${top_srcdir}/lib -I${top_srcdir}/auparse
25 CONFIG_CLEAN_FILES = *.rej *.orig
26 AUTOMAKE_OPTIONS = no-dependencies
27 EXTRA_DIST = zos-remote.conf audispd-zos-remote.conf
28 LIBS = -L${top_builddir}/auparse -lauparse
29 LDADD = -lpthread -lldap -llber $(CAPNG_LDADD) 
30 dispatcher_confdir = $(sysconfdir)/audisp
31 plugin_confdir=$(dispatcher_confdir)/plugins.d
32 plugin_conf = zos-remote.conf
33 dispatcher_conf = audispd-zos-remote.conf
34 sbin_PROGRAMS = audispd-zos-remote
35
36 noinst_HEADERS = zos-remote-log.h zos-remote-ldap.h zos-remote-config.h \
37         zos-remote-queue.h
38 audispd_zos_remote_SOURCES = zos-remote-plugin.c zos-remote-log.c \
39         zos-remote-ldap.c zos-remote-config.c zos-remote-queue.c
40 audispd_zos_remote_CFLAGS = -W -Wall -Wundef -D_GNU_SOURCE -fPIE -DPIE
41 audispd_zos_remote_LDFLAGS = -pie -Wl,-z,relro -Wl,-z,now
42
43 install-data-hook:
44         mkdir -p -m 0750 ${DESTDIR}${plugin_confdir}
45         $(INSTALL_DATA) -D -m 640 ${srcdir}/$(plugin_conf) \
46             ${DESTDIR}${dispatcher_confdir}
47         $(INSTALL_DATA) -D -m 640 ${srcdir}/$(dispatcher_conf) \
48             ${DESTDIR}${plugin_confdir}
49
50 uninstall-hook:
51         rm ${DESTDIR}${plugin_confdir}/$(dispatcher_conf)
52         rm ${DESTDIR}${dispatcher_confdir}/$(plugin_conf)