annotate common/autoconf/hotspot-spec.gmk.in @ 510:582c696033f5

8001941: build-infra: --disable-precompiled-headers does not seem to work Summary: With this fix the flag will do what it advertises Reviewed-by: ohair, tbell Contributed-by: erik.joelsson@oracle.com
author tbell
date Wed, 14 Nov 2012 10:16:45 -0800
parents e64f2cb57d05
children e175ecff1391
rev   line source
ohair@476 1 #
ohair@476 2 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
ohair@476 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
ohair@476 4 #
ohair@476 5 # This code is free software; you can redistribute it and/or modify it
ohair@476 6 # under the terms of the GNU General Public License version 2 only, as
ohair@476 7 # published by the Free Software Foundation. Oracle designates this
ohair@476 8 # particular file as subject to the "Classpath" exception as provided
ohair@476 9 # by Oracle in the LICENSE file that accompanied this code.
ohair@476 10 #
ohair@476 11 # This code is distributed in the hope that it will be useful, but WITHOUT
ohair@476 12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
ohair@476 13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
ohair@476 14 # version 2 for more details (a copy is included in the LICENSE file that
ohair@476 15 # accompanied this code).
ohair@476 16 #
ohair@476 17 # You should have received a copy of the GNU General Public License version
ohair@476 18 # 2 along with this work; if not, write to the Free Software Foundation,
ohair@476 19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
ohair@476 20 #
ohair@476 21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
ohair@476 22 # or visit www.oracle.com if you need additional information or have any
ohair@476 23 # questions.
ohair@476 24 #
ohair@476 25
ohair@476 26
ohair@476 27 # Chaining of spec files
ohair@476 28 HOTSPOT_SPEC:=$(dir $(SPEC))hotspot-spec.gmk
ohair@476 29 override SPEC=$(HOTSPOT_SPEC)
ohair@476 30 # Now include the base spec.gmk file
ohair@476 31 include $(BASE_SPEC)
ohair@476 32
ohair@476 33 # Additional legacy variables defined for Hotspot
ohair@476 34
ohair@476 35 @SET_OPENJDK@
ohair@476 36
ohair@476 37 # Legacy defines controlled by the SUPPORT_HEADLESS and SUPPORT_HEADFUL options.
ohair@476 38 @BUILD_HEADLESS@
ohair@476 39
ohair@476 40 # Legacy setting: OPT or DBG
ohair@476 41 VARIANT:=@VARIANT@
ohair@476 42 # Legacy setting: true or false
ohair@476 43 FASTDEBUG:=@FASTDEBUG@
ohair@476 44 # Legacy setting: debugging the class files?
ohair@476 45 DEBUG_CLASSFILES:=@DEBUG_CLASSFILES@
ohair@476 46
ohair@476 47 ALT_CUPS_HEADERS_PATH:=$(patsubst -I%,%,$(filter -I%,@CUPS_CFLAGS@))
ohair@476 48
ohair@476 49 # The HOSTCC/HOSTCXX is Hotspot terminology for the BUILD_CC/BUILD_CXX, i.e. the
ohair@476 50 # compiler that produces code that can be run on the build platform.
ohair@492 51 HOSTCC:=@FIXPATH@ @BUILD_CC@
ohair@492 52 HOSTCXX:=@FIXPATH@ @BUILD_CXX@
ohair@476 53
ohair@476 54 ####################################################
ohair@476 55 #
ohair@476 56 # Legacy Hotspot support
ohair@476 57
ohair@476 58 # If cross compiling, then define CROSS_COMPILE_ARCH:=cpu_name here.
ohair@476 59 @DEFINE_CROSS_COMPILE_ARCH@
ohair@476 60
ohair@476 61 # Old name for OPENJDK_TARGET_OS (aix,bsd,hpux,linux,macosx,solaris,windows etc)
ohair@476 62 PLATFORM=$(OPENJDK_TARGET_OS)
ohair@476 63 # 32 or 64 bit
ohair@476 64 ARCH_DATA_MODEL=$(OPENJDK_TARGET_CPU_BITS)
ohair@476 65
ohair@476 66 ALT_BOOTDIR=$(BOOT_JDK)
ohair@476 67 # Can be /sparcv9 or /amd64 on Solaris
ohair@476 68 ISA_DIR=$(OPENJDK_TARGET_CPU_ISADIR)
ohair@476 69 # Yet another name for arch used for an extra subdir below the jvm lib.
ohair@476 70 # Uses i386 and amd64, instead of x86 and x86_64.
ohair@476 71 LIBARCH=$(OPENJDK_TARGET_CPU_LEGACY_LIB)
ohair@476 72 # Old name for OPENJDK_TARGET_CPU, uses i586 and amd64, instead of x86 and x86_64.
ohair@476 73 ARCH=$(OPENJDK_TARGET_CPU_LEGACY)
ohair@476 74 # Legacy setting for building for a 64 bit machine.
ohair@476 75 # If yes then this expands to _LP64:=1
ohair@476 76 @LP64@
ohair@476 77
ohair@476 78 ALT_OUTPUTDIR=$(HOTSPOT_OUTPUTDIR)
ohair@476 79 ALT_EXPORT_PATH=$(HOTSPOT_DIST)
ohair@476 80
ohair@492 81 HOTSPOT_MAKE_ARGS:=@HOTSPOT_MAKE_ARGS@ @STATIC_CXX_SETTING@
ohair@476 82 # This is used from the libjvm build for C/C++ code.
ohair@476 83 HOTSPOT_BUILD_JOBS:=@CONCURRENT_BUILD_JOBS@
ohair@476 84 # Control wether Hotspot runs Queens test after building
ohair@476 85 TEST_IN_BUILD=@TEST_IN_BUILD@
ohair@476 86
ohair@492 87 # For hotspot, override compiler/tools definition to not include FIXPATH prefix.
ohair@492 88 # Hotspot has its own handling on the Windows path situation.
ohair@492 89 CXX:=@CCACHE@ @HOTSPOT_CXX@
ohair@492 90 LD:=@HOTSPOT_LD@
ohair@492 91 MT:=@HOTSPOT_MT@
ohair@492 92 RC:=@HOTSPOT_RC@
ohair@476 93
ohair@476 94 EXTRA_CFLAGS=@LEGACY_EXTRA_CFLAGS@
ohair@476 95 EXTRA_CXXFLAGS=@LEGACY_EXTRA_CXXFLAGS@
ohair@476 96 EXTRA_LDFLAGS=@LEGACY_EXTRA_LDFLAGS@
ohair@492 97
tbell@510 98 USE_PRECOMPILED_HEADER=@USE_PRECOMPILED_HEADER@
tbell@510 99
ohair@492 100 # Sneak this in via the spec.gmk file, since we don't want to mess around too much with the Hotspot make files.
ohair@492 101 # This is needed to get the LOG setting to work properly.
ohair@492 102 include $(SRC_ROOT)/common/makefiles/MakeBase.gmk