deleted file mode 100644
@@ -1,10 +0,0 @@
-AM_CPPFLAGS = -I$(top_srcdir)/include
-AM_CPPFLAGS += -DDEFAULT_INCLUDE_PATH="\"${sysconfdir}\""
- ${LIBMNL_CFLAGS} ${LIBNFTNL_CFLAGS}
-
-AM_CFLAGS = -Wall \
- -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations \
- -Wdeclaration-after-statement -Wsign-compare -Winit-self \
- -Wformat-nonliteral -Wformat-security -Wmissing-format-attribute \
- -Wcast-align -Wundef -Wbad-function-cast
- -Waggregate-return -Wunused -Wwrite-strings
@@ -1,5 +1,4 @@
-include Make_global.am
-
ACLOCAL_AMFLAGS = -I m4
-SUBDIRS = src
+SUBDIRS = src \
+ include
@@ -1,4 +1,11 @@
#!/bin/bash
-autoreconf -fi;
+srcdir=`dirname $0`
+test -z "$srcdir" && srcdir=.
+
+ORIGDIR=`pwd`
+cd $srcdir
+
+autoreconf -vfi || exit 1
rm -Rf autom4te*.cache config.h.in~
+cd $ORIGDIR || exit $?
@@ -119,6 +119,11 @@ AC_TYPE_UINT64_T
# Checks for library functions.
AC_CHECK_FUNCS([memmove memset strchr strdup strerror strtoull])
-AC_CONFIG_FILES([Makefile])
-AC_CONFIG_FILES([src/Makefile])
+AC_CONFIG_FILES([ \
+ Makefile \
+ src/Makefile \
+ include/Makefile \
+ include/linux/Makefile \
+ include/linux/netfilter/Makefile \
+ ])
AC_OUTPUT
new file mode 100644
@@ -0,0 +1,22 @@
+SUBDIRS = linux
+
+noinst_HEADERS = cli.h \
+ datatype.h \
+ expression.h \
+ gmputil.h \
+ mnl.h \
+ nftables.h \
+ payload.h \
+ rbtree.h \
+ statement.h \
+ ct.h \
+ erec.h \
+ exthdr.h \
+ headers.h \
+ list.h \
+ meta.h \
+ netlink.h \
+ parser.h \
+ proto.h \
+ rule.h \
+ utils.h
new file mode 100644
@@ -0,0 +1,7 @@
+SUBDIRS = netfilter
+noinst_HEADERS = netfilter_arp.h \
+ netfilter_bridge.h \
+ netfilter_decnet.h \
+ netfilter.h \
+ netfilter_ipv4.h \
+ netfilter_ipv6.h
new file mode 100644
@@ -0,0 +1,5 @@
+noinst_HEADERS = nf_conntrack_common.h \
+ nf_conntrack_tuple_common.h \
+ nf_nat.h \
+ nf_tables.h \
+ nfnetlink.h
@@ -1,9 +1,19 @@
-include $(top_srcdir)/Make_global.am
-
sbin_PROGRAMS = nft
CLEANFILES = scanner.c parser_bison.c
+AM_CPPFLAGS = -I$(top_srcdir)/include
+AM_CPPFLAGS += -DDEFAULT_INCLUDE_PATH="\"${sysconfdir}\""
+ ${LIBMNL_CFLAGS} ${LIBNFTNL_CFLAGS}
+
+AM_CFLAGS = -Wall \
+ -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations \
+ -Wdeclaration-after-statement -Wsign-compare -Winit-self \
+ -Wformat-nonliteral -Wformat-security -Wmissing-format-attribute \
+ -Wcast-align -Wundef -Wbad-function-cast
+ -Waggregate-return -Wunused -Wwrite-strings
+
+
AM_YFLAGS = -d
# yacc and lex generate dirty code
From: root <root@lord_casco.spaceball> Add some missing Makefile.am's under the include directory. Now it is possible to build 'nftables' from a separate build directory and produce a release tar archive with a 'make distcheck'. --- Make_global.am | 10 ---------- Makefile.am | 5 ++--- autogen.sh | 9 ++++++++- configure.ac | 9 +++++++-- include/Makefile.am | 22 ++++++++++++++++++++++ include/linux/Makefile.am | 7 +++++++ include/linux/netfilter/Makefile.am | 5 +++++ src/Makefile.am | 14 ++++++++++++-- 8 files changed, 63 insertions(+), 18 deletions(-) delete mode 100644 Make_global.am create mode 100644 include/Makefile.am create mode 100644 include/linux/Makefile.am create mode 100644 include/linux/netfilter/Makefile.am