common/autoconf/hotspot-spec.gmk.in

Thu, 31 Aug 2017 15:40:18 +0800

author
aoqi
date
Thu, 31 Aug 2017 15:40:18 +0800
changeset 1133
50aaf272884f
parent 974
46696858adab
parent 0
75a576e87639
child 1482
8fb429038513
permissions
-rw-r--r--

merge

aoqi@0 1 #
aoqi@0 2 # Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
aoqi@0 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
aoqi@0 4 #
aoqi@0 5 # This code is free software; you can redistribute it and/or modify it
aoqi@0 6 # under the terms of the GNU General Public License version 2 only, as
aoqi@0 7 # published by the Free Software Foundation. Oracle designates this
aoqi@0 8 # particular file as subject to the "Classpath" exception as provided
aoqi@0 9 # by Oracle in the LICENSE file that accompanied this code.
aoqi@0 10 #
aoqi@0 11 # This code is distributed in the hope that it will be useful, but WITHOUT
aoqi@0 12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
aoqi@0 13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
aoqi@0 14 # version 2 for more details (a copy is included in the LICENSE file that
aoqi@0 15 # accompanied this code).
aoqi@0 16 #
aoqi@0 17 # You should have received a copy of the GNU General Public License version
aoqi@0 18 # 2 along with this work; if not, write to the Free Software Foundation,
aoqi@0 19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
aoqi@0 20 #
aoqi@0 21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
aoqi@0 22 # or visit www.oracle.com if you need additional information or have any
aoqi@0 23 # questions.
aoqi@0 24 #
aoqi@0 25
aoqi@0 26
aoqi@0 27 # Chaining of spec files
aoqi@0 28 HOTSPOT_SPEC:=$(dir $(SPEC))hotspot-spec.gmk
aoqi@0 29 override SPEC=$(HOTSPOT_SPEC)
aoqi@0 30 # Now include the base spec.gmk file
aoqi@0 31 include $(BASE_SPEC)
aoqi@0 32
aoqi@0 33 # Additional legacy variables defined for Hotspot
aoqi@0 34
aoqi@0 35 @SET_OPENJDK@
aoqi@0 36
aoqi@0 37 # Legacy defines controlled by the SUPPORT_HEADLESS and SUPPORT_HEADFUL options.
aoqi@0 38 @BUILD_HEADLESS@
aoqi@0 39
aoqi@0 40 # Legacy setting: OPT or DBG
aoqi@0 41 VARIANT:=@VARIANT@
aoqi@0 42 # Legacy setting: true or false
aoqi@0 43 FASTDEBUG:=@FASTDEBUG@
aoqi@0 44 # Legacy setting: debugging the class files?
aoqi@0 45 DEBUG_CLASSFILES:=@DEBUG_CLASSFILES@
aoqi@0 46
aoqi@0 47 ALT_CUPS_HEADERS_PATH:=$(patsubst -I%,%,$(filter -I%,@CUPS_CFLAGS@))
aoqi@0 48
aoqi@0 49 # The HOSTCC/HOSTCXX is Hotspot terminology for the BUILD_CC/BUILD_CXX, i.e. the
aoqi@0 50 # compiler that produces code that can be run on the build platform.
aoqi@0 51 HOSTCC:=@FIXPATH@ @BUILD_CC@
aoqi@0 52 HOSTCXX:=@FIXPATH@ @BUILD_CXX@
aoqi@0 53
aoqi@0 54 ####################################################
aoqi@0 55 #
aoqi@0 56 # Legacy Hotspot support
aoqi@0 57
aoqi@0 58 # If cross compiling, then define CROSS_COMPILE_ARCH:=cpu_name here.
aoqi@0 59 @DEFINE_CROSS_COMPILE_ARCH@
aoqi@0 60
aoqi@0 61 # Old name for OPENJDK_TARGET_OS (aix,bsd,hpux,linux,macosx,solaris,windows etc)
aoqi@0 62 PLATFORM=$(OPENJDK_TARGET_OS)
aoqi@0 63 # 32 or 64 bit
aoqi@0 64 ARCH_DATA_MODEL=$(OPENJDK_TARGET_CPU_BITS)
aoqi@0 65
aoqi@0 66 ALT_BOOTDIR=$(BOOT_JDK)
aoqi@0 67 # Can be /sparcv9 or /amd64 on Solaris
aoqi@0 68 ISA_DIR=$(OPENJDK_TARGET_CPU_ISADIR)
aoqi@0 69 # Yet another name for arch used for an extra subdir below the jvm lib.
aoqi@0 70 # Uses i386 and amd64, instead of x86 and x86_64.
aoqi@0 71 LIBARCH=$(OPENJDK_TARGET_CPU_LEGACY_LIB)
aoqi@0 72 # Old name for OPENJDK_TARGET_CPU, uses i586 and amd64, instead of x86 and x86_64.
aoqi@0 73 ARCH=$(OPENJDK_TARGET_CPU_LEGACY)
aoqi@0 74 # Legacy setting for building for a 64 bit machine.
aoqi@0 75 # If yes then this expands to _LP64:=1
aoqi@0 76 @LP64@
aoqi@0 77
aoqi@0 78 # Legacy settings for zero
aoqi@0 79 ZERO_ENDIANNESS=$(OPENJDK_TARGET_CPU_ENDIAN)
aoqi@0 80 ZERO_LIBARCH=$(OPENJDK_TARGET_CPU_LEGACY_LIB)
aoqi@0 81 ZERO_ARCHDEF=@ZERO_ARCHDEF@
aoqi@0 82 ZERO_ARCHFLAG=@ZERO_ARCHFLAG@
aoqi@0 83 LIBFFI_CFLAGS=@LIBFFI_CFLAGS@
aoqi@0 84 LIBFFI_LIBS=@LIBFFI_LIBS@
aoqi@0 85
aoqi@0 86 # Legacy settings for zeroshark
aoqi@0 87 LLVM_CFLAGS=@LLVM_CFLAGS@
aoqi@0 88 LLVM_LIBS=@LLVM_LIBS@
aoqi@0 89 LLVM_LDFLAGS=@LLVM_LDFLAGS@
aoqi@0 90
aoqi@0 91 ALT_OUTPUTDIR=$(HOTSPOT_OUTPUTDIR)
aoqi@0 92 ALT_EXPORT_PATH=$(HOTSPOT_DIST)
aoqi@0 93
aoqi@0 94 JVM_INTERPRETER:=@JVM_INTERPRETER@
aoqi@0 95 ifeq ($(JVM_INTERPRETER), cpp)
aoqi@0 96 CC_INTERP=true
aoqi@0 97 endif
aoqi@0 98
aoqi@0 99 HOTSPOT_MAKE_ARGS:=@HOTSPOT_MAKE_ARGS@ @STATIC_CXX_SETTING@
aoqi@0 100 # This is used from the libjvm build for C/C++ code.
aoqi@0 101 HOTSPOT_BUILD_JOBS:=$(JOBS)
aoqi@0 102 # Control wether Hotspot runs Queens test after building
aoqi@0 103 TEST_IN_BUILD=@TEST_IN_BUILD@
aoqi@0 104
aoqi@0 105 # For hotspot, override compiler/tools definition to not include FIXPATH prefix.
aoqi@0 106 # Hotspot has its own handling on the Windows path situation.
aoqi@0 107 CXX:=@CCACHE@ @HOTSPOT_CXX@
aoqi@0 108 LD:=@HOTSPOT_LD@
aoqi@0 109 MT:=@HOTSPOT_MT@
aoqi@0 110 RC:=@HOTSPOT_RC@
aoqi@0 111
aoqi@0 112 EXTRA_CFLAGS=@LEGACY_EXTRA_CFLAGS@
aoqi@0 113 EXTRA_CXXFLAGS=@LEGACY_EXTRA_CXXFLAGS@
aoqi@0 114 EXTRA_LDFLAGS=@LEGACY_EXTRA_LDFLAGS@
aoqi@0 115
aoqi@0 116 USE_PRECOMPILED_HEADER=@USE_PRECOMPILED_HEADER@
aoqi@0 117
aoqi@0 118 # Hotspot expects the variable FULL_DEBUG_SYMBOLS=1/0 to control debug symbols
aoqi@0 119 # creation.
aoqi@0 120 ifeq ($(ENABLE_DEBUG_SYMBOLS), true)
aoqi@0 121 FULL_DEBUG_SYMBOLS=1
aoqi@0 122 # Ensure hotspot uses the objcopy that configure located
aoqi@0 123 ALT_OBJCOPY:=$(OBJCOPY)
aoqi@0 124 else
aoqi@0 125 FULL_DEBUG_SYMBOLS=0
aoqi@0 126 endif
aoqi@0 127
aoqi@0 128 # Hotspot expects the variable ZIP_DEBUGINFO_FILES=1/0 and not true/false.
aoqi@0 129 ifeq ($(ZIP_DEBUGINFO_FILES)$(ENABLE_DEBUG_SYMBOLS), truetrue)
aoqi@0 130 ZIP_DEBUGINFO_FILES:=1
aoqi@0 131 else
aoqi@0 132 ZIP_DEBUGINFO_FILES:=0
aoqi@0 133 endif
aoqi@0 134
aoqi@0 135 # Sneak this in via the spec.gmk file, since we don't want to mess around too much with the Hotspot make files.
aoqi@0 136 # This is needed to get the LOG setting to work properly.
aoqi@0 137 include $(SRC_ROOT)/make/common/MakeBase.gmk

mercurial