52 $(JVM_VARIANT_OUTPUTDIR)/gensrc/jvmtifiles \
53 $(JVM_VARIANT_OUTPUTDIR)/gensrc/tracefiles \
54 #
55
56 JVM_CFLAGS_INCLUDES += \
57 $(patsubst %,-I%,$(filter-out $(JVM_VARIANT_OUTPUTDIR)/gensrc/%, $(JVM_SRC_DIRS))) \
58 -I$(JVM_VARIANT_OUTPUTDIR)/gensrc \
59 -I$(HOTSPOT_TOPDIR)/src/share/vm/precompiled \
60 -I$(HOTSPOT_TOPDIR)/src/share/vm/prims \
61 #
62
63 # INCLUDE_SUFFIX_* is only meant for including the proper
64 # platform files. Don't use it to guard code. Use the value of
65 # HOTSPOT_TARGET_CPU_DEFINE etc. instead.
66 # Remaining TARGET_ARCH_* is needed to select the cpu specific
67 # sources for 64-bit ARM ports (arm versus aarch64).
68 JVM_CFLAGS_TARGET_DEFINES += \
69 -DTARGET_ARCH_$(HOTSPOT_TARGET_CPU_ARCH) \
70 -DINCLUDE_SUFFIX_OS=_$(HOTSPOT_TARGET_OS) \
71 -DINCLUDE_SUFFIX_CPU=_$(HOTSPOT_TARGET_CPU_ARCH) \
72 -DINCLUDE_SUFFIX_TARGET_COMPILER=_$(HOTSPOT_TOOLCHAIN_TYPE) \
73 -DTARGET_COMPILER_$(HOTSPOT_TOOLCHAIN_TYPE) \
74 -D$(HOTSPOT_TARGET_CPU_DEFINE) \
75 -DHOTSPOT_LIB_ARCH='"$(OPENJDK_TARGET_CPU_LEGACY_LIB)"' \
76 #
77
78 ifeq ($(DEBUG_LEVEL), release)
79 # For hotspot, release builds differ internally between "optimized" and "product"
80 # in that "optimize" does not define PRODUCT.
81 ifneq ($(HOTSPOT_DEBUG_LEVEL), optimized)
82 JVM_CFLAGS_DEBUGLEVEL := -DPRODUCT
83 endif
84 else ifeq ($(DEBUG_LEVEL), fastdebug)
85 JVM_CFLAGS_DEBUGLEVEL := -DASSERT
86 ifeq ($(filter $(OPENJDK_TARGET_OS), windows aix), )
87 # NOTE: Old build did not define CHECK_UNHANDLED_OOPS on Windows and AIX.
88 JVM_CFLAGS_DEBUGLEVEL += -DCHECK_UNHANDLED_OOPS
89 endif
90 else ifeq ($(DEBUG_LEVEL), slowdebug)
91 # _NMT_NOINLINE_ informs NMT that no inlining is done by the compiler
92 JVM_CFLAGS_DEBUGLEVEL := -DASSERT -D_NMT_NOINLINE_
|
52 $(JVM_VARIANT_OUTPUTDIR)/gensrc/jvmtifiles \
53 $(JVM_VARIANT_OUTPUTDIR)/gensrc/tracefiles \
54 #
55
56 JVM_CFLAGS_INCLUDES += \
57 $(patsubst %,-I%,$(filter-out $(JVM_VARIANT_OUTPUTDIR)/gensrc/%, $(JVM_SRC_DIRS))) \
58 -I$(JVM_VARIANT_OUTPUTDIR)/gensrc \
59 -I$(HOTSPOT_TOPDIR)/src/share/vm/precompiled \
60 -I$(HOTSPOT_TOPDIR)/src/share/vm/prims \
61 #
62
63 # INCLUDE_SUFFIX_* is only meant for including the proper
64 # platform files. Don't use it to guard code. Use the value of
65 # HOTSPOT_TARGET_CPU_DEFINE etc. instead.
66 # Remaining TARGET_ARCH_* is needed to select the cpu specific
67 # sources for 64-bit ARM ports (arm versus aarch64).
68 JVM_CFLAGS_TARGET_DEFINES += \
69 -DTARGET_ARCH_$(HOTSPOT_TARGET_CPU_ARCH) \
70 -DINCLUDE_SUFFIX_OS=_$(HOTSPOT_TARGET_OS) \
71 -DINCLUDE_SUFFIX_CPU=_$(HOTSPOT_TARGET_CPU_ARCH) \
72 -DINCLUDE_SUFFIX_COMPILER=_$(HOTSPOT_TOOLCHAIN_TYPE) \
73 -DTARGET_COMPILER_$(HOTSPOT_TOOLCHAIN_TYPE) \
74 -D$(HOTSPOT_TARGET_CPU_DEFINE) \
75 -DHOTSPOT_LIB_ARCH='"$(OPENJDK_TARGET_CPU_LEGACY_LIB)"' \
76 #
77
78 ifeq ($(DEBUG_LEVEL), release)
79 # For hotspot, release builds differ internally between "optimized" and "product"
80 # in that "optimize" does not define PRODUCT.
81 ifneq ($(HOTSPOT_DEBUG_LEVEL), optimized)
82 JVM_CFLAGS_DEBUGLEVEL := -DPRODUCT
83 endif
84 else ifeq ($(DEBUG_LEVEL), fastdebug)
85 JVM_CFLAGS_DEBUGLEVEL := -DASSERT
86 ifeq ($(filter $(OPENJDK_TARGET_OS), windows aix), )
87 # NOTE: Old build did not define CHECK_UNHANDLED_OOPS on Windows and AIX.
88 JVM_CFLAGS_DEBUGLEVEL += -DCHECK_UNHANDLED_OOPS
89 endif
90 else ifeq ($(DEBUG_LEVEL), slowdebug)
91 # _NMT_NOINLINE_ informs NMT that no inlining is done by the compiler
92 JVM_CFLAGS_DEBUGLEVEL := -DASSERT -D_NMT_NOINLINE_
|