Debian Codegraph @

utils/Makefile.am

raw
1 # Makefile.am --
2 # Copyright 2009,2015 Red Hat Inc.
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 License
16 # along with this program; see the file COPYING. If not, write to the
17 # Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor
18 # Boston, MA 02110-1335, USA.
19 #
20 # Authors:
21 # Steve Grubb <[email protected]>
22 #
23
24 CONFIG_CLEAN_FILES = *.loT *.rej *.orig
25 DISTCLEANFILES = netcap.8
26 AUTOMAKE_OPTIONS = no-dependencies
27 if BUILD_CAP_AUDIT
28 SUBDIRS = cap-audit
29 else
30 SUBDIRS =
31 endif
32 DIST_SUBDIRS = cap-audit
33 EXTRA_DIST = pscap.8 filecap.8 netcap.8.in captest.c captest.8 \
34 libcap-ng.bash_completion
35 AM_CPPFLAGS = -I${top_srcdir} -I${top_srcdir}/src
36 LDADD = ${top_builddir}/src/libcap-ng.la
37 AM_CFLAGS = -W -Wall -Wshadow ${WFLAGS} -Wundef -D_GNU_SOURCE
38 NETCAP_ADVANCED_ENABLED = @NETCAP_ADVANCED_ENABLED@
39 bin_PROGRAMS = pscap netcap filecap
40 man_MANS = pscap.8 netcap.8 filecap.8
41 bashcompletiondir = ${datadir}/bash-completion/completions
42
43 pscap_SOURCES = pscap.c proc-sanitize.c proc-sanitize.h
44 netcap_SOURCES = netcap.c netcap-advanced.h proc-llist.c \
45 proc-llist.h proc-sanitize.c proc-sanitize.h
46 if BUILD_NETCAP_ADVANCED
47 netcap_SOURCES += netcap-advanced.c
48 endif
49 filecap_SOURCES = filecap.c
50
51 if BUILD_DEPRECATED
52 bin_PROGRAMS += captest
53 man_MANS += captest.8
54 captest_SOURCES = captest.c
55 endif
56
57 install-exec-hook:
58 $(MKDIR_P) ${DESTDIR}${bashcompletiondir}
59 $(INSTALL_DATA) ${srcdir}/libcap-ng.bash_completion \
60 ${DESTDIR}${bashcompletiondir}/libcap-ng.bash_completion
61
62 uninstall-hook:
63 rm -f ${DESTDIR}${bashcompletiondir}/libcap-ng.bash_completion