1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
|
# Makefile.am --
# Copyright 2009,2015 Red Hat Inc.
# All Rights Reserved.
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with this program; see the file COPYING. If not, write to the
# Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor
# Boston, MA 02110-1335, USA.
#
# Authors:
# Steve Grubb <sgrubb@redhat.com>
#
CONFIG_CLEAN_FILES = *.loT *.rej *.orig
AUTOMAKE_OPTIONS = no-dependencies
if BUILD_CAP_AUDIT
SUBDIRS = cap-audit
else
SUBDIRS =
endif
DIST_SUBDIRS = cap-audit
EXTRA_DIST = $(man_MANS) captest.c captest.8 libcap-ng.bash_completion
AM_CPPFLAGS = -I${top_srcdir} -I${top_srcdir}/src
LDADD = ${top_builddir}/src/libcap-ng.la
AM_CFLAGS = -W -Wall -Wshadow ${WFLAGS} -Wundef -D_GNU_SOURCE
bin_PROGRAMS = pscap netcap filecap
man_MANS = pscap.8 netcap.8 filecap.8
bashcompletiondir = ${datadir}/bash-completion/completions
pscap_SOURCES = pscap.c proc-sanitize.c proc-sanitize.h
netcap_SOURCES = netcap.c netcap-advanced.c netcap-advanced.h \
proc-llist.c proc-llist.h proc-sanitize.c proc-sanitize.h
filecap_SOURCES = filecap.c
if BUILD_DEPRECATED
bin_PROGRAMS += captest
man_MANS += captest.8
captest_SOURCES = captest.c
endif
install-exec-hook:
$(MKDIR_P) ${DESTDIR}${bashcompletiondir}
$(INSTALL_DATA) ${srcdir}/libcap-ng.bash_completion \
${DESTDIR}${bashcompletiondir}/libcap-ng.bash_completion
uninstall-hook:
rm -f ${DESTDIR}${bashcompletiondir}/libcap-ng.bash_completion
|