1# -*- Makefile -*- 2 3ACLOCAL_AMFLAGS = -I m4 4AUTOMAKE_OPTIONS = foreign subdir-objects dist-xz no-dist-gzip 5 6SUBDIRS = libiptc libxtables 7if ENABLE_DEVEL 8SUBDIRS += include 9endif 10if ENABLE_LIBIPQ 11SUBDIRS += libipq 12endif 13SUBDIRS += utils 14# Depends on libxtables: 15SUBDIRS += extensions 16# Depends on extensions/libext.a: 17SUBDIRS += iptables 18 19EXTRA_DIST = autogen.sh iptables-test.py xlate-test.py 20 21if ENABLE_NFTABLES 22confdir = $(sysconfdir) 23dist_conf_DATA = etc/ethertypes 24endif 25 26.PHONY: tarball 27tarball: 28 rm -Rf /tmp/${PACKAGE_TARNAME}-${PACKAGE_VERSION}; 29 pushd ${top_srcdir} && git archive --prefix=${PACKAGE_TARNAME}-${PACKAGE_VERSION}/ HEAD | tar -C /tmp -x && popd; 30 pushd /tmp/${PACKAGE_TARNAME}-${PACKAGE_VERSION} && ./autogen.sh && popd; 31 tar -C /tmp -cJf ${PACKAGE_TARNAME}-${PACKAGE_VERSION}.tar.xz --owner=root --group=root ${PACKAGE_TARNAME}-${PACKAGE_VERSION}/; 32 rm -Rf /tmp/${PACKAGE_TARNAME}-${PACKAGE_VERSION}; 33 34config.status: extensions/GNUmakefile.in \ 35 include/xtables-version.h.in 36 37TESTS = xlate-test.py iptables-test.py iptables/tests/shell/run-tests.sh 38