configure: Add option to enable/disable libnfnetlink
[iptables-mirror.git] / Makefile.am
blob299ab46d7b8e24bbad3a74782343b7cd0cf30c30
1 # -*- Makefile -*-
3 ACLOCAL_AMFLAGS  = -I m4
4 AUTOMAKE_OPTIONS = foreign subdir-objects dist-xz no-dist-gzip
6 SUBDIRS          = libiptc libxtables
7 if ENABLE_DEVEL
8 SUBDIRS         += include
9 endif
10 if ENABLE_LIBIPQ
11 SUBDIRS         += libipq
12 endif
13 SUBDIRS         += utils
14 # Depends on libxtables:
15 SUBDIRS         += extensions
16 # Depends on extensions/libext.a:
17 SUBDIRS         += iptables
19 EXTRA_DIST      = autogen.sh iptables-test.py xlate-test.py
21 if ENABLE_NFTABLES
22 confdir         = $(sysconfdir)
23 dist_conf_DATA  = etc/ethertypes
24 endif
26 .PHONY: tarball
27 tarball:
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};
34 config.status: extensions/GNUmakefile.in \
35         include/xtables-version.h.in
37 TESTS = xlate-test.py iptables-test.py iptables/tests/shell/run-tests.sh