1 #
   2 # Copyright (c) 2011, 2018, 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 OPENJDK_TARGET_OS_UPPERCASE:=@OPENJDK_TARGET_OS_UPPERCASE@
  69 
  70 OPENJDK_TARGET_CPU:=@OPENJDK_TARGET_CPU@
  71 OPENJDK_TARGET_CPU_ARCH:=@OPENJDK_TARGET_CPU_ARCH@
  72 OPENJDK_TARGET_CPU_BITS:=@OPENJDK_TARGET_CPU_BITS@
  73 OPENJDK_TARGET_CPU_ENDIAN:=@OPENJDK_TARGET_CPU_ENDIAN@
  74 
  75 COMPILE_TYPE:=@COMPILE_TYPE@
  76 
  77 # Legacy support
  78 OPENJDK_TARGET_CPU_ISADIR:=@OPENJDK_TARGET_CPU_ISADIR@
  79 OPENJDK_TARGET_CPU_LEGACY:=@OPENJDK_TARGET_CPU_LEGACY@
  80 OPENJDK_TARGET_CPU_LEGACY_LIB:=@OPENJDK_TARGET_CPU_LEGACY_LIB@
  81 OPENJDK_TARGET_CPU_OSARCH:=@OPENJDK_TARGET_CPU_OSARCH@
  82 OPENJDK_TARGET_OS_INCLUDE_SUBDIR:=@OPENJDK_TARGET_OS_INCLUDE_SUBDIR@
  83 
  84 HOTSPOT_TARGET_OS := @HOTSPOT_TARGET_OS@
  85 HOTSPOT_TARGET_OS_TYPE := @HOTSPOT_TARGET_OS_TYPE@
  86 
  87 HOTSPOT_TARGET_CPU := @HOTSPOT_TARGET_CPU@
  88 HOTSPOT_TARGET_CPU_ARCH := @HOTSPOT_TARGET_CPU_ARCH@
  89 HOTSPOT_TARGET_CPU_DEFINE := @HOTSPOT_TARGET_CPU_DEFINE@
  90 
  91 OPENJDK_TARGET_BUNDLE_PLATFORM:=@OPENJDK_TARGET_BUNDLE_PLATFORM@
  92 JDK_ARCH_ABI_PROP_NAME := @JDK_ARCH_ABI_PROP_NAME@
  93 
  94 # We are building on this build system.
  95 # When not cross-compiling, it is the same as the target.
  96 OPENJDK_BUILD_OS:=@OPENJDK_BUILD_OS@
  97 OPENJDK_BUILD_OS_TYPE:=@OPENJDK_BUILD_OS_TYPE@
  98 OPENJDK_BUILD_OS_ENV:=@OPENJDK_BUILD_OS_ENV@
  99 
 100 OPENJDK_BUILD_CPU:=@OPENJDK_BUILD_CPU@
 101 OPENJDK_BUILD_CPU_ARCH:=@OPENJDK_BUILD_CPU_ARCH@
 102 OPENJDK_BUILD_CPU_BITS:=@OPENJDK_BUILD_CPU_BITS@
 103 OPENJDK_BUILD_CPU_ENDIAN:=@OPENJDK_BUILD_CPU_ENDIAN@
 104 
 105 OPENJDK_BUILD_OS_INCLUDE_SUBDIR:=@OPENJDK_TARGET_OS_INCLUDE_SUBDIR@
 106 
 107 # Target platform value in ModuleTarget class file attribute.
 108 OPENJDK_MODULE_TARGET_PLATFORM:=@OPENJDK_MODULE_TARGET_PLATFORM@
 109 
 110 # OS_* properties in release file
 111 RELEASE_FILE_OS_NAME:=@RELEASE_FILE_OS_NAME@
 112 RELEASE_FILE_OS_ARCH:=@RELEASE_FILE_OS_ARCH@
 113 
 114 LIBM:=@LIBM@
 115 LIBDL:=@LIBDL@
 116 
 117 # colon or semicolon
 118 PATH_SEP:=@PATH_SEP@
 119 
 120 # Save the original path before replacing it with the Visual Studio tools
 121 ORIGINAL_PATH:=@ORIGINAL_PATH@
 122 ifeq ($(OPENJDK_TARGET_OS), windows)
 123   # On Windows, the Visual Studio toolchain needs the PATH to be adjusted
 124   # to include Visual Studio tools (this needs to be in cygwin/msys style).
 125   export PATH:=@VS_PATH@
 126 endif
 127 
 128 SYSROOT_CFLAGS := @SYSROOT_CFLAGS@
 129 SYSROOT_LDFLAGS := @SYSROOT_LDFLAGS@
 130 
 131 # The top-level directory of the source repository
 132 TOPDIR:=@TOPDIR@
 133 
 134 
 135 IMPORT_MODULES_CLASSES:=@IMPORT_MODULES_CLASSES@
 136 IMPORT_MODULES_CMDS:=@IMPORT_MODULES_CMDS@
 137 IMPORT_MODULES_LIBS:=@IMPORT_MODULES_LIBS@
 138 IMPORT_MODULES_CONF:=@IMPORT_MODULES_CONF@
 139 IMPORT_MODULES_LEGAL:=@IMPORT_MODULES_LEGAL@
 140 IMPORT_MODULES_MAN:=@IMPORT_MODULES_MAN@
 141 IMPORT_MODULES_SRC:=@IMPORT_MODULES_SRC@
 142 IMPORT_MODULES_MAKE:=@IMPORT_MODULES_MAKE@
 143 
 144 COPYRIGHT_YEAR:=@COPYRIGHT_YEAR@
 145 
 146 # Platform naming variables
 147 LAUNCHER_NAME:=@LAUNCHER_NAME@
 148 PRODUCT_NAME:=@PRODUCT_NAME@
 149 PRODUCT_SUFFIX:=@PRODUCT_SUFFIX@
 150 JDK_RC_PLATFORM_NAME:=@JDK_RC_PLATFORM_NAME@
 151 COMPANY_NAME:=@COMPANY_NAME@
 152 HOTSPOT_VM_DISTRO:=@HOTSPOT_VM_DISTRO@
 153 MACOSX_BUNDLE_NAME_BASE=@MACOSX_BUNDLE_NAME_BASE@
 154 MACOSX_BUNDLE_ID_BASE=@MACOSX_BUNDLE_ID_BASE@
 155 USERNAME:=@USERNAME@
 156 VENDOR_URL:=@VENDOR_URL@
 157 VENDOR_URL_BUG:=@VENDOR_URL_BUG@
 158 VENDOR_URL_VM_BUG:=@VENDOR_URL_VM_BUG@
 159 
 160 # New (JEP-223) version information
 161 
 162 ## Building blocks of the version string
 163 # First three version numbers, with well-specified meanings (numerical)
 164 VERSION_FEATURE := @VERSION_FEATURE@
 165 VERSION_INTERIM := @VERSION_INTERIM@
 166 VERSION_UPDATE := @VERSION_UPDATE@
 167 VERSION_PATCH := @VERSION_PATCH@
 168 VERSION_EXTRA1 := @VERSION_EXTRA1@
 169 VERSION_EXTRA2 := @VERSION_EXTRA2@
 170 VERSION_EXTRA3 := @VERSION_EXTRA3@
 171 # The pre-release identifier (string)
 172 VERSION_PRE := @VERSION_PRE@
 173 # The build number (numerical)
 174 VERSION_BUILD := @VERSION_BUILD@
 175 # Optional build information (string)
 176 VERSION_OPT := @VERSION_OPT@
 177 
 178 ## Composite variables
 179 # The version number as a dot separated sequence of numbers, e.g. 9.0.1
 180 VERSION_NUMBER := @VERSION_NUMBER@
 181 # VERSION_NUMBER but always with exactly 4 positions, with 0 for empty positions.
 182 VERSION_NUMBER_FOUR_POSITIONS := @VERSION_NUMBER_FOUR_POSITIONS@
 183 # The complete version string, with additional build information
 184 VERSION_STRING := @VERSION_STRING@
 185 # The short version string, without trailing zeroes and just PRE, if present.
 186 VERSION_SHORT := @VERSION_SHORT@
 187 # The Java specification version. It usually equals the feature version number.
 188 VERSION_SPECIFICATION := @VERSION_FEATURE@
 189 # A GA version is defined by the PRE string being empty. Rather than testing for
 190 # that, this variable defines it with true/false.
 191 VERSION_IS_GA := @VERSION_IS_GA@
 192 
 193 # Version date
 194 VERSION_DATE := @VERSION_DATE@
 195 
 196 # Vendor version string
 197 VENDOR_VERSION_STRING := @VENDOR_VERSION_STRING@
 198 
 199 # Class-file version
 200 VERSION_CLASSFILE_MAJOR := @VERSION_CLASSFILE_MAJOR@
 201 VERSION_CLASSFILE_MINOR := @VERSION_CLASSFILE_MINOR@
 202 
 203 # Convenience CFLAGS settings for passing version information into native programs.
 204 VERSION_CFLAGS := \
 205     -DVERSION_FEATURE=$(VERSION_FEATURE) \
 206     -DVERSION_INTERIM=$(VERSION_INTERIM) \
 207     -DVERSION_UPDATE=$(VERSION_UPDATE) \
 208     -DVERSION_PATCH=$(VERSION_PATCH) \
 209     -DVERSION_EXTRA1=$(VERSION_EXTRA1) \
 210     -DVERSION_EXTRA2=$(VERSION_EXTRA2) \
 211     -DVERSION_EXTRA3=$(VERSION_EXTRA3) \
 212     -DVERSION_PRE='"$(VERSION_PRE)"' \
 213     -DVERSION_BUILD=$(VERSION_BUILD) \
 214     -DVERSION_OPT='"$(VERSION_OPT)"' \
 215     -DVERSION_NUMBER='"$(VERSION_NUMBER)"' \
 216     -DVERSION_STRING='"$(VERSION_STRING)"' \
 217     -DVERSION_SHORT='"$(VERSION_SHORT)"' \
 218     -DVERSION_SPECIFICATION='"$(VERSION_SPECIFICATION)"' \
 219     -DVERSION_DATE='"$(VERSION_DATE)"' \
 220     -DVENDOR_VERSION_STRING='"$(VENDOR_VERSION_STRING)"' \
 221     -DVERSION_CLASSFILE_MAJOR=$(VERSION_CLASSFILE_MAJOR) \
 222     -DVERSION_CLASSFILE_MINOR=$(VERSION_CLASSFILE_MINOR) \
 223     #
 224 
 225 ifneq ($(COMPANY_NAME),)
 226   # COMPANY_NAME is set to "N/A" in $AUTOCONF_DIR/version-numbers by default,
 227   # but can be customized with the '--with-vendor-name' configure option.
 228   # Only export "VENDOR" to the build if COMPANY_NAME contains a real value.
 229   # Otherwise the default value for VENDOR, which is used to set the "java.vendor"
 230   # and "java.vm.vendor" properties is hard-coded into the source code (i.e. in
 231   # System.c in the jdk for "vm.vendor" and vm_version.cpp in the VM for "java.vm.vendor")
 232   ifneq ($(COMPANY_NAME), N/A)
 233     VERSION_CFLAGS += -DVENDOR='"$(COMPANY_NAME)"'
 234   endif
 235 endif
 236 
 237 # Only export VENDOR_URL, VENDOR_URL_BUG and VENDOR_VM_URL_BUG to the build if
 238 # they are not empty. Otherwise, default values which are defined in the sources
 239 # will be used.
 240 ifneq ($(VENDOR_URL),)
 241   VERSION_CFLAGS += -DVENDOR_URL='"$(VENDOR_URL)"'
 242 endif
 243 ifneq ($(VENDOR_URL_BUG),)
 244   VERSION_CFLAGS += -DVENDOR_URL_BUG='"$(VENDOR_URL_BUG)"'
 245 endif
 246 ifneq ($(VENDOR_URL_VM_BUG),)
 247   VERSION_CFLAGS += -DVENDOR_URL_VM_BUG='"$(VENDOR_URL_VM_BUG)"'
 248 endif
 249 
 250 # Different naming strings generated from the above information.
 251 RUNTIME_NAME=$(PRODUCT_NAME) $(PRODUCT_SUFFIX)
 252 
 253 # How to compile the code: release, fastdebug or slowdebug
 254 DEBUG_LEVEL:=@DEBUG_LEVEL@
 255 HOTSPOT_DEBUG_LEVEL:=@HOTSPOT_DEBUG_LEVEL@
 256 
 257 # Which JVM variants to build (space-separated list)
 258 JVM_VARIANTS := @JVM_VARIANTS@
 259 JVM_VARIANT_MAIN := @JVM_VARIANT_MAIN@
 260 
 261 # Lists of features per variant. Only relevant for the variants listed in
 262 # JVM_VARIANTS.
 263 JVM_FEATURES_server := @JVM_FEATURES_server@
 264 JVM_FEATURES_client := @JVM_FEATURES_client@
 265 JVM_FEATURES_core := @JVM_FEATURES_core@
 266 JVM_FEATURES_minimal := @JVM_FEATURES_minimal@
 267 JVM_FEATURES_zero := @JVM_FEATURES_zero@
 268 JVM_FEATURES_custom := @JVM_FEATURES_custom@
 269 
 270 # Used for make-time verifications
 271 VALID_JVM_FEATURES := @VALID_JVM_FEATURES@
 272 VALID_JVM_VARIANTS := @VALID_JVM_VARIANTS@
 273 
 274 # Control wether Hotspot builds gtest tests
 275 BUILD_GTEST := @BUILD_GTEST@
 276 
 277 # Control use of precompiled header in hotspot libjvm build
 278 USE_PRECOMPILED_HEADER := @USE_PRECOMPILED_HEADER@
 279 
 280 # Only build headless support or not
 281 ENABLE_HEADLESS_ONLY := @ENABLE_HEADLESS_ONLY@
 282 
 283 ENABLE_FULL_DOCS := @ENABLE_FULL_DOCS@
 284 
 285 # JDK_OUTPUTDIR specifies where a working jvm is built.
 286 # You can run $(JDK_OUTPUTDIR)/bin/java
 287 
 288 OUTPUTDIR := @OUTPUTDIR@
 289 # Colon left out to be able to override IMAGES_OUTPUTDIR for bootcycle-images
 290 SUPPORT_OUTPUTDIR=$(OUTPUTDIR)/support
 291 BUILDTOOLS_OUTPUTDIR=$(OUTPUTDIR)/buildtools
 292 
 293 HOTSPOT_OUTPUTDIR=$(OUTPUTDIR)/hotspot
 294 JDK_OUTPUTDIR=$(OUTPUTDIR)/jdk
 295 IMAGES_OUTPUTDIR=$(OUTPUTDIR)/images
 296 BUNDLES_OUTPUTDIR=$(OUTPUTDIR)/bundles
 297 TESTMAKE_OUTPUTDIR=$(OUTPUTDIR)/test-make
 298 MAKESUPPORT_OUTPUTDIR=$(OUTPUTDIR)/make-support
 299 
 300 # This does not get overridden in a bootcycle build
 301 CONFIGURESUPPORT_OUTPUTDIR:=@CONFIGURESUPPORT_OUTPUTDIR@
 302 BUILDJDK_OUTPUTDIR=$(OUTPUTDIR)/buildjdk
 303 
 304 BUILD_FAILURE_HANDLER := @BUILD_FAILURE_HANDLER@
 305 
 306 ENABLE_GENERATE_CLASSLIST := @ENABLE_GENERATE_CLASSLIST@
 307 
 308 EXCLUDE_TRANSLATIONS := @EXCLUDE_TRANSLATIONS@
 309 
 310 BUILD_MANPAGES := @BUILD_MANPAGES@
 311 
 312 BUILD_CDS_ARCHIVE := @BUILD_CDS_ARCHIVE@
 313 
 314 # The boot jdk to use. This is overridden in bootcycle-spec.gmk. Make sure to keep
 315 # it in sync.
 316 BOOT_JDK:=@BOOT_JDK@
 317 
 318 BUILD_JDK:=@BUILD_JDK@
 319 CREATE_BUILDJDK:=@CREATE_BUILDJDK@
 320 EXTERNAL_BUILDJDK:=@EXTERNAL_BUILDJDK@
 321 
 322 # When compiling Java source to be run by the boot jdk
 323 # use these extra flags, eg -source 6 -target 6
 324 BOOT_JDK_SOURCETARGET:=@BOOT_JDK_SOURCETARGET@
 325 
 326 # Information about the build system
 327 NUM_CORES:=@NUM_CORES@
 328 MEMORY_SIZE:=@MEMORY_SIZE@
 329 # Enable sjavac support = use a javac server,
 330 # multi core javac compilation and dependency tracking.
 331 ENABLE_SJAVAC:=@ENABLE_SJAVAC@
 332 ENABLE_JAVAC_SERVER:=@ENABLE_JAVAC_SERVER@
 333 # Store sjavac server synchronization files here, and
 334 # the sjavac server log files.
 335 SJAVAC_SERVER_DIR=$(MAKESUPPORT_OUTPUTDIR)/javacservers
 336 
 337 # Number of parallel jobs to use for compilation
 338 JOBS?=@JOBS@
 339 TEST_JOBS?=@TEST_JOBS@
 340 
 341 # Default make target
 342 DEFAULT_MAKE_TARGET:=@DEFAULT_MAKE_TARGET@
 343 DEFAULT_LOG:=@DEFAULT_LOG@
 344 
 345 FREETYPE_TO_USE:=@FREETYPE_TO_USE@
 346 FREETYPE_LIBS:=@FREETYPE_LIBS@
 347 FREETYPE_CFLAGS:=@FREETYPE_CFLAGS@
 348 FONTCONFIG_CFLAGS:=@FONTCONFIG_CFLAGS@
 349 CUPS_CFLAGS:=@CUPS_CFLAGS@
 350 ALSA_LIBS:=@ALSA_LIBS@
 351 ALSA_CFLAGS:=@ALSA_CFLAGS@
 352 LIBFFI_LIBS:=@LIBFFI_LIBS@
 353 LIBFFI_CFLAGS:=@LIBFFI_CFLAGS@
 354 ENABLE_LIBFFI_BUNDLING:=@ENABLE_LIBFFI_BUNDLING@
 355 LIBFFI_LIB_FILE:=@LIBFFI_LIB_FILE@
 356 GRAALUNIT_LIB := @GRAALUNIT_LIB@
 357 
 358 # Source file for cacerts
 359 CACERTS_FILE=@CACERTS_FILE@
 360 
 361 # Enable unlimited crypto policy
 362 UNLIMITED_CRYPTO=@UNLIMITED_CRYPTO@
 363 
 364 GCOV_ENABLED=@GCOV_ENABLED@


 365 
 366 # AddressSanitizer
 367 export ASAN_ENABLED:=@ASAN_ENABLED@
 368 export DEVKIT_LIB_DIR:=@DEVKIT_LIB_DIR@
 369 ifeq ($(ASAN_ENABLED), yes)
 370   export ASAN_OPTIONS="handle_segv=0 detect_leaks=0"
 371   ifneq ($(DEVKIT_LIB_DIR),)
 372     export LD_LIBRARY_PATH:=$(LD_LIBRARY_PATH):$(DEVKIT_LIB_DIR)
 373   endif
 374 endif
 375 
 376 # Necessary additional compiler flags to compile X11
 377 X_CFLAGS:=@X_CFLAGS@
 378 X_LIBS:=@X_LIBS@
 379 
 380 # The lowest required version of macosx
 381 MACOSX_VERSION_MIN=@MACOSX_VERSION_MIN@
 382 # The highest allowed version of macosx
 383 MACOSX_VERSION_MAX=@MACOSX_VERSION_MAX@
 384 
 385 # Toolchain type: gcc, clang, solstudio, lxc, microsoft...
 386 TOOLCHAIN_TYPE:=@TOOLCHAIN_TYPE@
 387 TOOLCHAIN_VERSION := @TOOLCHAIN_VERSION@
 388 CC_VERSION_NUMBER := @CC_VERSION_NUMBER@
 389 CXX_VERSION_NUMBER := @CXX_VERSION_NUMBER@
 390 
 391 # Legacy support
 392 HOTSPOT_TOOLCHAIN_TYPE := @HOTSPOT_TOOLCHAIN_TYPE@
 393 
 394 # Option used to tell the compiler whether to create 32- or 64-bit executables
 395 COMPILER_TARGET_BITS_FLAG:=@COMPILER_TARGET_BITS_FLAG@
 396 COMPILER_SUPPORTS_TARGET_BITS_FLAG=@COMPILER_SUPPORTS_TARGET_BITS_FLAG@
 397 
 398 # Option used to pass a command file to the compiler
 399 COMPILER_COMMAND_FILE_FLAG:=@COMPILER_COMMAND_FILE_FLAG@
 400 
 401 # Option for specifying a file which saves the binder commands
 402 # produced by the link step (for debugging, currently AIX only)
 403 COMPILER_BINDCMD_FILE_FLAG:=@COMPILER_BINDCMD_FILE_FLAG@
 404 
 405 CC_OUT_OPTION:=@CC_OUT_OPTION@
 406 LD_OUT_OPTION:=@LD_OUT_OPTION@
 407 AR_OUT_OPTION:=@AR_OUT_OPTION@
 408 
 409 # Flags used for overriding the default opt setting for a C/C++ source file.
 410 C_O_FLAG_HIGHEST_JVM:=@C_O_FLAG_HIGHEST_JVM@
 411 C_O_FLAG_HIGHEST:=@C_O_FLAG_HIGHEST@
 412 C_O_FLAG_HI:=@C_O_FLAG_HI@
 413 C_O_FLAG_NORM:=@C_O_FLAG_NORM@
 414 C_O_FLAG_NONE:=@C_O_FLAG_NONE@
 415 C_O_FLAG_SIZE:=@C_O_FLAG_SIZE@
 416 CXX_O_FLAG_HIGHEST_JVM:=@CXX_O_FLAG_HIGHEST_JVM@
 417 CXX_O_FLAG_HIGHEST:=@CXX_O_FLAG_HIGHEST@
 418 CXX_O_FLAG_HI:=@CXX_O_FLAG_HI@
 419 CXX_O_FLAG_NORM:=@CXX_O_FLAG_NORM@
 420 CXX_O_FLAG_NONE:=@CXX_O_FLAG_NONE@
 421 CXX_O_FLAG_SIZE:=@CXX_O_FLAG_SIZE@
 422 
 423 C_FLAG_DEPS:=@C_FLAG_DEPS@
 424 CXX_FLAG_DEPS:=@CXX_FLAG_DEPS@
 425 
 426 DISABLE_WARNING_PREFIX := @DISABLE_WARNING_PREFIX@
 427 CFLAGS_WARNINGS_ARE_ERRORS:=@CFLAGS_WARNINGS_ARE_ERRORS@
 428 LDFLAGS_WARNINGS_ARE_ERRORS:=@LDFLAGS_WARNINGS_ARE_ERRORS@
 429 DISABLED_WARNINGS := @DISABLED_WARNINGS@
 430 DISABLED_WARNINGS_C := @DISABLED_WARNINGS_C@
 431 DISABLED_WARNINGS_CXX := @DISABLED_WARNINGS_CXX@
 432 
 433 # A global flag (true or false) determining if native warnings are considered errors.
 434 WARNINGS_AS_ERRORS := @WARNINGS_AS_ERRORS@
 435 
 436 CFLAGS_CCACHE:=@CFLAGS_CCACHE@
 437 ADLC_CXXFLAG=@ADLC_CXXFLAG@
 438 
 439 # Tools that potentially need to be cross compilation aware.
 440 CC:=@FIXPATH@ @CCACHE@ @ICECC@ @CC@
 441 
 442 # CFLAGS used to compile the jdk native libraries (C-code)
 443 CFLAGS_JDKLIB:=@CFLAGS_JDKLIB@
 444 CXXFLAGS_JDKLIB:=@CXXFLAGS_JDKLIB@
 445 
 446 # CFLAGS used to compile the jdk native launchers (C-code)
 447 CFLAGS_JDKEXE:=@CFLAGS_JDKEXE@
 448 CXXFLAGS_JDKEXE:=@CXXFLAGS_JDKEXE@
 449 
 450 LIBJSIG_HASHSTYLE_LDFLAGS := @LIBJSIG_HASHSTYLE_LDFLAGS@
 451 LIBJSIG_NOEXECSTACK_LDFLAGS := @LIBJSIG_NOEXECSTACK_LDFLAGS@
 452 
 453 FDLIBM_CFLAGS := @FDLIBM_CFLAGS@
 454 JVM_CFLAGS := @JVM_CFLAGS@
 455 JVM_LDFLAGS := @JVM_LDFLAGS@
 456 JVM_ASFLAGS := @JVM_ASFLAGS@
 457 JVM_LIBS := @JVM_LIBS@
 458 JVM_RCFLAGS := @JVM_RCFLAGS@
 459 
 460 # These flags might contain variables set by a custom extension that is included later.
 461 EXTRA_CFLAGS = @EXTRA_CFLAGS@
 462 EXTRA_CXXFLAGS = @EXTRA_CXXFLAGS@
 463 EXTRA_LDFLAGS = @EXTRA_LDFLAGS@
 464 
 465 CXX:=@FIXPATH@ @CCACHE@ @ICECC@ @CXX@
 466 
 467 CPP:=@FIXPATH@ @CPP@
 468 
 469 # The linker can be gcc or ld on unix systems, or link.exe on windows systems.
 470 LD:=@FIXPATH@ @LD@
 471 
 472 # Xcode SDK path
 473 SDKROOT:=@SDKROOT@
 474 
 475 # LDFLAGS used to link the jdk native libraries (C-code)
 476 LDFLAGS_JDKLIB:=@LDFLAGS_JDKLIB@
 477 JDKLIB_LIBS:=@JDKLIB_LIBS@
 478 GLOBAL_LIBS:=@GLOBAL_LIBS@
 479 
 480 # LDFLAGS used to link the jdk native launchers (C-code)
 481 LDFLAGS_JDKEXE:=@LDFLAGS_JDKEXE@
 482 JDKEXE_LIBS:=@JDKEXE_LIBS@
 483 
 484 # LDFLAGS specific to C++ linking.
 485 LDFLAGS_CXX_JDK:=@LDFLAGS_CXX_JDK@
 486 
 487 # Sometimes a different linker is needed for c++ libs
 488 LDCXX:=@FIXPATH@ @LDCXX@
 489 # The flags for linking libstdc++ linker.
 490 LIBCXX:=@LIBCXX@
 491 
 492 # Compiler and linker flags used when building native tests
 493 LDFLAGS_TESTEXE:=@LDFLAGS_TESTEXE@
 494 
 495 # BUILD_CC/BUILD_LD is a compiler/linker that generates code that is runnable on the
 496 # build platform.
 497 BUILD_CC:=@FIXPATH@ @BUILD_ICECC@ @BUILD_CC@
 498 BUILD_CXX:=@FIXPATH@ @BUILD_ICECC@ @BUILD_CXX@
 499 BUILD_LD:=@FIXPATH@ @BUILD_LD@
 500 BUILD_LDCXX:=@FIXPATH@ @BUILD_LDCXX@
 501 BUILD_AS:=@FIXPATH@ @BUILD_AS@
 502 BUILD_AR:=@FIXPATH@ @BUILD_AR@
 503 BUILD_NM:=@FIXPATH@ @BUILD_NM@
 504 BUILD_OBJCOPY:=@BUILD_OBJCOPY@
 505 BUILD_STRIP:=@BUILD_STRIP@
 506 BUILD_SYSROOT_CFLAGS:=@BUILD_SYSROOT_CFLAGS@
 507 BUILD_SYSROOT_LDFLAGS:=@BUILD_SYSROOT_LDFLAGS@
 508 
 509 AS:=@FIXPATH@ @AS@
 510 
 511 # AR is used to create a static library (is ar in unix, lib.exe in windows)
 512 AR:=@FIXPATH@ @AR@
 513 ARFLAGS:=@ARFLAGS@
 514 
 515 NM:=@NM@
 516 GNM:=@GNM@
 517 STRIP:=@STRIP@
 518 OBJDUMP:=@OBJDUMP@
 519 CXXFILT:=@CXXFILT@
 520 
 521 LIPO:=@LIPO@
 522 INSTALL_NAME_TOOL:=@INSTALL_NAME_TOOL@
 523 
 524 # Options to linker to specify a mapfile.
 525 # (Note absence of := assignment, because we do not want to evaluate the macro body here)
 526 SET_SHARED_LIBRARY_MAPFILE=@SET_SHARED_LIBRARY_MAPFILE@
 527 
 528 # Options for C/CXX compiler to be used if linking is performed
 529 #   using reorder file
 530 C_FLAG_REORDER:=@C_FLAG_REORDER@
 531 
 532 #
 533 # Options for generating debug symbols
 534 COMPILE_WITH_DEBUG_SYMBOLS := @COMPILE_WITH_DEBUG_SYMBOLS@
 535 COPY_DEBUG_SYMBOLS := @COPY_DEBUG_SYMBOLS@
 536 ZIP_EXTERNAL_DEBUG_SYMBOLS := @ZIP_EXTERNAL_DEBUG_SYMBOLS@
 537 
 538 CFLAGS_DEBUG_SYMBOLS:=@CFLAGS_DEBUG_SYMBOLS@
 539 ASFLAGS_DEBUG_SYMBOLS:=@ASFLAGS_DEBUG_SYMBOLS@
 540 
 541 #
 542 # Compress (or not) jars
 543 COMPRESS_JARS=@COMPRESS_JARS@
 544 
 545 # Options to linker to specify the library name.
 546 # (Note absence of := assignment, because we do not want to evaluate the macro body here)
 547 SET_SHARED_LIBRARY_NAME=@SET_SHARED_LIBRARY_NAME@
 548 
 549 SHARED_LIBRARY_FLAGS=@SHARED_LIBRARY_FLAGS@
 550 
 551 # Set origin using the linker, ie use the relative path to the dependent library to find the dependees.
 552 # (Note absence of := assignment, because we do not want to evaluate the macro body here)
 553 SET_SHARED_LIBRARY_ORIGIN=@SET_SHARED_LIBRARY_ORIGIN@
 554 SET_EXECUTABLE_ORIGIN=@SET_EXECUTABLE_ORIGIN@
 555 
 556 # Different OS:es have different ways of naming shared libraries.
 557 # The SHARED_LIBRARY macro takes "verify" as and argument and returns:
 558 #    "libverify.so" or "libverify.dylib" or "verify.dll" depending on platform.
 559 # (Note absence of := assignment, because we do not want to evaluate the macro body here)
 560 SHARED_LIBRARY=@SHARED_LIBRARY@
 561 STATIC_LIBRARY=@STATIC_LIBRARY@
 562 LIBRARY_PREFIX:=@LIBRARY_PREFIX@
 563 SHARED_LIBRARY_SUFFIX:=@SHARED_LIBRARY_SUFFIX@
 564 STATIC_LIBRARY_SUFFIX:=@STATIC_LIBRARY_SUFFIX@
 565 EXE_SUFFIX:=@EXE_SUFFIX@
 566 OBJ_SUFFIX:=@OBJ_SUFFIX@
 567 STATIC_BUILD:=@STATIC_BUILD@
 568 
 569 STRIPFLAGS:=@STRIPFLAGS@
 570 
 571 JAVA_FLAGS:=@JAVA_FLAGS@
 572 JAVA_FLAGS_BIG:=@JAVA_FLAGS_BIG@
 573 JAVA_FLAGS_SMALL:=@JAVA_FLAGS_SMALL@
 574 JAVA_FLAGS_JAVAC:=@JAVA_FLAGS_JAVAC@
 575 JAVA_TOOL_FLAGS_SMALL:=@JAVA_TOOL_FLAGS_SMALL@
 576 SJAVAC_SERVER_JAVA_FLAGS:=@SJAVAC_SERVER_JAVA_FLAGS@
 577 
 578 # The *_CMD variables are defined separately to be easily overridden in bootcycle-spec.gmk
 579 # for bootcycle-images build. Make sure to keep them in sync. Do not use the *_CMD
 580 # versions of the variables directly.
 581 JAVA_CMD:=@JAVA@
 582 JAVAC_CMD:=@JAVAC@
 583 JAVADOC_CMD:=@JAVADOC@
 584 JAR_CMD:=@JAR@
 585 JLINK_CMD := @JLINK@
 586 JMOD_CMD := @JMOD@
 587 JARSIGNER_CMD:=@JARSIGNER@
 588 SJAVAC_SERVER_JAVA_CMD:=@SJAVAC_SERVER_JAVA@
 589 # These variables are meant to be used. They are defined with = instead of := to make
 590 # it possible to override only the *_CMD variables.
 591 JAVA=@FIXPATH@ $(JAVA_CMD) $(JAVA_FLAGS_BIG) $(JAVA_FLAGS)
 592 JAVA_SMALL=@FIXPATH@ $(JAVA_CMD) $(JAVA_FLAGS_SMALL) $(JAVA_FLAGS)
 593 JAVA_JAVAC=@FIXPATH@ $(JAVA_CMD) $(JAVA_FLAGS_JAVAC) $(JAVA_FLAGS)
 594 JAVAC=@FIXPATH@ $(JAVAC_CMD)
 595 JAVADOC=@FIXPATH@ $(JAVADOC_CMD)
 596 JAR=@FIXPATH@ $(JAR_CMD)
 597 JLINK = @FIXPATH@ $(JLINK_CMD) $(JAVA_TOOL_FLAGS_SMALL)
 598 JMOD = @FIXPATH@ $(JMOD_CMD) $(JAVA_TOOL_FLAGS_SMALL)
 599 JARSIGNER=@FIXPATH@ $(JARSIGNER_CMD)
 600 # A specific java binary with specific options can be used to run
 601 # the long running background sjavac servers and other long running tasks.
 602 SJAVAC_SERVER_JAVA=@FIXPATH@ @FIXPATH_DETACH_FLAG@ $(SJAVAC_SERVER_JAVA_CMD) \
 603     $(SJAVAC_SERVER_JAVA_FLAGS)
 604 
 605 # Hotspot sets this variable before reading the SPEC when compiling sa-jdi.jar. Avoid
 606 # overriding that value by using ?=.
 607 JAVAC_FLAGS?=@JAVAC_FLAGS@
 608 
 609 
 610 BUILD_JAVA_FLAGS := @BOOTCYCLE_JVM_ARGS_BIG@
 611 BUILD_JAVA=@FIXPATH@ $(BUILD_JDK)/bin/java $(BUILD_JAVA_FLAGS)
 612 BUILD_JAR=@FIXPATH@ $(BUILD_JDK)/bin/jar
 613 
 614 # Interim langtools and rmic modules and arguments
 615 INTERIM_LANGTOOLS_BASE_MODULES := java.compiler jdk.compiler jdk.javadoc
 616 INTERIM_LANGTOOLS_MODULES := $(addsuffix .interim, $(INTERIM_LANGTOOLS_BASE_MODULES))
 617 INTERIM_LANGTOOLS_ADD_EXPORTS := \
 618     --add-exports java.base/sun.reflect.annotation=jdk.compiler.interim \
 619     --add-exports java.base/jdk.internal.jmod=jdk.compiler.interim \
 620     --add-exports java.base/jdk.internal.misc=jdk.compiler.interim \
 621     #
 622 INTERIM_LANGTOOLS_MODULES_COMMA := $(strip $(subst $(SPACE),$(COMMA),$(strip \
 623     $(INTERIM_LANGTOOLS_MODULES))))
 624 INTERIM_LANGTOOLS_ARGS := \
 625     --limit-modules java.base,jdk.zipfs,$(INTERIM_LANGTOOLS_MODULES_COMMA) \
 626     --add-modules $(INTERIM_LANGTOOLS_MODULES_COMMA) \
 627     --module-path $(BUILDTOOLS_OUTPUTDIR)/interim_langtools_modules \
 628     $(INTERIM_LANGTOOLS_ADD_EXPORTS) \
 629     #
 630 JAVAC_MAIN_CLASS = -m jdk.compiler.interim/com.sun.tools.javac.Main
 631 JAVADOC_MAIN_CLASS = -m jdk.javadoc.interim/jdk.javadoc.internal.tool.Main
 632 
 633 INTERIM_RMIC_BASE_MODULES := jdk.rmic
 634 INTERIM_RMIC_MODULES := $(addsuffix .interim, $(INTERIM_RMIC_BASE_MODULES))
 635     #
 636 # Use = to delay expansion of PathList since it's not available in this file.
 637 INTERIM_RMIC_ARGS = --limit-modules java.base,jdk.compiler,jdk.javadoc \
 638     --module-path $(call PathList, $(BUILDTOOLS_OUTPUTDIR)/interim_rmic_modules \
 639         $(BUILDTOOLS_OUTPUTDIR)/interim_langtools_modules) \
 640     #
 641 
 642 # You run the new javac using the boot jdk with $(BOOT_JDK)/bin/java $(NEW_JAVAC) ...
 643 # Use = assignment to be able to override in bootcycle-spec.gmk
 644 NEW_JAVAC   = $(INTERIM_LANGTOOLS_ARGS) $(JAVAC_MAIN_CLASS)
 645 NEW_JAVADOC = $(INTERIM_LANGTOOLS_ARGS) $(JAVADOC_MAIN_CLASS)
 646 
 647 JLINK_KEEP_PACKAGED_MODULES:=@JLINK_KEEP_PACKAGED_MODULES@
 648 
 649 # Base flags for RC
 650 # Guarding this against resetting value. Legacy make files include spec multiple
 651 # times.
 652 ifndef RC_FLAGS
 653   RC_FLAGS:=@RC_FLAGS@
 654 endif
 655 
 656 # Tools adhering to a minimal and common standard of posix compliance.
 657 AWK:=@AWK@
 658 BASENAME:=@BASENAME@
 659 CAT:=@CAT@
 660 CCACHE:=@CCACHE@
 661 # CD is going away, but remains to cater for legacy makefiles.
 662 CD:=cd
 663 CHMOD:=@CHMOD@
 664 CODESIGN:=@CODESIGN@
 665 COMM:=@COMM@
 666 CP:=@CP@
 667 CPIO:=@CPIO@
 668 CUT:=@CUT@
 669 DATE:=@DATE@
 670 DIFF:=@DIFF@
 671 DIRNAME:=@DIRNAME@
 672 DSYMUTIL:=@DSYMUTIL@
 673 FIND:=@FIND@
 674 FIND_DELETE:=@FIND_DELETE@
 675 FLOCK:=@FLOCK@
 676 ECHO:=@ECHO@
 677 EGREP:=@EGREP@
 678 FGREP:=@FGREP@
 679 GREP:=@GREP@
 680 GZIP:=@GZIP@
 681 HEAD:=@HEAD@
 682 LS:=@LS@
 683 LN:=@LN@
 684 MIG:=@MIG@
 685 MKDIR:=@MKDIR@
 686 MV:=@MV@
 687 NAWK:=@NAWK@
 688 NICE:=@NICE@
 689 PANDOC:=@FIXPATH@ @PANDOC@
 690 PATCH:=@PATCH@
 691 PRINTF:=@PRINTF@
 692 READLINK:=@READLINK@
 693 RM:=@RM@
 694 RMDIR:=@RMDIR@
 695 SED:=@SED@
 696 SH:=@SH@
 697 SORT:=@SORT@
 698 TAR:=@TAR@
 699 TAIL:=@TAIL@
 700 TEE:=@TEE@
 701 TIME:=@TIME@
 702 IS_GNU_TIME:=@IS_GNU_TIME@
 703 TR:=@TR@
 704 TOUCH:=@TOUCH@
 705 UNIQ:=@UNIQ@
 706 WC:=@WC@
 707 XARGS:=@XARGS@
 708 ZIPEXE:=@ZIPEXE@
 709 UNZIP:=@UNZIP@
 710 MT:=@FIXPATH@ @MT@
 711 RC:=@FIXPATH@ @RC@
 712 DUMPBIN:=@FIXPATH@ @DUMPBIN@
 713 CYGPATH:=@CYGPATH@
 714 LDD:=@LDD@
 715 OTOOL:=@OTOOL@
 716 READELF:=@READELF@
 717 ELFEDIT:=@ELFEDIT@
 718 EXPR:=@EXPR@
 719 FILE:=@FILE@
 720 DOT:=@DOT@
 721 HG:=@HG@
 722 GIT:=@GIT@
 723 OBJCOPY:=@OBJCOPY@
 724 SETFILE:=@SETFILE@
 725 XATTR:=@XATTR@
 726 JT_HOME:=@JT_HOME@
 727 JTREGEXE:=@JTREGEXE@
 728 JIB_HOME:=@JIB_HOME@
 729 XCODEBUILD=@XCODEBUILD@
 730 DTRACE := @DTRACE@
 731 FIXPATH:=@FIXPATH@
 732 
 733 TAR_TYPE:=@TAR_TYPE@
 734 TAR_CREATE_EXTRA_PARAM:=@TAR_CREATE_EXTRA_PARAM@
 735 TAR_INCLUDE_PARAM:=@TAR_INCLUDE_PARAM@
 736 TAR_SUPPORTS_TRANSFORM:=@TAR_SUPPORTS_TRANSFORM@
 737 
 738 # Build setup
 739 ENABLE_AOT:=@ENABLE_AOT@
 740 ENABLE_INTREE_EC:=@ENABLE_INTREE_EC@
 741 USE_EXTERNAL_LIBJPEG:=@USE_EXTERNAL_LIBJPEG@
 742 USE_EXTERNAL_LIBGIF:=@USE_EXTERNAL_LIBGIF@
 743 USE_EXTERNAL_LIBZ:=@USE_EXTERNAL_LIBZ@
 744 LIBZ_CFLAGS:=@LIBZ_CFLAGS@
 745 LIBZ_LIBS:=@LIBZ_LIBS@
 746 LIBZIP_CAN_USE_MMAP:=@LIBZIP_CAN_USE_MMAP@
 747 MSVCR_DLL:=@MSVCR_DLL@
 748 MSVCP_DLL:=@MSVCP_DLL@
 749 UCRT_DLL_DIR:=@UCRT_DLL_DIR@
 750 STLPORT_LIB:=@STLPORT_LIB@
 751 
 752 ####################################################
 753 #
 754 # INSTALLATION
 755 #
 756 
 757 # Common prefix for all installed files. Defaults to /usr/local,
 758 # but /opt/myjdk is another common version.
 759 INSTALL_PREFIX=@prefix@
 760 
 761 # Directories containing architecture-dependent files should be relative to exec_prefix
 762 INSTALL_EXECPREFIX=@exec_prefix@
 763 
 764 # java,javac,javap etc are installed here.
 765 INSTALL_BINDIR=@bindir@
 766 
 767 # Read only architecture-independent data
 768 INSTALL_DATADIR=@datadir@
 769 
 770 # Root of above.
 771 INSTALL_DATAROOTDIR=@datarootdir@
 772 
 773 # Doc files, other than info and man.
 774 INSTALL_DOCDIR=@docdir@
 775 
 776 # Html documentation
 777 INSTALL_HTMLDIR=@htmldir@
 778 
 779 # Installing C header files, JNI headers for example.
 780 INSTALL_INCLUDEDIR=@includedir@
 781 
 782 # Installing library files....
 783 INSTALL_INCLUDEDIR=@libdir@
 784 
 785 # Executables that other programs run.
 786 INSTALL_LIBEXECDIR=@libexecdir@
 787 
 788 # Locale-dependent but architecture-independent data, such as message catalogs.
 789 INSTALL_LOCALEDIR=@localedir@
 790 
 791 # Modifiable single-machine data
 792 INSTALL_LOCALSTATEDIR=@localstatedir@
 793 
 794 # Man pages
 795 INSTALL_MANDIR=@mandir@
 796 
 797 # Modifiable architecture-independent data.
 798 INSTALL_SHAREDSTATEDIR=@sharedstatedir@
 799 
 800 # Read-only single-machine data
 801 INSTALL_SYSCONFDIR=@sysconfdir@
 802 
 803 ####################################################
 804 #
 805 # Libraries
 806 #
 807 
 808 USE_EXTERNAL_LCMS:=@USE_EXTERNAL_LCMS@
 809 LCMS_CFLAGS:=@LCMS_CFLAGS@
 810 LCMS_LIBS:=@LCMS_LIBS@
 811 
 812 USE_EXTERNAL_LIBPNG:=@USE_EXTERNAL_LIBPNG@
 813 PNG_LIBS:=@PNG_LIBS@
 814 PNG_CFLAGS:=@PNG_CFLAGS@
 815 
 816 ####################################################
 817 #
 818 # Misc
 819 #
 820 
 821 INCLUDE_SA=@INCLUDE_SA@
 822 INCLUDE_GRAAL=@INCLUDE_GRAAL@
 823 INCLUDE_JVMCI=@INCLUDE_JVMCI@
 824 
 825 OS_VERSION_MAJOR:=@OS_VERSION_MAJOR@
 826 OS_VERSION_MINOR:=@OS_VERSION_MINOR@
 827 OS_VERSION_MICRO:=@OS_VERSION_MICRO@
 828 
 829 # Images directory definitions
 830 JDK_IMAGE_SUBDIR:=jdk
 831 JRE_IMAGE_SUBDIR:=jre
 832 
 833 # Colon left out to be able to override output dir for bootcycle-images
 834 JDK_IMAGE_DIR=$(IMAGES_OUTPUTDIR)/$(JDK_IMAGE_SUBDIR)
 835 JRE_IMAGE_DIR=$(IMAGES_OUTPUTDIR)/$(JRE_IMAGE_SUBDIR)
 836 
 837 # Test image, as above
 838 TEST_IMAGE_SUBDIR:=test
 839 TEST_IMAGE_DIR=$(IMAGES_OUTPUTDIR)/$(TEST_IMAGE_SUBDIR)
 840 
 841 # Symbols image
 842 SYMBOLS_IMAGE_SUBDIR:=symbols
 843 SYMBOLS_IMAGE_DIR=$(IMAGES_OUTPUTDIR)/$(SYMBOLS_IMAGE_SUBDIR)
 844 
 845 # Interim image
 846 INTERIM_JMODS_DIR := $(SUPPORT_OUTPUTDIR)/interim-jmods
 847 INTERIM_IMAGE_DIR := $(SUPPORT_OUTPUTDIR)/interim-image
 848 
 849 # Docs image
 850 DOCS_IMAGE_SUBDIR := docs
 851 DOCS_IMAGE_DIR = $(IMAGES_OUTPUTDIR)/$(DOCS_IMAGE_SUBDIR)
 852 # Output docs directly into image
 853 DOCS_OUTPUTDIR := $(DOCS_IMAGE_DIR)
 854 
 855 # Macosx bundles directory definitions
 856 JDK_MACOSX_BUNDLE_SUBDIR=jdk-bundle
 857 JRE_MACOSX_BUNDLE_SUBDIR=jre-bundle
 858 JDK_MACOSX_BUNDLE_DIR=$(IMAGES_OUTPUTDIR)/$(JDK_MACOSX_BUNDLE_SUBDIR)
 859 JRE_MACOSX_BUNDLE_DIR=$(IMAGES_OUTPUTDIR)/$(JRE_MACOSX_BUNDLE_SUBDIR)
 860 JDK_MACOSX_CONTENTS_SUBDIR=jdk-$(VERSION_NUMBER).jdk/Contents
 861 JRE_MACOSX_CONTENTS_SUBDIR=jre-$(VERSION_NUMBER).jre/Contents
 862 JDK_MACOSX_CONTENTS_DIR=$(JDK_MACOSX_BUNDLE_DIR)/$(JDK_MACOSX_CONTENTS_SUBDIR)
 863 JRE_MACOSX_CONTENTS_DIR=$(JRE_MACOSX_BUNDLE_DIR)/$(JRE_MACOSX_CONTENTS_SUBDIR)
 864 
 865 # Bundle names
 866 BASE_NAME := $(VERSION_SHORT)+$(VERSION_BUILD)_$(OPENJDK_TARGET_BUNDLE_PLATFORM)
 867 ifeq ($(DEBUG_LEVEL), fastdebug)
 868   DEBUG_PART := -debug
 869 else ifneq ($(DEBUG_LEVEL), release)
 870   DEBUG_PART := -$(DEBUG_LEVEL)
 871 endif
 872 ifeq ($(OPENJDK_TARGET_OS), windows)
 873   JDK_BUNDLE_EXTENSION := zip
 874 else
 875   JDK_BUNDLE_EXTENSION := tar.gz
 876 endif
 877 JDK_BUNDLE_NAME := jdk-$(BASE_NAME)_bin$(DEBUG_PART).$(JDK_BUNDLE_EXTENSION)
 878 JDK_SYMBOLS_BUNDLE_NAME := jdk-$(BASE_NAME)_bin$(DEBUG_PART)-symbols.tar.gz
 879 TEST_DEMOS_BUNDLE_NAME := jdk-$(BASE_NAME)_bin-tests-demos$(DEBUG_PART).tar.gz
 880 TEST_BUNDLE_NAME := jdk-$(BASE_NAME)_bin-tests$(DEBUG_PART).tar.gz
 881 DOCS_BUNDLE_NAME := jdk-$(BASE_NAME)_doc-api-spec$(DEBUG_PART).tar.gz
 882 
 883 JDK_BUNDLE := $(BUNDLES_OUTPUTDIR)/$(JDK_BUNDLE_NAME)
 884 JDK_SYMBOLS_BUNDLE :=  $(BUNDLES_OUTPUTDIR)/$(JDK_SYMBOLS_BUNDLE_NAME)
 885 TEST_DEMOS_BUNDLE := $(BUNDLES_OUTPUTDIR)/$(TEST_DEMOS_BUNDLE_NAME)
 886 TEST_BUNDLE :=  $(BUNDLES_OUTPUTDIR)/$(TEST_BUNDLE_NAME)
 887 DOCS_BUNDLE :=  $(BUNDLES_OUTPUTDIR)/$(DOCS_BUNDLE_NAME)
 888 
 889 # This macro is called to allow inclusion of closed source counterparts.
 890 # Unless overridden in closed sources, it expands to nothing.
 891 # Usage: This function is called in an open makefile, with the following
 892 # argument:
 893 # $1 the name of the makefile
 894 define IncludeCustomExtension
 895 endef
 896 
 897 # Include the custom-spec.gmk file if it exists
 898 -include $(dir @SPEC@)/custom-spec.gmk
--- EOF ---