< prev index next >

make/hotspot/lib/CompileJvm.gmk

Print this page


   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


 193 endif
 194 
 195 ifeq ($(OPENJDK_TARGET_OS), windows)
 196   ifeq ($(OPENJDK_TARGET_CPU_BITS), 64)
 197     RC_DESC := 64-Bit$(SPACE)
 198   endif
 199   JVM_RCFLAGS += -D"HS_FILEDESC=$(HOTSPOT_VM_DISTRO) $(RC_DESC)$(JVM_VARIANT) VM"
 200 endif
 201 
 202 JVM_OPTIMIZATION ?= HIGHEST_JVM
 203 
 204 # Need to set JVM_STRIPFLAGS to the default value from SPEC since the STRIPFLAGS
 205 # parameter to SetupNativeCompilation allows an empty value to override the
 206 # default.
 207 JVM_STRIPFLAGS ?= $(STRIPFLAGS)
 208 
 209 ################################################################################
 210 # Now set up the actual compilation of the main hotspot native library
 211 
 212 $(eval $(call SetupNativeCompilation, BUILD_LIBJVM, \

 213     TOOLCHAIN := TOOLCHAIN_LINK_CXX, \
 214     LIBRARY := jvm, \
 215     OUTPUT_DIR := $(JVM_LIB_OUTPUTDIR), \
 216     SRC := $(JVM_SRC_DIRS), \
 217     EXCLUDES := $(JVM_EXCLUDES), \
 218     EXCLUDE_FILES := $(JVM_EXCLUDE_FILES), \
 219     EXCLUDE_PATTERNS := $(JVM_EXCLUDE_PATTERNS), \
 220     EXTRA_OBJECT_FILES := $(DTRACE_EXTRA_OBJECT_FILES), \
 221     CFLAGS := $(JVM_CFLAGS), \
 222     CFLAGS_DEBUG_SYMBOLS := $(JVM_CFLAGS_SYMBOLS), \
 223     CXXFLAGS_DEBUG_SYMBOLS := $(JVM_CFLAGS_SYMBOLS), \
 224     vm_version.cpp_CXXFLAGS := $(CFLAGS_VM_VERSION), \
 225     arguments.cpp_CXXFLAGS := $(CFLAGS_VM_VERSION), \
 226     DISABLED_WARNINGS_clang := tautological-compare, \
 227     DISABLED_WARNINGS_xlc := 1540-0216 1540-0198 1540-1090 1540-1639 \
 228         1540-1088 1500-010, \
 229     ASFLAGS := $(JVM_ASFLAGS), \
 230     LDFLAGS := $(JVM_LDFLAGS), \
 231     LIBS := $(JVM_LIBS), \
 232     OPTIMIZATION := $(JVM_OPTIMIZATION), \
 233     OBJECT_DIR := $(JVM_OUTPUTDIR)/objs, \
 234     MAPFILE := $(JVM_MAPFILE), \


   1 #
   2 # Copyright (c) 2013, 2018, 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


 193 endif
 194 
 195 ifeq ($(OPENJDK_TARGET_OS), windows)
 196   ifeq ($(OPENJDK_TARGET_CPU_BITS), 64)
 197     RC_DESC := 64-Bit$(SPACE)
 198   endif
 199   JVM_RCFLAGS += -D"HS_FILEDESC=$(HOTSPOT_VM_DISTRO) $(RC_DESC)$(JVM_VARIANT) VM"
 200 endif
 201 
 202 JVM_OPTIMIZATION ?= HIGHEST_JVM
 203 
 204 # Need to set JVM_STRIPFLAGS to the default value from SPEC since the STRIPFLAGS
 205 # parameter to SetupNativeCompilation allows an empty value to override the
 206 # default.
 207 JVM_STRIPFLAGS ?= $(STRIPFLAGS)
 208 
 209 ################################################################################
 210 # Now set up the actual compilation of the main hotspot native library
 211 
 212 $(eval $(call SetupNativeCompilation, BUILD_LIBJVM, \
 213     NAME := jvm, \
 214     TOOLCHAIN := TOOLCHAIN_LINK_CXX, \

 215     OUTPUT_DIR := $(JVM_LIB_OUTPUTDIR), \
 216     SRC := $(JVM_SRC_DIRS), \
 217     EXCLUDES := $(JVM_EXCLUDES), \
 218     EXCLUDE_FILES := $(JVM_EXCLUDE_FILES), \
 219     EXCLUDE_PATTERNS := $(JVM_EXCLUDE_PATTERNS), \
 220     EXTRA_OBJECT_FILES := $(DTRACE_EXTRA_OBJECT_FILES), \
 221     CFLAGS := $(JVM_CFLAGS), \
 222     CFLAGS_DEBUG_SYMBOLS := $(JVM_CFLAGS_SYMBOLS), \
 223     CXXFLAGS_DEBUG_SYMBOLS := $(JVM_CFLAGS_SYMBOLS), \
 224     vm_version.cpp_CXXFLAGS := $(CFLAGS_VM_VERSION), \
 225     arguments.cpp_CXXFLAGS := $(CFLAGS_VM_VERSION), \
 226     DISABLED_WARNINGS_clang := tautological-compare, \
 227     DISABLED_WARNINGS_xlc := 1540-0216 1540-0198 1540-1090 1540-1639 \
 228         1540-1088 1500-010, \
 229     ASFLAGS := $(JVM_ASFLAGS), \
 230     LDFLAGS := $(JVM_LDFLAGS), \
 231     LIBS := $(JVM_LIBS), \
 232     OPTIMIZATION := $(JVM_OPTIMIZATION), \
 233     OBJECT_DIR := $(JVM_OUTPUTDIR)/objs, \
 234     MAPFILE := $(JVM_MAPFILE), \


< prev index next >