1 #
   2 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
   3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4 #
   5 # This code is free software; you can redistribute it and/or modify it
   6 # under the terms of the GNU General Public License version 2 only, as
   7 # published by the Free Software Foundation.  Oracle designates this
   8 # particular file as subject to the "Classpath" exception as provided
   9 # by Oracle in the LICENSE file that accompanied this code.
  10 #
  11 # This code is distributed in the hope that it will be useful, but WITHOUT
  12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14 # version 2 for more details (a copy is included in the LICENSE file that
  15 # accompanied this code).
  16 #
  17 # You should have received a copy of the GNU General Public License version
  18 # 2 along with this work; if not, write to the Free Software Foundation,
  19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20 #
  21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22 # or visit www.oracle.com if you need additional information or have any
  23 # questions.
  24 #
  25 
  26 # Configured @DATE_WHEN_CONFIGURED@ to build
  27 # for target system @OPENJDK_TARGET_OS@-@OPENJDK_TARGET_CPU@
  28 #   (called @OPENJDK_TARGET_AUTOCONF_NAME@ by autoconf)
  29 # on build system @OPENJDK_BUILD_OS@-@OPENJDK_BUILD_CPU@
  30 #   (called @OPENJDK_BUILD_AUTOCONF_NAME@ by autoconf)
  31 # using 'configure @CONFIGURE_COMMAND_LINE@'
  32 
  33 # The command line given to configure.
  34 CONFIGURE_COMMAND_LINE:=@CONFIGURE_COMMAND_LINE@
  35 
  36 # A self-referential reference to this file.
  37 SPEC:=@SPEC@
  38 
  39 # SPACE and COMMA are defined in MakeBase.gmk, but they are also used in
  40 # some definitions here, and are needed if MakeBase.gmk is not included before
  41 # this file.
  42 X:=
  43 SPACE:=$(X) $(X)
  44 COMMA:=,
  45 
  46 # What make to use for main processing, after bootstrapping top-level Makefile.
  47 MAKE := @MAKE@
  48 
  49 # The default make arguments
  50 MAKE_ARGS = $(MAKE_LOG_FLAGS) -r -R -I $(TOPDIR)/make/common SPEC=$(SPEC) \
  51     MAKE_LOG_FLAGS="$(MAKE_LOG_FLAGS)" $(MAKE_LOG_VARS)
  52 
  53 OUTPUT_SYNC_SUPPORTED:=@OUTPUT_SYNC_SUPPORTED@
  54 OUTPUT_SYNC:=@OUTPUT_SYNC@
  55 
  56 # Override the shell with bash
  57 BASH:=@BASH@
  58 BASH_ARGS:=@BASH_ARGS@
  59 SHELL:=$(BASH) $(BASH_ARGS)
  60 
  61 # The "human readable" name of this configuration
  62 CONF_NAME:=@CONF_NAME@
  63 
  64 # The built jdk will run in this target system.
  65 OPENJDK_TARGET_OS:=@OPENJDK_TARGET_OS@
  66 OPENJDK_TARGET_OS_TYPE:=@OPENJDK_TARGET_OS_TYPE@
  67 OPENJDK_TARGET_OS_ENV:=@OPENJDK_TARGET_OS_ENV@
  68 
  69 OPENJDK_TARGET_CPU:=@OPENJDK_TARGET_CPU@
  70 OPENJDK_TARGET_CPU_ARCH:=@OPENJDK_TARGET_CPU_ARCH@
  71 OPENJDK_TARGET_CPU_BITS:=@OPENJDK_TARGET_CPU_BITS@
  72 OPENJDK_TARGET_CPU_ENDIAN:=@OPENJDK_TARGET_CPU_ENDIAN@
  73 
  74 COMPILE_TYPE:=@COMPILE_TYPE@
  75 
  76 # Legacy support
  77 OPENJDK_TARGET_CPU_ISADIR:=@OPENJDK_TARGET_CPU_ISADIR@
  78 OPENJDK_TARGET_CPU_LEGACY:=@OPENJDK_TARGET_CPU_LEGACY@
  79 OPENJDK_TARGET_CPU_LEGACY_LIB:=@OPENJDK_TARGET_CPU_LEGACY_LIB@
  80 OPENJDK_TARGET_CPU_OSARCH:=@OPENJDK_TARGET_CPU_OSARCH@
  81 OPENJDK_TARGET_OS_EXPORT_DIR:=@OPENJDK_TARGET_OS_EXPORT_DIR@
  82 
  83 HOTSPOT_TARGET_OS := @HOTSPOT_TARGET_OS@
  84 HOTSPOT_TARGET_OS_TYPE := @HOTSPOT_TARGET_OS_TYPE@
  85 
  86 HOTSPOT_TARGET_CPU := @HOTSPOT_TARGET_CPU@
  87 HOTSPOT_TARGET_CPU_ARCH := @HOTSPOT_TARGET_CPU_ARCH@
  88 HOTSPOT_TARGET_CPU_DEFINE := @HOTSPOT_TARGET_CPU_DEFINE@
  89 
  90 OPENJDK_TARGET_BUNDLE_PLATFORM:=@OPENJDK_TARGET_BUNDLE_PLATFORM@
  91 JDK_ARCH_ABI_PROP_NAME := @JDK_ARCH_ABI_PROP_NAME@
  92 
  93 # We are building on this build system.
  94 # When not cross-compiling, it is the same as the target.
  95 OPENJDK_BUILD_OS:=@OPENJDK_BUILD_OS@
  96 OPENJDK_BUILD_OS_TYPE:=@OPENJDK_BUILD_OS_TYPE@
  97 OPENJDK_BUILD_OS_ENV:=@OPENJDK_BUILD_OS_ENV@
  98 
  99 OPENJDK_BUILD_CPU:=@OPENJDK_BUILD_CPU@
 100 OPENJDK_BUILD_CPU_ARCH:=@OPENJDK_BUILD_CPU_ARCH@
 101 OPENJDK_BUILD_CPU_BITS:=@OPENJDK_BUILD_CPU_BITS@
 102 OPENJDK_BUILD_CPU_ENDIAN:=@OPENJDK_BUILD_CPU_ENDIAN@
 103 
 104 # Target platform value in ModuleTarget class file attribute.
 105 OPENJDK_MODULE_TARGET_PLATFORM:=@OPENJDK_MODULE_TARGET_PLATFORM@
 106 
 107 # OS_* properties in release file
 108 RELEASE_FILE_OS_NAME:=@RELEASE_FILE_OS_NAME@
 109 RELEASE_FILE_OS_ARCH:=@RELEASE_FILE_OS_ARCH@
 110 
 111 LIBM:=@LIBM@
 112 LIBDL:=@LIBDL@
 113 
 114 # colon or semicolon
 115 PATH_SEP:=@PATH_SEP@
 116 
 117 # Save the original path before replacing it with the Visual Studio tools
 118 ORIGINAL_PATH:=@ORIGINAL_PATH@
 119 ifeq ($(OPENJDK_TARGET_OS), windows)
 120   # On Windows, the Visual Studio toolchain needs the PATH to be adjusted
 121   # to include Visual Studio tools (this needs to be in cygwin/msys style).
 122   export PATH:=@VS_PATH@
 123 endif
 124 
 125 SYSROOT_CFLAGS := @SYSROOT_CFLAGS@
 126 SYSROOT_LDFLAGS := @SYSROOT_LDFLAGS@
 127 
 128 # The top-level directory of the source repository
 129 TOPDIR:=@TOPDIR@
 130 
 131 
 132 IMPORT_MODULES_CLASSES:=@IMPORT_MODULES_CLASSES@
 133 IMPORT_MODULES_CMDS:=@IMPORT_MODULES_CMDS@
 134 IMPORT_MODULES_LIBS:=@IMPORT_MODULES_LIBS@
 135 IMPORT_MODULES_CONF:=@IMPORT_MODULES_CONF@
 136 IMPORT_MODULES_LEGAL:=@IMPORT_MODULES_LEGAL@
 137 IMPORT_MODULES_MAN:=@IMPORT_MODULES_MAN@
 138 IMPORT_MODULES_SRC:=@IMPORT_MODULES_SRC@
 139 IMPORT_MODULES_MAKE:=@IMPORT_MODULES_MAKE@
 140 
 141 COPYRIGHT_YEAR:=@COPYRIGHT_YEAR@
 142 
 143 # New (JEP-223) version information
 144 
 145 ## Building blocks of the version string
 146 # First three version numbers, with well-specified meanings (numerical)
 147 VERSION_MAJOR := @VERSION_MAJOR@
 148 VERSION_MINOR := @VERSION_MINOR@
 149 VERSION_SECURITY := @VERSION_SECURITY@
 150 # Optional fourth element for use by OpenJDK consumers (numerical)
 151 VERSION_PATCH := @VERSION_PATCH@
 152 # The pre-release identifier (string)
 153 VERSION_PRE := @VERSION_PRE@
 154 # The build number (numerical)
 155 VERSION_BUILD := @VERSION_BUILD@
 156 # Optional build information (string)
 157 VERSION_OPT := @VERSION_OPT@
 158 
 159 ## Composite variables
 160 # The version number as a dot separated sequence of numbers, e.g. 9.0.1
 161 VERSION_NUMBER := @VERSION_NUMBER@
 162 # VERSION_NUMBER but always with exactly 4 positions, with 0 for empty positions.
 163 VERSION_NUMBER_FOUR_POSITIONS := @VERSION_NUMBER_FOUR_POSITIONS@
 164 # The complete version string, with additional build information
 165 VERSION_STRING := @VERSION_STRING@
 166 # The short version string, without trailing zeroes and just PRE, if present.
 167 VERSION_SHORT := @VERSION_SHORT@
 168 # The Java specification version. It usually equals the major version number.
 169 VERSION_SPECIFICATION := @VERSION_MAJOR@
 170 # A GA version is defined by the PRE string being empty. Rather than testing for
 171 # that, this variable defines it with true/false.
 172 VERSION_IS_GA := @VERSION_IS_GA@
 173 
 174 # Convenience CFLAGS settings for passing version information into native programs.
 175 VERSION_CFLAGS := \
 176     -DVERSION_MAJOR=$(VERSION_MAJOR) \
 177     -DVERSION_MINOR=$(VERSION_MINOR) \
 178     -DVERSION_SECURITY=$(VERSION_SECURITY) \
 179     -DVERSION_PATCH=$(VERSION_PATCH) \
 180     -DVERSION_PRE='"$(VERSION_PRE)"' \
 181     -DVERSION_BUILD=$(VERSION_BUILD) \
 182     -DVERSION_OPT='"$(VERSION_OPT)"' \
 183     -DVERSION_NUMBER='"$(VERSION_NUMBER)"' \
 184     -DVERSION_STRING='"$(VERSION_STRING)"' \
 185     -DVERSION_SHORT='"$(VERSION_SHORT)"' \
 186     -DVERSION_SPECIFICATION='"$(VERSION_SPECIFICATION)"' \
 187     #
 188 
 189 # Platform naming variables
 190 LAUNCHER_NAME:=@LAUNCHER_NAME@
 191 PRODUCT_NAME:=@PRODUCT_NAME@
 192 PRODUCT_SUFFIX:=@PRODUCT_SUFFIX@
 193 JDK_RC_PLATFORM_NAME:=@JDK_RC_PLATFORM_NAME@
 194 COMPANY_NAME:=@COMPANY_NAME@
 195 HOTSPOT_VM_DISTRO:=@HOTSPOT_VM_DISTRO@
 196 MACOSX_BUNDLE_NAME_BASE=@MACOSX_BUNDLE_NAME_BASE@
 197 MACOSX_BUNDLE_ID_BASE=@MACOSX_BUNDLE_ID_BASE@
 198 USERNAME:=@USERNAME@
 199 
 200 # Different naming strings generated from the above information.
 201 RUNTIME_NAME=$(PRODUCT_NAME) $(PRODUCT_SUFFIX)
 202 
 203 # How to compile the code: release, fastdebug or slowdebug
 204 DEBUG_LEVEL:=@DEBUG_LEVEL@
 205 HOTSPOT_DEBUG_LEVEL:=@HOTSPOT_DEBUG_LEVEL@
 206 
 207 # This is the JDK variant to build.
 208 # The JDK variant is a name for a specific set of modules to be compiled for the JDK.
 209 JDK_VARIANT:=@JDK_VARIANT@
 210 
 211 # Which JVM variants to build (space-separated list)
 212 JVM_VARIANTS := @JVM_VARIANTS@
 213 JVM_VARIANT_MAIN := @JVM_VARIANT_MAIN@
 214 
 215 # Lists of features per variant. Only relevant for the variants listed in
 216 # JVM_VARIANTS.
 217 JVM_FEATURES_server := @JVM_FEATURES_server@
 218 JVM_FEATURES_client := @JVM_FEATURES_client@
 219 JVM_FEATURES_core := @JVM_FEATURES_core@
 220 JVM_FEATURES_minimal := @JVM_FEATURES_minimal@
 221 JVM_FEATURES_zero := @JVM_FEATURES_zero@
 222 JVM_FEATURES_custom := @JVM_FEATURES_custom@
 223 
 224 # Used for make-time verifications
 225 VALID_JVM_FEATURES := @VALID_JVM_FEATURES@
 226 VALID_JVM_VARIANTS := @VALID_JVM_VARIANTS@
 227 
 228 # Control wether Hotspot builds gtest tests
 229 BUILD_GTEST := @BUILD_GTEST@
 230 
 231 # Control use of precompiled header in hotspot libjvm build
 232 USE_PRECOMPILED_HEADER := @USE_PRECOMPILED_HEADER@
 233 
 234 # Only build headless support or not
 235 ENABLE_HEADLESS_ONLY := @ENABLE_HEADLESS_ONLY@
 236 
 237 ENABLE_FULL_DOCS := @ENABLE_FULL_DOCS@
 238 
 239 # JDK_OUTPUTDIR specifies where a working jvm is built.
 240 # You can run $(JDK_OUTPUTDIR)/bin/java
 241 
 242 OUTPUTDIR := @OUTPUTDIR@
 243 # Colon left out to be able to override IMAGES_OUTPUTDIR for bootcycle-images
 244 SUPPORT_OUTPUTDIR=$(OUTPUTDIR)/support
 245 BUILDTOOLS_OUTPUTDIR=$(OUTPUTDIR)/buildtools
 246 
 247 HOTSPOT_OUTPUTDIR=$(OUTPUTDIR)/hotspot
 248 JDK_OUTPUTDIR=$(OUTPUTDIR)/jdk
 249 IMAGES_OUTPUTDIR=$(OUTPUTDIR)/images
 250 BUNDLES_OUTPUTDIR=$(OUTPUTDIR)/bundles
 251 TESTMAKE_OUTPUTDIR=$(OUTPUTDIR)/test-make
 252 MAKESUPPORT_OUTPUTDIR=$(OUTPUTDIR)/make-support
 253 
 254 # This does not get overridden in a bootcycle build
 255 CONFIGURESUPPORT_OUTPUTDIR:=@CONFIGURESUPPORT_OUTPUTDIR@
 256 BUILDJDK_OUTPUTDIR=$(OUTPUTDIR)/buildjdk
 257 
 258 BUILD_FAILURE_HANDLER := @BUILD_FAILURE_HANDLER@
 259 
 260 ENABLE_GENERATE_CLASSLIST := @ENABLE_GENERATE_CLASSLIST@
 261 
 262 # The boot jdk to use. This is overridden in bootcycle-spec.gmk. Make sure to keep
 263 # it in sync.
 264 BOOT_JDK:=@BOOT_JDK@
 265 
 266 BUILD_JDK:=@BUILD_JDK@
 267 CREATE_BUILDJDK:=@CREATE_BUILDJDK@
 268 EXTERNAL_BUILDJDK:=@EXTERNAL_BUILDJDK@
 269 
 270 # When compiling Java source to be run by the boot jdk
 271 # use these extra flags, eg -source 6 -target 6
 272 BOOT_JDK_SOURCETARGET:=@BOOT_JDK_SOURCETARGET@
 273 
 274 # Information about the build system
 275 NUM_CORES:=@NUM_CORES@
 276 MEMORY_SIZE:=@MEMORY_SIZE@
 277 # Enable sjavac support = use a javac server,
 278 # multi core javac compilation and dependency tracking.
 279 ENABLE_SJAVAC:=@ENABLE_SJAVAC@
 280 ENABLE_JAVAC_SERVER:=@ENABLE_JAVAC_SERVER@
 281 # Store sjavac server synchronization files here, and
 282 # the sjavac server log files.
 283 SJAVAC_SERVER_DIR=$(MAKESUPPORT_OUTPUTDIR)/javacservers
 284 
 285 # Number of parallel jobs to use for compilation
 286 JOBS?=@JOBS@
 287 TEST_JOBS?=@TEST_JOBS@
 288 
 289 # Default make target
 290 DEFAULT_MAKE_TARGET:=@DEFAULT_MAKE_TARGET@
 291 
 292 FREETYPE_LIBS:=@FREETYPE_LIBS@
 293 FREETYPE_CFLAGS:=@FREETYPE_CFLAGS@
 294 FREETYPE_BUNDLE_LIB_PATH=@FREETYPE_BUNDLE_LIB_PATH@
 295 FREETYPE_LICENSE=@FREETYPE_LICENSE@
 296 FONTCONFIG_CFLAGS:=@FONTCONFIG_CFLAGS@
 297 CUPS_CFLAGS:=@CUPS_CFLAGS@
 298 ALSA_LIBS:=@ALSA_LIBS@
 299 ALSA_CFLAGS:=@ALSA_CFLAGS@
 300 LIBFFI_LIBS:=@LIBFFI_LIBS@
 301 LIBFFI_CFLAGS:=@LIBFFI_CFLAGS@
 302 ENABLE_LIBFFI_BUNDLING:=@ENABLE_LIBFFI_BUNDLING@
 303 LIBFFI_LIB_FILE:=@LIBFFI_LIB_FILE@
 304 
 305 PACKAGE_PATH=@PACKAGE_PATH@
 306 
 307 # Source file for cacerts
 308 CACERTS_FILE=@CACERTS_FILE@
 309 
 310 # Enable unlimited crypto policy
 311 UNLIMITED_CRYPTO=@UNLIMITED_CRYPTO@
 312 
 313 GCOV_ENABLED=@GCOV_ENABLED@
 314 
 315 # AddressSanitizer
 316 export ASAN_ENABLED:=@ASAN_ENABLED@
 317 export DEVKIT_LIB_DIR:=@DEVKIT_LIB_DIR@
 318 ifeq ($(ASAN_ENABLED), yes)
 319   export ASAN_OPTIONS="handle_segv=0 detect_leaks=0"
 320   ifneq ($(DEVKIT_LIB_DIR),)
 321     export LD_LIBRARY_PATH:=$(LD_LIBRARY_PATH):$(DEVKIT_LIB_DIR)
 322   endif
 323 endif
 324 
 325 # Necessary additional compiler flags to compile X11
 326 X_CFLAGS:=@X_CFLAGS@
 327 X_LIBS:=@X_LIBS@
 328 
 329 # The lowest required version of macosx
 330 MACOSX_VERSION_MIN=@MACOSX_VERSION_MIN@
 331 # The highest allowed version of macosx
 332 MACOSX_VERSION_MAX=@MACOSX_VERSION_MAX@
 333 
 334 # Toolchain type: gcc, clang, solstudio, lxc, microsoft...
 335 TOOLCHAIN_TYPE:=@TOOLCHAIN_TYPE@
 336 TOOLCHAIN_VERSION := @TOOLCHAIN_VERSION@
 337 CC_VERSION_NUMBER := @CC_VERSION_NUMBER@
 338 CXX_VERSION_NUMBER := @CXX_VERSION_NUMBER@
 339 
 340 # Legacy support
 341 HOTSPOT_TOOLCHAIN_TYPE := @HOTSPOT_TOOLCHAIN_TYPE@
 342 
 343 # Option used to tell the compiler whether to create 32- or 64-bit executables
 344 COMPILER_TARGET_BITS_FLAG:=@COMPILER_TARGET_BITS_FLAG@
 345 COMPILER_SUPPORTS_TARGET_BITS_FLAG=@COMPILER_SUPPORTS_TARGET_BITS_FLAG@
 346 
 347 # Option used to pass a command file to the compiler
 348 COMPILER_COMMAND_FILE_FLAG:=@COMPILER_COMMAND_FILE_FLAG@
 349 
 350 # Option for specifying a file which saves the binder commands
 351 # produced by the link step (for debugging, currently AIX only)
 352 COMPILER_BINDCMD_FILE_FLAG:=@COMPILER_BINDCMD_FILE_FLAG@
 353 
 354 CC_OUT_OPTION:=@CC_OUT_OPTION@
 355 EXE_OUT_OPTION:=@EXE_OUT_OPTION@
 356 LD_OUT_OPTION:=@LD_OUT_OPTION@
 357 AR_OUT_OPTION:=@AR_OUT_OPTION@
 358 
 359 # Flags used for overriding the default opt setting for a C/C++ source file.
 360 C_O_FLAG_HIGHEST_JVM:=@C_O_FLAG_HIGHEST_JVM@
 361 C_O_FLAG_HIGHEST:=@C_O_FLAG_HIGHEST@
 362 C_O_FLAG_HI:=@C_O_FLAG_HI@
 363 C_O_FLAG_NORM:=@C_O_FLAG_NORM@
 364 C_O_FLAG_NONE:=@C_O_FLAG_NONE@
 365 C_O_FLAG_SIZE:=@C_O_FLAG_SIZE@
 366 CXX_O_FLAG_HIGHEST_JVM:=@CXX_O_FLAG_HIGHEST_JVM@
 367 CXX_O_FLAG_HIGHEST:=@CXX_O_FLAG_HIGHEST@
 368 CXX_O_FLAG_HI:=@CXX_O_FLAG_HI@
 369 CXX_O_FLAG_NORM:=@CXX_O_FLAG_NORM@
 370 CXX_O_FLAG_NONE:=@CXX_O_FLAG_NONE@
 371 CXX_O_FLAG_SIZE:=@CXX_O_FLAG_SIZE@
 372 
 373 C_FLAG_DEPS:=@C_FLAG_DEPS@
 374 CXX_FLAG_DEPS:=@CXX_FLAG_DEPS@
 375 
 376 DISABLE_WARNING_PREFIX := @DISABLE_WARNING_PREFIX@
 377 CFLAGS_WARNINGS_ARE_ERRORS:=@CFLAGS_WARNINGS_ARE_ERRORS@
 378 
 379 # A global flag (true or false) determining if native warnings are considered errors.
 380 WARNINGS_AS_ERRORS := @WARNINGS_AS_ERRORS@
 381 
 382 CFLAGS_CCACHE:=@CFLAGS_CCACHE@
 383 CXXSTD_CXXFLAG=@CXXSTD_CXXFLAG@
 384 
 385 # Tools that potentially need to be cross compilation aware.
 386 CC:=@FIXPATH@ @CCACHE@ @ICECC@ @CC@
 387 
 388 # CFLAGS used to compile the jdk native libraries (C-code)
 389 CFLAGS_JDKLIB:=@CFLAGS_JDKLIB@
 390 CXXFLAGS_JDKLIB:=@CXXFLAGS_JDKLIB@
 391 
 392 # CFLAGS used to compile the jdk native launchers (C-code)
 393 CFLAGS_JDKEXE:=@CFLAGS_JDKEXE@
 394 CXXFLAGS_JDKEXE:=@CXXFLAGS_JDKEXE@
 395 
 396 LDFLAGS_HASH_STYLE := @LDFLAGS_HASH_STYLE@
 397 LDFLAGS_NO_EXEC_STACK := @LDFLAGS_NO_EXEC_STACK@
 398 
 399 JVM_CFLAGS := @JVM_CFLAGS@
 400 JVM_CFLAGS_SYMBOLS := @JVM_CFLAGS_SYMBOLS@
 401 JVM_LDFLAGS := @JVM_LDFLAGS@
 402 JVM_ASFLAGS := @JVM_ASFLAGS@
 403 JVM_LIBS := @JVM_LIBS@
 404 JVM_RCFLAGS := @JVM_RCFLAGS@
 405 
 406 # These flags might contain variables set by a custom extension that is included later.
 407 EXTRA_CFLAGS = @EXTRA_CFLAGS@
 408 EXTRA_CXXFLAGS = @EXTRA_CXXFLAGS@
 409 EXTRA_LDFLAGS = @EXTRA_LDFLAGS@
 410 
 411 CXX:=@FIXPATH@ @CCACHE@ @ICECC@ @CXX@
 412 
 413 CPP:=@FIXPATH@ @CPP@
 414 
 415 # The linker can be gcc or ld on unix systems, or link.exe on windows systems.
 416 LD:=@FIXPATH@ @LD@
 417 
 418 # Xcode SDK path
 419 SDKROOT:=@SDKROOT@
 420 
 421 # The linker on older SuSE distros (e.g. on SLES 10) complains with:
 422 # "Invalid version tag `SUNWprivate_1.1'. Only anonymous version tag is allowed in executable."
 423 # if feeded with a version script which contains named tags.
 424 USING_BROKEN_SUSE_LD:=@USING_BROKEN_SUSE_LD@
 425 
 426 # LDFLAGS used to link the jdk native libraries (C-code)
 427 LDFLAGS_JDKLIB:=@LDFLAGS_JDKLIB@
 428 JDKLIB_LIBS:=@JDKLIB_LIBS@
 429 
 430 # LDFLAGS used to link the jdk native launchers (C-code)
 431 LDFLAGS_JDKEXE:=@LDFLAGS_JDKEXE@
 432 JDKEXE_LIBS:=@JDKEXE_LIBS@
 433 
 434 # LDFLAGS specific to C++ linking.
 435 LDFLAGS_CXX_JDK:=@LDFLAGS_CXX_JDK@
 436 
 437 # Sometimes a different linker is needed for c++ libs
 438 LDCXX:=@FIXPATH@ @LDCXX@
 439 # The flags for linking libstdc++ linker.
 440 LIBCXX:=@LIBCXX@
 441 
 442 # Compiler and linker flags used when building native tests
 443 CFLAGS_TESTLIB:=@CFLAGS_TESTLIB@
 444 CXXFLAGS_TESTLIB:=@CXXFLAGS_TESTLIB@
 445 CFLAGS_TESTEXE:=@CFLAGS_TESTEXE@
 446 CXXFLAGS_TESTEXE:=@CXXFLAGS_TESTEXE@
 447 LDFLAGS_TESTLIB:=@LDFLAGS_TESTLIB@
 448 LDFLAGS_TESTEXE:=@LDFLAGS_TESTEXE@
 449 
 450 # BUILD_CC/BUILD_LD is a compiler/linker that generates code that is runnable on the
 451 # build platform.
 452 BUILD_CC:=@FIXPATH@ @BUILD_ICECC@ @BUILD_CC@
 453 BUILD_CXX:=@FIXPATH@ @BUILD_ICECC@ @BUILD_CXX@
 454 BUILD_LD:=@FIXPATH@ @BUILD_LD@
 455 BUILD_LDCXX:=@FIXPATH@ @BUILD_LDCXX@
 456 BUILD_AS:=@FIXPATH@ @BUILD_AS@
 457 BUILD_AR:=@FIXPATH@ @BUILD_AR@
 458 BUILD_NM:=@FIXPATH@ @BUILD_NM@
 459 BUILD_OBJCOPY:=@BUILD_OBJCOPY@
 460 BUILD_STRIP:=@BUILD_STRIP@
 461 BUILD_SYSROOT_CFLAGS:=@BUILD_SYSROOT_CFLAGS@
 462 BUILD_SYSROOT_LDFLAGS:=@BUILD_SYSROOT_LDFLAGS@
 463 
 464 AS:=@FIXPATH@ @AS@
 465 
 466 # AR is used to create a static library (is ar in unix, lib.exe in windows)
 467 AR:=@FIXPATH@ @AR@
 468 ARFLAGS:=@ARFLAGS@
 469 
 470 NM:=@NM@
 471 GNM:=@GNM@
 472 STRIP:=@STRIP@
 473 
 474 LIPO:=@LIPO@
 475 INSTALL_NAME_TOOL:=@INSTALL_NAME_TOOL@
 476 
 477 # Options to linker to specify a mapfile.
 478 # (Note absence of := assignment, because we do not want to evaluate the macro body here)
 479 SET_SHARED_LIBRARY_MAPFILE=@SET_SHARED_LIBRARY_MAPFILE@
 480 
 481 # Options for C/CXX compiler to be used if linking is performed
 482 #   using reorder file
 483 C_FLAG_REORDER:=@C_FLAG_REORDER@
 484 CXX_FLAG_REORDER:=@CXX_FLAG_REORDER@
 485 
 486 #
 487 # Options for generating debug symbols
 488 COMPILE_WITH_DEBUG_SYMBOLS := @COMPILE_WITH_DEBUG_SYMBOLS@
 489 COPY_DEBUG_SYMBOLS := @COPY_DEBUG_SYMBOLS@
 490 ZIP_EXTERNAL_DEBUG_SYMBOLS := @ZIP_EXTERNAL_DEBUG_SYMBOLS@
 491 
 492 CFLAGS_DEBUG_SYMBOLS:=@CFLAGS_DEBUG_SYMBOLS@
 493 CXXFLAGS_DEBUG_SYMBOLS:=@CXXFLAGS_DEBUG_SYMBOLS@
 494 
 495 #
 496 # Compress (or not) jars
 497 COMPRESS_JARS=@COMPRESS_JARS@
 498 
 499 # Options to linker to specify the library name.
 500 # (Note absence of := assignment, because we do not want to evaluate the macro body here)
 501 SET_SHARED_LIBRARY_NAME=@SET_SHARED_LIBRARY_NAME@
 502 
 503 SHARED_LIBRARY_FLAGS=@SHARED_LIBRARY_FLAGS@
 504 
 505 # Set origin using the linker, ie use the relative path to the dependent library to find the dependees.
 506 # (Note absence of := assignment, because we do not want to evaluate the macro body here)
 507 SET_SHARED_LIBRARY_ORIGIN=@SET_SHARED_LIBRARY_ORIGIN@
 508 SET_EXECUTABLE_ORIGIN=@SET_EXECUTABLE_ORIGIN@
 509 
 510 # Different OS:es have different ways of naming shared libraries.
 511 # The SHARED_LIBRARY macro takes "verify" as and argument and returns:
 512 #    "libverify.so" or "libverify.dylib" or "verify.dll" depending on platform.
 513 # (Note absence of := assignment, because we do not want to evaluate the macro body here)
 514 SHARED_LIBRARY=@SHARED_LIBRARY@
 515 STATIC_LIBRARY=@STATIC_LIBRARY@
 516 LIBRARY_PREFIX:=@LIBRARY_PREFIX@
 517 SHARED_LIBRARY_SUFFIX:=@SHARED_LIBRARY_SUFFIX@
 518 STATIC_LIBRARY_SUFFIX:=@STATIC_LIBRARY_SUFFIX@
 519 EXE_SUFFIX:=@EXE_SUFFIX@
 520 OBJ_SUFFIX:=@OBJ_SUFFIX@
 521 STATIC_BUILD:=@STATIC_BUILD@
 522 
 523 STRIPFLAGS:=@STRIPFLAGS@
 524 
 525 JAVA_FLAGS:=@JAVA_FLAGS@
 526 JAVA_FLAGS_BIG:=@JAVA_FLAGS_BIG@
 527 JAVA_FLAGS_SMALL:=@JAVA_FLAGS_SMALL@
 528 JAVA_FLAGS_JAVAC:=@JAVA_FLAGS_JAVAC@
 529 JAVA_TOOL_FLAGS_SMALL:=@JAVA_TOOL_FLAGS_SMALL@
 530 SJAVAC_SERVER_JAVA_FLAGS:=@SJAVAC_SERVER_JAVA_FLAGS@
 531 
 532 # The *_CMD variables are defined separately to be easily overridden in bootcycle-spec.gmk
 533 # for bootcycle-images build. Make sure to keep them in sync. Do not use the *_CMD
 534 # versions of the variables directly.
 535 JAVA_CMD:=@JAVA@
 536 JAVAC_CMD:=@JAVAC@
 537 JAVAH_CMD:=@JAVAH@
 538 JAVADOC_CMD:=@JAVADOC@
 539 JAR_CMD:=@JAR@
 540 JLINK_CMD := @JLINK@
 541 JMOD_CMD := @JMOD@
 542 JARSIGNER_CMD:=@JARSIGNER@
 543 SJAVAC_SERVER_JAVA_CMD:=@SJAVAC_SERVER_JAVA@
 544 # These variables are meant to be used. They are defined with = instead of := to make
 545 # it possible to override only the *_CMD variables.
 546 JAVA=@FIXPATH@ $(JAVA_CMD) $(JAVA_FLAGS_BIG) $(JAVA_FLAGS)
 547 JAVA_SMALL=@FIXPATH@ $(JAVA_CMD) $(JAVA_FLAGS_SMALL) $(JAVA_FLAGS)
 548 JAVA_JAVAC=@FIXPATH@ $(JAVA_CMD) $(JAVA_FLAGS_JAVAC) $(JAVA_FLAGS)
 549 JAVAC=@FIXPATH@ $(JAVAC_CMD)
 550 JAVAH=@FIXPATH@ $(JAVAH_CMD)
 551 JAVADOC=@FIXPATH@ $(JAVADOC_CMD)
 552 JAR=@FIXPATH@ $(JAR_CMD)
 553 JLINK = @FIXPATH@ $(JLINK_CMD) $(JAVA_TOOL_FLAGS_SMALL)
 554 JMOD = @FIXPATH@ $(JMOD_CMD) $(JAVA_TOOL_FLAGS_SMALL)
 555 JARSIGNER=@FIXPATH@ $(JARSIGNER_CMD)
 556 # A specific java binary with specific options can be used to run
 557 # the long running background sjavac servers and other long running tasks.
 558 SJAVAC_SERVER_JAVA=@FIXPATH@ @FIXPATH_DETACH_FLAG@ $(SJAVAC_SERVER_JAVA_CMD) \
 559     $(SJAVAC_SERVER_JAVA_FLAGS)
 560 
 561 # Hotspot sets this variable before reading the SPEC when compiling sa-jdi.jar. Avoid
 562 # overriding that value by using ?=.
 563 JAVAC_FLAGS?=@JAVAC_FLAGS@
 564 
 565 
 566 BUILD_JAVA_FLAGS := @BOOTCYCLE_JVM_ARGS_BIG@
 567 BUILD_JAVA=@FIXPATH@ $(BUILD_JDK)/bin/java $(BUILD_JAVA_FLAGS)
 568 
 569 # Interim langtools and rmic modules and arguments
 570 INTERIM_LANGTOOLS_BASE_MODULES := java.compiler jdk.compiler jdk.javadoc
 571 INTERIM_LANGTOOLS_MODULES := $(addsuffix .interim, $(INTERIM_LANGTOOLS_BASE_MODULES))
 572 INTERIM_LANGTOOLS_ADD_EXPORTS := \
 573     --add-exports java.base/sun.reflect.annotation=jdk.compiler.interim \
 574     #
 575 INTERIM_LANGTOOLS_MODULES_COMMA := $(strip $(subst $(SPACE),$(COMMA),$(strip \
 576     $(INTERIM_LANGTOOLS_MODULES))))
 577 INTERIM_LANGTOOLS_ARGS := \
 578     --limit-modules java.base,jdk.zipfs,$(INTERIM_LANGTOOLS_MODULES_COMMA) \
 579     --add-modules $(INTERIM_LANGTOOLS_MODULES_COMMA) \
 580     --module-path $(BUILDTOOLS_OUTPUTDIR)/interim_modules \
 581     $(INTERIM_LANGTOOLS_ADD_EXPORTS) \
 582     #
 583 JAVAC_MAIN_CLASS = -m jdk.compiler.interim/com.sun.tools.javac.Main
 584 JAVADOC_MAIN_CLASS = -m jdk.javadoc.interim/jdk.javadoc.internal.tool.Main
 585 
 586 INTERIM_RMIC_BASE_MODULES := jdk.rmic
 587 INTERIM_RMIC_MODULES := $(addsuffix .interim, $(INTERIM_RMIC_BASE_MODULES))
 588 INTERIM_RMIC_ADD_EXPORTS := \
 589     --add-exports java.corba/com.sun.corba.se.impl.util=jdk.rmic.interim \
 590     #
 591 INTERIM_RMIC_ARGS := --limit-modules java.base,jdk.compiler,jdk.javadoc,java.corba \
 592     --module-path $(BUILDTOOLS_OUTPUTDIR)/interim_modules \
 593     $(INTERIM_RMIC_ADD_EXPORTS) \
 594     #
 595 
 596 # You run the new javac using the boot jdk with $(BOOT_JDK)/bin/java $(NEW_JAVAC) ...
 597 # Use = assignment to be able to override in bootcycle-spec.gmk
 598 NEW_JAVAC   = $(INTERIM_LANGTOOLS_ARGS) $(JAVAC_MAIN_CLASS)
 599 NEW_JAVADOC = $(INTERIM_LANGTOOLS_ARGS) $(JAVADOC_MAIN_CLASS)
 600 
 601 JLINK_KEEP_PACKAGED_MODULES:=@JLINK_KEEP_PACKAGED_MODULES@
 602 
 603 # Base flags for RC
 604 # Guarding this against resetting value. Legacy make files include spec multiple
 605 # times.
 606 ifndef RC_FLAGS
 607   RC_FLAGS:=@RC_FLAGS@
 608 endif
 609 
 610 # Tools adhering to a minimal and common standard of posix compliance.
 611 AWK:=@AWK@
 612 BASENAME:=@BASENAME@
 613 CAT:=@CAT@
 614 CCACHE:=@CCACHE@
 615 # CD is going away, but remains to cater for legacy makefiles.
 616 CD:=cd
 617 CHMOD:=@CHMOD@
 618 CODESIGN:=@CODESIGN@
 619 COMM:=@COMM@
 620 CP:=@CP@
 621 CPIO:=@CPIO@
 622 CUT:=@CUT@
 623 DATE:=@DATE@
 624 DIFF:=@DIFF@
 625 DIRNAME:=@DIRNAME@
 626 DSYMUTIL:=@DSYMUTIL@
 627 FIND:=@FIND@
 628 FIND_DELETE:=@FIND_DELETE@
 629 FLOCK:=@FLOCK@
 630 ECHO:=@ECHO@
 631 EGREP:=@EGREP@
 632 FGREP:=@FGREP@
 633 GREP:=@GREP@
 634 GZIP:=@GZIP@
 635 HEAD:=@HEAD@
 636 LS:=@LS@
 637 LN:=@LN@
 638 MKDIR:=@MKDIR@
 639 MV:=@MV@
 640 NAWK:=@NAWK@
 641 NICE:=@NICE@
 642 PANDOC:=@FIXPATH@ @PANDOC@
 643 PATCH:=@PATCH@
 644 PRINTF:=@PRINTF@
 645 RM:=@RM@
 646 RMDIR:=@RMDIR@
 647 SED:=@SED@
 648 SH:=@SH@
 649 SORT:=@SORT@
 650 TAR:=@TAR@
 651 TAIL:=@TAIL@
 652 TEE:=@TEE@
 653 TIME:=@TIME@
 654 IS_GNU_TIME:=@IS_GNU_TIME@
 655 TR:=@TR@
 656 TOUCH:=@TOUCH@
 657 UNIQ:=@UNIQ@
 658 WC:=@WC@
 659 XARGS:=@XARGS@
 660 ZIPEXE:=@ZIPEXE@
 661 UNZIP:=@UNZIP@
 662 MT:=@FIXPATH@ @MT@
 663 RC:=@FIXPATH@ @RC@
 664 DUMPBIN:=@FIXPATH@ @DUMPBIN@
 665 CYGPATH:=@CYGPATH@
 666 LDD:=@LDD@
 667 OTOOL:=@OTOOL@
 668 READELF:=@READELF@
 669 EXPR:=@EXPR@
 670 FILE:=@FILE@
 671 DOT:=@DOT@
 672 HG:=@HG@
 673 OBJCOPY:=@OBJCOPY@
 674 SETFILE:=@SETFILE@
 675 XATTR:=@XATTR@
 676 JT_HOME:=@JT_HOME@
 677 JTREGEXE:=@JTREGEXE@
 678 JIB_JAR:=@JIB_JAR@
 679 XCODEBUILD=@XCODEBUILD@
 680 DTRACE := @DTRACE@
 681 FIXPATH:=@FIXPATH@
 682 
 683 TAR_TYPE:=@TAR_TYPE@
 684 TAR_CREATE_EXTRA_PARAM:=@TAR_CREATE_EXTRA_PARAM@
 685 TAR_INCLUDE_PARAM:=@TAR_INCLUDE_PARAM@
 686 TAR_SUPPORTS_TRANSFORM:=@TAR_SUPPORTS_TRANSFORM@
 687 
 688 # Build setup
 689 ENABLE_AOT:=@ENABLE_AOT@
 690 ENABLE_INTREE_EC:=@ENABLE_INTREE_EC@
 691 USE_EXTERNAL_LIBJPEG:=@USE_EXTERNAL_LIBJPEG@
 692 USE_EXTERNAL_LIBGIF:=@USE_EXTERNAL_LIBGIF@
 693 USE_EXTERNAL_LIBZ:=@USE_EXTERNAL_LIBZ@
 694 LIBZIP_CAN_USE_MMAP:=@LIBZIP_CAN_USE_MMAP@
 695 MSVCR_DLL:=@MSVCR_DLL@
 696 MSVCP_DLL:=@MSVCP_DLL@
 697 STLPORT_LIB:=@STLPORT_LIB@
 698 
 699 ####################################################
 700 #
 701 # INSTALLATION
 702 #
 703 
 704 # Common prefix for all installed files. Defaults to /usr/local,
 705 # but /opt/myjdk is another common version.
 706 INSTALL_PREFIX=@prefix@
 707 
 708 # Directories containing architecture-dependent files should be relative to exec_prefix
 709 INSTALL_EXECPREFIX=@exec_prefix@
 710 
 711 # java,javac,javah,javap etc are installed here.
 712 INSTALL_BINDIR=@bindir@
 713 
 714 # Read only architecture-independent data
 715 INSTALL_DATADIR=@datadir@
 716 
 717 # Root of above.
 718 INSTALL_DATAROOTDIR=@datarootdir@
 719 
 720 # Doc files, other than info and man.
 721 INSTALL_DOCDIR=@docdir@
 722 
 723 # Html documentation
 724 INSTALL_HTMLDIR=@htmldir@
 725 
 726 # Installing C header files, JNI headers for example.
 727 INSTALL_INCLUDEDIR=@includedir@
 728 
 729 # Installing library files....
 730 INSTALL_INCLUDEDIR=@libdir@
 731 
 732 # Executables that other programs run.
 733 INSTALL_LIBEXECDIR=@libexecdir@
 734 
 735 # Locale-dependent but architecture-independent data, such as message catalogs.
 736 INSTALL_LOCALEDIR=@localedir@
 737 
 738 # Modifiable single-machine data
 739 INSTALL_LOCALSTATEDIR=@localstatedir@
 740 
 741 # Man pages
 742 INSTALL_MANDIR=@mandir@
 743 
 744 # Modifiable architecture-independent data.
 745 INSTALL_SHAREDSTATEDIR=@sharedstatedir@
 746 
 747 # Read-only single-machine data
 748 INSTALL_SYSCONFDIR=@sysconfdir@
 749 
 750 ####################################################
 751 #
 752 # Libraries
 753 #
 754 
 755 USE_EXTERNAL_LCMS:=@USE_EXTERNAL_LCMS@
 756 LCMS_CFLAGS:=@LCMS_CFLAGS@
 757 LCMS_LIBS:=@LCMS_LIBS@
 758 
 759 USE_EXTERNAL_LIBPNG:=@USE_EXTERNAL_LIBPNG@
 760 PNG_LIBS:=@PNG_LIBS@
 761 PNG_CFLAGS:=@PNG_CFLAGS@
 762 
 763 ####################################################
 764 #
 765 # Misc
 766 #
 767 
 768 INCLUDE_SA=@INCLUDE_SA@
 769 INCLUDE_GRAAL=@INCLUDE_GRAAL@
 770 
 771 OS_VERSION_MAJOR:=@OS_VERSION_MAJOR@
 772 OS_VERSION_MINOR:=@OS_VERSION_MINOR@
 773 OS_VERSION_MICRO:=@OS_VERSION_MICRO@
 774 
 775 # Images directory definitions
 776 JDK_IMAGE_SUBDIR:=jdk
 777 JRE_IMAGE_SUBDIR:=jre
 778 JRE_COMPACT1_IMAGE_SUBDIR := jre-compact1
 779 JRE_COMPACT2_IMAGE_SUBDIR := jre-compact2
 780 JRE_COMPACT3_IMAGE_SUBDIR := jre-compact3
 781 
 782 # Colon left out to be able to override output dir for bootcycle-images
 783 JDK_IMAGE_DIR=$(IMAGES_OUTPUTDIR)/$(JDK_IMAGE_SUBDIR)
 784 JRE_IMAGE_DIR=$(IMAGES_OUTPUTDIR)/$(JRE_IMAGE_SUBDIR)
 785 
 786 JRE_COMPACT1_IMAGE_DIR := $(IMAGES_OUTPUTDIR)/$(JRE_COMPACT1_IMAGE_SUBDIR)
 787 JRE_COMPACT2_IMAGE_DIR := $(IMAGES_OUTPUTDIR)/$(JRE_COMPACT2_IMAGE_SUBDIR)
 788 JRE_COMPACT3_IMAGE_DIR := $(IMAGES_OUTPUTDIR)/$(JRE_COMPACT3_IMAGE_SUBDIR)
 789 
 790 # Test image, as above
 791 TEST_IMAGE_SUBDIR:=test
 792 TEST_IMAGE_DIR=$(IMAGES_OUTPUTDIR)/$(TEST_IMAGE_SUBDIR)
 793 
 794 # Symbols image
 795 SYMBOLS_IMAGE_SUBDIR:=symbols
 796 SYMBOLS_IMAGE_DIR=$(IMAGES_OUTPUTDIR)/$(SYMBOLS_IMAGE_SUBDIR)
 797 
 798 # Interim image
 799 INTERIM_JMODS_DIR := $(SUPPORT_OUTPUTDIR)/interim-jmods
 800 INTERIM_IMAGE_DIR := $(SUPPORT_OUTPUTDIR)/interim-image
 801 
 802 # Docs image
 803 DOCS_IMAGE_SUBDIR := docs
 804 DOCS_IMAGE_DIR = $(IMAGES_OUTPUTDIR)/$(DOCS_IMAGE_SUBDIR)
 805 # Output docs directly into image
 806 DOCS_OUTPUTDIR := $(DOCS_IMAGE_DIR)
 807 
 808 # Macosx bundles directory definitions
 809 JDK_MACOSX_BUNDLE_SUBDIR=jdk-bundle
 810 JRE_MACOSX_BUNDLE_SUBDIR=jre-bundle
 811 JDK_MACOSX_BUNDLE_DIR=$(IMAGES_OUTPUTDIR)/$(JDK_MACOSX_BUNDLE_SUBDIR)
 812 JRE_MACOSX_BUNDLE_DIR=$(IMAGES_OUTPUTDIR)/$(JRE_MACOSX_BUNDLE_SUBDIR)
 813 JDK_MACOSX_CONTENTS_SUBDIR=jdk-$(VERSION_NUMBER).jdk/Contents
 814 JRE_MACOSX_CONTENTS_SUBDIR=jre-$(VERSION_NUMBER).jre/Contents
 815 JDK_MACOSX_CONTENTS_DIR=$(JDK_MACOSX_BUNDLE_DIR)/$(JDK_MACOSX_CONTENTS_SUBDIR)
 816 JRE_MACOSX_CONTENTS_DIR=$(JRE_MACOSX_BUNDLE_DIR)/$(JRE_MACOSX_CONTENTS_SUBDIR)
 817 
 818 # Bundle names
 819 BASE_NAME := $(VERSION_SHORT)+$(VERSION_BUILD)_$(OPENJDK_TARGET_BUNDLE_PLATFORM)
 820 ifeq ($(DEBUG_LEVEL), fastdebug)
 821   DEBUG_PART := -debug
 822 else ifneq ($(DEBUG_LEVEL), release)
 823   DEBUG_PART := -$(DEBUG_LEVEL)
 824 endif
 825 JDK_BUNDLE_NAME := jdk-$(BASE_NAME)_bin$(DEBUG_PART).tar.gz
 826 JRE_BUNDLE_NAME := jre-$(BASE_NAME)_bin$(DEBUG_PART).tar.gz
 827 JRE_COMPACT1_BUNDLE_NAME := \
 828     jre-$(VERSION_SHORT)+$(VERSION_BUILD)-compact1_$(OPENJDK_TARGET_BUNDLE_PLATFORM)_bin$(DEBUG_PART).tar.gz
 829 JRE_COMPACT2_BUNDLE_NAME := \
 830     jre-$(VERSION_SHORT)+$(VERSION_BUILD)-compact2_$(OPENJDK_TARGET_BUNDLE_PLATFORM)_bin$(DEBUG_PART).tar.gz
 831 JRE_COMPACT3_BUNDLE_NAME := \
 832     jre-$(VERSION_SHORT)+$(VERSION_BUILD)-compact3_$(OPENJDK_TARGET_BUNDLE_PLATFORM)_bin$(DEBUG_PART).tar.gz
 833 JDK_SYMBOLS_BUNDLE_NAME := jdk-$(BASE_NAME)_bin$(DEBUG_PART)-symbols.tar.gz
 834 JRE_SYMBOLS_BUNDLE_NAME := jre-$(BASE_NAME)_bin$(DEBUG_PART)-symbols.tar.gz
 835 TEST_DEMOS_BUNDLE_NAME := jdk-$(BASE_NAME)_bin-tests-demos$(DEBUG_PART).tar.gz
 836 TEST_BUNDLE_NAME := jdk-$(BASE_NAME)_bin-tests$(DEBUG_PART).tar.gz
 837 DOCS_BUNDLE_NAME := jdk-$(BASE_NAME)_doc-api-spec$(DEBUG_PART).tar.gz
 838 
 839 JDK_BUNDLE := $(BUNDLES_OUTPUTDIR)/$(JDK_BUNDLE_NAME)
 840 JRE_BUNDLE :=  $(BUNDLES_OUTPUTDIR)/$(JRE_BUNDLE_NAME)
 841 JDK_SYMBOLS_BUNDLE :=  $(BUNDLES_OUTPUTDIR)/$(JDK_SYMBOLS_BUNDLE_NAME)
 842 JRE_SYMBOLS_BUNDLE :=  $(BUNDLES_OUTPUTDIR)/$(JRE_SYMBOLS_BUNDLE_NAME)
 843 TEST_DEMOS_BUNDLE := $(BUNDLES_OUTPUTDIR)/$(TEST_DEMOS_BUNDLE_NAME)
 844 TEST_BUNDLE :=  $(BUNDLES_OUTPUTDIR)/$(TEST_BUNDLE_NAME)
 845 DOCS_BUNDLE :=  $(BUNDLES_OUTPUTDIR)/$(DOCS_BUNDLE_NAME)
 846 
 847 # This macro is called to allow inclusion of closed source counterparts.
 848 # Unless overridden in closed sources, it expands to nothing.
 849 # Usage: This function is called in an open makefile, with the following
 850 # argument:
 851 # $1 the name of the makefile
 852 define IncludeCustomExtension
 853 endef
 854 
 855 # Include the custom-spec.gmk file if it exists
 856 -include $(dir @SPEC@)/custom-spec.gmk