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