Add build directory to include path.
authorBen Pfaff <blp@nicira.com>
Sat, 3 May 2008 00:32:39 +0000 (17:32 -0700)
committerBen Pfaff <blp@nicira.com>
Sat, 3 May 2008 00:33:34 +0000 (17:33 -0700)
Otherwise generated headers (forward_t.h) will not be found at build
time.

datapath/linux-2.4/Makefile.in
datapath/linux-2.6/Kbuild.in

index ef3a545cb96b4452404b7d86d3f100f343d093d1..834600fea9d9f4c559a67494e82686af622b07f3 100644 (file)
@@ -68,7 +68,7 @@ ifeq (,$(CC))
 endif
 
 CFLAGS = -DVERSION=\"$(VERSION)\" -O2 -g
-CFLAGS += -I $(srcdir)/.. -I $(top_srcdir)/include
+CFLAGS += -I $(srcdir)/.. -I $(builddir)/.. -I $(top_srcdir)/include
 ifeq ($(ARCH),)
   ARCH := $(shell uname -m | sed 's/i.86/i386/')
 endif
index dbf7e6451fab624a82773da05b3424652e9dae1d..5e7b9c46988b5feb8152b311b3b5b7759ea3d641 100644 (file)
@@ -9,7 +9,7 @@ include $(srcdir)/Modules.mk
 
 EXTRA_CFLAGS := -DVERSION=\"$(VERSION)\"
 EXTRA_CFLAGS += -I$(srcdir)/.. 
-EXTRA_CFLAGS += -I$(srcdir)/datapath
+EXTRA_CFLAGS += -I$(builddir)/..
 EXTRA_CFLAGS += -I$(top_srcdir)/include
 
 # These include directories have to go before -I$(KSRC)/include.