diff options
author | Jan Engelhardt <jengelh@medozas.de> | 2011-06-07 14:02:37 +0200 |
---|---|---|
committer | Jan Engelhardt <jengelh@medozas.de> | 2011-06-07 14:02:37 +0200 |
commit | 033e25a3ad215ee3f5a07f0a3315f74c4abfaced (patch) | |
tree | 09dd915a800c5276663d3688768e9cb960538515 /Makefile.am | |
parent | 5c8f5b60aa8e24da0bd25824f0f85bf7a4a39ea7 (diff) |
src: move all iptables pieces into a separate directory
(Unclutter top-level dir)
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 67 |
1 files changed, 1 insertions, 66 deletions
diff --git a/Makefile.am b/Makefile.am index 02b5c096..34b35012 100644 --- a/Makefile.am +++ b/Makefile.am @@ -3,9 +3,7 @@ ACLOCAL_AMFLAGS = -I m4 AUTOMAKE_OPTIONS = foreign subdir-objects -AM_CFLAGS = ${regular_CFLAGS} -AM_CPPFLAGS = ${regular_CPPFLAGS} -I${top_builddir}/include -I${top_srcdir}/include ${kinclude_CPPFLAGS} -SUBDIRS = extensions libiptc +SUBDIRS = extensions libiptc iptables if ENABLE_DEVEL SUBDIRS += include endif @@ -16,61 +14,6 @@ if HAVE_LIBNFNETLINK SUBDIRS += utils endif -lib_LTLIBRARIES = libxtables.la -libxtables_la_SOURCES = xtables.c xtoptions.c -libxtables_la_LDFLAGS = -version-info ${libxtables_vcurrent}:0:${libxtables_vage} -if ENABLE_SHARED -libxtables_la_CFLAGS = ${AM_CFLAGS} -libxtables_la_LIBADD = -ldl -else -libxtables_la_CFLAGS = ${AM_CFLAGS} -DNO_SHARED_LIBS=1 -libxtables_la_LIBADD = -endif - -xtables_multi_SOURCES = xtables-multi.c iptables-xml.c -xtables_multi_CFLAGS = ${AM_CFLAGS} -DIPTABLES_MULTI -xtables_multi_LDFLAGS = -rdynamic -xtables_multi_LDADD = extensions/libext.a -if ENABLE_STATIC -xtables_multi_CFLAGS += -DALL_INCLUSIVE -endif -if ENABLE_IPV4 -xtables_multi_SOURCES += iptables-save.c iptables-restore.c \ - iptables-standalone.c iptables.c -xtables_multi_CFLAGS += -DENABLE_IPV4 -xtables_multi_LDADD += libiptc/libip4tc.la extensions/libext4.a -endif -if ENABLE_IPV6 -xtables_multi_SOURCES += ip6tables-save.c ip6tables-restore.c \ - ip6tables-standalone.c ip6tables.c -xtables_multi_CFLAGS += -DENABLE_IPV6 -xtables_multi_LDADD += libiptc/libip6tc.la extensions/libext6.a -endif -xtables_multi_SOURCES += xshared.c -xtables_multi_LDADD += libxtables.la -lm - -sbin_PROGRAMS = xtables-multi -man_MANS = iptables.8 iptables-restore.8 iptables-save.8 \ - iptables-xml.1 ip6tables.8 ip6tables-restore.8 \ - ip6tables-save.8 -CLEANFILES = iptables.8 ip6tables.8 - -vx_bin_links = iptables-xml -if ENABLE_IPV4 -v4_sbin_links = iptables iptables-restore iptables-save -endif -if ENABLE_IPV6 -v6_sbin_links = ip6tables ip6tables-restore ip6tables-save -endif - -iptables.8: ${srcdir}/iptables.8.in extensions/matches4.man extensions/targets4.man - ${AM_VERBOSE_GEN} sed -e 's/@PACKAGE_AND_VERSION@/${PACKAGE} ${PACKAGE_VERSION}/g' -e '/@MATCH@/ r extensions/matches4.man' -e '/@TARGET@/ r extensions/targets4.man' $< >$@; - -ip6tables.8: ${srcdir}/ip6tables.8.in extensions/matches6.man extensions/targets6.man - ${AM_VERBOSE_GEN} sed -e 's/@PACKAGE_AND_VERSION@/${PACKAGE} ${PACKAGE_VERSION}/g' -e '/@MATCH@/ r extensions/matches6.man' -e '/@TARGET@/ r extensions/targets6.man' $< >$@; - -pkgconfig_DATA = xtables.pc - .PHONY: tarball tarball: rm -Rf /tmp/${PACKAGE_TARNAME}-${PACKAGE_VERSION}; @@ -81,11 +24,3 @@ tarball: config.status: extensions/GNUmakefile.in \ include/xtables.h.in include/iptables/internal.h.in - -# Using if..fi avoids an ugly "error (ignored)" message :) -install-exec-hook: - -if test -z "${DESTDIR}"; then /sbin/ldconfig; fi; - ${INSTALL} -dm0755 "${DESTDIR}${bindir}"; - for i in ${vx_bin_links}; do ${LN_S} -f "${sbindir}/xtables-multi" "${DESTDIR}${bindir}/$$i"; done; - for i in ${v4_sbin_links}; do ${LN_S} -f xtables-multi "${DESTDIR}${sbindir}/$$i"; done; - for i in ${v6_sbin_links}; do ${LN_S} -f xtables-multi "${DESTDIR}${sbindir}/$$i"; done; |