From: Ben Pfaff Date: Sat, 3 May 2008 00:32:39 +0000 (-0700) Subject: Add build directory to include path. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=98657c45e95894a07ac9b9347adc370d19ff427a;p=openvswitch Add build directory to include path. Otherwise generated headers (forward_t.h) will not be found at build time. --- diff --git a/datapath/linux-2.4/Makefile.in b/datapath/linux-2.4/Makefile.in index ef3a545c..834600fe 100644 --- a/datapath/linux-2.4/Makefile.in +++ b/datapath/linux-2.4/Makefile.in @@ -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 diff --git a/datapath/linux-2.6/Kbuild.in b/datapath/linux-2.6/Kbuild.in index dbf7e645..5e7b9c46 100644 --- a/datapath/linux-2.6/Kbuild.in +++ b/datapath/linux-2.6/Kbuild.in @@ -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.