make/linux/makefiles/gcc.make
Print this page
@@ -42,11 +42,12 @@
# check for precompiled headers support
ifneq "$(shell expr \( $(CC_VER_MAJOR) \> 3 \) \| \( \( $(CC_VER_MAJOR) = 3 \) \& \( $(CC_VER_MINOR) \>= 4 \) \))" "0"
USE_PRECOMPILED_HEADER=1
PRECOMPILED_HEADER_DIR=.
-PRECOMPILED_HEADER=$(PRECOMPILED_HEADER_DIR)/incls/_precompiled.incl.gch
+PRECOMPILED_HEADER_SRC=$(GAMMADIR)/src/share/vm/precompiled.hpp
+PRECOMPILED_HEADER=$(PRECOMPILED_HEADER_DIR)/precompiled.hpp.gch
endif
#------------------------------------------------------------------------
# Compiler flags
@@ -89,10 +90,18 @@
ifdef E500V2
CFLAGS += -DE500V2
endif
+# Used for platform dispatching
+CFLAGS += -DTARGET_OS_FAMILY_$(Platform_os_family)
+CFLAGS += -DTARGET_ARCH_$(Platform_arch)
+CFLAGS += -DTARGET_ARCH_MODEL_$(Platform_arch_model)
+CFLAGS += -DTARGET_OS_ARCH_$(Platform_os_arch)
+CFLAGS += -DTARGET_OS_ARCH_MODEL_$(Platform_os_arch_model)
+CFLAGS += -DTARGET_COMPILER_$(Platform_compiler)
+
# Use C++ Interpreter
ifdef CC_INTERP
CFLAGS += -DCC_INTERP
endif