spec.gmk.in revision 2402:c37cde0ba52d
1202181Sthompsa# 2202181Sthompsa# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 3202181Sthompsa# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4202181Sthompsa# 5202181Sthompsa# This code is free software; you can redistribute it and/or modify it 6202181Sthompsa# under the terms of the GNU General Public License version 2 only, as 7202181Sthompsa# published by the Free Software Foundation. Oracle designates this 8202181Sthompsa# particular file as subject to the "Classpath" exception as provided 9202181Sthompsa# by Oracle in the LICENSE file that accompanied this code. 10202181Sthompsa# 11202181Sthompsa# This code is distributed in the hope that it will be useful, but WITHOUT 12202181Sthompsa# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13202181Sthompsa# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14202181Sthompsa# version 2 for more details (a copy is included in the LICENSE file that 15202181Sthompsa# accompanied this code). 16202181Sthompsa# 17202181Sthompsa# You should have received a copy of the GNU General Public License version 18202181Sthompsa# 2 along with this work; if not, write to the Free Software Foundation, 19202181Sthompsa# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20202181Sthompsa# 21202181Sthompsa# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22202181Sthompsa# or visit www.oracle.com if you need additional information or have any 23202181Sthompsa# questions. 24202181Sthompsa# 25202181Sthompsa 26202181Sthompsa# Configured @DATE_WHEN_CONFIGURED@ to build 27202181Sthompsa# for target system @OPENJDK_TARGET_OS@-@OPENJDK_TARGET_CPU@ 28202181Sthompsa# (called @OPENJDK_TARGET_AUTOCONF_NAME@ by autoconf) 29202181Sthompsa# on build system @OPENJDK_BUILD_OS@-@OPENJDK_BUILD_CPU@ 30202181Sthompsa# (called @OPENJDK_BUILD_AUTOCONF_NAME@ by autoconf) 31202181Sthompsa# using 'configure @CONFIGURE_COMMAND_LINE@' 32202181Sthompsa 33202181Sthompsa# The command line given to configure. 34202181SthompsaCONFIGURE_COMMAND_LINE:=@CONFIGURE_COMMAND_LINE@ 35202181Sthompsa 36202181Sthompsa# A self-referential reference to this file. 37202181SthompsaSPEC:=@SPEC@ 38202181Sthompsa 39202181Sthompsa# SPACE and COMMA are defined in MakeBase.gmk, but they are also used in 40202181Sthompsa# some definitions here, and are needed if MakeBase.gmk is not included before 41202181Sthompsa# this file. 42202181SthompsaX:= 43202181SthompsaSPACE:=$(X) $(X) 44202181SthompsaCOMMA:=, 45202181Sthompsa 46202181Sthompsa# What make to use for main processing, after bootstrapping top-level Makefile. 47202181SthompsaMAKE := @MAKE@ 48202181Sthompsa 49202181Sthompsa# The default make arguments 50202181SthompsaMAKE_ARGS = $(MAKE_LOG_FLAGS) -r -R -I $(TOPDIR)/make/common SPEC=$(SPEC) \ 51202181Sthompsa MAKE_LOG_FLAGS="$(MAKE_LOG_FLAGS)" LOG_LEVEL=$(LOG_LEVEL) 52202181Sthompsa 53202181SthompsaOUTPUT_SYNC_SUPPORTED:=@OUTPUT_SYNC_SUPPORTED@ 54202181SthompsaOUTPUT_SYNC:=@OUTPUT_SYNC@ 55202181Sthompsa 56202181Sthompsa# Override the shell with bash 57202181SthompsaBASH:=@BASH@ 58202181SthompsaBASH_ARGS:=@BASH_ARGS@ 59202181SthompsaSHELL:=$(BASH) $(BASH_ARGS) 60202181Sthompsa 61202181Sthompsa# The "human readable" name of this configuration 62202181SthompsaCONF_NAME:=@CONF_NAME@ 63202181Sthompsa 64202181Sthompsa# The built jdk will run in this target system. 65202181SthompsaOPENJDK_TARGET_OS:=@OPENJDK_TARGET_OS@ 66202181SthompsaOPENJDK_TARGET_OS_TYPE:=@OPENJDK_TARGET_OS_TYPE@ 67202181SthompsaOPENJDK_TARGET_OS_ENV:=@OPENJDK_TARGET_OS_ENV@ 68202181Sthompsa 69210276SthompsaOPENJDK_TARGET_CPU:=@OPENJDK_TARGET_CPU@ 70202181SthompsaOPENJDK_TARGET_CPU_ARCH:=@OPENJDK_TARGET_CPU_ARCH@ 71202181SthompsaOPENJDK_TARGET_CPU_BITS:=@OPENJDK_TARGET_CPU_BITS@ 72202181SthompsaOPENJDK_TARGET_CPU_ENDIAN:=@OPENJDK_TARGET_CPU_ENDIAN@ 73202181Sthompsa 74202181SthompsaCOMPILE_TYPE:=@COMPILE_TYPE@ 75202181Sthompsa 76202181Sthompsa# Legacy support 77202181SthompsaOPENJDK_TARGET_CPU_ISADIR:=@OPENJDK_TARGET_CPU_ISADIR@ 78202181SthompsaOPENJDK_TARGET_CPU_LEGACY:=@OPENJDK_TARGET_CPU_LEGACY@ 79202181SthompsaOPENJDK_TARGET_CPU_LEGACY_LIB:=@OPENJDK_TARGET_CPU_LEGACY_LIB@ 80202181SthompsaOPENJDK_TARGET_CPU_OSARCH:=@OPENJDK_TARGET_CPU_OSARCH@ 81202181SthompsaOPENJDK_TARGET_OS_EXPORT_DIR:=@OPENJDK_TARGET_OS_EXPORT_DIR@ 82202181Sthompsa 83202181SthompsaHOTSPOT_TARGET_OS := @HOTSPOT_TARGET_OS@ 84202181SthompsaHOTSPOT_TARGET_OS_TYPE := @HOTSPOT_TARGET_OS_TYPE@ 85202181Sthompsa 86202181SthompsaHOTSPOT_TARGET_CPU := @HOTSPOT_TARGET_CPU@ 87202181SthompsaHOTSPOT_TARGET_CPU_ARCH := @HOTSPOT_TARGET_CPU_ARCH@ 88202181SthompsaHOTSPOT_TARGET_CPU_DEFINE := @HOTSPOT_TARGET_CPU_DEFINE@ 89202181Sthompsa 90202181SthompsaOPENJDK_TARGET_CPU_BUNDLE:=@OPENJDK_TARGET_CPU_BUNDLE@ 91202181SthompsaOPENJDK_TARGET_OS_BUNDLE:=@OPENJDK_TARGET_OS_BUNDLE@ 92202181SthompsaOPENJDK_TARGET_BUNDLE_PLATFORM:=@OPENJDK_TARGET_BUNDLE_PLATFORM@ 93202181Sthompsa 94202181Sthompsa# We are building on this build system. 95202181Sthompsa# When not cross-compiling, it is the same as the target. 96202181SthompsaOPENJDK_BUILD_OS:=@OPENJDK_BUILD_OS@ 97202181SthompsaOPENJDK_BUILD_OS_TYPE:=@OPENJDK_BUILD_OS_TYPE@ 98202181SthompsaOPENJDK_BUILD_OS_ENV:=@OPENJDK_BUILD_OS_ENV@ 99202181Sthompsa 100202181SthompsaOPENJDK_BUILD_CPU:=@OPENJDK_BUILD_CPU@ 101202181SthompsaOPENJDK_BUILD_CPU_ARCH:=@OPENJDK_BUILD_CPU_ARCH@ 102202181SthompsaOPENJDK_BUILD_CPU_BITS:=@OPENJDK_BUILD_CPU_BITS@ 103202181SthompsaOPENJDK_BUILD_CPU_ENDIAN:=@OPENJDK_BUILD_CPU_ENDIAN@ 104202181Sthompsa 105202181Sthompsa# Legacy OS values for use in release file. 106202181SthompsaREQUIRED_OS_NAME:=@REQUIRED_OS_NAME@ 107202181SthompsaREQUIRED_OS_VERSION:=@REQUIRED_OS_VERSION@ 108202181Sthompsa 109202181SthompsaLIBM:=@LIBM@ 110202181SthompsaLIBDL:=@LIBDL@ 111202181Sthompsa 112202181Sthompsa# colon or semicolon 113202181SthompsaPATH_SEP:=@PATH_SEP@ 114202181Sthompsa 115202181Sthompsa# Save the original path before replacing it with the Visual Studio tools 116202181SthompsaORIGINAL_PATH:=@ORIGINAL_PATH@ 117202181Sthompsaifeq ($(OPENJDK_TARGET_OS), windows) 118202181Sthompsa # On Windows, the Visual Studio toolchain needs the PATH to be adjusted 119202181Sthompsa # to include Visual Studio tools (this needs to be in cygwin/msys style). 120202181Sthompsa export PATH:=@VS_PATH@ 121202181Sthompsaendif 122202181Sthompsa 123202181SthompsaSYSROOT_CFLAGS := @SYSROOT_CFLAGS@ 124202181SthompsaSYSROOT_LDFLAGS := @SYSROOT_LDFLAGS@ 125202181Sthompsa 126202181Sthompsa# The top-level directory of the forest (SRC_ROOT is a traditional alias) 127202181SthompsaTOPDIR:=@TOPDIR@ 128202181Sthompsa# These two versions of TOPDIR are used in string comparisons 129202181SthompsaORIGINAL_TOPDIR:=@ORIGINAL_TOPDIR@ 130202181SthompsaCANONICAL_TOPDIR:=@CANONICAL_TOPDIR@ 131202181SthompsaSRC_ROOT:=@TOPDIR@ 132202181Sthompsa 133202181SthompsaOUTPUT_ROOT:=@OUTPUT_ROOT@ 134202181SthompsaJDK_TOPDIR:=@JDK_TOPDIR@ 135202181SthompsaLANGTOOLS_TOPDIR:=@LANGTOOLS_TOPDIR@ 136202181SthompsaCORBA_TOPDIR:=@CORBA_TOPDIR@ 137202181SthompsaJAXP_TOPDIR:=@JAXP_TOPDIR@ 138202181SthompsaJAXWS_TOPDIR:=@JAXWS_TOPDIR@ 139202181SthompsaHOTSPOT_TOPDIR:=@HOTSPOT_TOPDIR@ 140202181SthompsaNASHORN_TOPDIR:=@NASHORN_TOPDIR@ 141202181Sthompsa 142202181SthompsaIMPORT_MODULES_CLASSES:=@IMPORT_MODULES_CLASSES@ 143202181SthompsaIMPORT_MODULES_CMDS:=@IMPORT_MODULES_CMDS@ 144202181SthompsaIMPORT_MODULES_LIBS:=@IMPORT_MODULES_LIBS@ 145202181SthompsaIMPORT_MODULES_CONF:=@IMPORT_MODULES_CONF@ 146202181SthompsaIMPORT_MODULES_LEGAL:=@IMPORT_MODULES_LEGAL@ 147202181SthompsaIMPORT_MODULES_MAN:=@IMPORT_MODULES_MAN@ 148202181SthompsaIMPORT_MODULES_SRC:=@IMPORT_MODULES_SRC@ 149202181SthompsaIMPORT_MODULES_MAKE:=@IMPORT_MODULES_MAKE@ 150202181Sthompsa 151202181SthompsaCOPYRIGHT_YEAR:=@COPYRIGHT_YEAR@ 152202181Sthompsa 153202181Sthompsa# New (JEP-223) version information 154202181Sthompsa 155202181Sthompsa## Building blocks of the version string 156202181Sthompsa# First three version numbers, with well-specified meanings (numerical) 157202181SthompsaVERSION_MAJOR := @VERSION_MAJOR@ 158202181SthompsaVERSION_MINOR := @VERSION_MINOR@ 159202181SthompsaVERSION_SECURITY := @VERSION_SECURITY@ 160202181Sthompsa# Optional fourth element for use by OpenJDK consumers (numerical) 161202181SthompsaVERSION_PATCH := @VERSION_PATCH@ 162202181Sthompsa# The pre-release identifier (string) 163202181SthompsaVERSION_PRE := @VERSION_PRE@ 164202181Sthompsa# The build number (numerical) 165202181SthompsaVERSION_BUILD := @VERSION_BUILD@ 166202181Sthompsa# Optional build information (string) 167202181SthompsaVERSION_OPT := @VERSION_OPT@ 168202181Sthompsa 169202181Sthompsa## Composite variables 170202181Sthompsa# The version number as a dot separated sequence of numbers, e.g. 9.0.1 171202181SthompsaVERSION_NUMBER := @VERSION_NUMBER@ 172202181Sthompsa# VERSION_NUMBER but always with exactly 4 positions, with 0 for empty positions. 173202181SthompsaVERSION_NUMBER_FOUR_POSITIONS := @VERSION_NUMBER_FOUR_POSITIONS@ 174202181Sthompsa# The complete version string, with additional build information 175202181SthompsaVERSION_STRING := @VERSION_STRING@ 176202181Sthompsa# The short version string, without trailing zeroes and just PRE, if present. 177202181SthompsaVERSION_SHORT := @VERSION_SHORT@ 178202181Sthompsa# The Java specification version. It usually equals the major version number. 179202181SthompsaVERSION_SPECIFICATION := @VERSION_MAJOR@ 180202181Sthompsa# A GA version is defined by the PRE string being empty. Rather than testing for 181202181Sthompsa# that, this variable defines it with true/false. 182202181SthompsaVERSION_IS_GA := @VERSION_IS_GA@ 183202181Sthompsa 184202181Sthompsa# Convenience CFLAGS settings for passing version information into native programs. 185202181SthompsaVERSION_CFLAGS := \ 186202181Sthompsa -DVERSION_MAJOR=$(VERSION_MAJOR) \ 187202181Sthompsa -DVERSION_MINOR=$(VERSION_MINOR) \ 188202181Sthompsa -DVERSION_SECURITY=$(VERSION_SECURITY) \ 189202181Sthompsa -DVERSION_PATCH=$(VERSION_PATCH) \ 190202181Sthompsa -DVERSION_PRE='"$(VERSION_PRE)"' \ 191202181Sthompsa -DVERSION_BUILD=$(VERSION_BUILD) \ 192202181Sthompsa -DVERSION_OPT='"$(VERSION_OPT)"' \ 193202181Sthompsa -DVERSION_NUMBER='"$(VERSION_NUMBER)"' \ 194202181Sthompsa -DVERSION_STRING='"$(VERSION_STRING)"' \ 195202181Sthompsa -DVERSION_SHORT='"$(VERSION_SHORT)"' \ 196202181Sthompsa -DVERSION_SPECIFICATION='"$(VERSION_SPECIFICATION)"' \ 197202181Sthompsa # 198202181Sthompsa 199202181Sthompsa# Platform naming variables 200202181SthompsaLAUNCHER_NAME:=@LAUNCHER_NAME@ 201202181SthompsaPRODUCT_NAME:=@PRODUCT_NAME@ 202202181SthompsaPRODUCT_SUFFIX:=@PRODUCT_SUFFIX@ 203202181SthompsaJDK_RC_PLATFORM_NAME:=@JDK_RC_PLATFORM_NAME@ 204202181SthompsaCOMPANY_NAME:=@COMPANY_NAME@ 205202181SthompsaHOTSPOT_VM_DISTRO:=@HOTSPOT_VM_DISTRO@ 206202181SthompsaMACOSX_BUNDLE_NAME_BASE=@MACOSX_BUNDLE_NAME_BASE@ 207202181SthompsaMACOSX_BUNDLE_ID_BASE=@MACOSX_BUNDLE_ID_BASE@ 208202181SthompsaUSERNAME:=@USERNAME@ 209202181Sthompsa 210202181Sthompsa# Different naming strings generated from the above information. 211202181SthompsaRUNTIME_NAME=$(PRODUCT_NAME) $(PRODUCT_SUFFIX) 212202181Sthompsa 213202181Sthompsa# How to compile the code: release, fastdebug or slowdebug 214202181SthompsaDEBUG_LEVEL:=@DEBUG_LEVEL@ 215202181SthompsaHOTSPOT_DEBUG_LEVEL:=@HOTSPOT_DEBUG_LEVEL@ 216202181Sthompsa 217202181Sthompsa# This is the JDK variant to build. 218202181Sthompsa# The JDK variant is a name for a specific set of modules to be compiled for the JDK. 219202181SthompsaJDK_VARIANT:=@JDK_VARIANT@ 220202181Sthompsa 221202181Sthompsa# Which JVM variants to build (space-separated list) 222202181SthompsaJVM_VARIANTS := @JVM_VARIANTS@ 223202181SthompsaJVM_VARIANT_MAIN := @JVM_VARIANT_MAIN@ 224202181Sthompsa 225202181Sthompsa# Lists of features per variant. Only relevant for the variants listed in 226202181Sthompsa# JVM_VARIANTS. 227202181SthompsaJVM_FEATURES_server := @JVM_FEATURES_server@ 228202181SthompsaJVM_FEATURES_client := @JVM_FEATURES_client@ 229202181SthompsaJVM_FEATURES_core := @JVM_FEATURES_core@ 230202181SthompsaJVM_FEATURES_minimal := @JVM_FEATURES_minimal@ 231202181SthompsaJVM_FEATURES_zero := @JVM_FEATURES_zero@ 232202181SthompsaJVM_FEATURES_zeroshark := @JVM_FEATURES_zeroshark@ 233202181SthompsaJVM_FEATURES_custom := @JVM_FEATURES_custom@ 234202181Sthompsa 235202181Sthompsa# Used for make-time verifications 236202181SthompsaVALID_JVM_FEATURES := @VALID_JVM_FEATURES@ 237202181SthompsaVALID_JVM_VARIANTS := @VALID_JVM_VARIANTS@ 238202181Sthompsa 239202181Sthompsa# Control wether Hotspot builds gtest tests 240202181SthompsaBUILD_GTEST := @BUILD_GTEST@ 241202181Sthompsa 242202181Sthompsa# Control use of precompiled header in hotspot libjvm build 243202181SthompsaUSE_PRECOMPILED_HEADER := @USE_PRECOMPILED_HEADER@ 244202181Sthompsa 245202181Sthompsa# Only build headless support or not 246202181SthompsaENABLE_HEADLESS_ONLY := @ENABLE_HEADLESS_ONLY@ 247202181Sthompsa 248202181Sthompsa# JDK_OUTPUTDIR specifies where a working jvm is built. 249202181Sthompsa# You can run $(JDK_OUTPUTDIR)/bin/java 250202181Sthompsa# Though the layout of the contents of $(JDK_OUTPUTDIR) is not 251202181Sthompsa# yet the same as a default installation. 252202181Sthompsa# 253202181Sthompsa# When you run "make install" it will create the standardized 254202181Sthompsa# layout for the jdk and the jre inside the IMAGES_OUTPUTDIR subdir. 255202181Sthompsa# Then it will copy the contents of the jdk into the installation 256202181Sthompsa# directory. 257202181Sthompsa 258202181SthompsaBUILD_OUTPUT:=@BUILD_OUTPUT@ 259202181Sthompsa# Colon left out to be able to override IMAGES_OUTPUTDIR for bootcycle-images 260202181SthompsaSUPPORT_OUTPUTDIR=$(BUILD_OUTPUT)/support 261202181SthompsaBUILDTOOLS_OUTPUTDIR=$(BUILD_OUTPUT)/buildtools 262202181Sthompsa 263202181SthompsaHOTSPOT_OUTPUTDIR=$(BUILD_OUTPUT)/hotspot 264202181SthompsaJDK_OUTPUTDIR=$(BUILD_OUTPUT)/jdk 265202181SthompsaIMAGES_OUTPUTDIR=$(BUILD_OUTPUT)/images 266202181SthompsaBUNDLES_OUTPUTDIR=$(BUILD_OUTPUT)/bundles 267202181SthompsaTESTMAKE_OUTPUTDIR=$(BUILD_OUTPUT)/test-make 268202181SthompsaMAKESUPPORT_OUTPUTDIR=$(BUILD_OUTPUT)/make-support 269202181Sthompsa 270202181Sthompsa# By default, output javadoc directly into image 271202181SthompsaJAVADOC_OUTPUTDIR = $(DOCS_IMAGE_DIR) 272202181Sthompsa 273202181Sthompsa# This does not get overridden in a bootcycle build 274202181SthompsaCONFIGURESUPPORT_OUTPUTDIR:=@CONFIGURESUPPORT_OUTPUTDIR@ 275202181SthompsaBUILDJDK_OUTPUTDIR=$(BUILD_OUTPUT)/buildjdk 276202181Sthompsa 277202181SthompsaBUILD_HOTSPOT=@BUILD_HOTSPOT@ 278202181Sthompsa 279202181SthompsaBUILD_FAILURE_HANDLER := @BUILD_FAILURE_HANDLER@ 280202181Sthompsa 281202181SthompsaENABLE_GENERATE_CLASSLIST := @ENABLE_GENERATE_CLASSLIST@ 282202181Sthompsa 283202181Sthompsa# The boot jdk to use. This is overridden in bootcycle-spec.gmk. Make sure to keep 284202181Sthompsa# it in sync. 285202181SthompsaBOOT_JDK:=@BOOT_JDK@ 286202181Sthompsa 287202181SthompsaBUILD_JDK:=@BUILD_JDK@ 288202181SthompsaCREATE_BUILDJDK:=@CREATE_BUILDJDK@ 289202181SthompsaEXTERNAL_BUILDJDK:=@EXTERNAL_BUILDJDK@ 290202181Sthompsa 291202181Sthompsa# When compiling Java source to be run by the boot jdk 292202181Sthompsa# use these extra flags, eg -source 6 -target 6 293202181SthompsaBOOT_JDK_SOURCETARGET:=@BOOT_JDK_SOURCETARGET@ 294202181Sthompsa 295202181Sthompsa# Information about the build system 296202181SthompsaNUM_CORES:=@NUM_CORES@ 297202181SthompsaMEMORY_SIZE:=@MEMORY_SIZE@ 298202181Sthompsa# Enable sjavac support = use a javac server, 299202181Sthompsa# multi core javac compilation and dependency tracking. 300202181SthompsaENABLE_SJAVAC:=@ENABLE_SJAVAC@ 301202181SthompsaENABLE_JAVAC_SERVER:=@ENABLE_JAVAC_SERVER@ 302202181Sthompsa# Store sjavac server synchronization files here, and 303202181Sthompsa# the sjavac server log files. 304202181SthompsaSJAVAC_SERVER_DIR=$(MAKESUPPORT_OUTPUTDIR)/javacservers 305202181Sthompsa 306202181Sthompsa# Number of parallel jobs to use for compilation 307202181SthompsaJOBS?=@JOBS@ 308202181SthompsaTEST_JOBS?=@TEST_JOBS@ 309202181Sthompsa 310202181Sthompsa# Default make target 311202181SthompsaDEFAULT_MAKE_TARGET:=@DEFAULT_MAKE_TARGET@ 312202181Sthompsa 313202181SthompsaFREETYPE_LIBS:=@FREETYPE_LIBS@ 314202181SthompsaFREETYPE_CFLAGS:=@FREETYPE_CFLAGS@ 315202181SthompsaFREETYPE_BUNDLE_LIB_PATH=@FREETYPE_BUNDLE_LIB_PATH@ 316202181SthompsaCUPS_CFLAGS:=@CUPS_CFLAGS@ 317202181SthompsaALSA_LIBS:=@ALSA_LIBS@ 318202181SthompsaALSA_CFLAGS:=@ALSA_CFLAGS@ 319202181SthompsaLIBFFI_LIBS:=@LIBFFI_LIBS@ 320202181SthompsaLIBFFI_CFLAGS:=@LIBFFI_CFLAGS@ 321202181SthompsaENABLE_LIBFFI_BUNDLING:=@ENABLE_LIBFFI_BUNDLING@ 322202181SthompsaLIBFFI_LIB_FILE:=@LIBFFI_LIB_FILE@ 323202181Sthompsa 324202181SthompsaPACKAGE_PATH=@PACKAGE_PATH@ 325202181Sthompsa 326202181Sthompsa# Source file for cacerts 327202181SthompsaCACERTS_FILE=@CACERTS_FILE@ 328202181Sthompsa 329202181Sthompsa# Enable unlimited crypto policy 330202181SthompsaUNLIMITED_CRYPTO=@UNLIMITED_CRYPTO@ 331202181Sthompsa 332202181SthompsaGCOV_ENABLED=@GCOV_ENABLED@ 333202181Sthompsa 334202181Sthompsa# Necessary additional compiler flags to compile X11 335202181SthompsaX_CFLAGS:=@X_CFLAGS@ 336202181SthompsaX_LIBS:=@X_LIBS@ 337202181Sthompsa 338202181Sthompsa# The lowest required version of macosx to enforce compatiblity for 339202181SthompsaMACOSX_VERSION_MIN=@MACOSX_VERSION_MIN@ 340202181Sthompsa 341202181Sthompsa# Toolchain type: gcc, clang, solstudio, lxc, microsoft... 342202181SthompsaTOOLCHAIN_TYPE:=@TOOLCHAIN_TYPE@ 343202181SthompsaTOOLCHAIN_VERSION := @TOOLCHAIN_VERSION@ 344202181SthompsaCC_VERSION_NUMBER := @CC_VERSION_NUMBER@ 345202181SthompsaCXX_VERSION_NUMBER := @CXX_VERSION_NUMBER@ 346202181Sthompsa 347202181Sthompsa# Legacy support 348202181SthompsaHOTSPOT_TOOLCHAIN_TYPE := @HOTSPOT_TOOLCHAIN_TYPE@ 349202181Sthompsa 350202181Sthompsa# Option used to tell the compiler whether to create 32- or 64-bit executables 351202181SthompsaCOMPILER_TARGET_BITS_FLAG:=@COMPILER_TARGET_BITS_FLAG@ 352202181SthompsaCOMPILER_SUPPORTS_TARGET_BITS_FLAG=@COMPILER_SUPPORTS_TARGET_BITS_FLAG@ 353202181Sthompsa 354202181Sthompsa# Option used to pass a command file to the compiler 355202181SthompsaCOMPILER_COMMAND_FILE_FLAG:=@COMPILER_COMMAND_FILE_FLAG@ 356202181Sthompsa 357202181Sthompsa# Option for specifying a file which saves the binder commands 358202181Sthompsa# produced by the link step (for debugging, currently AIX only) 359202181SthompsaCOMPILER_BINDCMD_FILE_FLAG:=@COMPILER_BINDCMD_FILE_FLAG@ 360202181Sthompsa 361202181SthompsaCC_OUT_OPTION:=@CC_OUT_OPTION@ 362202181SthompsaEXE_OUT_OPTION:=@EXE_OUT_OPTION@ 363202181SthompsaLD_OUT_OPTION:=@LD_OUT_OPTION@ 364202181SthompsaAR_OUT_OPTION:=@AR_OUT_OPTION@ 365202181Sthompsa 366202181Sthompsa# Flags used for overriding the default opt setting for a C/C++ source file. 367202181SthompsaC_O_FLAG_HIGHEST_JVM:=@C_O_FLAG_HIGHEST_JVM@ 368202181SthompsaC_O_FLAG_HIGHEST:=@C_O_FLAG_HIGHEST@ 369202181SthompsaC_O_FLAG_HI:=@C_O_FLAG_HI@ 370202181SthompsaC_O_FLAG_NORM:=@C_O_FLAG_NORM@ 371202181SthompsaC_O_FLAG_NONE:=@C_O_FLAG_NONE@ 372202181SthompsaC_O_FLAG_SIZE:=@C_O_FLAG_SIZE@ 373202181SthompsaCXX_O_FLAG_HIGHEST_JVM:=@CXX_O_FLAG_HIGHEST_JVM@ 374202181SthompsaCXX_O_FLAG_HIGHEST:=@CXX_O_FLAG_HIGHEST@ 375202181SthompsaCXX_O_FLAG_HI:=@CXX_O_FLAG_HI@ 376202181SthompsaCXX_O_FLAG_NORM:=@CXX_O_FLAG_NORM@ 377202181SthompsaCXX_O_FLAG_NONE:=@CXX_O_FLAG_NONE@ 378202181SthompsaCXX_O_FLAG_SIZE:=@CXX_O_FLAG_SIZE@ 379202181Sthompsa 380202181SthompsaC_FLAG_DEPS:=@C_FLAG_DEPS@ 381202181SthompsaCXX_FLAG_DEPS:=@CXX_FLAG_DEPS@ 382202181Sthompsa 383202181SthompsaDISABLE_WARNING_PREFIX := @DISABLE_WARNING_PREFIX@ 384202181SthompsaCFLAGS_WARNINGS_ARE_ERRORS:=@CFLAGS_WARNINGS_ARE_ERRORS@ 385202181Sthompsa 386202181Sthompsa# A global flag (true or false) determining if native warnings are considered errors. 387202181SthompsaWARNINGS_AS_ERRORS := @WARNINGS_AS_ERRORS@ 388202181Sthompsa 389202181SthompsaCFLAGS_CCACHE:=@CFLAGS_CCACHE@ 390202181SthompsaCXXSTD_CXXFLAG=@CXXSTD_CXXFLAG@ 391202181Sthompsa 392202181Sthompsa# Tools that potentially need to be cross compilation aware. 393202181SthompsaCC:=@FIXPATH@ @CCACHE@ @ICECC@ @CC@ 394202181Sthompsa 395202181Sthompsa# CFLAGS used to compile the jdk native libraries (C-code) 396202181SthompsaCFLAGS_JDKLIB:=@CFLAGS_JDKLIB@ 397202181SthompsaCXXFLAGS_JDKLIB:=@CXXFLAGS_JDKLIB@ 398202181Sthompsa 399202181Sthompsa# CFLAGS used to compile the jdk native launchers (C-code) 400202181SthompsaCFLAGS_JDKEXE:=@CFLAGS_JDKEXE@ 401202181SthompsaCXXFLAGS_JDKEXE:=@CXXFLAGS_JDKEXE@ 402202181Sthompsa 403202181SthompsaLDFLAGS_HASH_STYLE := @LDFLAGS_HASH_STYLE@ 404202181Sthompsa 405202181SthompsaJVM_CFLAGS := @JVM_CFLAGS@ 406202181SthompsaJVM_CFLAGS_SYMBOLS := @JVM_CFLAGS_SYMBOLS@ 407202181SthompsaJVM_LDFLAGS := @JVM_LDFLAGS@ 408202181SthompsaJVM_ASFLAGS := @JVM_ASFLAGS@ 409202181SthompsaJVM_LIBS := @JVM_LIBS@ 410202181SthompsaJVM_RCFLAGS := @JVM_RCFLAGS@ 411202181Sthompsa 412202181Sthompsa# Flags for zeroshark 413202181SthompsaLLVM_CFLAGS := @LLVM_CFLAGS@ 414202181SthompsaLLVM_LIBS := @LLVM_LIBS@ 415202181SthompsaLLVM_LDFLAGS := @LLVM_LDFLAGS@ 416202181Sthompsa 417202181Sthompsa# These flags might contain variables set by a custom extension that is included later. 418202181SthompsaEXTRA_CFLAGS = @EXTRA_CFLAGS@ 419202181SthompsaEXTRA_CXXFLAGS = @EXTRA_CXXFLAGS@ 420202181SthompsaEXTRA_LDFLAGS = @EXTRA_LDFLAGS@ 421202181Sthompsa 422202181SthompsaCXX:=@FIXPATH@ @CCACHE@ @ICECC@ @CXX@ 423202181Sthompsa 424202181SthompsaCPP:=@FIXPATH@ @CPP@ 425202181Sthompsa 426202181Sthompsa# The linker can be gcc or ld on unix systems, or link.exe on windows systems. 427202181SthompsaLD:=@FIXPATH@ @LD@ 428202181Sthompsa 429202181Sthompsa# Xcode SDK path 430202181SthompsaSDKROOT:=@SDKROOT@ 431202181Sthompsa 432202181Sthompsa# The linker on older SuSE distros (e.g. on SLES 10) complains with: 433202181Sthompsa# "Invalid version tag `SUNWprivate_1.1'. Only anonymous version tag is allowed in executable." 434202181Sthompsa# if feeded with a version script which contains named tags. 435202181SthompsaUSING_BROKEN_SUSE_LD:=@USING_BROKEN_SUSE_LD@ 436202181Sthompsa 437202181Sthompsa# LDFLAGS used to link the jdk native libraries (C-code) 438202181SthompsaLDFLAGS_JDKLIB:=@LDFLAGS_JDKLIB@ 439202181SthompsaJDKLIB_LIBS:=@JDKLIB_LIBS@ 440202181Sthompsa 441202181Sthompsa# LDFLAGS used to link the jdk native launchers (C-code) 442202181SthompsaLDFLAGS_JDKEXE:=@LDFLAGS_JDKEXE@ 443202181SthompsaJDKEXE_LIBS:=@JDKEXE_LIBS@ 444202181Sthompsa 445202181Sthompsa# LDFLAGS specific to C++ linking. 446202181SthompsaLDFLAGS_CXX_JDK:=@LDFLAGS_CXX_JDK@ 447202181Sthompsa 448202181Sthompsa# Sometimes a different linker is needed for c++ libs 449202181SthompsaLDCXX:=@FIXPATH@ @LDCXX@ 450202181Sthompsa# The flags for linking libstdc++ linker. 451202181SthompsaLIBCXX:=@LIBCXX@ 452202181Sthompsa 453202181Sthompsa# Compiler and linker flags used when building native tests 454202181SthompsaCFLAGS_TESTLIB:=@CFLAGS_TESTLIB@ 455202181SthompsaCXXFLAGS_TESTLIB:=@CXXFLAGS_TESTLIB@ 456202181SthompsaCFLAGS_TESTEXE:=@CFLAGS_TESTEXE@ 457202181SthompsaCXXFLAGS_TESTEXE:=@CXXFLAGS_TESTEXE@ 458202181SthompsaLDFLAGS_TESTLIB:=@LDFLAGS_TESTLIB@ 459202181SthompsaLDFLAGS_TESTEXE:=@LDFLAGS_TESTEXE@ 460202181Sthompsa 461202181Sthompsa# BUILD_CC/BUILD_LD is a compiler/linker that generates code that is runnable on the 462202181Sthompsa# build platform. 463202181SthompsaBUILD_CC:=@FIXPATH@ @BUILD_ICECC@ @BUILD_CC@ 464202181SthompsaBUILD_CXX:=@FIXPATH@ @BUILD_ICECC@ @BUILD_CXX@ 465202181SthompsaBUILD_LD:=@FIXPATH@ @BUILD_LD@ 466202181SthompsaBUILD_LDCXX:=@FIXPATH@ @BUILD_LDCXX@ 467202181SthompsaBUILD_AS:=@FIXPATH@ @BUILD_AS@ 468202181SthompsaBUILD_AR:=@FIXPATH@ @BUILD_AR@ 469202181SthompsaBUILD_NM:=@FIXPATH@ @BUILD_NM@ 470202181SthompsaBUILD_OBJCOPY:=@BUILD_OBJCOPY@ 471202181SthompsaBUILD_STRIP:=@BUILD_STRIP@ 472202181SthompsaBUILD_SYSROOT_CFLAGS:=@BUILD_SYSROOT_CFLAGS@ 473202181SthompsaBUILD_SYSROOT_LDFLAGS:=@BUILD_SYSROOT_LDFLAGS@ 474202181Sthompsa 475202181SthompsaAS:=@FIXPATH@ @AS@ 476202181Sthompsa 477202181Sthompsa# AR is used to create a static library (is ar in unix, lib.exe in windows) 478202181SthompsaAR:=@FIXPATH@ @AR@ 479202181SthompsaARFLAGS:=@ARFLAGS@ 480202181Sthompsa 481202181SthompsaNM:=@NM@ 482202181SthompsaGNM:=@GNM@ 483202181SthompsaSTRIP:=@STRIP@ 484202181Sthompsa 485202181SthompsaLIPO:=@LIPO@ 486202181Sthompsa 487202181Sthompsa# Options to linker to specify a mapfile. 488202181Sthompsa# (Note absence of := assignment, because we do not want to evaluate the macro body here) 489202181SthompsaSET_SHARED_LIBRARY_MAPFILE=@SET_SHARED_LIBRARY_MAPFILE@ 490202181Sthompsa 491202181Sthompsa# Options for C/CXX compiler to be used if linking is performed 492202181Sthompsa# using reorder file 493202181SthompsaC_FLAG_REORDER:=@C_FLAG_REORDER@ 494202181SthompsaCXX_FLAG_REORDER:=@CXX_FLAG_REORDER@ 495202181Sthompsa 496202181Sthompsa# 497202181Sthompsa# Options for generating debug symbols 498202181SthompsaCOMPILE_WITH_DEBUG_SYMBOLS := @COMPILE_WITH_DEBUG_SYMBOLS@ 499202181SthompsaCOPY_DEBUG_SYMBOLS := @COPY_DEBUG_SYMBOLS@ 500202181SthompsaZIP_EXTERNAL_DEBUG_SYMBOLS := @ZIP_EXTERNAL_DEBUG_SYMBOLS@ 501202181Sthompsa 502202181SthompsaCFLAGS_DEBUG_SYMBOLS:=@CFLAGS_DEBUG_SYMBOLS@ 503202181SthompsaCXXFLAGS_DEBUG_SYMBOLS:=@CXXFLAGS_DEBUG_SYMBOLS@ 504202181Sthompsa 505202181Sthompsa# 506202181Sthompsa# Compress (or not) jars 507202181SthompsaCOMPRESS_JARS=@COMPRESS_JARS@ 508202181Sthompsa 509202181Sthompsa# Options to linker to specify the library name. 510202181Sthompsa# (Note absence of := assignment, because we do not want to evaluate the macro body here) 511202181SthompsaSET_SHARED_LIBRARY_NAME=@SET_SHARED_LIBRARY_NAME@ 512202181Sthompsa 513202181SthompsaSHARED_LIBRARY_FLAGS=@SHARED_LIBRARY_FLAGS@ 514202181Sthompsa 515202181Sthompsa# Set origin using the linker, ie use the relative path to the dependent library to find the dependees. 516202181Sthompsa# (Note absence of := assignment, because we do not want to evaluate the macro body here) 517202181SthompsaSET_SHARED_LIBRARY_ORIGIN=@SET_SHARED_LIBRARY_ORIGIN@ 518202181SthompsaSET_EXECUTABLE_ORIGIN=@SET_EXECUTABLE_ORIGIN@ 519202181Sthompsa 520202181Sthompsa# Different OS:es have different ways of naming shared libraries. 521202181Sthompsa# The SHARED_LIBRARY macro takes "verify" as and argument and returns: 522202181Sthompsa# "libverify.so" or "libverify.dylib" or "verify.dll" depending on platform. 523202181Sthompsa# (Note absence of := assignment, because we do not want to evaluate the macro body here) 524202181SthompsaSHARED_LIBRARY=@SHARED_LIBRARY@ 525202181SthompsaSTATIC_LIBRARY=@STATIC_LIBRARY@ 526202181SthompsaLIBRARY_PREFIX:=@LIBRARY_PREFIX@ 527202181SthompsaSHARED_LIBRARY_SUFFIX:=@SHARED_LIBRARY_SUFFIX@ 528202181SthompsaSTATIC_LIBRARY_SUFFIX:=@STATIC_LIBRARY_SUFFIX@ 529202181SthompsaEXE_SUFFIX:=@EXE_SUFFIX@ 530202181SthompsaOBJ_SUFFIX:=@OBJ_SUFFIX@ 531202181SthompsaSTATIC_BUILD:=@STATIC_BUILD@ 532202181Sthompsa 533202181SthompsaSTRIPFLAGS:=@STRIPFLAGS@ 534202181Sthompsa 535202181SthompsaJAVA_FLAGS:=@JAVA_FLAGS@ 536202181SthompsaJAVA_FLAGS_BIG:=@JAVA_FLAGS_BIG@ 537202181SthompsaJAVA_FLAGS_SMALL:=@JAVA_FLAGS_SMALL@ 538202181SthompsaJAVA_FLAGS_JAVAC:=@JAVA_FLAGS_JAVAC@ 539202181SthompsaJAVA_TOOL_FLAGS_SMALL:=@JAVA_TOOL_FLAGS_SMALL@ 540202181SthompsaSJAVAC_SERVER_JAVA_FLAGS:=@SJAVAC_SERVER_JAVA_FLAGS@ 541202181Sthompsa 542202181Sthompsa# The *_CMD variables are defined separately to be easily overridden in bootcycle-spec.gmk 543202181Sthompsa# for bootcycle-images build. Make sure to keep them in sync. Do not use the *_CMD 544202181Sthompsa# versions of the variables directly. 545202181SthompsaJAVA_CMD:=@JAVA@ 546202181SthompsaJAVAC_CMD:=@JAVAC@ 547202181SthompsaJAVAH_CMD:=@JAVAH@ 548202181SthompsaJAR_CMD:=@JAR@ 549202181SthompsaJLINK_CMD := @JLINK@ 550202181SthompsaJMOD_CMD := @JMOD@ 551202181SthompsaJARSIGNER_CMD:=@JARSIGNER@ 552202181SthompsaSJAVAC_SERVER_JAVA_CMD:=@SJAVAC_SERVER_JAVA@ 553202181Sthompsa# These variables are meant to be used. They are defined with = instead of := to make 554202181Sthompsa# it possible to override only the *_CMD variables. 555202181SthompsaJAVA=@FIXPATH@ $(JAVA_CMD) $(JAVA_FLAGS_BIG) $(JAVA_FLAGS) 556202181SthompsaJAVA_SMALL=@FIXPATH@ $(JAVA_CMD) $(JAVA_FLAGS_SMALL) $(JAVA_FLAGS) 557202181SthompsaJAVA_JAVAC=@FIXPATH@ $(JAVA_CMD) $(JAVA_FLAGS_JAVAC) $(JAVA_FLAGS) 558202181SthompsaJAVAC=@FIXPATH@ $(JAVAC_CMD) 559202181SthompsaJAVAH=@FIXPATH@ $(JAVAH_CMD) 560202181SthompsaJAR=@FIXPATH@ $(JAR_CMD) 561202181SthompsaJLINK = @FIXPATH@ $(JLINK_CMD) $(JAVA_TOOL_FLAGS_SMALL) 562202181SthompsaJMOD = @FIXPATH@ $(JMOD_CMD) $(JAVA_TOOL_FLAGS_SMALL) 563202181SthompsaJARSIGNER=@FIXPATH@ $(JARSIGNER_CMD) 564202181Sthompsa# A specific java binary with specific options can be used to run 565202181Sthompsa# the long running background sjavac servers and other long running tasks. 566202181SthompsaSJAVAC_SERVER_JAVA=@FIXPATH@ @FIXPATH_DETACH_FLAG@ $(SJAVAC_SERVER_JAVA_CMD) \ 567202181Sthompsa $(SJAVAC_SERVER_JAVA_FLAGS) 568202181Sthompsa 569202181Sthompsa# Hotspot sets this variable before reading the SPEC when compiling sa-jdi.jar. Avoid 570202181Sthompsa# overriding that value by using ?=. 571202181SthompsaJAVAC_FLAGS?=@JAVAC_FLAGS@ 572202181Sthompsa 573202181Sthompsa 574202181SthompsaBUILD_JAVA_FLAGS := @BOOTCYCLE_JVM_ARGS_BIG@ 575202181SthompsaBUILD_JAVA=@FIXPATH@ $(BUILD_JDK)/bin/java $(BUILD_JAVA_FLAGS) 576202181Sthompsa 577202181Sthompsa# Use ?= as this can be overridden from bootcycle-spec.gmk 578202181SthompsaBOOT_JDK_MODULAR ?= @BOOT_JDK_MODULAR@ 579202181Sthompsa 580210276SthompsaINTERIM_OVERRIDE_MODULES := java.compiler jdk.compiler \ 581210276Sthompsa jdk.jdeps jdk.javadoc jdk.rmic 582202181Sthompsaifeq ($(BOOT_JDK_MODULAR), true) 583202181Sthompsa INTERIM_OVERRIDE_MODULES_ARGS = $(foreach m, $(INTERIM_OVERRIDE_MODULES), \ 584202181Sthompsa --patch-module $m=$(BUILDTOOLS_OUTPUTDIR)/override_modules/$m) 585202181Sthompsa INTERIM_LANGTOOLS_ARGS = $(INTERIM_OVERRIDE_MODULES_ARGS) 586210276Sthompsa JAVAC_MAIN_CLASS = -m jdk.compiler/com.sun.tools.javac.Main 587202181Sthompsa JAVADOC_MAIN_CLASS = -m jdk.javadoc/jdk.javadoc.internal.tool.Main 588202181Sthompsaelse 589202181Sthompsa INTERIM_OVERRIDE_MODULES_ARGS = \ 590202181Sthompsa -Xbootclasspath/p:$(call PathList, \ 591202181Sthompsa $(addprefix $(BUILDTOOLS_OUTPUTDIR)/override_modules/, \ 592202181Sthompsa $(INTERIM_OVERRIDE_MODULES))) 593202181Sthompsa INTERIM_LANGTOOLS_ARGS = $(INTERIM_OVERRIDE_MODULES_ARGS) \ 594202181Sthompsa -cp $(BUILDTOOLS_OUTPUTDIR)/override_modules/jdk.compiler 595202181Sthompsa JAVAC_MAIN_CLASS = com.sun.tools.javac.Main 596202181Sthompsa JAVADOC_MAIN_CLASS = jdk.javadoc.internal.tool.Main 597202181Sthompsaendif 598202181Sthompsa# You run the new javac using the boot jdk with $(BOOT_JDK)/bin/java $(NEW_JAVAC) ... 599202181Sthompsa# Use = assignment to be able to override in bootcycle-spec.gmk 600202181SthompsaNEW_JAVAC = $(INTERIM_LANGTOOLS_ARGS) $(JAVAC_MAIN_CLASS) 601202181SthompsaNEW_JAVADOC = $(INTERIM_LANGTOOLS_ARGS) $(JAVADOC_MAIN_CLASS) 602202181Sthompsa 603202181SthompsaJLINK_KEEP_PACKAGED_MODULES:=@JLINK_KEEP_PACKAGED_MODULES@ 604202181Sthompsa 605202181Sthompsa# Base flags for RC 606202181Sthompsa# Guarding this against resetting value. Legacy make files include spec multiple 607202181Sthompsa# times. 608202181Sthompsaifndef RC_FLAGS 609202181Sthompsa RC_FLAGS:=@RC_FLAGS@ 610202181Sthompsaendif 611202181Sthompsa 612202181Sthompsa# Tools adhering to a minimal and common standard of posix compliance. 613202181SthompsaAWK:=@AWK@ 614202181SthompsaBASENAME:=@BASENAME@ 615202181SthompsaCAT:=@CAT@ 616210276SthompsaCCACHE:=@CCACHE@ 617202181Sthompsa# CD is going away, but remains to cater for legacy makefiles. 618210276SthompsaCD:=cd 619202181SthompsaCHMOD:=@CHMOD@ 620202181SthompsaCODESIGN:=@CODESIGN@ 621210276SthompsaCOMM:=@COMM@ 622202181SthompsaCP:=@CP@ 623202181SthompsaCPIO:=@CPIO@ 624202181SthompsaCUT:=@CUT@ 625202181SthompsaDATE:=@DATE@ 626202181SthompsaDIFF:=@DIFF@ 627202181SthompsaDIRNAME:=@DIRNAME@ 628202181SthompsaDSYMUTIL:=@DSYMUTIL@ 629202181SthompsaFIND:=@FIND@ 630202181SthompsaFIND_DELETE:=@FIND_DELETE@ 631202181SthompsaECHO:=@ECHO@ 632202181SthompsaEGREP:=@EGREP@ 633202181SthompsaFGREP:=@FGREP@ 634202181SthompsaGREP:=@GREP@ 635202181SthompsaGZIP:=@GZIP@ 636202181SthompsaHEAD:=@HEAD@ 637210276SthompsaLS:=@LS@ 638210276SthompsaLN:=@LN@ 639210276SthompsaMKDIR:=@MKDIR@ 640210276SthompsaMV:=@MV@ 641202181SthompsaNAWK:=@NAWK@ 642210276SthompsaNICE:=@NICE@ 643202181SthompsaPATCH:=@PATCH@ 644202181SthompsaPRINTF:=@PRINTF@ 645210276SthompsaPWD:=@THEPWDCMD@ 646210276SthompsaRM:=@RM@ 647210276SthompsaRMDIR:=@RMDIR@ 648210276SthompsaSED:=@SED@ 649210276SthompsaSH:=@SH@ 650210276SthompsaSORT:=@SORT@ 651210276SthompsaTAR:=@TAR@ 652202181SthompsaTAIL:=@TAIL@ 653210276SthompsaTEE:=@TEE@ 654202181SthompsaTIME:=@TIME@ 655210276SthompsaIS_GNU_TIME:=@IS_GNU_TIME@ 656202181SthompsaTR:=@TR@ 657202181SthompsaTOUCH:=@TOUCH@ 658202181SthompsaUNIQ:=@UNIQ@ 659210276SthompsaWC:=@WC@ 660210276SthompsaXARGS:=@XARGS@ 661202181SthompsaZIPEXE:=@ZIPEXE@ 662202181SthompsaUNZIP:=@UNZIP@ 663202181SthompsaMT:=@FIXPATH@ @MT@ 664202181SthompsaRC:=@FIXPATH@ @RC@ 665202181SthompsaDUMPBIN:=@FIXPATH@ @DUMPBIN@ 666202181SthompsaCYGPATH:=@CYGPATH@ 667202181SthompsaLDD:=@LDD@ 668202181SthompsaOTOOL:=@OTOOL@ 669202181SthompsaREADELF:=@READELF@ 670202181SthompsaEXPR:=@EXPR@ 671202181SthompsaFILE:=@FILE@ 672202181SthompsaHG:=@HG@ 673202181SthompsaOBJCOPY:=@OBJCOPY@ 674202181SthompsaSETFILE:=@SETFILE@ 675202181SthompsaXATTR:=@XATTR@ 676202181SthompsaJT_HOME:=@JT_HOME@ 677202181SthompsaJTREGEXE:=@JTREGEXE@ 678202181SthompsaXCODEBUILD=@XCODEBUILD@ 679202181SthompsaDTRACE := @DTRACE@ 680202181SthompsaFIXPATH:=@FIXPATH@ 681202181Sthompsa 682202181SthompsaTAR_TYPE:=@TAR_TYPE@ 683202181SthompsaTAR_CREATE_EXTRA_PARAM:=@TAR_CREATE_EXTRA_PARAM@ 684202181SthompsaTAR_INCLUDE_PARAM:=@TAR_INCLUDE_PARAM@ 685202181SthompsaTAR_SUPPORTS_TRANSFORM:=@TAR_SUPPORTS_TRANSFORM@ 686202181Sthompsa 687202181Sthompsa# Build setup 688202181SthompsaENABLE_AOT:=@ENABLE_AOT@ 689202181SthompsaENABLE_JFR=@ENABLE_JFR@ 690202181SthompsaENABLE_INTREE_EC=@ENABLE_INTREE_EC@ 691202181SthompsaUSE_EXTERNAL_LIBJPEG:=@USE_EXTERNAL_LIBJPEG@ 692210276SthompsaUSE_EXTERNAL_LIBGIF:=@USE_EXTERNAL_LIBGIF@ 693210276SthompsaUSE_EXTERNAL_LIBZ:=@USE_EXTERNAL_LIBZ@ 694210276SthompsaLIBZIP_CAN_USE_MMAP:=@LIBZIP_CAN_USE_MMAP@ 695210276SthompsaMSVCR_DLL:=@MSVCR_DLL@ 696202181SthompsaMSVCP_DLL:=@MSVCP_DLL@ 697202181SthompsaSTLPORT_LIB:=@STLPORT_LIB@ 698202181Sthompsa 699202181Sthompsa#################################################### 700202181Sthompsa# 701202181Sthompsa# INSTALLATION 702202181Sthompsa# 703202181Sthompsa 704202181Sthompsa# Common prefix for all installed files. Defaults to /usr/local, 705202181Sthompsa# but /opt/myjdk is another common version. 706202181SthompsaINSTALL_PREFIX=@prefix@ 707210276Sthompsa 708210276Sthompsa# Directories containing architecture-dependent files should be relative to exec_prefix 709210276SthompsaINSTALL_EXECPREFIX=@exec_prefix@ 710210276Sthompsa 711210276Sthompsa# java,javac,javah,javap etc are installed here. 712210276SthompsaINSTALL_BINDIR=@bindir@ 713210276Sthompsa 714210276Sthompsa# Read only architecture-independent data 715210276SthompsaINSTALL_DATADIR=@datadir@ 716210276Sthompsa 717210276Sthompsa# Root of above. 718210276SthompsaINSTALL_DATAROOTDIR=@datarootdir@ 719210276Sthompsa 720202181Sthompsa# Doc files, other than info and man. 721202181SthompsaINSTALL_DOCDIR=@docdir@ 722202181Sthompsa 723202181Sthompsa# Html documentation 724202181SthompsaINSTALL_HTMLDIR=@htmldir@ 725202181Sthompsa 726202181Sthompsa# Installing C header files, JNI headers for example. 727202181SthompsaINSTALL_INCLUDEDIR=@includedir@ 728202181Sthompsa 729202181Sthompsa# Installing library files.... 730202181SthompsaINSTALL_INCLUDEDIR=@libdir@ 731202181Sthompsa 732202181Sthompsa# Executables that other programs run. 733202181SthompsaINSTALL_LIBEXECDIR=@libexecdir@ 734202181Sthompsa 735202181Sthompsa# Locale-dependent but architecture-independent data, such as message catalogs. 736202181SthompsaINSTALL_LOCALEDIR=@localedir@ 737202181Sthompsa 738202181Sthompsa# Modifiable single-machine data 739202181SthompsaINSTALL_LOCALSTATEDIR=@localstatedir@ 740202181Sthompsa 741202181Sthompsa# Man pages 742202181SthompsaINSTALL_MANDIR=@mandir@ 743202181Sthompsa 744202181Sthompsa# Modifiable architecture-independent data. 745202181SthompsaINSTALL_SHAREDSTATEDIR=@sharedstatedir@ 746202181Sthompsa 747202181Sthompsa# Read-only single-machine data 748202181SthompsaINSTALL_SYSCONFDIR=@sysconfdir@ 749202181Sthompsa 750202181Sthompsa#################################################### 751202181Sthompsa# 752202181Sthompsa# Libraries 753202181Sthompsa# 754202181Sthompsa 755202181SthompsaUSE_EXTERNAL_LCMS:=@USE_EXTERNAL_LCMS@ 756202181SthompsaLCMS_CFLAGS:=@LCMS_CFLAGS@ 757202181SthompsaLCMS_LIBS:=@LCMS_LIBS@ 758202181Sthompsa 759202181SthompsaUSE_EXTERNAL_LIBPNG:=@USE_EXTERNAL_LIBPNG@ 760202181SthompsaPNG_LIBS:=@PNG_LIBS@ 761202181SthompsaPNG_CFLAGS:=@PNG_CFLAGS@ 762202181Sthompsa 763202181SthompsaELF_CFLAGS:=@ELF_CFLAGS@ 764202181SthompsaELF_LIBS:=@ELF_LIBS@ 765202181Sthompsa 766202181Sthompsa#################################################### 767202181Sthompsa# 768202181Sthompsa# Misc 769202181Sthompsa# 770202181Sthompsa 771202181SthompsaINCLUDE_SA=@INCLUDE_SA@ 772202181SthompsaINCLUDE_GRAAL=@INCLUDE_GRAAL@ 773202181Sthompsa 774202181SthompsaOS_VERSION_MAJOR:=@OS_VERSION_MAJOR@ 775202181SthompsaOS_VERSION_MINOR:=@OS_VERSION_MINOR@ 776202181SthompsaOS_VERSION_MICRO:=@OS_VERSION_MICRO@ 777202181Sthompsa 778202181Sthompsa# Images directory definitions 779202181SthompsaJDK_IMAGE_SUBDIR:=jdk 780202181SthompsaJRE_IMAGE_SUBDIR:=jre 781202181Sthompsa 782202181Sthompsa# Colon left out to be able to override output dir for bootcycle-images 783202181SthompsaJDK_IMAGE_DIR=$(IMAGES_OUTPUTDIR)/$(JDK_IMAGE_SUBDIR) 784202181SthompsaJRE_IMAGE_DIR=$(IMAGES_OUTPUTDIR)/$(JRE_IMAGE_SUBDIR) 785202181Sthompsa 786202181Sthompsa# Test image, as above 787202181SthompsaTEST_IMAGE_SUBDIR:=test 788202181SthompsaTEST_IMAGE_DIR=$(IMAGES_OUTPUTDIR)/$(TEST_IMAGE_SUBDIR) 789202181Sthompsa 790202181Sthompsa# Symbols image 791202181SthompsaSYMBOLS_IMAGE_SUBDIR:=symbols 792202181SthompsaSYMBOLS_IMAGE_DIR=$(IMAGES_OUTPUTDIR)/$(SYMBOLS_IMAGE_SUBDIR) 793202181Sthompsa 794202181Sthompsa# Interim image 795202181SthompsaINTERIM_JMODS_DIR := $(SUPPORT_OUTPUTDIR)/interim-jmods 796202181SthompsaINTERIM_IMAGE_DIR := $(SUPPORT_OUTPUTDIR)/interim-image 797202181Sthompsa 798202181Sthompsa# Docs image 799202181SthompsaDOCS_IMAGE_SUBDIR := docs 800202181SthompsaDOCS_IMAGE_DIR = $(IMAGES_OUTPUTDIR)/$(DOCS_IMAGE_SUBDIR) 801202181Sthompsa 802202181Sthompsa# Macosx bundles directory definitions 803202181SthompsaJDK_MACOSX_BUNDLE_SUBDIR=jdk-bundle 804202181SthompsaJRE_MACOSX_BUNDLE_SUBDIR=jre-bundle 805202181SthompsaJDK_MACOSX_BUNDLE_DIR=$(IMAGES_OUTPUTDIR)/$(JDK_MACOSX_BUNDLE_SUBDIR) 806202181SthompsaJRE_MACOSX_BUNDLE_DIR=$(IMAGES_OUTPUTDIR)/$(JRE_MACOSX_BUNDLE_SUBDIR) 807202181SthompsaJDK_MACOSX_CONTENTS_SUBDIR=jdk-$(VERSION_NUMBER).jdk/Contents 808202181SthompsaJRE_MACOSX_CONTENTS_SUBDIR=jre-$(VERSION_NUMBER).jre/Contents 809202181SthompsaJDK_MACOSX_CONTENTS_DIR=$(JDK_MACOSX_BUNDLE_DIR)/$(JDK_MACOSX_CONTENTS_SUBDIR) 810202181SthompsaJRE_MACOSX_CONTENTS_DIR=$(JRE_MACOSX_BUNDLE_DIR)/$(JRE_MACOSX_CONTENTS_SUBDIR) 811202181Sthompsa 812202181Sthompsa# Bundle names 813202181SthompsaBASE_NAME := $(VERSION_SHORT)+$(VERSION_BUILD)_$(OPENJDK_TARGET_BUNDLE_PLATFORM) 814202181Sthompsaifeq ($(DEBUG_LEVEL), fastdebug) 815202181Sthompsa DEBUG_PART := -debug 816202181Sthompsaelse ifneq ($(DEBUG_LEVEL), release) 817202181Sthompsa DEBUG_PART := -$(DEBUG_LEVEL) 818202181Sthompsaendif 819202181SthompsaJDK_BUNDLE_NAME := jdk-$(BASE_NAME)_bin$(DEBUG_PART).tar.gz 820202181SthompsaJRE_BUNDLE_NAME := jre-$(BASE_NAME)_bin$(DEBUG_PART).tar.gz 821202181SthompsaJDK_SYMBOLS_BUNDLE_NAME := jdk-$(BASE_NAME)_bin$(DEBUG_PART)-symbols.tar.gz 822202181SthompsaJRE_SYMBOLS_BUNDLE_NAME := jre-$(BASE_NAME)_bin$(DEBUG_PART)-symbols.tar.gz 823202181Sthompsaifeq ($(OPENJDK_TARGET_OS), windows) 824202181Sthompsa DEMOS_BUNDLE_NAME := jdk-$(BASE_NAME)_demo$(DEBUG_PART).zip 825202181Sthompsaelse 826202181Sthompsa DEMOS_BUNDLE_NAME := jdk-$(BASE_NAME)_demo$(DEBUG_PART).tar.gz 827202181Sthompsaendif 828202181SthompsaTEST_BUNDLE_NAME := jdk-$(BASE_NAME)_bin-tests$(DEBUG_PART).tar.gz 829202181SthompsaDOCS_BUNDLE_NAME := jdk-$(BASE_NAME)_doc-api-spec$(DEBUG_PART).tar.gz 830202181Sthompsa 831202181SthompsaJDK_BUNDLE := $(BUNDLES_OUTPUTDIR)/$(JDK_BUNDLE_NAME) 832202181SthompsaJRE_BUNDLE := $(BUNDLES_OUTPUTDIR)/$(JRE_BUNDLE_NAME) 833202181SthompsaJDK_SYMBOLS_BUNDLE := $(BUNDLES_OUTPUTDIR)/$(JDK_SYMBOLS_BUNDLE_NAME) 834202181SthompsaJRE_SYMBOLS_BUNDLE := $(BUNDLES_OUTPUTDIR)/$(JRE_SYMBOLS_BUNDLE_NAME) 835202181SthompsaDEMOS_BUNDLE := $(BUNDLES_OUTPUTDIR)/$(DEMOS_BUNDLE_NAME) 836202181SthompsaTEST_BUNDLE := $(BUNDLES_OUTPUTDIR)/$(TEST_BUNDLE_NAME) 837202181SthompsaDOCS_BUNDLE := $(BUNDLES_OUTPUTDIR)/$(DOCS_BUNDLE_NAME) 838202181Sthompsa 839202181Sthompsa# This macro is called to allow inclusion of closed source counterparts. 840202181Sthompsa# Unless overridden in closed sources, it expands to nothing. 841202181Sthompsa# Usage: This function is called in an open makefile, with the following 842202181Sthompsa# arguments: 843202181Sthompsa# $1 the name of the repo, or empty if the top-level repo. 844202181Sthompsa# $2 the name of the makefile 845202181Sthompsadefine IncludeCustomExtension 846202181Sthompsaendef 847202181Sthompsa 848202181Sthompsa# Include the custom-spec.gmk file if it exists 849202181Sthompsa-include $(dir @SPEC@)/custom-spec.gmk 850202181Sthompsa