]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
build: restructure Makefile for include/ directory
authorJan Engelhardt <jengelh@medozas.de>
Thu, 12 Feb 2009 14:01:37 +0000 (15:01 +0100)
committerJan Engelhardt <jengelh@medozas.de>
Thu, 12 Feb 2009 14:13:18 +0000 (15:13 +0100)
This patch will support adding libiptc to the headers list in future.

Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Makefile.am
configure.ac
include/Makefile.am [new file with mode: 0644]
libipq/Makefile.am

index dbdfa97a3b847f04ccd5585e70f42e2ec2b2929e..be3f55eb3ab971fdffaf6451095646de191c2121 100644 (file)
@@ -5,6 +5,9 @@ AUTOMAKE_OPTIONS = foreign subdir-objects
 
 AM_CFLAGS        = ${regular_CFLAGS} -I${top_builddir}/include -I${top_srcdir}/include ${kinclude_CFLAGS}
 SUBDIRS          = extensions
+if ENABLE_DEVEL
+SUBDIRS         += include
+endif
 if ENABLE_LIBIPQ
 SUBDIRS         += libipq
 endif
@@ -78,9 +81,6 @@ man_MANS         = iptables.8 iptables-restore.8 iptables-save.8 \
                    iptables-xml.8 ip6tables.8 ip6tables-restore.8 \
                    ip6tables-save.8
 CLEANFILES       = iptables.8 ip6tables.8
-if ENABLE_DEVEL
-include_HEADERS  = include/xtables.h
-endif
 
 if ENABLE_STATIC
 sbin_PROGRAMS += iptables-static ip6tables-static
index 888ba4293903b9f832c0226f5a9293ec0056234b..3277666e78ee296c7a0c3ac46da83da8c63f0367 100644 (file)
@@ -78,6 +78,7 @@ AC_SUBST([libxtables_vage])
 libxtables_vmajor=$(($libxtables_vcurrent - $libxtables_vage));
 AC_SUBST([libxtables_vmajor])
 
-AC_CONFIG_FILES([Makefile extensions/GNUmakefile libipq/Makefile
+AC_CONFIG_FILES([Makefile extensions/GNUmakefile include/Makefile
+       libipq/Makefile
        include/xtables.h include/iptables/internal.h xtables.pc])
 AC_OUTPUT
diff --git a/include/Makefile.am b/include/Makefile.am
new file mode 100644 (file)
index 0000000..6206bd2
--- /dev/null
@@ -0,0 +1,8 @@
+# -*- Makefile -*-
+
+include_HEADERS =
+nobase_include_HEADERS = xtables.h
+
+if ENABLE_LIBIPQ
+include_HEADERS += libipq/libipq.h
+endif
index d4245e776b4c8ebbc700fdd1b377d7078d8708a9..f19950f46438a4064b524a83461f6ff1f93ceb7a 100644 (file)
@@ -4,7 +4,6 @@ AM_CFLAGS = ${regular_CFLAGS} -I${top_builddir}/include -I${top_srcdir}/include
 
 libipq_a_SOURCES = libipq.c
 lib_LIBRARIES    = libipq.a
-include_HEADERS  = ${top_srcdir}/include/libipq/libipq.h
 man_MANS         = ipq_create_handle.3 ipq_destroy_handle.3 ipq_errstr.3 \
                    ipq_get_msgerr.3 ipq_get_packet.3 ipq_message_type.3 \
                    ipq_perror.3 ipq_read.3 ipq_set_mode.3 ipq_set_verdict.3 \