1 #
   2 # Copyright (c) 2011, 2020, 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 # The current directory when configure was run
  36 CONFIGURE_START_DIR:=@CONFIGURE_START_DIR@
  37 
  38 # A self-referential reference to this file.
  39 SPEC:=@SPEC@
  40 
  41 # Path to autoconf if overriden by the user, to be used by "make reconfigure"
  42 AUTOCONF := @AUTOCONF@
  43 
  44 # SPACE and COMMA are defined in MakeBase.gmk, but they are also used in
  45 # some definitions here, and are needed if MakeBase.gmk is not included before
  46 # this file.
  47 X:=
  48 SPACE:=$(X) $(X)
  49 COMMA:=,
  50 
  51 # What make to use for main processing, after bootstrapping top-level Makefile.
  52 MAKE := @MAKE@
  53 
  54 # Make sure all shell commands are executed with the C locale
  55 export LC_ALL := C
  56 
  57 # The default make arguments
  58 MAKE_ARGS = $(MAKE_LOG_FLAGS) -r -R -I $(TOPDIR)/make/common SPEC=$(SPEC) \
  59     MAKE_LOG_FLAGS="$(MAKE_LOG_FLAGS)" $(MAKE_LOG_VARS)
  60 
  61 OUTPUT_SYNC_SUPPORTED:=@OUTPUT_SYNC_SUPPORTED@
  62 OUTPUT_SYNC:=@OUTPUT_SYNC@
  63 
  64 # Override the shell with bash
  65 BASH:=@BASH@
  66 BASH_ARGS:=@BASH_ARGS@
  67 SHELL:=$(BASH) $(BASH_ARGS)
  68 
  69 # The "human readable" name of this configuration
  70 CONF_NAME:=@CONF_NAME@
  71 
  72 # The built jdk will run in this target system.
  73 OPENJDK_TARGET_OS:=@OPENJDK_TARGET_OS@
  74 OPENJDK_TARGET_OS_TYPE:=@OPENJDK_TARGET_OS_TYPE@
  75 OPENJDK_TARGET_OS_ENV:=@OPENJDK_TARGET_OS_ENV@
  76 OPENJDK_TARGET_OS_UPPERCASE:=@OPENJDK_TARGET_OS_UPPERCASE@
  77 
  78 OPENJDK_TARGET_CPU:=@OPENJDK_TARGET_CPU@
  79 OPENJDK_TARGET_CPU_ARCH:=@OPENJDK_TARGET_CPU_ARCH@
  80 OPENJDK_TARGET_CPU_BITS:=@OPENJDK_TARGET_CPU_BITS@
  81 OPENJDK_TARGET_CPU_ENDIAN:=@OPENJDK_TARGET_CPU_ENDIAN@
  82 
  83 COMPILE_TYPE:=@COMPILE_TYPE@
  84 
  85 # Legacy support
  86 OPENJDK_TARGET_CPU_LEGACY:=@OPENJDK_TARGET_CPU_LEGACY@
  87 OPENJDK_TARGET_CPU_LEGACY_LIB:=@OPENJDK_TARGET_CPU_LEGACY_LIB@
  88 OPENJDK_TARGET_CPU_OSARCH:=@OPENJDK_TARGET_CPU_OSARCH@
  89 OPENJDK_TARGET_OS_INCLUDE_SUBDIR:=@OPENJDK_TARGET_OS_INCLUDE_SUBDIR@
  90 
  91 HOTSPOT_TARGET_OS := @HOTSPOT_TARGET_OS@
  92 HOTSPOT_TARGET_OS_TYPE := @HOTSPOT_TARGET_OS_TYPE@
  93 
  94 HOTSPOT_TARGET_CPU := @HOTSPOT_TARGET_CPU@
  95 HOTSPOT_TARGET_CPU_ARCH := @HOTSPOT_TARGET_CPU_ARCH@
  96 HOTSPOT_TARGET_CPU_DEFINE := @HOTSPOT_TARGET_CPU_DEFINE@
  97 
  98 OPENJDK_TARGET_BUNDLE_PLATFORM:=@OPENJDK_TARGET_BUNDLE_PLATFORM@
  99 JDK_ARCH_ABI_PROP_NAME := @JDK_ARCH_ABI_PROP_NAME@
 100 
 101 # We are building on this build system.
 102 # When not cross-compiling, it is the same as the target.
 103 OPENJDK_BUILD_OS:=@OPENJDK_BUILD_OS@
 104 OPENJDK_BUILD_OS_TYPE:=@OPENJDK_BUILD_OS_TYPE@
 105 OPENJDK_BUILD_OS_ENV:=@OPENJDK_BUILD_OS_ENV@
 106 
 107 OPENJDK_BUILD_CPU:=@OPENJDK_BUILD_CPU@
 108 OPENJDK_BUILD_CPU_ARCH:=@OPENJDK_BUILD_CPU_ARCH@
 109 OPENJDK_BUILD_CPU_BITS:=@OPENJDK_BUILD_CPU_BITS@
 110 OPENJDK_BUILD_CPU_ENDIAN:=@OPENJDK_BUILD_CPU_ENDIAN@
 111 
 112 OPENJDK_BUILD_OS_INCLUDE_SUBDIR:=@OPENJDK_TARGET_OS_INCLUDE_SUBDIR@
 113 
 114 # Target platform value in ModuleTarget class file attribute.
 115 OPENJDK_MODULE_TARGET_PLATFORM:=@OPENJDK_MODULE_TARGET_PLATFORM@
 116 
 117 # OS_* properties in release file
 118 RELEASE_FILE_OS_NAME:=@RELEASE_FILE_OS_NAME@
 119 RELEASE_FILE_OS_ARCH:=@RELEASE_FILE_OS_ARCH@
 120 
 121 SOURCE_DATE := @SOURCE_DATE@
 122 ENABLE_REPRODUCIBLE_BUILD := @ENABLE_REPRODUCIBLE_BUILD@
 123 
 124 LIBM:=@LIBM@
 125 LIBDL:=@LIBDL@
 126 
 127 # colon or semicolon
 128 PATH_SEP:=@PATH_SEP@
 129 
 130 # Save the original path before replacing it with the Visual Studio tools
 131 ORIGINAL_PATH:=@ORIGINAL_PATH@
 132 ifeq ($(OPENJDK_TARGET_OS), windows)
 133   # On Windows, the Visual Studio toolchain needs the PATH to be adjusted
 134   # to include Visual Studio tools (this needs to be in cygwin/msys style).
 135   ifeq ($(OPENJDK_TARGET_OS_ENV), windows.wsl)
 136     export FIXPATH_PATH:=@VS_PATH_WINDOWS@
 137     export WSLENV:=$(WSLENV):FIXPATH_PATH:DEBUG_FIXPATH
 138   else
 139     export PATH:=@VS_PATH@
 140   endif
 141 endif
 142 
 143 SYSROOT_CFLAGS := @SYSROOT_CFLAGS@
 144 SYSROOT_LDFLAGS := @SYSROOT_LDFLAGS@
 145 
 146 # The top-level directory of the source repository
 147 TOPDIR:=@TOPDIR@
 148 # Usually the top level directory, but could be something else if a custom
 149 # root is defined.
 150 WORKSPACE_ROOT:=@WORKSPACE_ROOT@
 151 IMPORT_MODULES_CLASSES:=@IMPORT_MODULES_CLASSES@
 152 IMPORT_MODULES_CMDS:=@IMPORT_MODULES_CMDS@
 153 IMPORT_MODULES_LIBS:=@IMPORT_MODULES_LIBS@
 154 IMPORT_MODULES_CONF:=@IMPORT_MODULES_CONF@
 155 IMPORT_MODULES_LEGAL:=@IMPORT_MODULES_LEGAL@
 156 IMPORT_MODULES_MAN:=@IMPORT_MODULES_MAN@
 157 IMPORT_MODULES_SRC:=@IMPORT_MODULES_SRC@
 158 IMPORT_MODULES_MAKE:=@IMPORT_MODULES_MAKE@
 159 
 160 COPYRIGHT_YEAR:=@COPYRIGHT_YEAR@
 161 HOTSPOT_BUILD_TIME:=@HOTSPOT_BUILD_TIME@
 162 
 163 # Platform naming variables
 164 LAUNCHER_NAME:=@LAUNCHER_NAME@
 165 PRODUCT_NAME:=@PRODUCT_NAME@
 166 PRODUCT_SUFFIX:=@PRODUCT_SUFFIX@
 167 JDK_RC_PLATFORM_NAME:=@JDK_RC_PLATFORM_NAME@
 168 JDK_RC_NAME:=@JDK_RC_NAME@
 169 COMPANY_NAME:=@COMPANY_NAME@
 170 HOTSPOT_VM_DISTRO:=@HOTSPOT_VM_DISTRO@
 171 MACOSX_BUNDLE_NAME_BASE=@MACOSX_BUNDLE_NAME_BASE@
 172 MACOSX_BUNDLE_ID_BASE=@MACOSX_BUNDLE_ID_BASE@
 173 USERNAME:=@USERNAME@
 174 VENDOR_URL:=@VENDOR_URL@
 175 VENDOR_URL_BUG:=@VENDOR_URL_BUG@
 176 VENDOR_URL_VM_BUG:=@VENDOR_URL_VM_BUG@
 177 
 178 # New (JEP-223) version information
 179 
 180 ## Building blocks of the version string
 181 # First three version numbers, with well-specified meanings (numerical)
 182 VERSION_FEATURE := @VERSION_FEATURE@
 183 VERSION_INTERIM := @VERSION_INTERIM@
 184 VERSION_UPDATE := @VERSION_UPDATE@
 185 VERSION_PATCH := @VERSION_PATCH@
 186 VERSION_EXTRA1 := @VERSION_EXTRA1@
 187 VERSION_EXTRA2 := @VERSION_EXTRA2@
 188 VERSION_EXTRA3 := @VERSION_EXTRA3@
 189 # The pre-release identifier (string)
 190 VERSION_PRE := @VERSION_PRE@
 191 # The build number (numerical)
 192 VERSION_BUILD := @VERSION_BUILD@
 193 # Optional build information (string)
 194 VERSION_OPT := @VERSION_OPT@
 195 
 196 ## Composite variables
 197 # The version number as a dot separated sequence of numbers, e.g. 9.0.1
 198 VERSION_NUMBER := @VERSION_NUMBER@
 199 # VERSION_NUMBER but always with exactly 4 positions, with 0 for empty positions.
 200 VERSION_NUMBER_FOUR_POSITIONS := @VERSION_NUMBER_FOUR_POSITIONS@
 201 # The complete version string, with additional build information
 202 VERSION_STRING := @VERSION_STRING@
 203 # The short version string, without trailing zeroes and just PRE, if present.
 204 VERSION_SHORT := @VERSION_SHORT@
 205 # The Java specification version. It usually equals the feature version number.
 206 VERSION_SPECIFICATION := @VERSION_FEATURE@
 207 # A GA version is defined by the PRE string being empty. Rather than testing for
 208 # that, this variable defines it with true/false.
 209 VERSION_IS_GA := @VERSION_IS_GA@
 210 
 211 # Version date
 212 VERSION_DATE := @VERSION_DATE@
 213 
 214 # Vendor version string
 215 VENDOR_VERSION_STRING := @VENDOR_VERSION_STRING@
 216 
 217 # Class-file version
 218 VERSION_CLASSFILE_MAJOR := @VERSION_CLASSFILE_MAJOR@
 219 VERSION_CLASSFILE_MINOR := @VERSION_CLASSFILE_MINOR@
 220 
 221 JDK_SOURCE_TARGET_VERSION := @JDK_SOURCE_TARGET_VERSION@
 222 
 223 # Convenience CFLAGS settings for passing version information into native programs.
 224 VERSION_CFLAGS := \
 225     -DVERSION_FEATURE=$(VERSION_FEATURE) \
 226     -DVERSION_INTERIM=$(VERSION_INTERIM) \
 227     -DVERSION_UPDATE=$(VERSION_UPDATE) \
 228     -DVERSION_PATCH=$(VERSION_PATCH) \
 229     -DVERSION_EXTRA1=$(VERSION_EXTRA1) \
 230     -DVERSION_EXTRA2=$(VERSION_EXTRA2) \
 231     -DVERSION_EXTRA3=$(VERSION_EXTRA3) \
 232     -DVERSION_PRE='"$(VERSION_PRE)"' \
 233     -DVERSION_BUILD=$(VERSION_BUILD) \
 234     -DVERSION_OPT='"$(VERSION_OPT)"' \
 235     -DVERSION_NUMBER='"$(VERSION_NUMBER)"' \
 236     -DVERSION_STRING='"$(VERSION_STRING)"' \
 237     -DVERSION_SHORT='"$(VERSION_SHORT)"' \
 238     -DVERSION_SPECIFICATION='"$(VERSION_SPECIFICATION)"' \
 239     -DVERSION_DATE='"$(VERSION_DATE)"' \
 240     -DVENDOR_VERSION_STRING='"$(VENDOR_VERSION_STRING)"' \
 241     -DVERSION_CLASSFILE_MAJOR=$(VERSION_CLASSFILE_MAJOR) \
 242     -DVERSION_CLASSFILE_MINOR=$(VERSION_CLASSFILE_MINOR) \
 243     #
 244 
 245 ifneq ($(COMPANY_NAME),)
 246   # COMPANY_NAME is set to "N/A" in $AUTOCONF_DIR/version-numbers by default,
 247   # but can be customized with the '--with-vendor-name' configure option.
 248   # Only export "VENDOR" to the build if COMPANY_NAME contains a real value.
 249   # Otherwise the default value for VENDOR, which is used to set the "java.vendor"
 250   # and "java.vm.vendor" properties is hard-coded into the source code (i.e. in
 251   # VersionProps.java.template in the jdk for "java.vendor" and
 252   # vm_version.cpp in the VM for "java.vm.vendor")
 253   ifneq ($(COMPANY_NAME), N/A)
 254     VERSION_CFLAGS += -DVENDOR='"$(COMPANY_NAME)"'
 255   endif
 256 endif
 257 
 258 # Only export VENDOR_URL, VENDOR_URL_BUG and VENDOR_VM_URL_BUG to the build if
 259 # they are not empty. Otherwise, default values which are defined in the sources
 260 # will be used.
 261 ifneq ($(VENDOR_URL),)
 262   VERSION_CFLAGS += -DVENDOR_URL='"$(VENDOR_URL)"'
 263 endif
 264 ifneq ($(VENDOR_URL_BUG),)
 265   VERSION_CFLAGS += -DVENDOR_URL_BUG='"$(VENDOR_URL_BUG)"'
 266 endif
 267 ifneq ($(VENDOR_URL_VM_BUG),)
 268   VERSION_CFLAGS += -DVENDOR_URL_VM_BUG='"$(VENDOR_URL_VM_BUG)"'
 269 endif
 270 
 271 # Different naming strings generated from the above information.
 272 RUNTIME_NAME=$(PRODUCT_NAME) $(PRODUCT_SUFFIX)
 273 
 274 # How to compile the code: release, fastdebug or slowdebug
 275 DEBUG_LEVEL:=@DEBUG_LEVEL@
 276 HOTSPOT_DEBUG_LEVEL:=@HOTSPOT_DEBUG_LEVEL@
 277 
 278 # Which JVM variants to build (space-separated list)
 279 JVM_VARIANTS := @JVM_VARIANTS@
 280 JVM_VARIANT_MAIN := @JVM_VARIANT_MAIN@
 281 
 282 # Lists of features per variant. Only relevant for the variants listed in
 283 # JVM_VARIANTS.
 284 JVM_FEATURES_server := @JVM_FEATURES_server@
 285 JVM_FEATURES_client := @JVM_FEATURES_client@
 286 JVM_FEATURES_core := @JVM_FEATURES_core@
 287 JVM_FEATURES_minimal := @JVM_FEATURES_minimal@
 288 JVM_FEATURES_zero := @JVM_FEATURES_zero@
 289 JVM_FEATURES_custom := @JVM_FEATURES_custom@
 290 
 291 # Used for make-time verifications
 292 VALID_JVM_FEATURES := @VALID_JVM_FEATURES@
 293 VALID_JVM_VARIANTS := @VALID_JVM_VARIANTS@
 294 
 295 # Allow overriding the default hotspot library path
 296 HOTSPOT_OVERRIDE_LIBPATH := @HOTSPOT_OVERRIDE_LIBPATH@
 297 
 298 # Control use of precompiled header in hotspot libjvm build
 299 USE_PRECOMPILED_HEADER := @USE_PRECOMPILED_HEADER@
 300 
 301 # Only build headless support or not
 302 ENABLE_HEADLESS_ONLY := @ENABLE_HEADLESS_ONLY@
 303 
 304 ENABLE_LINKTIME_GC := @ENABLE_LINKTIME_GC@
 305 
 306 # Ship debug symbols (e.g. pdbs on Windows)
 307 SHIP_DEBUG_SYMBOLS := @SHIP_DEBUG_SYMBOLS@
 308 
 309 ENABLE_FULL_DOCS := @ENABLE_FULL_DOCS@
 310 
 311 # JDK_OUTPUTDIR specifies where a working jvm is built.
 312 # You can run $(JDK_OUTPUTDIR)/bin/java
 313 
 314 OUTPUTDIR := @OUTPUTDIR@
 315 # Colon left out to be able to override IMAGES_OUTPUTDIR for bootcycle-images
 316 SUPPORT_OUTPUTDIR=$(OUTPUTDIR)/support
 317 BUILDTOOLS_OUTPUTDIR=$(OUTPUTDIR)/buildtools
 318 
 319 HOTSPOT_OUTPUTDIR=$(OUTPUTDIR)/hotspot
 320 JDK_OUTPUTDIR=$(OUTPUTDIR)/jdk
 321 IMAGES_OUTPUTDIR=$(OUTPUTDIR)/images
 322 BUNDLES_OUTPUTDIR=$(OUTPUTDIR)/bundles
 323 TESTMAKE_OUTPUTDIR=$(OUTPUTDIR)/test-make
 324 MAKESUPPORT_OUTPUTDIR=$(OUTPUTDIR)/make-support
 325 
 326 # This does not get overridden in a bootcycle build
 327 CONFIGURESUPPORT_OUTPUTDIR:=@CONFIGURESUPPORT_OUTPUTDIR@
 328 BUILDJDK_OUTPUTDIR=$(OUTPUTDIR)/buildjdk
 329 
 330 BUILD_FAILURE_HANDLER := @BUILD_FAILURE_HANDLER@
 331 
 332 ENABLE_GENERATE_CLASSLIST := @ENABLE_GENERATE_CLASSLIST@
 333 
 334 EXCLUDE_TRANSLATIONS := @EXCLUDE_TRANSLATIONS@
 335 
 336 BUILD_MANPAGES := @BUILD_MANPAGES@
 337 
 338 BUILD_CDS_ARCHIVE := @BUILD_CDS_ARCHIVE@
 339 
 340 ALLOW_ABSOLUTE_PATHS_IN_OUTPUT := @ALLOW_ABSOLUTE_PATHS_IN_OUTPUT@
 341 
 342 # The boot jdk to use. This is overridden in bootcycle-spec.gmk. Make sure to keep
 343 # it in sync.
 344 BOOT_JDK:=@BOOT_JDK@
 345 
 346 BUILD_JDK:=@BUILD_JDK@
 347 CREATE_BUILDJDK:=@CREATE_BUILDJDK@
 348 EXTERNAL_BUILDJDK:=@EXTERNAL_BUILDJDK@
 349 
 350 # When compiling Java source to be run by the boot jdk
 351 # use these extra flags, eg -source 6 -target 6
 352 BOOT_JDK_SOURCETARGET:=@BOOT_JDK_SOURCETARGET@
 353 
 354 # Information about the build system
 355 NUM_CORES:=@NUM_CORES@
 356 MEMORY_SIZE:=@MEMORY_SIZE@
 357 ENABLE_JAVAC_SERVER:=@ENABLE_JAVAC_SERVER@
 358 # Store javac server synchronization files here, and
 359 # the javac server log files.
 360 JAVAC_SERVER_DIR=$(MAKESUPPORT_OUTPUTDIR)/javacservers
 361 
 362 # Number of parallel jobs to use for compilation
 363 JOBS?=@JOBS@
 364 TEST_JOBS?=@TEST_JOBS@
 365 
 366 # Default make target
 367 DEFAULT_MAKE_TARGET:=@DEFAULT_MAKE_TARGET@
 368 DEFAULT_LOG:=@DEFAULT_LOG@
 369 
 370 FREETYPE_TO_USE:=@FREETYPE_TO_USE@
 371 FREETYPE_LIBS:=@FREETYPE_LIBS@
 372 FREETYPE_CFLAGS:=@FREETYPE_CFLAGS@
 373 FONTCONFIG_CFLAGS:=@FONTCONFIG_CFLAGS@
 374 CUPS_CFLAGS:=@CUPS_CFLAGS@
 375 ALSA_LIBS:=@ALSA_LIBS@
 376 ALSA_CFLAGS:=@ALSA_CFLAGS@
 377 LIBFFI_LIBS:=@LIBFFI_LIBS@
 378 LIBFFI_CFLAGS:=@LIBFFI_CFLAGS@
 379 ENABLE_LIBFFI_BUNDLING:=@ENABLE_LIBFFI_BUNDLING@
 380 LIBFFI_LIB_FILE:=@LIBFFI_LIB_FILE@
 381 GRAALUNIT_LIB := @GRAALUNIT_LIB@
 382 FILE_MACRO_CFLAGS := @FILE_MACRO_CFLAGS@
 383 
 384 STATIC_LIBS_CFLAGS := @STATIC_LIBS_CFLAGS@
 385 
 386 JMH_CORE_JAR := @JMH_CORE_JAR@
 387 JMH_GENERATOR_JAR := @JMH_GENERATOR_JAR@
 388 JMH_JOPT_SIMPLE_JAR := @JMH_JOPT_SIMPLE_JAR@
 389 JMH_COMMONS_MATH_JAR := @JMH_COMMONS_MATH_JAR@
 390 JMH_VERSION := @JMH_VERSION@
 391 
 392 GTEST_FRAMEWORK_SRC := @GTEST_FRAMEWORK_SRC@
 393 
 394 # Source file for cacerts
 395 CACERTS_FILE=@CACERTS_FILE@
 396 
 397 # Enable unlimited crypto policy
 398 UNLIMITED_CRYPTO=@UNLIMITED_CRYPTO@
 399 
 400 GCOV_ENABLED=@GCOV_ENABLED@
 401 JCOV_ENABLED=@JCOV_ENABLED@
 402 JCOV_HOME=@JCOV_HOME@
 403 JCOV_INPUT_JDK=@JCOV_INPUT_JDK@
 404 JCOV_FILTERS=@JCOV_FILTERS@
 405 
 406 # AddressSanitizer
 407 export ASAN_ENABLED:=@ASAN_ENABLED@
 408 export DEVKIT_LIB_DIR:=@DEVKIT_LIB_DIR@
 409 ifeq ($(ASAN_ENABLED), yes)
 410   export ASAN_OPTIONS=handle_segv=0 detect_leaks=0
 411   ifneq ($(DEVKIT_LIB_DIR),)
 412     export LD_LIBRARY_PATH:=$(LD_LIBRARY_PATH):$(DEVKIT_LIB_DIR)
 413   endif
 414 endif
 415 
 416 # Necessary additional compiler flags to compile X11
 417 X_CFLAGS:=@X_CFLAGS@
 418 X_LIBS:=@X_LIBS@
 419 
 420 # The lowest required version of macosx
 421 MACOSX_VERSION_MIN=@MACOSX_VERSION_MIN@
 422 # The highest allowed version of macosx
 423 MACOSX_VERSION_MAX=@MACOSX_VERSION_MAX@
 424 
 425 # The macosx code signing identity to use
 426 MACOSX_CODESIGN_IDENTITY=@MACOSX_CODESIGN_IDENTITY@
 427 
 428 # Toolchain type: gcc, clang, xlc, microsoft...
 429 TOOLCHAIN_TYPE:=@TOOLCHAIN_TYPE@
 430 TOOLCHAIN_VERSION := @TOOLCHAIN_VERSION@
 431 CC_VERSION_NUMBER := @CC_VERSION_NUMBER@
 432 CXX_VERSION_NUMBER := @CXX_VERSION_NUMBER@
 433 
 434 # Legacy support
 435 HOTSPOT_TOOLCHAIN_TYPE := @HOTSPOT_TOOLCHAIN_TYPE@
 436 
 437 # Option used to tell the compiler whether to create 32- or 64-bit executables
 438 COMPILER_TARGET_BITS_FLAG:=@COMPILER_TARGET_BITS_FLAG@
 439 COMPILER_SUPPORTS_TARGET_BITS_FLAG=@COMPILER_SUPPORTS_TARGET_BITS_FLAG@
 440 
 441 # Option used to pass a command file to the compiler
 442 COMPILER_COMMAND_FILE_FLAG:=@COMPILER_COMMAND_FILE_FLAG@
 443 
 444 # Option for specifying a file which saves the binder commands
 445 # produced by the link step (for debugging, currently AIX only)
 446 COMPILER_BINDCMD_FILE_FLAG:=@COMPILER_BINDCMD_FILE_FLAG@
 447 
 448 CC_OUT_OPTION:=@CC_OUT_OPTION@
 449 LD_OUT_OPTION:=@LD_OUT_OPTION@
 450 AR_OUT_OPTION:=@AR_OUT_OPTION@
 451 
 452 # Flags used for overriding the default opt setting for a C/C++ source file.
 453 C_O_FLAG_HIGHEST_JVM:=@C_O_FLAG_HIGHEST_JVM@
 454 C_O_FLAG_HIGHEST:=@C_O_FLAG_HIGHEST@
 455 C_O_FLAG_HI:=@C_O_FLAG_HI@
 456 C_O_FLAG_NORM:=@C_O_FLAG_NORM@
 457 C_O_FLAG_NONE:=@C_O_FLAG_NONE@
 458 C_O_FLAG_SIZE:=@C_O_FLAG_SIZE@
 459 CXX_O_FLAG_HIGHEST_JVM:=@CXX_O_FLAG_HIGHEST_JVM@
 460 CXX_O_FLAG_HIGHEST:=@CXX_O_FLAG_HIGHEST@
 461 CXX_O_FLAG_HI:=@CXX_O_FLAG_HI@
 462 CXX_O_FLAG_NORM:=@CXX_O_FLAG_NORM@
 463 CXX_O_FLAG_NONE:=@CXX_O_FLAG_NONE@
 464 CXX_O_FLAG_SIZE:=@CXX_O_FLAG_SIZE@
 465 
 466 C_FLAG_DEPS:=@C_FLAG_DEPS@
 467 CXX_FLAG_DEPS:=@CXX_FLAG_DEPS@
 468 
 469 DISABLE_WARNING_PREFIX := @DISABLE_WARNING_PREFIX@
 470 CFLAGS_WARNINGS_ARE_ERRORS:=@CFLAGS_WARNINGS_ARE_ERRORS@
 471 DISABLED_WARNINGS := @DISABLED_WARNINGS@
 472 DISABLED_WARNINGS_C := @DISABLED_WARNINGS_C@
 473 DISABLED_WARNINGS_CXX := @DISABLED_WARNINGS_CXX@
 474 
 475 # A global flag (true or false) determining if native warnings are considered errors.
 476 WARNINGS_AS_ERRORS := @WARNINGS_AS_ERRORS@
 477 
 478 CFLAGS_CCACHE:=@CFLAGS_CCACHE@
 479 ADLC_LANGSTD_CXXFLAGS=@ADLC_LANGSTD_CXXFLAGS@
 480 ADLC_LDFLAGS=@ADLC_LDFLAGS@
 481 
 482 # Tools that potentially need to be cross compilation aware.
 483 CC:=@FIXPATH@ @CCACHE@ @ICECC@ @CC@
 484 
 485 # CFLAGS used to compile the jdk native libraries (C-code)
 486 CFLAGS_JDKLIB:=@CFLAGS_JDKLIB@
 487 CXXFLAGS_JDKLIB:=@CXXFLAGS_JDKLIB@
 488 
 489 # CFLAGS used to compile the jdk native launchers (C-code)
 490 CFLAGS_JDKEXE:=@CFLAGS_JDKEXE@
 491 CXXFLAGS_JDKEXE:=@CXXFLAGS_JDKEXE@
 492 
 493 FDLIBM_CFLAGS := @FDLIBM_CFLAGS@
 494 JVM_CFLAGS := @JVM_CFLAGS@
 495 JVM_LDFLAGS := @JVM_LDFLAGS@
 496 JVM_ASFLAGS := @JVM_ASFLAGS@
 497 JVM_LIBS := @JVM_LIBS@
 498 
 499 # These flags might contain variables set by a custom extension that is included later.
 500 EXTRA_CFLAGS = @EXTRA_CFLAGS@
 501 EXTRA_CXXFLAGS = @EXTRA_CXXFLAGS@
 502 EXTRA_LDFLAGS = @EXTRA_LDFLAGS@
 503 EXTRA_ASFLAGS = @EXTRA_ASFLAGS@
 504 
 505 CXX:=@FIXPATH@ @CCACHE@ @ICECC@ @CXX@
 506 
 507 CPP:=@FIXPATH@ @CPP@
 508 
 509 # The linker can be gcc or ld on unix systems, or link.exe on windows systems.
 510 LD:=@FIXPATH@ @LD@
 511 
 512 # Linker used by the jaotc tool for AOT compilation.
 513 LD_JAOTC:=@LD_JAOTC@
 514 
 515 # Xcode SDK path
 516 SDKROOT:=@SDKROOT@
 517 
 518 # LDFLAGS used to link the jdk native libraries (C-code)
 519 LDFLAGS_JDKLIB:=@LDFLAGS_JDKLIB@
 520 JDKLIB_LIBS:=@JDKLIB_LIBS@
 521 
 522 # LDFLAGS used to link the jdk native launchers (C-code)
 523 LDFLAGS_JDKEXE:=@LDFLAGS_JDKEXE@
 524 JDKEXE_LIBS:=@JDKEXE_LIBS@
 525 
 526 # LDFLAGS specific to C++ linking.
 527 LDFLAGS_CXX_JDK:=@LDFLAGS_CXX_JDK@
 528 
 529 # Sometimes a different linker is needed for c++ libs
 530 LDCXX:=@FIXPATH@ @LDCXX@
 531 # The flags for linking libstdc++ linker.
 532 LIBCXX:=@LIBCXX@
 533 
 534 # Compiler and linker flags used when building native tests
 535 LDFLAGS_TESTEXE:=@LDFLAGS_TESTEXE@
 536 
 537 # BUILD_CC/BUILD_LD is a compiler/linker that generates code that is runnable on the
 538 # build platform.
 539 BUILD_CC:=@FIXPATH@ @BUILD_ICECC@ @BUILD_CC@
 540 BUILD_CXX:=@FIXPATH@ @BUILD_ICECC@ @BUILD_CXX@
 541 BUILD_LD:=@FIXPATH@ @BUILD_LD@
 542 BUILD_LDCXX:=@FIXPATH@ @BUILD_LDCXX@
 543 BUILD_AS:=@FIXPATH@ @BUILD_AS@
 544 BUILD_AR:=@FIXPATH@ @BUILD_AR@
 545 BUILD_NM:=@FIXPATH@ @BUILD_NM@
 546 BUILD_OBJCOPY:=@BUILD_OBJCOPY@
 547 BUILD_STRIP:=@BUILD_STRIP@
 548 BUILD_SYSROOT_CFLAGS:=@BUILD_SYSROOT_CFLAGS@
 549 BUILD_SYSROOT_LDFLAGS:=@BUILD_SYSROOT_LDFLAGS@
 550 
 551 AS:=@FIXPATH@ @AS@
 552 
 553 # AR is used to create a static library (is ar in unix, lib.exe in windows)
 554 AR:=@FIXPATH@ @AR@
 555 ARFLAGS:=@ARFLAGS@
 556 
 557 NM:=@NM@
 558 GNM:=@GNM@
 559 STRIP:=@STRIP@
 560 OBJDUMP:=@OBJDUMP@
 561 CXXFILT:=@CXXFILT@
 562 
 563 LIPO:=@LIPO@
 564 INSTALL_NAME_TOOL:=@INSTALL_NAME_TOOL@
 565 
 566 # Options to linker to specify a mapfile.
 567 # (Note absence of := assignment, because we do not want to evaluate the macro body here)
 568 SET_SHARED_LIBRARY_MAPFILE=@SET_SHARED_LIBRARY_MAPFILE@
 569 
 570 #
 571 # Options for generating debug symbols
 572 COMPILE_WITH_DEBUG_SYMBOLS := @COMPILE_WITH_DEBUG_SYMBOLS@
 573 COPY_DEBUG_SYMBOLS := @COPY_DEBUG_SYMBOLS@
 574 ZIP_EXTERNAL_DEBUG_SYMBOLS := @ZIP_EXTERNAL_DEBUG_SYMBOLS@
 575 
 576 CFLAGS_DEBUG_SYMBOLS:=@CFLAGS_DEBUG_SYMBOLS@
 577 ASFLAGS_DEBUG_SYMBOLS:=@ASFLAGS_DEBUG_SYMBOLS@
 578 
 579 #
 580 # Compress (or not) jars
 581 COMPRESS_JARS=@COMPRESS_JARS@
 582 
 583 # Options to linker to specify the library name.
 584 # (Note absence of := assignment, because we do not want to evaluate the macro body here)
 585 SET_SHARED_LIBRARY_NAME=@SET_SHARED_LIBRARY_NAME@
 586 
 587 SHARED_LIBRARY_FLAGS=@SHARED_LIBRARY_FLAGS@
 588 
 589 # Set origin using the linker, ie use the relative path to the dependent library to find the dependees.
 590 # (Note absence of := assignment, because we do not want to evaluate the macro body here)
 591 SET_SHARED_LIBRARY_ORIGIN=@SET_SHARED_LIBRARY_ORIGIN@
 592 SET_EXECUTABLE_ORIGIN=@SET_EXECUTABLE_ORIGIN@
 593 
 594 # Different OS:es have different ways of naming shared libraries.
 595 # The SHARED_LIBRARY macro takes "verify" as and argument and returns:
 596 #    "libverify.so" or "libverify.dylib" or "verify.dll" depending on platform.
 597 # (Note absence of := assignment, because we do not want to evaluate the macro body here)
 598 SHARED_LIBRARY=@SHARED_LIBRARY@
 599 STATIC_LIBRARY=@STATIC_LIBRARY@
 600 LIBRARY_PREFIX:=@LIBRARY_PREFIX@
 601 SHARED_LIBRARY_SUFFIX:=@SHARED_LIBRARY_SUFFIX@
 602 STATIC_LIBRARY_SUFFIX:=@STATIC_LIBRARY_SUFFIX@
 603 EXE_SUFFIX:=@EXE_SUFFIX@
 604 OBJ_SUFFIX:=@OBJ_SUFFIX@
 605 STATIC_BUILD:=@STATIC_BUILD@
 606 
 607 STRIPFLAGS:=@STRIPFLAGS@
 608 
 609 JAVA_FLAGS:=@JAVA_FLAGS@
 610 JAVA_FLAGS_BIG:=@JAVA_FLAGS_BIG@
 611 JAVA_FLAGS_SMALL:=@JAVA_FLAGS_SMALL@
 612 BUILDJDK_JAVA_FLAGS_SMALL:=@BUILDJDK_JAVA_FLAGS_SMALL@
 613 JAVA_TOOL_FLAGS_SMALL:=@JAVA_TOOL_FLAGS_SMALL@
 614 
 615 # The *_CMD variables are defined separately to be easily overridden in bootcycle-spec.gmk
 616 # for bootcycle-images build. Make sure to keep them in sync. Do not use the *_CMD
 617 # versions of the variables directly.
 618 JAVA_CMD:=@JAVA@
 619 JAVAC_CMD:=@JAVAC@
 620 JAVADOC_CMD:=@JAVADOC@
 621 JAR_CMD:=@JAR@
 622 JLINK_CMD := @JLINK@
 623 JMOD_CMD := @JMOD@
 624 JARSIGNER_CMD:=@JARSIGNER@
 625 # These variables are meant to be used. They are defined with = instead of := to make
 626 # it possible to override only the *_CMD variables.
 627 JAVA=@FIXPATH@ $(JAVA_CMD) $(JAVA_FLAGS_BIG) $(JAVA_FLAGS)
 628 JAVA_SMALL=@FIXPATH@ $(JAVA_CMD) $(JAVA_FLAGS_SMALL) $(JAVA_FLAGS)
 629 JAVA_DETACH =@FIXPATH@ @FIXPATH_DETACH_FLAG@ $(JAVA_CMD) $(JAVA_FLAGS_BIG) $(JAVA_FLAGS)
 630 JAVAC=@FIXPATH@ $(JAVAC_CMD)
 631 JAVADOC=@FIXPATH@ $(JAVADOC_CMD)
 632 JAR=@FIXPATH@ $(JAR_CMD)
 633 JLINK = @FIXPATH@ $(JLINK_CMD)
 634 JMOD = @FIXPATH@ $(JMOD_CMD) $(JAVA_TOOL_FLAGS_SMALL)
 635 JARSIGNER=@FIXPATH@ $(JARSIGNER_CMD)
 636 
 637 BUILD_JAVA_FLAGS := @BOOTCYCLE_JVM_ARGS_BIG@
 638 BUILD_JAVA=@FIXPATH@ $(BUILD_JDK)/bin/java $(BUILD_JAVA_FLAGS)
 639 BUILD_JAR=@FIXPATH@ $(BUILD_JDK)/bin/jar
 640 
 641 # Interim langtools modules and arguments
 642 INTERIM_LANGTOOLS_BASE_MODULES := java.compiler jdk.compiler jdk.javadoc
 643 INTERIM_LANGTOOLS_MODULES := $(addsuffix .interim, $(INTERIM_LANGTOOLS_BASE_MODULES))
 644 INTERIM_LANGTOOLS_ADD_EXPORTS := \
 645     --add-exports java.base/sun.reflect.annotation=jdk.compiler.interim \
 646     --add-exports java.base/jdk.internal.jmod=jdk.compiler.interim \
 647     --add-exports java.base/jdk.internal.misc=jdk.compiler.interim \
 648     --add-exports java.base/sun.invoke.util=jdk.compiler.interim \
 649     #
 650 INTERIM_LANGTOOLS_MODULES_COMMA := $(strip $(subst $(SPACE),$(COMMA),$(strip \
 651     $(INTERIM_LANGTOOLS_MODULES))))
 652 INTERIM_LANGTOOLS_ARGS := \
 653     --limit-modules java.base,jdk.zipfs,$(INTERIM_LANGTOOLS_MODULES_COMMA) \
 654     --add-modules $(INTERIM_LANGTOOLS_MODULES_COMMA) \
 655     --module-path $(BUILDTOOLS_OUTPUTDIR)/interim_langtools_modules \
 656     $(INTERIM_LANGTOOLS_ADD_EXPORTS) \
 657     #
 658 JAVAC_MAIN_CLASS = -m jdk.compiler.interim/com.sun.tools.javac.Main
 659 JAVADOC_MAIN_CLASS = -m jdk.javadoc.interim/jdk.javadoc.internal.tool.Main
 660 
 661 # You run the new javac using the boot jdk with $(BOOT_JDK)/bin/java $(NEW_JAVAC) ...
 662 # Use = assignment to be able to override in bootcycle-spec.gmk
 663 NEW_JAVAC   = $(INTERIM_LANGTOOLS_ARGS) $(JAVAC_MAIN_CLASS)
 664 NEW_JAVADOC = $(INTERIM_LANGTOOLS_ARGS) $(JAVADOC_MAIN_CLASS)
 665 
 666 JLINK_KEEP_PACKAGED_MODULES:=@JLINK_KEEP_PACKAGED_MODULES@
 667 
 668 RCFLAGS := @RCFLAGS@
 669 
 670 # Tools adhering to a minimal and common standard of posix compliance.
 671 AWK:=@AWK@
 672 BASENAME:=@BASENAME@
 673 CAT:=@CAT@
 674 CCACHE:=@CCACHE@
 675 # CD is going away, but remains to cater for legacy makefiles.
 676 CD:=cd
 677 CHMOD:=@CHMOD@
 678 CODESIGN:=@CODESIGN@
 679 COMM:=@COMM@
 680 CP:=@CP@
 681 CPIO:=@CPIO@
 682 CUT:=@CUT@
 683 DATE:=@DATE@
 684 DIFF:=@DIFF@
 685 DIRNAME:=@DIRNAME@
 686 DSYMUTIL:=@DSYMUTIL@
 687 FIND:=@FIND@
 688 FIND_DELETE:=@FIND_DELETE@
 689 FLOCK:=@FLOCK@
 690 ECHO:=@ECHO@
 691 EGREP:=@EGREP@
 692 FGREP:=@FGREP@
 693 GREP:=@GREP@
 694 GZIP:=@GZIP@
 695 HEAD:=@HEAD@
 696 LS:=@LS@
 697 LN:=@LN@
 698 MIG:=@MIG@
 699 MKDIR:=@MKDIR@
 700 MV:=@MV@
 701 NAWK:=@NAWK@
 702 NICE:=@NICE@
 703 PANDOC:=@FIXPATH@ @PANDOC@
 704 PATCH:=@PATCH@
 705 PRINTF:=@PRINTF@
 706 READLINK:=@READLINK@
 707 RM:=@RM@
 708 RMDIR:=@RMDIR@
 709 SED:=@SED@
 710 SH:=@SH@
 711 SORT:=@SORT@
 712 TAR:=@TAR@
 713 TAIL:=@TAIL@
 714 TEE:=@TEE@
 715 TIME:=@TIME@
 716 IS_GNU_TIME:=@IS_GNU_TIME@
 717 TR:=@TR@
 718 TOUCH:=@TOUCH@
 719 UNIQ:=@UNIQ@
 720 WC:=@WC@
 721 XARGS:=@XARGS@
 722 ZIPEXE:=@ZIPEXE@
 723 UNZIP:=@UNZIP@
 724 MT:=@FIXPATH@ @MT@
 725 RC:=@FIXPATH@ @RC@
 726 DUMPBIN:=@FIXPATH@ @DUMPBIN@
 727 CYGPATH:=@CYGPATH@
 728 WSLPATH:=@WSLPATH@
 729 LDD:=@LDD@
 730 OTOOL:=@OTOOL@
 731 READELF:=@READELF@
 732 EXPR:=@EXPR@
 733 FILE:=@FILE@
 734 DOT:=@DOT@
 735 HG:=@HG@
 736 GIT:=@GIT@
 737 OBJCOPY:=@OBJCOPY@
 738 SETFILE:=@SETFILE@
 739 XATTR:=@XATTR@
 740 JT_HOME:=@JT_HOME@
 741 JIB_HOME:=@JIB_HOME@
 742 XCODEBUILD=@XCODEBUILD@
 743 DTRACE := @DTRACE@
 744 FIXPATH:=@FIXPATH@
 745 ULIMIT:=@ULIMIT@
 746 
 747 TAR_TYPE:=@TAR_TYPE@
 748 TAR_INCLUDE_PARAM:=@TAR_INCLUDE_PARAM@
 749 TAR_SUPPORTS_TRANSFORM:=@TAR_SUPPORTS_TRANSFORM@
 750 
 751 # Build setup
 752 ENABLE_AOT:=@ENABLE_AOT@
 753 ENABLE_INTREE_EC:=@ENABLE_INTREE_EC@
 754 USE_EXTERNAL_LIBJPEG:=@USE_EXTERNAL_LIBJPEG@
 755 USE_EXTERNAL_LIBGIF:=@USE_EXTERNAL_LIBGIF@
 756 USE_EXTERNAL_LIBZ:=@USE_EXTERNAL_LIBZ@
 757 LIBZ_CFLAGS:=@LIBZ_CFLAGS@
 758 LIBZ_LIBS:=@LIBZ_LIBS@
 759 LIBZIP_CAN_USE_MMAP:=@LIBZIP_CAN_USE_MMAP@
 760 MSVCR_DLL:=@MSVCR_DLL@
 761 VCRUNTIME_1_DLL:=@VCRUNTIME_1_DLL@
 762 MSVCP_DLL:=@MSVCP_DLL@
 763 UCRT_DLL_DIR:=@UCRT_DLL_DIR@
 764 ENABLE_PANDOC:=@ENABLE_PANDOC@
 765 PANDOC_MARKDOWN_FLAG:=@PANDOC_MARKDOWN_FLAG@
 766 
 767 ####################################################
 768 #
 769 # INSTALLATION
 770 #
 771 
 772 # Common prefix for all installed files. Defaults to /usr/local,
 773 # but /opt/myjdk is another common version.
 774 INSTALL_PREFIX=@prefix@
 775 
 776 # Directories containing architecture-dependent files should be relative to exec_prefix
 777 INSTALL_EXECPREFIX=@exec_prefix@
 778 
 779 # java,javac,javap etc are installed here.
 780 INSTALL_BINDIR=@bindir@
 781 
 782 # Read only architecture-independent data
 783 INSTALL_DATADIR=@datadir@
 784 
 785 # Root of above.
 786 INSTALL_DATAROOTDIR=@datarootdir@
 787 
 788 # Doc files, other than info and man.
 789 INSTALL_DOCDIR=@docdir@
 790 
 791 # Html documentation
 792 INSTALL_HTMLDIR=@htmldir@
 793 
 794 # Installing C header files, JNI headers for example.
 795 INSTALL_INCLUDEDIR=@includedir@
 796 
 797 # Installing library files....
 798 INSTALL_INCLUDEDIR=@libdir@
 799 
 800 # Executables that other programs run.
 801 INSTALL_LIBEXECDIR=@libexecdir@
 802 
 803 # Locale-dependent but architecture-independent data, such as message catalogs.
 804 INSTALL_LOCALEDIR=@localedir@
 805 
 806 # Modifiable single-machine data
 807 INSTALL_LOCALSTATEDIR=@localstatedir@
 808 
 809 # Man pages
 810 INSTALL_MANDIR=@mandir@
 811 
 812 # Modifiable architecture-independent data.
 813 INSTALL_SHAREDSTATEDIR=@sharedstatedir@
 814 
 815 # Read-only single-machine data
 816 INSTALL_SYSCONFDIR=@sysconfdir@
 817 
 818 ####################################################
 819 #
 820 # Libraries
 821 #
 822 
 823 USE_EXTERNAL_LCMS:=@USE_EXTERNAL_LCMS@
 824 LCMS_CFLAGS:=@LCMS_CFLAGS@
 825 LCMS_LIBS:=@LCMS_LIBS@
 826 
 827 USE_EXTERNAL_HARFBUZZ:=@USE_EXTERNAL_HARFBUZZ@
 828 HARFBUZZ_CFLAGS:=@HARFBUZZ_CFLAGS@
 829 HARFBUZZ_LIBS:=@HARFBUZZ_LIBS@
 830 
 831 USE_EXTERNAL_LIBPNG:=@USE_EXTERNAL_LIBPNG@
 832 PNG_LIBS:=@PNG_LIBS@
 833 PNG_CFLAGS:=@PNG_CFLAGS@
 834 
 835 ####################################################
 836 #
 837 # Misc
 838 #
 839 
 840 INCLUDE_SA=@INCLUDE_SA@
 841 INCLUDE_GRAAL=@INCLUDE_GRAAL@
 842 INCLUDE_JVMCI=@INCLUDE_JVMCI@
 843 
 844 OS_VERSION_MAJOR:=@OS_VERSION_MAJOR@
 845 OS_VERSION_MINOR:=@OS_VERSION_MINOR@
 846 OS_VERSION_MICRO:=@OS_VERSION_MICRO@
 847 
 848 # Images directory definitions
 849 JDK_IMAGE_SUBDIR:=jdk
 850 JRE_IMAGE_SUBDIR:=jre
 851 JCOV_IMAGE_SUBDIR := jdk-jcov
 852 
 853 # Colon left out to be able to override output dir for bootcycle-images
 854 JDK_IMAGE_DIR=$(IMAGES_OUTPUTDIR)/$(JDK_IMAGE_SUBDIR)
 855 JRE_IMAGE_DIR=$(IMAGES_OUTPUTDIR)/$(JRE_IMAGE_SUBDIR)
 856 JCOV_IMAGE_DIR = $(IMAGES_OUTPUTDIR)/$(JCOV_IMAGE_SUBDIR)
 857 
 858 # Test image, as above
 859 TEST_IMAGE_SUBDIR:=test
 860 TEST_IMAGE_DIR=$(IMAGES_OUTPUTDIR)/$(TEST_IMAGE_SUBDIR)
 861 
 862 # Symbols image
 863 SYMBOLS_IMAGE_SUBDIR:=symbols
 864 SYMBOLS_IMAGE_DIR=$(IMAGES_OUTPUTDIR)/$(SYMBOLS_IMAGE_SUBDIR)
 865 
 866 # Interim image
 867 INTERIM_JMODS_DIR := $(SUPPORT_OUTPUTDIR)/interim-jmods
 868 INTERIM_IMAGE_DIR := $(SUPPORT_OUTPUTDIR)/interim-image
 869 
 870 # Docs image
 871 DOCS_IMAGE_SUBDIR := docs
 872 DOCS_IMAGE_DIR = $(IMAGES_OUTPUTDIR)/$(DOCS_IMAGE_SUBDIR)
 873 # Output docs directly into image
 874 DOCS_OUTPUTDIR := $(DOCS_IMAGE_DIR)
 875 
 876 # Static libs image
 877 STATIC_LIBS_IMAGE_SUBDIR := static-libs
 878 STATIC_LIBS_IMAGE_DIR := $(IMAGES_OUTPUTDIR)/$(STATIC_LIBS_IMAGE_SUBDIR)
 879 
 880 # Graal builder image
 881 GRAAL_BUILDER_IMAGE_SUBDIR := graal-builder-jdk
 882 GRAAL_BUILDER_IMAGE_DIR := $(IMAGES_OUTPUTDIR)/$(GRAAL_BUILDER_IMAGE_SUBDIR)
 883 
 884 # Macosx bundles directory definitions
 885 JDK_MACOSX_BUNDLE_SUBDIR=jdk-bundle
 886 JRE_MACOSX_BUNDLE_SUBDIR=jre-bundle
 887 JDK_MACOSX_BUNDLE_SUBDIR_SIGNED=jdk-bundle-signed
 888 JRE_MACOSX_BUNDLE_SUBDIR_SIGNED=jre-bundle-signed
 889 JDK_MACOSX_BUNDLE_DIR=$(IMAGES_OUTPUTDIR)/$(JDK_MACOSX_BUNDLE_SUBDIR)
 890 JRE_MACOSX_BUNDLE_DIR=$(IMAGES_OUTPUTDIR)/$(JRE_MACOSX_BUNDLE_SUBDIR)
 891 JDK_MACOSX_BUNDLE_DIR_SIGNED=$(IMAGES_OUTPUTDIR)/$(JDK_MACOSX_BUNDLE_SUBDIR_SIGNED)
 892 JRE_MACOSX_BUNDLE_DIR_SIGNED=$(IMAGES_OUTPUTDIR)/$(JRE_MACOSX_BUNDLE_SUBDIR_SIGNED)
 893 JDK_MACOSX_BUNDLE_TOP_DIR=jdk-$(VERSION_NUMBER).jdk
 894 JRE_MACOSX_BUNDLE_TOP_DIR=jre-$(VERSION_NUMBER).jre
 895 JDK_MACOSX_CONTENTS_SUBDIR=$(JDK_MACOSX_BUNDLE_TOP_DIR)/Contents
 896 JRE_MACOSX_CONTENTS_SUBDIR=$(JRE_MACOSX_BUNDLE_TOP_DIR)/Contents
 897 JDK_MACOSX_CONTENTS_DIR=$(JDK_MACOSX_BUNDLE_DIR)/$(JDK_MACOSX_CONTENTS_SUBDIR)
 898 JRE_MACOSX_CONTENTS_DIR=$(JRE_MACOSX_BUNDLE_DIR)/$(JRE_MACOSX_CONTENTS_SUBDIR)
 899 
 900 # Bundle names
 901 BASE_NAME := $(VERSION_SHORT)+$(VERSION_BUILD)_$(OPENJDK_TARGET_BUNDLE_PLATFORM)
 902 ifeq ($(DEBUG_LEVEL), fastdebug)
 903   DEBUG_PART := -debug
 904 else ifneq ($(DEBUG_LEVEL), release)
 905   DEBUG_PART := -$(DEBUG_LEVEL)
 906 endif
 907 ifeq ($(OPENJDK_TARGET_OS), windows)
 908   JDK_BUNDLE_EXTENSION := zip
 909 else
 910   JDK_BUNDLE_EXTENSION := tar.gz
 911 endif
 912 JDK_BUNDLE_NAME := jdk-$(BASE_NAME)_bin$(DEBUG_PART).$(JDK_BUNDLE_EXTENSION)
 913 JRE_BUNDLE_NAME := jre-$(BASE_NAME)_bin$(DEBUG_PART).$(JDK_BUNDLE_EXTENSION)
 914 JDK_SYMBOLS_BUNDLE_NAME := jdk-$(BASE_NAME)_bin$(DEBUG_PART)-symbols.tar.gz
 915 TEST_DEMOS_BUNDLE_NAME := jdk-$(BASE_NAME)_bin-tests-demos$(DEBUG_PART).tar.gz
 916 TEST_BUNDLE_NAME := jdk-$(BASE_NAME)_bin-tests$(DEBUG_PART).tar.gz
 917 DOCS_BUNDLE_NAME := jdk-$(BASE_NAME)_doc-api-spec$(DEBUG_PART).tar.gz
 918 STATIC_LIBS_BUNDLE_NAME := jdk-$(BASE_NAME)_bin-static-libs$(DEBUG_PART).tar.gz
 919 JCOV_BUNDLE_NAME := jdk-jcov-$(BASE_NAME)_bin$(DEBUG_PART).$(JDK_BUNDLE_EXTENSION)
 920 
 921 JDK_BUNDLE := $(BUNDLES_OUTPUTDIR)/$(JDK_BUNDLE_NAME)
 922 JRE_BUNDLE :=  $(BUNDLES_OUTPUTDIR)/$(JRE_BUNDLE_NAME)
 923 JDK_SYMBOLS_BUNDLE :=  $(BUNDLES_OUTPUTDIR)/$(JDK_SYMBOLS_BUNDLE_NAME)
 924 TEST_DEMOS_BUNDLE := $(BUNDLES_OUTPUTDIR)/$(TEST_DEMOS_BUNDLE_NAME)
 925 TEST_BUNDLE :=  $(BUNDLES_OUTPUTDIR)/$(TEST_BUNDLE_NAME)
 926 DOCS_BUNDLE :=  $(BUNDLES_OUTPUTDIR)/$(DOCS_BUNDLE_NAME)
 927 JCOV_BUNDLE := $(BUNDLES_OUTPUTDIR)/$(JCOV_BUNDLE_NAME)
 928 
 929 # This macro is called to allow inclusion of closed source counterparts.
 930 # Unless overridden in closed sources, it expands to nothing.
 931 # Usage: This function is called in an open makefile, with the following
 932 # argument:
 933 # $1 the name of the makefile
 934 define IncludeCustomExtension
 935 endef
 936 
 937 # Include the custom-spec.gmk file if it exists
 938 -include $(dir @SPEC@)/custom-spec.gmk