]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
build: move basic preprocessor flags to regular_CPPFLAGS
authorJan Engelhardt <jengelh@medozas.de>
Wed, 1 Jun 2011 00:16:05 +0000 (02:16 +0200)
committerJan Engelhardt <jengelh@medozas.de>
Wed, 1 Jun 2011 00:21:06 +0000 (02:21 +0200)
This is where they belong, after all.

References: http://bugzilla.netfilter.org/show_bug.cgi?id=713
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Makefile.am
configure.ac
extensions/GNUmakefile.in
libipq/Makefile.am
utils/Makefile.am

index ae7923f06d83dd6b168d09a55f78ba435fed44b1..414905c2450e9b7e82df007e9b32c67eb168c189 100644 (file)
@@ -4,6 +4,7 @@ ACLOCAL_AMFLAGS  = -I m4
 AUTOMAKE_OPTIONS = foreign subdir-objects
 
 AM_CFLAGS        = ${regular_CFLAGS} -I${top_builddir}/include -I${top_srcdir}/include ${kinclude_CFLAGS}
+AM_CPPFLAGS      = ${regular_CPPFLAGS}
 SUBDIRS          = extensions
 if ENABLE_DEVEL
 SUBDIRS         += include
index 27cca9f8addeec2c191c078b89035ef3b8c214ba..77502fb66ac765c245bca183ee4c4a2ea4036e7d 100644 (file)
@@ -41,7 +41,7 @@ AC_ARG_ENABLE([largefile],
        AS_HELP_STRING([--disable-largefile], [Do not build largefile support]),
        [enable_largefile="$enableval"],
        [enable_largefile="yes";
-       largefile_cflags='-D_LARGEFILE_SOURCE=1 -D_LARGE_FILES -D_FILE_OFFSET_BITS=64'])
+       largefile_cppflags='-D_LARGEFILE_SOURCE=1 -D_LARGE_FILES -D_FILE_OFFSET_BITS=64'])
 AC_ARG_ENABLE([devel],
        AS_HELP_STRING([--enable-devel],
        [Install Xtables development headers]),
@@ -83,10 +83,10 @@ PKG_CHECK_MODULES([libnfnetlink], [libnfnetlink >= 1.0],
        [nfnetlink=1], [nfnetlink=0])
 AM_CONDITIONAL([HAVE_LIBNFNETLINK], [test "$nfnetlink" = 1])
 
-regular_CFLAGS="${largefile_cflags} \
-       -D_REENTRANT -Wall -Waggregate-return -Wmissing-declarations \
+regular_CFLAGS="-Wall -Waggregate-return -Wmissing-declarations \
        -Wmissing-prototypes -Wredundant-decls -Wshadow -Wstrict-prototypes \
-       -Winline -pipe \
+       -Winline -pipe";
+regular_CPPFLAGS="${largefile_cppflags} -D_REENTRANT \
        -DXTABLES_LIBDIR=\\\"\${xtlibdir}\\\" -DXTABLES_INTERNAL";
 kinclude_CFLAGS="";
 if [[ -n "$kbuilddir" ]]; then
@@ -98,6 +98,7 @@ fi;
 pkgdatadir='${datadir}/xtables';
 
 AC_SUBST([regular_CFLAGS])
+AC_SUBST([regular_CPPFLAGS])
 AC_SUBST([kinclude_CFLAGS])
 AC_SUBST([kbuilddir])
 AC_SUBST([ksourcedir])
index a511a39aa0bc91eb06b2323520149e3af40f4c5e..9e39977f0df5fbce4bec4b54ff2c8fb46d494ec6 100644 (file)
@@ -14,11 +14,14 @@ xtlibdir    := @xtlibdir@
 CC             := @CC@
 CCLD           := ${CC}
 CFLAGS         := @CFLAGS@
+CPPFLAGS       := @CPPFLAGS@
 LDFLAGS        := @LDFLAGS@
 regular_CFLAGS := @regular_CFLAGS@
+regular_CPPFLAGS := @regular_CPPFLAGS@
 kinclude_CFLAGS := @kinclude_CFLAGS@
 
 AM_CFLAGS      := ${regular_CFLAGS} -I${top_builddir}/include -I${top_srcdir}/include ${kinclude_CFLAGS}
+AM_CPPFLAGS     = ${regular_CPPFLAGS}
 AM_DEPFLAGS     = -Wp,-MMD,$(@D)/.$(@F).d,-MT,$@
 
 ifeq (${V},)
@@ -78,7 +81,7 @@ distclean: clean
        rm -f .*.d .*.dd;
 
 init%.o: init%.c
-       ${AM_VERBOSE_CC} ${CC} ${AM_DEPFLAGS} ${AM_CFLAGS} -D_INIT=$*_init ${CFLAGS} -o $@ -c $<;
+       ${AM_VERBOSE_CC} ${CC} ${AM_CPPFLAGS} ${AM_DEPFLAGS} ${AM_CFLAGS} -D_INIT=$*_init ${CFLAGS} -o $@ -c $<;
 
 -include .*.d
 
@@ -90,7 +93,7 @@ lib%.so: lib%.oo
        ${AM_VERBOSE_CCLD} ${CCLD} ${AM_LDFLAGS} -shared ${LDFLAGS} -o $@ $<;
 
 lib%.oo: ${srcdir}/lib%.c
-       ${AM_VERBOSE_CC} ${CC} ${AM_DEPFLAGS} ${AM_CFLAGS} -D_INIT=lib$*_init -DPIC -fPIC ${CFLAGS} -o $@ -c $<;
+       ${AM_VERBOSE_CC} ${CC} ${AM_CPPFLAGS} ${AM_DEPFLAGS} ${AM_CFLAGS} -D_INIT=lib$*_init -DPIC -fPIC ${CFLAGS} -o $@ -c $<;
 
 
 #
@@ -101,7 +104,7 @@ lib%.oo: ${srcdir}/lib%.c
 #      handling code in the Makefiles.
 #
 lib%.o: ${srcdir}/lib%.c
-       ${AM_VERBOSE_CC} ${CC} ${AM_DEPFLAGS} ${AM_CFLAGS} -DNO_SHARED_LIBS=1 -D_INIT=lib$*_init ${CFLAGS} -o $@ -c $<;
+       ${AM_VERBOSE_CC} ${CC} ${AM_CPPFLAGS} ${AM_DEPFLAGS} ${AM_CFLAGS} -DNO_SHARED_LIBS=1 -D_INIT=lib$*_init ${CFLAGS} -o $@ -c $<;
 
 libext.a: initext.o ${libext_objs}
        ${AM_VERBOSE_AR} ${AR} crs $@ $^;
index 556a17bdb934639f106222c2f00e42820953d09b..8ebeb14cc60789352216ca4f087f81604a37c643 100644 (file)
@@ -1,6 +1,7 @@
 # -*- Makefile -*-
 
 AM_CFLAGS = ${regular_CFLAGS} -I${top_builddir}/include -I${top_srcdir}/include
+AM_CPPFLAGS = ${regular_CPPFLAGS}
 
 libipq_la_SOURCES = libipq.c
 lib_LTLIBRARIES   = libipq.la
index 79ce34bfec7edae4422c4977d1d76ebb1789b7df..87bb1cbce91a8d556aebeee4e3e0fb1d9d1c350f 100644 (file)
@@ -1,6 +1,7 @@
 # -*- Makefile -*-
 
 AM_CFLAGS = ${regular_CFLAGS} -I${top_builddir}/include -I${top_srcdir}/include
+AM_CPPFLAGS = ${regular_CPPFLAGS}
 
 sbin_PROGRAMS = nfnl_osf
 pkgdata_DATA = pf.os