< prev index next >

make/lib/CompileJvm.gmk

Print this page
rev 13110 : imported patch target_macros
   1 #
   2 # Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
   3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4 #
   5 # This code is free software; you can redistribute it and/or modify it
   6 # under the terms of the GNU General Public License version 2 only, as
   7 # published by the Free Software Foundation.  Oracle designates this
   8 # particular file as subject to the "Classpath" exception as provided
   9 # by Oracle in the LICENSE file that accompanied this code.
  10 #
  11 # This code is distributed in the hope that it will be useful, but WITHOUT
  12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14 # version 2 for more details (a copy is included in the LICENSE file that
  15 # accompanied this code).
  16 #
  17 # You should have received a copy of the GNU General Public License version
  18 # 2 along with this work; if not, write to the Free Software Foundation,
  19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20 #
  21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22 # or visit www.oracle.com if you need additional information or have any


  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     -DTARGET_COMPILER_$(HOTSPOT_TOOLCHAIN_TYPE) \
  73     -D$(HOTSPOT_TARGET_CPU_DEFINE) \
  74     -DHOTSPOT_LIB_ARCH='"$(OPENJDK_TARGET_CPU_LEGACY_LIB)"' \
  75     #
  76 
  77 ifeq ($(DEBUG_LEVEL), release)
  78   # For hotspot, release builds differ internally between "optimized" and "product"
  79   # in that "optimize" does not define PRODUCT.
  80   ifneq ($(HOTSPOT_DEBUG_LEVEL), optimized)
  81     JVM_CFLAGS_DEBUGLEVEL := -DPRODUCT
  82   endif
  83 else ifeq ($(DEBUG_LEVEL), fastdebug)
  84   JVM_CFLAGS_DEBUGLEVEL := -DASSERT
  85   ifeq ($(filter $(OPENJDK_TARGET_OS), windows aix), )
  86     # NOTE: Old build did not define CHECK_UNHANDLED_OOPS on Windows and AIX.
  87     JVM_CFLAGS_DEBUGLEVEL += -DCHECK_UNHANDLED_OOPS
  88   endif
  89 else ifeq ($(DEBUG_LEVEL), slowdebug)
  90   # _NMT_NOINLINE_ informs NMT that no inlining is done by the compiler
  91   JVM_CFLAGS_DEBUGLEVEL := -DASSERT -D_NMT_NOINLINE_


   1 #
   2 # Copyright (c) 2013, 2017, Oracle and/or its affiliates. All rights reserved.
   3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4 #
   5 # This code is free software; you can redistribute it and/or modify it
   6 # under the terms of the GNU General Public License version 2 only, as
   7 # published by the Free Software Foundation.  Oracle designates this
   8 # particular file as subject to the "Classpath" exception as provided
   9 # by Oracle in the LICENSE file that accompanied this code.
  10 #
  11 # This code is distributed in the hope that it will be useful, but WITHOUT
  12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14 # version 2 for more details (a copy is included in the LICENSE file that
  15 # accompanied this code).
  16 #
  17 # You should have received a copy of the GNU General Public License version
  18 # 2 along with this work; if not, write to the Free Software Foundation,
  19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20 #
  21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22 # or visit www.oracle.com if you need additional information or have any


  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_


< prev index next >