make/solaris/makefiles/gcc.make
Print this page
@@ -1,7 +1,7 @@
#
-# Copyright (c) 1998, 2008, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 1998, 2010, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 2 only, as
# published by the Free Software Foundation.
@@ -47,11 +47,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
@@ -129,10 +130,22 @@
ifeq ($(BUILDARCH), ia64)
OPT_CFLAGS/bytecodeInterpreter.o += -fno-expensive-optimizations
endif
OPT_CFLAGS/NOOPT=-O0
+
+# 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)
+
+# Flags for creating the dependency files.
+DEPFLAGS = -MMD -MF $(DEP_DIR)/$(@:%.o=%.d) -MT '$@ $(@:%.o=%.i)'
+
#------------------------------------------------------------------------
# Linker flags
# statically link libstdc++.so, work with gcc but ignored by g++
STATIC_STDCXX = -Wl,-Bstatic -lstdc++ -Wl,-Bdynamic