spec.gmk.in revision 1448:519ce21e5def
1176417Sthompsa# 2176417Sthompsa# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 3176417Sthompsa# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4176417Sthompsa# 5176417Sthompsa# This code is free software; you can redistribute it and/or modify it 6176417Sthompsa# under the terms of the GNU General Public License version 2 only, as 7176417Sthompsa# published by the Free Software Foundation. Oracle designates this 8176417Sthompsa# particular file as subject to the "Classpath" exception as provided 9176417Sthompsa# by Oracle in the LICENSE file that accompanied this code. 10176417Sthompsa# 11176417Sthompsa# This code is distributed in the hope that it will be useful, but WITHOUT 12176417Sthompsa# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13176417Sthompsa# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14176417Sthompsa# version 2 for more details (a copy is included in the LICENSE file that 15176417Sthompsa# accompanied this code). 16176417Sthompsa# 17176417Sthompsa# You should have received a copy of the GNU General Public License version 18176417Sthompsa# 2 along with this work; if not, write to the Free Software Foundation, 19176417Sthompsa# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20176417Sthompsa# 21176417Sthompsa# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22176417Sthompsa# or visit www.oracle.com if you need additional information or have any 23176417Sthompsa# questions. 24176417Sthompsa# 25176417Sthompsa 26176417Sthompsa# Configured @DATE_WHEN_CONFIGURED@ to build 27176417Sthompsa# for target system @OPENJDK_TARGET_OS@-@OPENJDK_TARGET_CPU@ 28176417Sthompsa# (called @OPENJDK_TARGET_AUTOCONF_NAME@ by autoconf) 29176417Sthompsa# on build system @OPENJDK_BUILD_OS@-@OPENJDK_BUILD_CPU@ 30176417Sthompsa# (called @OPENJDK_BUILD_AUTOCONF_NAME@ by autoconf) 31176417Sthompsa# using 'configure @CONFIGURE_COMMAND_LINE@' 32176417Sthompsa 33176417Sthompsa# When calling macros, the spaces between arguments are 34176417Sthompsa# often semantically important! Sometimes we need to subst 35176417Sthompsa# spaces and commas, therefore we need the following macros. 36176417SthompsaX:= 37176417SthompsaSPACE:=$(X) $(X) 38176417SthompsaCOMMA:=, 39176417SthompsaDOLLAR:=$$ 40176417SthompsaHASH:=\# 41176417SthompsaLEFT_PAREN:=( 42176417SthompsaRIGHT_PAREN:=) 43176417SthompsaSQUOTE:=' 44176417Sthompsa#' 45219029SnetchildDQUOTE:=" 46219029Snetchild#" 47176417Sthompsadefine NEWLINE 48176417Sthompsa 49176417Sthompsa 50176417Sthompsaendef 51176417Sthompsa 52176417Sthompsa# The command line given to configure. 53176417SthompsaCONFIGURE_COMMAND_LINE:=@CONFIGURE_COMMAND_LINE@ 54176417Sthompsa 55176417Sthompsa# A self-referential reference to this file. 56176417SthompsaSPEC:=@SPEC@ 57176417Sthompsa 58176417Sthompsa# What make to use for main processing, after bootstrapping top-level Makefile. 59176417SthompsaMAKE := @MAKE@ 60176417Sthompsa 61176417Sthompsa# The default make arguments 62176417SthompsaMAKE_ARGS = $(MAKE_LOG_FLAGS) -r -R -I $(TOPDIR)/make/common SPEC=$(SPEC) \ 63176417Sthompsa MAKE_LOG_FLAGS="$(MAKE_LOG_FLAGS)" LOG_LEVEL=$(LOG_LEVEL) 64176417Sthompsa 65176417SthompsaOUTPUT_SYNC_SUPPORTED:=@OUTPUT_SYNC_SUPPORTED@ 66176417SthompsaOUTPUT_SYNC:=@OUTPUT_SYNC@ 67176417Sthompsa 68176417Sthompsa# Override the shell with bash 69176417SthompsaBASH:=@BASH@ 70176417SthompsaBASH_ARGS:=@BASH_ARGS@ 71176417SthompsaSHELL:=$(BASH) $(BASH_ARGS) 72176417Sthompsa 73176417Sthompsa# The "human readable" name of this configuration 74176417SthompsaCONF_NAME:=@CONF_NAME@ 75176417Sthompsa 76176417Sthompsa# The built jdk will run in this target system. 77176417SthompsaOPENJDK_TARGET_OS:=@OPENJDK_TARGET_OS@ 78176417SthompsaOPENJDK_TARGET_OS_TYPE:=@OPENJDK_TARGET_OS_TYPE@ 79176417SthompsaOPENJDK_TARGET_OS_ENV:=@OPENJDK_TARGET_OS_ENV@ 80176417Sthompsa 81176417SthompsaOPENJDK_TARGET_CPU:=@OPENJDK_TARGET_CPU@ 82176417SthompsaOPENJDK_TARGET_CPU_ARCH:=@OPENJDK_TARGET_CPU_ARCH@ 83176417SthompsaOPENJDK_TARGET_CPU_BITS:=@OPENJDK_TARGET_CPU_BITS@ 84176417SthompsaOPENJDK_TARGET_CPU_ENDIAN:=@OPENJDK_TARGET_CPU_ENDIAN@ 85176417Sthompsa 86176417SthompsaCOMPILE_TYPE:=@COMPILE_TYPE@ 87176417Sthompsa 88176417Sthompsa# Legacy support 89176417SthompsaOPENJDK_TARGET_CPU_ISADIR:=@OPENJDK_TARGET_CPU_ISADIR@ 90176417SthompsaOPENJDK_TARGET_CPU_LIBDIR:=@OPENJDK_TARGET_CPU_LIBDIR@ 91176417SthompsaOPENJDK_TARGET_CPU_LEGACY:=@OPENJDK_TARGET_CPU_LEGACY@ 92176417SthompsaOPENJDK_TARGET_CPU_LEGACY_LIB:=@OPENJDK_TARGET_CPU_LEGACY_LIB@ 93176417SthompsaOPENJDK_TARGET_CPU_OSARCH:=@OPENJDK_TARGET_CPU_OSARCH@ 94176417SthompsaOPENJDK_TARGET_CPU_JLI_CFLAGS:=@OPENJDK_TARGET_CPU_JLI_CFLAGS@ 95176417SthompsaOPENJDK_TARGET_OS_EXPORT_DIR:=@OPENJDK_TARGET_OS_EXPORT_DIR@ 96176417Sthompsa 97176417Sthompsa# We are building on this build system. 98176417Sthompsa# When not cross-compiling, it is the same as the target. 99176417SthompsaOPENJDK_BUILD_OS:=@OPENJDK_BUILD_OS@ 100176417SthompsaOPENJDK_BUILD_OS_TYPE:=@OPENJDK_BUILD_OS_TYPE@ 101176417SthompsaOPENJDK_BUILD_OS_ENV:=@OPENJDK_BUILD_OS_ENV@ 102176417Sthompsa 103176417SthompsaOPENJDK_BUILD_CPU:=@OPENJDK_BUILD_CPU@ 104176417SthompsaOPENJDK_BUILD_CPU_ARCH:=@OPENJDK_BUILD_CPU_ARCH@ 105176417SthompsaOPENJDK_BUILD_CPU_BITS:=@OPENJDK_BUILD_CPU_BITS@ 106176417SthompsaOPENJDK_BUILD_CPU_ENDIAN:=@OPENJDK_BUILD_CPU_ENDIAN@ 107176417Sthompsa 108176417Sthompsa# Legacy OS values for use in release file. 109176417SthompsaREQUIRED_OS_NAME:=@REQUIRED_OS_NAME@ 110176417SthompsaREQUIRED_OS_VERSION:=@REQUIRED_OS_VERSION@ 111176417Sthompsa 112176417Sthompsa@SET_OPENJDK@ 113176417SthompsaLIBM:=-lm 114176417SthompsaLIBDL:=@LIBDL@ 115176417Sthompsa 116176417Sthompsa# colon or semicolon 117176417SthompsaPATH_SEP:=@PATH_SEP@ 118176417Sthompsa 119176417Sthompsa# Save the original path before replacing it with the Visual Studio tools 120176417SthompsaORIGINAL_PATH:=@ORIGINAL_PATH@ 121176417Sthompsaifeq ($(OPENJDK_TARGET_OS), windows) 122176417Sthompsa # On Windows, the Visual Studio toolchain needs the PATH to be adjusted 123176417Sthompsa # to include Visual Studio tools (this needs to be in cygwin/msys style). 124176417Sthompsa export PATH:=@VS_PATH@ 125176417Sthompsaendif 126176417Sthompsa 127176417SthompsaSYSROOT_CFLAGS := @SYSROOT_CFLAGS@ 128176417SthompsaSYSROOT_LDFLAGS := @SYSROOT_LDFLAGS@ 129176417Sthompsa 130176417Sthompsa# Paths to the source code 131176417SthompsaADD_SRC_ROOT:=@ADD_SRC_ROOT@ 132176417SthompsaOVERRIDE_SRC_ROOT:=@OVERRIDE_SRC_ROOT@ 133176417Sthompsa 134176417Sthompsa# The top-level directory of the forest (SRC_ROOT is a traditional alias) 135176417SthompsaTOPDIR:=@TOPDIR@ 136176417Sthompsa# These two versions of TOPDIR are used in string comparisons 137176417SthompsaORIGINAL_TOPDIR:=@ORIGINAL_TOPDIR@ 138176417SthompsaCANONICAL_TOPDIR:=@CANONICAL_TOPDIR@ 139176417SthompsaSRC_ROOT:=@TOPDIR@ 140176417Sthompsa 141176417SthompsaOUTPUT_ROOT:=@OUTPUT_ROOT@ 142176417SthompsaJDK_TOPDIR:=@JDK_TOPDIR@ 143176417SthompsaLANGTOOLS_TOPDIR:=@LANGTOOLS_TOPDIR@ 144176417SthompsaCORBA_TOPDIR:=@CORBA_TOPDIR@ 145176417SthompsaJAXP_TOPDIR:=@JAXP_TOPDIR@ 146176417SthompsaJAXWS_TOPDIR:=@JAXWS_TOPDIR@ 147176417SthompsaHOTSPOT_TOPDIR:=@HOTSPOT_TOPDIR@ 148176417SthompsaNASHORN_TOPDIR:=@NASHORN_TOPDIR@ 149176417SthompsaCOPYRIGHT_YEAR:=@COPYRIGHT_YEAR@ 150176417Sthompsa 151176417Sthompsa# Information gathered from the version.numbers file. 152176417SthompsaJDK_MAJOR_VERSION:=@JDK_MAJOR_VERSION@ 153176417SthompsaJDK_MINOR_VERSION:=@JDK_MINOR_VERSION@ 154176417SthompsaJDK_MICRO_VERSION:=@JDK_MICRO_VERSION@ 155176417SthompsaJDK_UPDATE_VERSION:=@JDK_UPDATE_VERSION@ 156176417SthompsaJDK_BUILD_NUMBER:=@JDK_BUILD_NUMBER@ 157176417SthompsaMILESTONE:=@MILESTONE@ 158176417SthompsaLAUNCHER_NAME:=@LAUNCHER_NAME@ 159176417SthompsaPRODUCT_NAME:=@PRODUCT_NAME@ 160176417SthompsaPRODUCT_SUFFIX:=@PRODUCT_SUFFIX@ 161176417SthompsaJDK_RC_PLATFORM_NAME:=@JDK_RC_PLATFORM_NAME@ 162176417SthompsaCOMPANY_NAME:=@COMPANY_NAME@ 163176417SthompsaMACOSX_BUNDLE_NAME_BASE=@MACOSX_BUNDLE_NAME_BASE@ 164176417SthompsaMACOSX_BUNDLE_ID_BASE=@MACOSX_BUNDLE_ID_BASE@ 165176417SthompsaUSER_RELEASE_SUFFIX=@USER_RELEASE_SUFFIX@ 166176417Sthompsa 167176417Sthompsa# Different version strings generated from the above information. 168176417SthompsaJDK_VERSION:=@JDK_VERSION@ 169176417SthompsaRUNTIME_NAME=$(PRODUCT_NAME) $(PRODUCT_SUFFIX) 170176417SthompsaCOOKED_BUILD_NUMBER:=@COOKED_BUILD_NUMBER@ 171176417Sthompsa# These variables need to be generated here so that MILESTONE and 172176417Sthompsa# JDK_BUILD_NUMBER can be overridden on the make command line. 173176417Sthompsaifeq ($(MILESTONE), fcs) 174176417Sthompsa RELEASE=$(JDK_VERSION)$(BUILD_VARIANT_RELEASE) 175176417Sthompsaelse 176176417Sthompsa RELEASE=$(JDK_VERSION)-$(MILESTONE)$(BUILD_VARIANT_RELEASE) 177176417Sthompsaendif 178176417Sthompsa 179176417Sthompsaifneq ($(USER_RELEASE_SUFFIX), ) 180176417Sthompsa FULL_VERSION=$(RELEASE)-$(USER_RELEASE_SUFFIX)-$(JDK_BUILD_NUMBER) 181176417Sthompsaelse 182176417Sthompsa FULL_VERSION=$(RELEASE)-$(JDK_BUILD_NUMBER) 183176417Sthompsaendif 184176417SthompsaJRE_RELEASE_VERSION:=$(FULL_VERSION) 185176417SthompsaJDK_VERSION_FOR_MANIFEST := $(JDK_MINOR_VERSION).$(JDK_MICRO_VERSION).$(if $(JDK_UPDATE_VERSION),$(JDK_UPDATE_VERSION),0).$(COOKED_BUILD_NUMBER) 186176417Sthompsa 187176417Sthompsa# How to compile the code: release, fastdebug or slowdebug 188176417SthompsaDEBUG_LEVEL:=@DEBUG_LEVEL@ 189176417Sthompsa 190176417Sthompsa# This is the JDK variant to build. 191176417Sthompsa# The JDK variant is a name for a specific set of modules to be compiled for the JDK. 192176417SthompsaJDK_VARIANT:=@JDK_VARIANT@ 193176417Sthompsa 194176417Sthompsa# Should we compile support for running with a graphical UI? (ie headful) 195176417Sthompsa# Should we compile support for running without? (ie headless) 196176417SthompsaSUPPORT_HEADFUL:=@SUPPORT_HEADFUL@ 197176417SthompsaSUPPORT_HEADLESS:=@SUPPORT_HEADLESS@ 198176417Sthompsa# Legacy defines controlled by the SUPPORT_HEADLESS and SUPPORT_HEADFUL options. 199176417Sthompsa@BUILD_HEADLESS@ 200176417Sthompsa 201176417Sthompsa# These are the libjvms that we want to build. 202176417Sthompsa# The java launcher uses the default. 203176417Sthompsa# The others can be selected by specifying -client -server -minimal1 -kernel -zero or -zeroshark 204176417Sthompsa# on the java launcher command line. 205176417SthompsaJVM_VARIANTS:=@JVM_VARIANTS@ 206176417SthompsaJVM_VARIANT_SERVER:=@JVM_VARIANT_SERVER@ 207176417SthompsaJVM_VARIANT_CLIENT:=@JVM_VARIANT_CLIENT@ 208176417SthompsaJVM_VARIANT_MINIMAL1:=@JVM_VARIANT_MINIMAL1@ 209176417SthompsaJVM_VARIANT_KERNEL:=@JVM_VARIANT_KERNEL@ 210176417SthompsaJVM_VARIANT_ZERO:=@JVM_VARIANT_ZERO@ 211176417SthompsaJVM_VARIANT_ZEROSHARK:=@JVM_VARIANT_ZEROSHARK@ 212176417SthompsaJVM_VARIANT_CORE:=@JVM_VARIANT_CORE@ 213176417Sthompsa 214176417Sthompsa# Universal binaries on macosx 215176417SthompsaMACOSX_UNIVERSAL=@MACOSX_UNIVERSAL@ 216176417Sthompsa 217176417Sthompsa# Legacy setting: -debug or -fastdebug 218176417Sthompsa# Still used in version string... 219176417SthompsaBUILD_VARIANT_RELEASE:=@BUILD_VARIANT_RELEASE@ 220176417Sthompsa 221176417Sthompsa# JDK_OUTPUTDIR specifies where a working jvm is built. 222176417Sthompsa# You can run $(JDK_OUTPUTDIR)/bin/java 223176417Sthompsa# Though the layout of the contents of $(JDK_OUTPUTDIR) is not 224176417Sthompsa# yet the same as a default installation. 225176417Sthompsa# 226176417Sthompsa# When you run "make install" it will create the standardized 227176417Sthompsa# layout for the jdk and the jre inside the IMAGES_OUTPUTDIR subdir. 228176417Sthompsa# Then it will copy the contents of the jdk into the installation 229176417Sthompsa# directory. 230176417Sthompsa 231176417SthompsaBUILD_OUTPUT:=@BUILD_OUTPUT@ 232176417Sthompsa# Colon left out to be able to override IMAGES_OUTPUTDIR for bootcycle-images 233176417SthompsaSUPPORT_OUTPUTDIR=$(BUILD_OUTPUT)/support 234176417SthompsaBUILDTOOLS_OUTPUTDIR=$(BUILD_OUTPUT)/buildtools 235176417Sthompsa 236176417SthompsaHOTSPOT_OUTPUTDIR=$(BUILD_OUTPUT)/hotspot 237176417SthompsaJDK_OUTPUTDIR=$(BUILD_OUTPUT)/jdk 238176417SthompsaIMAGES_OUTPUTDIR=$(BUILD_OUTPUT)/images 239176417SthompsaTESTMAKE_OUTPUTDIR=$(BUILD_OUTPUT)/test-make 240176417SthompsaMAKESUPPORT_OUTPUTDIR=$(BUILD_OUTPUT)/make-support 241176417Sthompsa# This does not get overridden in a bootcycle build 242176417SthompsaCONFIGURESUPPORT_OUTPUTDIR:=@CONFIGURESUPPORT_OUTPUTDIR@ 243176417Sthompsa 244176417SthompsaHOTSPOT_DIST=@HOTSPOT_DIST@ 245176417Sthompsa 246176417SthompsaBUILD_HOTSPOT=@BUILD_HOTSPOT@ 247176417Sthompsa 248176417Sthompsa# The boot jdk to use. This is overridden in bootcycle-spec.gmk. Make sure to keep 249176417Sthompsa# it in sync. 250176417SthompsaBOOT_JDK:=@BOOT_JDK@ 251176417Sthompsa 252176417Sthompsa# When compiling Java source to be run by the boot jdk 253176417Sthompsa# use these extra flags, eg -source 6 -target 6 254176417SthompsaBOOT_JDK_SOURCETARGET:=@BOOT_JDK_SOURCETARGET@ 255176417Sthompsa 256176417Sthompsa# Information about the build system 257176417SthompsaNUM_CORES:=@NUM_CORES@ 258176417SthompsaMEMORY_SIZE:=@MEMORY_SIZE@ 259176417Sthompsa# Enable sjavac support = use a javac server, 260176417Sthompsa# multi core javac compilation and dependency tracking. 261176417SthompsaENABLE_SJAVAC:=@ENABLE_SJAVAC@ 262176417Sthompsa# Store sjavac server synchronization files here, and 263176417Sthompsa# the sjavac server log files. 264176417SthompsaSJAVAC_SERVER_DIR=$(MAKESUPPORT_OUTPUTDIR)/javacservers 265176417Sthompsa 266176417Sthompsa# Number of parallel jobs to use for compilation 267176417SthompsaJOBS?=@JOBS@ 268176417Sthompsa 269176417SthompsaFREETYPE_LIBS:=@FREETYPE_LIBS@ 270176417SthompsaFREETYPE_CFLAGS:=@FREETYPE_CFLAGS@ 271176417SthompsaFREETYPE_BUNDLE_LIB_PATH=@FREETYPE_BUNDLE_LIB_PATH@ 272176417SthompsaCUPS_CFLAGS:=@CUPS_CFLAGS@ 273176417SthompsaALSA_LIBS:=@ALSA_LIBS@ 274176417SthompsaALSA_CFLAGS:=@ALSA_CFLAGS@ 275176417Sthompsa 276176417SthompsaPACKAGE_PATH=@PACKAGE_PATH@ 277176417Sthompsa 278176417Sthompsa# Source file for cacerts 279176417SthompsaCACERTS_FILE=@CACERTS_FILE@ 280176417Sthompsa 281176417Sthompsa# Enable unlimited crypto policy 282176417SthompsaUNLIMITED_CRYPTO=@UNLIMITED_CRYPTO@ 283176417Sthompsa 284176417Sthompsa# Enable RMIConnector IIOP transport 285176417SthompsaRMICONNECTOR_IIOP=@RMICONNECTOR_IIOP@ 286176417Sthompsa 287176417SthompsaGCOV_ENABLED=@GCOV_ENABLED@ 288176417Sthompsa 289176417Sthompsa# Necessary additional compiler flags to compile X11 290176417SthompsaX_CFLAGS:=@X_CFLAGS@ 291176417SthompsaX_LIBS:=@X_LIBS@ 292176417Sthompsa 293176417Sthompsa# The lowest required version of macosx to enforce compatiblity for 294176417SthompsaMACOSX_VERSION_MIN=@MACOSX_VERSION_MIN@ 295176417Sthompsa 296176417Sthompsa# Toolchain type: gcc, clang, solstudio, lxc, microsoft... 297176417SthompsaTOOLCHAIN_TYPE:=@TOOLCHAIN_TYPE@ 298176417Sthompsa 299176417Sthompsa# Option used to tell the compiler whether to create 32- or 64-bit executables 300176417SthompsaCOMPILER_TARGET_BITS_FLAG:=@COMPILER_TARGET_BITS_FLAG@ 301176417SthompsaCOMPILER_SUPPORTS_TARGET_BITS_FLAG=@COMPILER_SUPPORTS_TARGET_BITS_FLAG@ 302176417Sthompsa 303176417SthompsaCC_OUT_OPTION:=@CC_OUT_OPTION@ 304176417SthompsaEXE_OUT_OPTION:=@EXE_OUT_OPTION@ 305176417SthompsaLD_OUT_OPTION:=@LD_OUT_OPTION@ 306176417SthompsaAR_OUT_OPTION:=@AR_OUT_OPTION@ 307176417Sthompsa 308176417Sthompsa# Flags used for overriding the default opt setting for a C/C++ source file. 309176417SthompsaC_O_FLAG_HIGHEST:=@C_O_FLAG_HIGHEST@ 310176417SthompsaC_O_FLAG_HI:=@C_O_FLAG_HI@ 311176417SthompsaC_O_FLAG_NORM:=@C_O_FLAG_NORM@ 312176417SthompsaC_O_FLAG_NONE:=@C_O_FLAG_NONE@ 313176417SthompsaCXX_O_FLAG_HIGHEST:=@CXX_O_FLAG_HIGHEST@ 314176417SthompsaCXX_O_FLAG_HI:=@CXX_O_FLAG_HI@ 315176417SthompsaCXX_O_FLAG_NORM:=@CXX_O_FLAG_NORM@ 316176417SthompsaCXX_O_FLAG_NONE:=@CXX_O_FLAG_NONE@ 317176417Sthompsa 318176417SthompsaC_FLAG_DEPS:=@C_FLAG_DEPS@ 319176417SthompsaCXX_FLAG_DEPS:=@CXX_FLAG_DEPS@ 320176417Sthompsa 321176417SthompsaDISABLE_WARNING_PREFIX := @DISABLE_WARNING_PREFIX@ 322176417SthompsaCFLAGS_WARNINGS_ARE_ERRORS:=@CFLAGS_WARNINGS_ARE_ERRORS@ 323176417Sthompsa 324176417SthompsaCFLAGS_CCACHE:=@CFLAGS_CCACHE@ 325176417Sthompsa 326176417Sthompsa# Tools that potentially need to be cross compilation aware. 327176417SthompsaCC:=@FIXPATH@ @CCACHE@ @CC@ 328176417Sthompsa 329176417Sthompsa# CFLAGS used to compile the jdk native libraries (C-code) 330176417SthompsaCFLAGS_JDKLIB:=@CFLAGS_JDKLIB@ 331176417SthompsaCXXFLAGS_JDKLIB:=@CXXFLAGS_JDKLIB@ 332176417Sthompsa 333176417Sthompsa# CFLAGS used to compile the jdk native launchers (C-code) 334176417SthompsaCFLAGS_JDKEXE:=@CFLAGS_JDKEXE@ 335176417SthompsaCXXFLAGS_JDKEXE:=@CXXFLAGS_JDKEXE@ 336176417Sthompsa 337176417SthompsaCXX:=@FIXPATH@ @CCACHE@ @CXX@ 338176417Sthompsa#CXXFLAGS:=@CXXFLAGS@ 339176417Sthompsa 340176417SthompsaCPP:=@FIXPATH@ @CPP@ 341176417Sthompsa#CPPFLAGS:=@CPPFLAGS@ 342176417Sthompsa 343176417Sthompsa# The linker can be gcc or ld on unix systems, or link.exe on windows systems. 344176417SthompsaLD:=@FIXPATH@ @LD@ 345176417Sthompsa 346176417Sthompsa# Xcode SDK path 347176417SthompsaSDKROOT:=@SDKROOT@ 348176417Sthompsa 349176417Sthompsa# The linker on older SuSE distros (e.g. on SLES 10) complains with: 350176417Sthompsa# "Invalid version tag `SUNWprivate_1.1'. Only anonymous version tag is allowed in executable." 351176417Sthompsa# if feeded with a version script which contains named tags. 352176417SthompsaUSING_BROKEN_SUSE_LD:=@USING_BROKEN_SUSE_LD@ 353176417Sthompsa 354176417Sthompsa# LDFLAGS used to link the jdk native libraries (C-code) 355176417SthompsaLDFLAGS_JDKLIB:=@LDFLAGS_JDKLIB@ 356176417SthompsaLDFLAGS_JDKLIB_SUFFIX:=@LDFLAGS_JDKLIB_SUFFIX@ 357176417Sthompsa 358176417Sthompsa# LDFLAGS used to link the jdk native launchers (C-code) 359176417SthompsaLDFLAGS_JDKEXE:=@LDFLAGS_JDKEXE@ 360176417SthompsaLDFLAGS_JDKEXE_SUFFIX:=@LDFLAGS_JDKEXE_SUFFIX@ 361176417Sthompsa 362176417Sthompsa# LDFLAGS specific to C++ linking. 363176417SthompsaLDFLAGS_CXX_JDK:=@LDFLAGS_CXX_JDK@ 364176417Sthompsa 365176417Sthompsa# Sometimes a different linker is needed for c++ libs 366176417SthompsaLDCXX:=@FIXPATH@ @LDCXX@ 367176417Sthompsa# The flags for linking libstdc++ linker. 368176417SthompsaLIBCXX:=@LIBCXX@ 369176417Sthompsa 370176417Sthompsa# Compiler and linker flags used when building native tests 371176417SthompsaCFLAGS_TESTLIB:=@CFLAGS_TESTLIB@ 372176417SthompsaCXXFLAGS_TESTLIB:=@CXXFLAGS_TESTLIB@ 373176417SthompsaCFLAGS_TESTEXE:=@CFLAGS_TESTEXE@ 374176417SthompsaCXXFLAGS_TESTEXE:=@CXXFLAGS_TESTEXE@ 375176417SthompsaLDFLAGS_TESTLIB:=@LDFLAGS_TESTLIB@ 376176417SthompsaLDFLAGS_TESTLIB_SUFFIX:=@LDFLAGS_TESTLIB_SUFFIX@ 377176417SthompsaLDFLAGS_TESTEXE:=@LDFLAGS_TESTEXE@ 378176417SthompsaLDFLAGS_TESTEXE_SUFFIX:=@LDFLAGS_TESTEXE_SUFFIX@ 379176417Sthompsa 380176417Sthompsa# BUILD_CC/BUILD_LD is a compiler/linker that generates code that is runnable on the 381176417Sthompsa# build platform. 382176417SthompsaBUILD_CC:=@FIXPATH@ @BUILD_CC@ 383176417SthompsaBUILD_LD:=@FIXPATH@ @BUILD_LD@ 384176417Sthompsa 385176417SthompsaAS:=@FIXPATH@ @AS@ 386176417Sthompsa 387176417Sthompsa# AR is used to create a static library (is ar in unix, lib.exe in windows) 388176417SthompsaAR:=@FIXPATH@ @AR@ 389176417SthompsaARFLAGS:=@ARFLAGS@ 390176417Sthompsa 391176417SthompsaNM:=@NM@ 392176417SthompsaGNM:=@GNM@ 393176417SthompsaSTRIP:=@STRIP@ 394176417SthompsaMCS:=@MCS@ 395176417Sthompsa 396176417SthompsaLIPO:=@LIPO@ 397176417Sthompsa 398176417Sthompsa# Command to create a shared library 399176417SthompsaSHARED_LIBRARY_FLAGS:=@SHARED_LIBRARY_FLAGS@ 400176417Sthompsa 401176417Sthompsa# Options to linker to specify a mapfile. 402176417Sthompsa# (Note absence of := assignment, because we do not want to evaluate the macro body here) 403176417SthompsaSET_SHARED_LIBRARY_MAPFILE=@SET_SHARED_LIBRARY_MAPFILE@ 404176417Sthompsa 405176417Sthompsa# Options for C/CXX compiler to be used if linking is performed 406176417Sthompsa# using reorder file 407176417SthompsaC_FLAG_REORDER:=@C_FLAG_REORDER@ 408176417SthompsaCXX_FLAG_REORDER:=@CXX_FLAG_REORDER@ 409176417Sthompsa 410176417Sthompsa# 411176417Sthompsa# Options for generating debug symbols 412176417SthompsaENABLE_DEBUG_SYMBOLS:=@ENABLE_DEBUG_SYMBOLS@ 413176417SthompsaCFLAGS_DEBUG_SYMBOLS:=@CFLAGS_DEBUG_SYMBOLS@ 414176417SthompsaCXXFLAGS_DEBUG_SYMBOLS:=@CXXFLAGS_DEBUG_SYMBOLS@ 415176417SthompsaZIP_DEBUGINFO_FILES:=@ZIP_DEBUGINFO_FILES@ 416176417Sthompsa 417176417Sthompsa# 418176417Sthompsa# Compress (or not) jars 419176417SthompsaCOMPRESS_JARS=@COMPRESS_JARS@ 420176417Sthompsa 421176417Sthompsa# Options to linker to specify the library name. 422176417Sthompsa# (Note absence of := assignment, because we do not want to evaluate the macro body here) 423176417SthompsaSET_SHARED_LIBRARY_NAME=@SET_SHARED_LIBRARY_NAME@ 424176417Sthompsa 425176417Sthompsa# Set origin using the linker, ie use the relative path to the dependent library to find the dependees. 426176417Sthompsa# (Note absence of := assignment, because we do not want to evaluate the macro body here) 427176417SthompsaSET_SHARED_LIBRARY_ORIGIN=@SET_SHARED_LIBRARY_ORIGIN@ 428176417SthompsaSET_EXECUTABLE_ORIGIN=@SET_EXECUTABLE_ORIGIN@ 429176417Sthompsa 430176417Sthompsa# Different OS:es have different ways of naming shared libraries. 431176417Sthompsa# The SHARED_LIBRARY macro takes "verify" as and argument and returns: 432176417Sthompsa# "libverify.so" or "libverify.dylib" or "verify.dll" depending on platform. 433176417Sthompsa# (Note absence of := assignment, because we do not want to evaluate the macro body here) 434176417SthompsaSHARED_LIBRARY=@SHARED_LIBRARY@ 435176417SthompsaSTATIC_LIBRARY=@STATIC_LIBRARY@ 436176417SthompsaLIBRARY_PREFIX:=@LIBRARY_PREFIX@ 437176417SthompsaSHARED_LIBRARY_SUFFIX:=@SHARED_LIBRARY_SUFFIX@ 438176417SthompsaSTATIC_LIBRARY_SUFFIX:=@STATIC_LIBRARY_SUFFIX@ 439176417SthompsaEXE_SUFFIX:=@EXE_SUFFIX@ 440176417SthompsaOBJ_SUFFIX:=@OBJ_SUFFIX@ 441176417Sthompsa 442176417SthompsaPOST_STRIP_CMD:=@POST_STRIP_CMD@ 443176417SthompsaPOST_MCS_CMD:=@POST_MCS_CMD@ 444176417Sthompsa 445176417SthompsaJAVA_FLAGS:=@JAVA_FLAGS@ 446176417SthompsaJAVA_FLAGS_BIG:=@JAVA_FLAGS_BIG@ 447176417SthompsaJAVA_FLAGS_SMALL:=@JAVA_FLAGS_SMALL@ 448176417SthompsaJAVA_TOOL_FLAGS_SMALL:=@JAVA_TOOL_FLAGS_SMALL@ 449176417SthompsaSJAVAC_SERVER_JAVA_FLAGS:=@SJAVAC_SERVER_JAVA_FLAGS@ 450176417Sthompsa 451176417Sthompsa# The *_CMD variables are defined separately to be easily overridden in bootcycle-spec.gmk 452176417Sthompsa# for bootcycle-images build. Make sure to keep them in sync. Do not use the *_CMD 453176417Sthompsa# versions of the variables directly. 454176417SthompsaJAVA_CMD:=@JAVA@ 455176417SthompsaJAVAC_CMD:=@JAVAC@ 456176417SthompsaJAVAH_CMD:=@JAVAH@ 457176417SthompsaJAR_CMD:=@JAR@ 458176417SthompsaNATIVE2ASCII_CMD:=@NATIVE2ASCII@ 459176417SthompsaJARSIGNER_CMD:=@JARSIGNER@ 460176417SthompsaSJAVAC_SERVER_JAVA_CMD:=@SJAVAC_SERVER_JAVA@ 461176417Sthompsa# These variables are meant to be used. They are defined with = instead of := to make 462176417Sthompsa# it possible to override only the *_CMD variables. 463176417SthompsaJAVA=@FIXPATH@ $(JAVA_CMD) $(JAVA_FLAGS_BIG) $(JAVA_FLAGS) 464176417SthompsaJAVA_SMALL=@FIXPATH@ $(JAVA_CMD) $(JAVA_FLAGS_SMALL) $(JAVA_FLAGS) 465176417SthompsaJAVAC=@FIXPATH@ $(JAVAC_CMD) 466176417SthompsaJAVAH=@FIXPATH@ $(JAVAH_CMD) 467176417SthompsaJAR=@FIXPATH@ $(JAR_CMD) 468176417SthompsaNATIVE2ASCII=@FIXPATH@ $(NATIVE2ASCII_CMD) $(JAVA_TOOL_FLAGS_SMALL) 469176417SthompsaJARSIGNER=@FIXPATH@ $(JARSIGNER_CMD) 470176417Sthompsa# A specific java binary with specific options can be used to run 471176417Sthompsa# the long running background sjavac servers and other long running tasks. 472176417SthompsaSJAVAC_SERVER_JAVA=@FIXPATH@ $(SJAVAC_SERVER_JAVA_CMD) $(SJAVAC_SERVER_JAVA_FLAGS) 473176417Sthompsa 474176417Sthompsa# Hotspot sets this variable before reading the SPEC when compiling sa-jdi.jar. Avoid 475176417Sthompsa# overriding that value by using ?=. 476176417SthompsaJAVAC_FLAGS?=@JAVAC_FLAGS@ 477176417Sthompsa 478176417Sthompsa# You run the new javac using the boot jdk with $(BOOT_JDK)/bin/java $(NEW_JAVAC) ... 479176417Sthompsa# Use = assignment to be able to override in bootcycle-spec.gmk 480176417SthompsaINTERIM_LANGTOOLS_JAR = $(BUILDTOOLS_OUTPUTDIR)/interim_langtools.jar 481176417SthompsaINTERIM_LANGTOOLS_ARGS = "-Xbootclasspath/p:$(INTERIM_LANGTOOLS_JAR)" -cp $(INTERIM_LANGTOOLS_JAR) 482176417SthompsaNEW_JAVAC = $(INTERIM_LANGTOOLS_ARGS) com.sun.tools.javac.Main 483176417SthompsaNEW_JAVADOC = $(INTERIM_LANGTOOLS_ARGS) com.sun.tools.javadoc.Main 484176417Sthompsa 485176417Sthompsa# The interim corba jar is needed for running rmic 486176417SthompsaINTERIM_CORBA_JAR = $(BUILDTOOLS_OUTPUTDIR)/interim_corba.jar 487176417Sthompsa 488176417Sthompsa# Base flags for RC 489176417Sthompsa# Guarding this against resetting value. Legacy make files include spec multiple 490176417Sthompsa# times. 491176417Sthompsaifndef RC_FLAGS 492176417Sthompsa RC_FLAGS:=@RC_FLAGS@ 493176417Sthompsaendif 494176417Sthompsa 495176417Sthompsa# Tools adhering to a minimal and common standard of posix compliance. 496176417SthompsaAWK:=@AWK@ 497176417SthompsaBASENAME:=@BASENAME@ 498176417SthompsaCAT:=@CAT@ 499176417SthompsaCCACHE:=@CCACHE@ 500176417Sthompsa# CD is going away, but remains to cater for legacy makefiles. 501176417SthompsaCD:=cd 502176417SthompsaCHMOD:=@CHMOD@ 503176417SthompsaCODESIGN:=@CODESIGN@ 504176417SthompsaCOMM:=@COMM@ 505176417SthompsaCP:=@CP@ 506176417SthompsaCPIO:=@CPIO@ 507176417SthompsaCUT:=@CUT@ 508176417SthompsaDATE:=@DATE@ 509176417SthompsaDIFF:=@DIFF@ 510176417SthompsaDIRNAME:=@DIRNAME@ 511176417SthompsaDSYMUTIL:=@DSYMUTIL@ 512176417SthompsaFIND:=@FIND@ 513176417SthompsaFIND_DELETE:=@FIND_DELETE@ 514176417SthompsaECHO:=@ECHO@ 515176417SthompsaEGREP:=@EGREP@ 516176417SthompsaFGREP:=@FGREP@ 517176417SthompsaGREP:=@GREP@ 518176417SthompsaHEAD:=@HEAD@ 519176417SthompsaLS:=@LS@ 520176417SthompsaLN:=@LN@ 521176417SthompsaMKDIR:=@MKDIR@ 522176417SthompsaMV:=@MV@ 523176417SthompsaNAWK:=@NAWK@ 524176417SthompsaPRINTF:=@PRINTF@ 525176417SthompsaPWD:=@THEPWDCMD@ 526176417SthompsaRM:=@RM@ 527176417SthompsaSED:=@SED@ 528176417SthompsaSH:=@SH@ 529176417SthompsaSORT:=@SORT@ 530176417SthompsaTAR:=@TAR@ 531176417SthompsaTAIL:=@TAIL@ 532176417SthompsaTEE:=@TEE@ 533176417SthompsaTIME:=@TIME@ 534176417SthompsaIS_GNU_TIME:=@IS_GNU_TIME@ 535176417SthompsaTR:=@TR@ 536176417SthompsaTOUCH:=@TOUCH@ 537176417SthompsaUNIQ:=@UNIQ@ 538176417SthompsaWC:=@WC@ 539176417SthompsaXARGS:=@XARGS@ 540176417SthompsaZIPEXE:=@ZIP@ 541176417SthompsaZIP:=@ZIP@ 542176417SthompsaUNZIP:=@UNZIP@ 543176417SthompsaMT:=@FIXPATH@ @MT@ 544176417SthompsaRC:=@FIXPATH@ @RC@ 545176417SthompsaDUMPBIN:=@FIXPATH@ @DUMPBIN@ 546176417SthompsaCYGPATH:=@CYGPATH@ 547176417SthompsaLDD:=@LDD@ 548176417SthompsaOTOOL:=@OTOOL@ 549176417SthompsaREADELF:=@READELF@ 550176417SthompsaEXPR:=@EXPR@ 551176417SthompsaFILE:=@FILE@ 552176417SthompsaHG:=@HG@ 553176417SthompsaOBJCOPY:=@OBJCOPY@ 554176417SthompsaSETFILE:=@SETFILE@ 555176417SthompsaXATTR:=@XATTR@ 556176417SthompsaJT_HOME:=@JT_HOME@ 557176417SthompsaJTREGEXE:=@JTREGEXE@ 558176417SthompsaXCODEBUILD=@XCODEBUILD@ 559176417SthompsaFIXPATH:=@FIXPATH@ 560176417Sthompsa 561176417Sthompsa# Build setup 562176417SthompsaENABLE_JFR=@ENABLE_JFR@ 563176417SthompsaENABLE_INTREE_EC=@ENABLE_INTREE_EC@ 564176417SthompsaUSE_EXTERNAL_LIBJPEG:=@USE_EXTERNAL_LIBJPEG@ 565176417SthompsaUSE_EXTERNAL_LIBGIF:=@USE_EXTERNAL_LIBGIF@ 566176417SthompsaUSE_EXTERNAL_LIBZ:=@USE_EXTERNAL_LIBZ@ 567176417SthompsaLIBZIP_CAN_USE_MMAP:=@LIBZIP_CAN_USE_MMAP@ 568176417SthompsaMSVCR_DLL:=@MSVCR_DLL@ 569176417SthompsaMSVCP_DLL:=@MSVCP_DLL@ 570176417Sthompsa 571176417Sthompsa 572176417Sthompsa# ADD_SRCS takes a single argument with source roots 573176417Sthompsa# and appends any corresponding source roots found 574176417Sthompsa# below --with-add-source-root and below 575176417Sthompsa# --with-override-source-root. It is the responsibility 576176417Sthompsa# of the next macro to get rid of superfluous files. 577176417SthompsaADD_SRCS=$1 578176417Sthompsaifneq (,$(ADD_SRC_ROOT)) 579176417Sthompsa # Append wildcard rule to pickup any matching source roots found below ADD_SRC_ROOT 580176417Sthompsa ADD_SRCS+=$(wildcard $(subst $(SRC_ROOT),$(ADD_SRC_ROOT),$1)) 581176417Sthompsaendif 582176417Sthompsaifneq (,$(OVERRIDE_SRC_ROOT)) 583176417Sthompsa # Append wildcard rule to pickup any matching source roots found below OVERRIDE_SRC_ROOT 584176417Sthompsa ADD_SRCS+=$(wildcard $(subst $(SRC_ROOT),$(OVERRIDE_SRC_ROOT),$1)) 585176417Sthompsaendif 586176417Sthompsa 587176417Sthompsa# OVR_SRCS creates a filter expression to filter out sources in 588176417Sthompsa# the original source directory that lie inside directories below 589176417Sthompsa# --with-override-source-root. 590176417Sthompsa# Use := here since we want to scan for these files here. To avoid recomputation later. 591176417Sthompsa# We cannot do the scan in configure, since that would force us to rerun configure when 592176417Sthompsa# we add overridden sources. 593176417Sthompsaifneq (,$(OVERRIDE_SRC_ROOT)) 594176417Sthompsa OVR_SRCS:=$(addsuffix %,$(subst $(OVERRIDE_SRC_ROOT),$(SRC_ROOT),$(sort $(dir $(shell $(FIND) $(OVERRIDE_SRC_ROOT) -type f))))) 595176417Sthompsaelse 596176417Sthompsa OVR_SRCS:= 597176417Sthompsaendif 598176417Sthompsa 599176417Sthompsa#################################################### 600176417Sthompsa# 601176417Sthompsa# INSTALLATION 602176417Sthompsa# 603176417Sthompsa 604176417Sthompsa# Common prefix for all installed files. Defaults to /usr/local, 605176417Sthompsa# but /opt/myjdk is another common version. 606176417SthompsaINSTALL_PREFIX=@prefix@ 607176417Sthompsa 608176417Sthompsa# Directories containing architecture-dependent files should be relative to exec_prefix 609176417SthompsaINSTALL_EXECPREFIX=@exec_prefix@ 610176417Sthompsa 611176417Sthompsa# java,javac,javah,javap etc are installed here. 612176417SthompsaINSTALL_BINDIR=@bindir@ 613176417Sthompsa 614176417Sthompsa# Read only architecture-independent data 615176417SthompsaINSTALL_DATADIR=@datadir@ 616176417Sthompsa 617176417Sthompsa# Root of above. 618176417SthompsaINSTALL_DATAROOTDIR=@datarootdir@ 619176417Sthompsa 620176417Sthompsa# Doc files, other than info and man. 621176417SthompsaINSTALL_DOCDIR=@docdir@ 622176417Sthompsa 623176417Sthompsa# Html documentation 624176417SthompsaINSTALL_HTMLDIR=@htmldir@ 625176417Sthompsa 626176417Sthompsa# Installing C header files, JNI headers for example. 627176417SthompsaINSTALL_INCLUDEDIR=@includedir@ 628176417Sthompsa 629176417Sthompsa# Installing library files.... 630176417SthompsaINSTALL_INCLUDEDIR=@libdir@ 631176417Sthompsa 632176417Sthompsa# Executables that other programs run. 633176417SthompsaINSTALL_LIBEXECDIR=@libexecdir@ 634176417Sthompsa 635176417Sthompsa# Locale-dependent but architecture-independent data, such as message catalogs. 636176417SthompsaINSTALL_LOCALEDIR=@localedir@ 637176417Sthompsa 638176417Sthompsa# Modifiable single-machine data 639176417SthompsaINSTALL_LOCALSTATEDIR=@localstatedir@ 640176417Sthompsa 641176417Sthompsa# Man pages 642176417SthompsaINSTALL_MANDIR=@mandir@ 643176417Sthompsa 644176417Sthompsa# Modifiable architecture-independent data. 645176417SthompsaINSTALL_SHAREDSTATEDIR=@sharedstatedir@ 646176417Sthompsa 647176417Sthompsa# Read-only single-machine data 648176417SthompsaINSTALL_SYSCONFDIR=@sysconfdir@ 649176417Sthompsa 650176417Sthompsa#################################################### 651176417Sthompsa# 652176417Sthompsa# Libraries 653176417Sthompsa# 654176417Sthompsa 655176417SthompsaUSE_EXTERNAL_LCMS:=@USE_EXTERNAL_LCMS@ 656176417SthompsaLCMS_CFLAGS:=@LCMS_CFLAGS@ 657176417SthompsaLCMS_LIBS:=@LCMS_LIBS@ 658176417Sthompsa 659176417SthompsaUSE_EXTERNAL_LIBPNG:=@USE_EXTERNAL_LIBPNG@ 660176417SthompsaPNG_LIBS:=@PNG_LIBS@ 661176417SthompsaPNG_CFLAGS:=@PNG_CFLAGS@ 662176417Sthompsa 663176417Sthompsa 664176417Sthompsa#################################################### 665176417Sthompsa# 666176417Sthompsa# Misc 667176417Sthompsa# 668176417Sthompsa 669176417Sthompsa# Name of Service Agent library 670176417SthompsaSALIB_NAME=@SALIB_NAME@ 671176417Sthompsa 672176417SthompsaINCLUDE_SA=@INCLUDE_SA@ 673176417Sthompsa 674176417SthompsaOS_VERSION_MAJOR:=@OS_VERSION_MAJOR@ 675176417SthompsaOS_VERSION_MINOR:=@OS_VERSION_MINOR@ 676176417SthompsaOS_VERSION_MICRO:=@OS_VERSION_MICRO@ 677176417Sthompsa 678176417Sthompsa# Images directory definitions 679176417SthompsaJDK_IMAGE_SUBDIR:=jdk 680176417SthompsaJRE_IMAGE_SUBDIR:=jre 681176417Sthompsa 682176417Sthompsa# Colon left out to be able to override output dir for bootcycle-images 683176417SthompsaJDK_IMAGE_DIR=$(IMAGES_OUTPUTDIR)/$(JDK_IMAGE_SUBDIR) 684176417SthompsaJRE_IMAGE_DIR=$(IMAGES_OUTPUTDIR)/$(JRE_IMAGE_SUBDIR) 685176417Sthompsa 686176417Sthompsa# Test image, as above 687176417SthompsaTEST_IMAGE_SUBDIR:=test 688176417SthompsaTEST_IMAGE_DIR=$(IMAGES_OUTPUTDIR)/$(TEST_IMAGE_SUBDIR) 689176417Sthompsa 690176417Sthompsa# Symbols image 691176417SthompsaSYMBOLS_IMAGE_SUBDIR:=symbols 692176417SthompsaSYMBOLS_IMAGE_DIR=$(IMAGES_OUTPUTDIR)/$(SYMBOLS_IMAGE_SUBDIR) 693176417Sthompsa 694176417Sthompsa# Macosx bundles directory definitions 695176417SthompsaJDK_BUNDLE_SUBDIR=jdk-bundle/jdk$(JDK_VERSION).jdk/Contents 696176417SthompsaJRE_BUNDLE_SUBDIR=jre-bundle/jre$(JDK_VERSION).jre/Contents 697176417SthompsaJDK_BUNDLE_DIR=$(IMAGES_OUTPUTDIR)/$(JDK_BUNDLE_SUBDIR) 698176417SthompsaJRE_BUNDLE_DIR=$(IMAGES_OUTPUTDIR)/$(JRE_BUNDLE_SUBDIR) 699176417Sthompsa 700176417Sthompsa# This macro is called to allow inclusion of closed source counterparts. 701176417Sthompsa# Unless overridden in closed sources, it expands to nothing. 702176417Sthompsa# Usage: This function is called in an open makefile, with the following 703176417Sthompsa# arguments: 704176417Sthompsa# $1 the name of the repo, or empty if the top-level repo. 705176417Sthompsa# $2 the name of the makefile 706176417Sthompsadefine IncludeCustomExtension 707176417Sthompsaendef 708176417Sthompsa 709176417Sthompsa# Include the custom-spec.gmk file if it exists 710176417Sthompsa-include $(dir @SPEC@)/custom-spec.gmk 711176417Sthompsa