From: ppisa Date: Wed, 11 Feb 2004 01:09:26 +0000 (+0000) Subject: RT-Linux make with disabled standard includes directories ( -nostdinc option ). X-Git-Tag: v0.3.2~87 X-Git-Url: https://rtime.felk.cvut.cz/gitweb/orte.git/commitdiff_plain/7328d88a6b432e5d2da59838ab684bcacef3748f RT-Linux make with disabled standard includes directories ( -nostdinc option ). --- diff --git a/Makefile.rules b/Makefile.rules index 4286f14..8ebdda2 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -244,9 +244,10 @@ ifdef RTL_DIR include $(RTL_DIR)/rtl.mk KERN_CC = $(CC) -kern_GCCLIB_DIR=$(shell $(CC) -print-search-dirs | sed -n -e 's/^install: \(.*\)$$/\1/p' )INCLUDES := -I $(KERN_INCLUDE_DIR) $(INCLUDE) $(rtlinux_INCLUDES) $(kernel_INCLUDES) +kern_GCCLIB_DIR=$(shell $(CC) -print-search-dirs | sed -n -e 's/^install: \(.*\)$$/\1/p' ) +INCLUDES := -I $(KERN_INCLUDE_DIR) $(INCLUDE) $(rtlinux_INCLUDES) $(kernel_INCLUDES) #-DEXPORT_NO_SYMBOLS -c_o_kern_COMPILE = $(KERN_CC) $(INCLUDES) -I$(kern_GCCLIB_DIR)/include $(CFLAGS) -DEXPORT_SYMTAB -nostdinc +c_o_kern_COMPILE = $(KERN_CC) $(INCLUDES) -I$(kern_GCCLIB_DIR)/include $(CFLAGS) -DEXPORT_SYMTAB -nostdinc cc_o_kern_COMPILE = $(CXX) $(INCLUDES) $(CXXFLAGS) -DEXPORT_SYMTAB KERN_EXE_SUFFIX := .o KERN_ARCH = $(ARCH) @@ -258,7 +259,7 @@ include $(KERN_MODULES_DIR)/kernel.mk ifdef LINUX_CC KERN_CC = $(LINUX_CC) -kern_GCCLIB_DIR=$(shell $(CC) -print-search-dirs | sed -n -e 's/^install: \(.*\)$$/\1/p' )INCLUDES := -I $(KERN_INCLUDE_DIR) $(INCLUDE) $(rtlinux_INCLUDES) $(kernel_INCLUDES) +kern_GCCLIB_DIR=$(shell $(CC) -print-search-dirs | sed -n -e 's/^install: \(.*\)$$/\1/p' ) else KERN_CC = echo KERN_CC not defined - compilation skipped endif