diff options
author | Jan Engelhardt <jengelh@medozas.de> | 2008-05-12 10:28:34 +0200 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2008-05-12 18:11:23 +0200 |
commit | ac21a5cb811dad7928c34534cae24427068dd440 (patch) | |
tree | 9e40016289a522b3260ba9c94795558812ed4fb1 /extensions/GNUmakefile.in | |
parent | e6610c8caf5dd4871fdd3db0b0e1026195f14c22 (diff) |
iptables out-of-tree build directory
Reported by: Henrik Nordstrom
When xtables.h is not already found in /usr/include, compilation
would fail when ${top_srcdir} != ${top_builddir}.
Diffstat (limited to 'extensions/GNUmakefile.in')
-rw-r--r-- | extensions/GNUmakefile.in | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/extensions/GNUmakefile.in b/extensions/GNUmakefile.in index 31e6fb77..9c46ab10 100644 --- a/extensions/GNUmakefile.in +++ b/extensions/GNUmakefile.in @@ -1,5 +1,7 @@ # -*- Makefile -*- +top_builddir := @top_builddir@ +builddir := @builddir@ top_srcdir := @top_srcdir@ srcdir := @srcdir@ ksourcedir := @ksourcedir@ @@ -16,7 +18,7 @@ LDFLAGS := @LDFLAGS@ regular_CFLAGS := @regular_CFLAGS@ kinclude_CFLAGS := @kinclude_CFLAGS@ -AM_CFLAGS := ${regular_CFLAGS} -I${top_srcdir}/include ${kinclude_CFLAGS} +AM_CFLAGS := ${regular_CFLAGS} -I${top_builddir}/include -I${top_srcdir}/include ${kinclude_CFLAGS} AM_DEPFLAGS = -Wp,-MMD,$(@D)/.$(@F).d,-MT,$@ ifeq (${V},) |