]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
kbuild: use relative path to -I
authorSam Ravnborg <sam@mars.ravnborg.org>
Tue, 4 Apr 2006 14:56:10 +0000 (16:56 +0200)
committerSam Ravnborg <sam@mars.ravnborg.org>
Tue, 4 Apr 2006 14:56:10 +0000 (16:56 +0200)
Using a relative path has the advantage that when the kernel source
tree is moved the relevant .o files will not be rebuild just because
the path to the kernel src has changed.
This also got rid of a user of TOPDIR - which has been deprecated for a long time now.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
arch/ppc/boot/lib/Makefile
arch/sparc/math-emu/Makefile
drivers/media/video/bt8xx/Makefile

index d4077e69086f8b29a8ac1279e2ebce97d48fb665..80c84d562fa4ac173b595cd22cdd4d2e02540f2c 100644 (file)
@@ -3,7 +3,7 @@
 #
 
 CFLAGS_kbd.o   := -Idrivers/char
-CFLAGS_vreset.o := -I$(srctree)/arch/ppc/boot/include
+CFLAGS_vreset.o := -Iarch/ppc/boot/include
 
 zlib  := infblock.c infcodes.c inffast.c inflate.c inftrees.c infutil.c
         
index f84a9a6162be90a1399b218dd0f5aea0a49a81de..8136987977f45ce598f02f41c65a168254b59270 100644 (file)
@@ -5,4 +5,4 @@
 obj-y    := math.o
 
 EXTRA_AFLAGS := -ansi
-EXTRA_CFLAGS = -I. -I$(TOPDIR)/include/math-emu -w
+EXTRA_CFLAGS = -I. -Iinclude/math-emu -w
index 94350f21cdc0a5c71fabe31aded4a5aa6fbb5b2b..db641a36b197afc10495f573bb9a9e20b17ad8c9 100644 (file)
@@ -9,4 +9,4 @@ bttv-objs      :=      bttv-driver.o bttv-cards.o bttv-if.o \
 obj-$(CONFIG_VIDEO_BT848) += bttv.o
 
 EXTRA_CFLAGS += -I$(src)/..
-EXTRA_CFLAGS += -I$(srctree)/drivers/media/dvb/dvb-core
+EXTRA_CFLAGS += -Idrivers/media/dvb/dvb-core