common/autoconf/hotspot-spec.gmk.in

Mon, 08 Apr 2013 14:07:32 -0400

author
omajid
date
Mon, 08 Apr 2013 14:07:32 -0400
changeset 671
653ff6bcf0b1
parent 635
907a926d3c96
child 839
174a54ce39c4
child 854
22c6f0b7e2b5
child 965
3ef3f4174c2b
permissions
-rw-r--r--

8011388: Support building zero and zeroshark with the new build
Reviewed-by: andrew, dholmes, erikj
Contributed-by: Omair Majid <omajid@redhat.com>, Roman Kennke <rkennke@redhat.com>

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

mercurial