From 283e61378aa1e30ad32b6defe1936c112cffc16d Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Wed, 6 Aug 2003 14:22:50 +0000 Subject: [PATCH] Take LINUX_HEADERS out of ALL_CPPFLAGS, use it in MODCPPFLAGS only. This fixes compilation on PPC and possibly others. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1942 7894878c-1315-0410-8ee3-d5d059ff63e0 --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index cd7b6dd2..b1e145bf 100644 --- a/Makefile +++ b/Makefile @@ -185,7 +185,7 @@ SED := sed # PROGCPPFLAGS/PROGCFLAGS is to create non-kernel object files (which are linked into executables). # ARCPPFLAGS/ARCFLAGS are used to create archive object files (static libraries). # LIBCPPFLAGS/LIBCFLAGS are for shared library objects. -ALL_CPPFLAGS := -I. -Ikernel/include -I$(I2C_HEADERS) -I$(LINUX_HEADERS) +ALL_CPPFLAGS := -I. -Ikernel/include -I$(I2C_HEADERS) ALL_CFLAGS := -Wall -O2 ifeq ($(DEBUG),1) @@ -225,7 +225,7 @@ endif # from user space headers. kbuild_2_4_nostdinc := -nostdinc $(shell LC_ALL=C $(CC) -print-search-dirs | sed -ne 's/install: \(.*\)/-I \1include/gp') -MODCPPFLAGS += -D__KERNEL__ -DMODULE -DEXPORT_SYMTAB -fomit-frame-pointer $(ALL_CPPFLAGS) $(kbuild_2_4_nostdinc) +MODCPPFLAGS += -D__KERNEL__ -DMODULE -DEXPORT_SYMTAB -fomit-frame-pointer $(ALL_CPPFLAGS) -I$(LINUX_HEADERS) $(kbuild_2_4_nostdinc) MODCFLAGS += $(ALL_CFLAGS) PROGCPPFLAGS := $(ALL_CPPFLAGS) PROGCFLAGS := $(ALL_CFLAGS)