ohair@478: # kevinw@2206: # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved. ohair@478: # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. ohair@478: # ohair@478: # This code is free software; you can redistribute it and/or modify it ohair@478: # under the terms of the GNU General Public License version 2 only, as ohair@478: # published by the Free Software Foundation. Oracle designates this ohair@478: # particular file as subject to the "Classpath" exception as provided ohair@478: # by Oracle in the LICENSE file that accompanied this code. ohair@478: # ohair@478: # This code is distributed in the hope that it will be useful, but WITHOUT ohair@478: # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or ohair@478: # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License ohair@478: # version 2 for more details (a copy is included in the LICENSE file that ohair@478: # accompanied this code). ohair@478: # ohair@478: # You should have received a copy of the GNU General Public License version ohair@478: # 2 along with this work; if not, write to the Free Software Foundation, ohair@478: # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. ohair@478: # ohair@478: # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA ohair@478: # or visit www.oracle.com if you need additional information or have any ohair@478: # questions. ohair@478: # ohair@478: ohair@478: ohair@478: # Chaining of spec files ohair@478: HOTSPOT_SPEC:=$(dir $(SPEC))hotspot-spec.gmk ohair@478: override SPEC=$(HOTSPOT_SPEC) ohair@478: # Now include the base spec.gmk file ohair@478: include $(BASE_SPEC) ohair@478: ohair@478: # Additional legacy variables defined for Hotspot ohair@478: ohair@478: @SET_OPENJDK@ ohair@478: ohair@478: # Legacy defines controlled by the SUPPORT_HEADLESS and SUPPORT_HEADFUL options. ohair@478: @BUILD_HEADLESS@ ohair@478: ohair@478: # Legacy setting: OPT or DBG ohair@478: VARIANT:=@VARIANT@ ohair@478: # Legacy setting: true or false ohair@478: FASTDEBUG:=@FASTDEBUG@ ohair@478: # Legacy setting: debugging the class files? ohair@478: DEBUG_CLASSFILES:=@DEBUG_CLASSFILES@ ohair@478: ohair@478: ALT_CUPS_HEADERS_PATH:=$(patsubst -I%,%,$(filter -I%,@CUPS_CFLAGS@)) ohair@478: ohair@478: # The HOSTCC/HOSTCXX is Hotspot terminology for the BUILD_CC/BUILD_CXX, i.e. the ohair@478: # compiler that produces code that can be run on the build platform. ohair@494: HOSTCC:=@FIXPATH@ @BUILD_CC@ ohair@494: HOSTCXX:=@FIXPATH@ @BUILD_CXX@ ohair@478: ohair@478: #################################################### ohair@478: # ohair@478: # Legacy Hotspot support ohair@478: ohair@478: # If cross compiling, then define CROSS_COMPILE_ARCH:=cpu_name here. ohair@478: @DEFINE_CROSS_COMPILE_ARCH@ ohair@478: ohair@478: # Old name for OPENJDK_TARGET_OS (aix,bsd,hpux,linux,macosx,solaris,windows etc) ohair@478: PLATFORM=$(OPENJDK_TARGET_OS) ohair@478: # 32 or 64 bit ohair@478: ARCH_DATA_MODEL=$(OPENJDK_TARGET_CPU_BITS) ohair@478: ohair@478: ALT_BOOTDIR=$(BOOT_JDK) ohair@478: # Can be /sparcv9 or /amd64 on Solaris ohair@478: ISA_DIR=$(OPENJDK_TARGET_CPU_ISADIR) ohair@478: # Yet another name for arch used for an extra subdir below the jvm lib. ohair@478: # Uses i386 and amd64, instead of x86 and x86_64. ohair@478: LIBARCH=$(OPENJDK_TARGET_CPU_LEGACY_LIB) gthornbr@1585: # Set the cpu architecture gthornbr@1585: ARCH=$(OPENJDK_TARGET_CPU_ARCH) ohair@478: # Legacy setting for building for a 64 bit machine. ohair@478: # If yes then this expands to _LP64:=1 ohair@478: @LP64@ ohair@478: omajid@671: # Legacy settings for zero omajid@671: ZERO_ENDIANNESS=$(OPENJDK_TARGET_CPU_ENDIAN) omajid@671: ZERO_LIBARCH=$(OPENJDK_TARGET_CPU_LEGACY_LIB) omajid@671: ZERO_ARCHDEF=@ZERO_ARCHDEF@ omajid@671: ZERO_ARCHFLAG=@ZERO_ARCHFLAG@ omajid@671: LIBFFI_CFLAGS=@LIBFFI_CFLAGS@ omajid@671: LIBFFI_LIBS=@LIBFFI_LIBS@ omajid@671: omajid@671: # Legacy settings for zeroshark omajid@671: LLVM_CFLAGS=@LLVM_CFLAGS@ omajid@671: LLVM_LIBS=@LLVM_LIBS@ omajid@671: LLVM_LDFLAGS=@LLVM_LDFLAGS@ omajid@671: ohair@478: ALT_OUTPUTDIR=$(HOTSPOT_OUTPUTDIR) ohair@478: ALT_EXPORT_PATH=$(HOTSPOT_DIST) ohair@478: simonis@965: JVM_INTERPRETER:=@JVM_INTERPRETER@ simonis@965: ifeq ($(JVM_INTERPRETER), cpp) simonis@965: CC_INTERP=true simonis@965: endif simonis@965: ohair@494: HOTSPOT_MAKE_ARGS:=@HOTSPOT_MAKE_ARGS@ @STATIC_CXX_SETTING@ ohair@478: # This is used from the libjvm build for C/C++ code. erikj@635: HOTSPOT_BUILD_JOBS:=$(JOBS) ohair@478: # Control wether Hotspot runs Queens test after building ohair@478: TEST_IN_BUILD=@TEST_IN_BUILD@ ohair@478: kevinw@2206: USE_CLANG := @USE_CLANG@ kevinw@2206: ohair@494: # For hotspot, override compiler/tools definition to not include FIXPATH prefix. ohair@494: # Hotspot has its own handling on the Windows path situation. ohair@494: CXX:=@CCACHE@ @HOTSPOT_CXX@ ohair@494: LD:=@HOTSPOT_LD@ ohair@494: MT:=@HOTSPOT_MT@ ohair@494: RC:=@HOTSPOT_RC@ ohair@478: andrew@1862: EXTRA_CFLAGS=@LEGACY_EXTRA_CFLAGS@ $(NO_DELETE_NULL_POINTER_CHECKS_CFLAG) \ andrew@1862: $(NO_LIFETIME_DSE_CFLAG) $(CXXSTD_CXXFLAG) ohair@478: EXTRA_CXXFLAGS=@LEGACY_EXTRA_CXXFLAGS@ ohair@478: EXTRA_LDFLAGS=@LEGACY_EXTRA_LDFLAGS@ sgehwolf@2482: EXTRA_ASFLAGS=@LEGACY_EXTRA_ASFLAGS@ ohair@494: tbell@512: USE_PRECOMPILED_HEADER=@USE_PRECOMPILED_HEADER@ tbell@512: ddehaven@1304: # Universal binaries on macosx, mirror MACOSX_UNIVERSAL ddehaven@1304: ALT_MACOSX_UNIVERSAL=@MACOSX_UNIVERSAL@ ddehaven@1304: erikj@533: # Hotspot expects the variable FULL_DEBUG_SYMBOLS=1/0 to control debug symbols ihse@839: # creation. ihse@839: ifeq ($(ENABLE_DEBUG_SYMBOLS), true) erikj@533: FULL_DEBUG_SYMBOLS=1 ihse@839: # Ensure hotspot uses the objcopy that configure located ihse@839: ALT_OBJCOPY:=$(OBJCOPY) ihse@839: else erikj@533: FULL_DEBUG_SYMBOLS=0 erikj@533: endif erikj@533: erikj@533: # Hotspot expects the variable ZIP_DEBUGINFO_FILES=1/0 and not true/false. erikj@533: ifeq ($(ZIP_DEBUGINFO_FILES)$(ENABLE_DEBUG_SYMBOLS), truetrue) erikj@533: ZIP_DEBUGINFO_FILES:=1 dcubed@854: else erikj@533: ZIP_DEBUGINFO_FILES:=0 erikj@533: endif erikj@533: ohair@494: # Sneak this in via the spec.gmk file, since we don't want to mess around too much with the Hotspot make files. ohair@494: # This is needed to get the LOG setting to work properly. ihse@912: include $(SRC_ROOT)/make/common/MakeBase.gmk