common/autoconf/hotspot-spec.gmk.in

Fri, 26 Oct 2012 14:29:57 -0700

author
ohair
date
Fri, 26 Oct 2012 14:29:57 -0700
changeset 494
e64f2cb57d05
parent 478
2ba6f4da4bf3
child 512
582c696033f5
permissions
-rw-r--r--

8000992: Update new build-infra makefiles
Summary: Build-infra project integration. Multiple authors on this work: erikj and ihse primarily, also changes from ohair, tbell, and dholmes. Special credit to ohstrom for his smartjavac work.
Reviewed-by: erikj, ihse, dholmes, tbell

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
ohair@478 78 ALT_OUTPUTDIR=$(HOTSPOT_OUTPUTDIR)
ohair@478 79 ALT_EXPORT_PATH=$(HOTSPOT_DIST)
ohair@478 80
ohair@494 81 HOTSPOT_MAKE_ARGS:=@HOTSPOT_MAKE_ARGS@ @STATIC_CXX_SETTING@
ohair@478 82 # This is used from the libjvm build for C/C++ code.
ohair@478 83 HOTSPOT_BUILD_JOBS:=@CONCURRENT_BUILD_JOBS@
ohair@478 84 # Control wether Hotspot runs Queens test after building
ohair@478 85 TEST_IN_BUILD=@TEST_IN_BUILD@
ohair@478 86
ohair@494 87 # For hotspot, override compiler/tools definition to not include FIXPATH prefix.
ohair@494 88 # Hotspot has its own handling on the Windows path situation.
ohair@494 89 CXX:=@CCACHE@ @HOTSPOT_CXX@
ohair@494 90 LD:=@HOTSPOT_LD@
ohair@494 91 MT:=@HOTSPOT_MT@
ohair@494 92 RC:=@HOTSPOT_RC@
ohair@478 93
ohair@478 94 EXTRA_CFLAGS=@LEGACY_EXTRA_CFLAGS@
ohair@478 95 EXTRA_CXXFLAGS=@LEGACY_EXTRA_CXXFLAGS@
ohair@478 96 EXTRA_LDFLAGS=@LEGACY_EXTRA_LDFLAGS@
ohair@494 97
ohair@494 98 # 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 99 # This is needed to get the LOG setting to work properly.
ohair@494 100 include $(SRC_ROOT)/common/makefiles/MakeBase.gmk

mercurial