< prev index next >

make/hotspot/lib/CompileJvm.gmk

Print this page




  41 
  42 # This variable may be added to by a custom extension
  43 JVM_SRC_ROOTS += $(TOPDIR)/src/hotspot
  44 
  45 JVM_SRC_DIRS += $(call uniq, $(wildcard $(foreach d, $(JVM_SRC_ROOTS), \
  46         $d/share \
  47         $d/os/$(HOTSPOT_TARGET_OS) \
  48         $d/os/$(HOTSPOT_TARGET_OS_TYPE) \
  49         $d/cpu/$(HOTSPOT_TARGET_CPU_ARCH) \
  50         $d/os_cpu/$(HOTSPOT_TARGET_OS)_$(HOTSPOT_TARGET_CPU_ARCH) \
  51     ))) \
  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$(TOPDIR)/src/hotspot/share/precompiled \
  60     -I$(TOPDIR)/src/hotspot/share/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.




  41 
  42 # This variable may be added to by a custom extension
  43 JVM_SRC_ROOTS += $(TOPDIR)/src/hotspot
  44 
  45 JVM_SRC_DIRS += $(call uniq, $(wildcard $(foreach d, $(JVM_SRC_ROOTS), \
  46         $d/share \
  47         $d/os/$(HOTSPOT_TARGET_OS) \
  48         $d/os/$(HOTSPOT_TARGET_OS_TYPE) \
  49         $d/cpu/$(HOTSPOT_TARGET_CPU_ARCH) \
  50         $d/os_cpu/$(HOTSPOT_TARGET_OS)_$(HOTSPOT_TARGET_CPU_ARCH) \
  51     ))) \
  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$(TOPDIR)/src/hotspot/share/precompiled \
  60     -I$(TOPDIR)/src/hotspot/share/prims \
  61     -I$(TOPDIR)/src/java.base/share/native/include \
  62     #
  63 
  64 # INCLUDE_SUFFIX_* is only meant for including the proper
  65 # platform files. Don't use it to guard code. Use the value of
  66 # HOTSPOT_TARGET_CPU_DEFINE etc. instead.
  67 # Remaining TARGET_ARCH_* is needed to select the cpu specific
  68 # sources for 64-bit ARM ports (arm versus aarch64).
  69 JVM_CFLAGS_TARGET_DEFINES += \
  70     -DTARGET_ARCH_$(HOTSPOT_TARGET_CPU_ARCH) \
  71     -DINCLUDE_SUFFIX_OS=_$(HOTSPOT_TARGET_OS) \
  72     -DINCLUDE_SUFFIX_CPU=_$(HOTSPOT_TARGET_CPU_ARCH) \
  73     -DINCLUDE_SUFFIX_COMPILER=_$(HOTSPOT_TOOLCHAIN_TYPE) \
  74     -DTARGET_COMPILER_$(HOTSPOT_TOOLCHAIN_TYPE) \
  75     -D$(HOTSPOT_TARGET_CPU_DEFINE) \
  76     -DHOTSPOT_LIB_ARCH='"$(OPENJDK_TARGET_CPU_LEGACY_LIB)"' \
  77     #
  78 
  79 ifeq ($(DEBUG_LEVEL), release)
  80   # For hotspot, release builds differ internally between "optimized" and "product"
  81   # in that "optimize" does not define PRODUCT.


< prev index next >