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_SUBIDR:=@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_SUBIDR:=@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 # The pre-release identifier (string)
 169 VERSION_PRE := @VERSION_PRE@
 170 # The build number (numerical)
 171 VERSION_BUILD := @VERSION_BUILD@
 172 # Optional build information (string)
 173 VERSION_OPT := @VERSION_OPT@
 174 
 175 ## Composite variables
 176 # The version number as a dot separated sequence of numbers, e.g. 9.0.1
 177 VERSION_NUMBER := @VERSION_NUMBER@
 178 # VERSION_NUMBER but always with exactly 4 positions, with 0 for empty positions.
 179 VERSION_NUMBER_FOUR_POSITIONS := @VERSION_NUMBER_FOUR_POSITIONS@
 180 # The complete version string, with additional build information
 181 VERSION_STRING := @VERSION_STRING@
 182 # The short version string, without trailing zeroes and just PRE, if present.
 183 VERSION_SHORT := @VERSION_SHORT@
 184 # The Java specification version. It usually equals the feature version number.
 185 VERSION_SPECIFICATION := @VERSION_FEATURE@
 186 # A GA version is defined by the PRE string being empty. Rather than testing for
 187 # that, this variable defines it with true/false.
 188 VERSION_IS_GA := @VERSION_IS_GA@
 189 
 190 # Version date
 191 VERSION_DATE := @VERSION_DATE@
 192 
 193 # Vendor version string
 194 VENDOR_VERSION_STRING := @VENDOR_VERSION_STRING@
 195 
 196 # Class-file version
 197 VERSION_CLASSFILE_MAJOR := @VERSION_CLASSFILE_MAJOR@
 198 VERSION_CLASSFILE_MINOR := @VERSION_CLASSFILE_MINOR@
 199 
 200 # Convenience CFLAGS settings for passing version information into native programs.
 201 VERSION_CFLAGS := \
 202     -DVERSION_FEATURE=$(VERSION_FEATURE) \
 203     -DVERSION_INTERIM=$(VERSION_INTERIM) \
 204     -DVERSION_UPDATE=$(VERSION_UPDATE) \
 205     -DVERSION_PATCH=$(VERSION_PATCH) \
 206     -DVERSION_PRE='"$(VERSION_PRE)"' \
 207     -DVERSION_BUILD=$(VERSION_BUILD) \
 208     -DVERSION_OPT='"$(VERSION_OPT)"' \
 209     -DVERSION_NUMBER='"$(VERSION_NUMBER)"' \
 210     -DVERSION_STRING='"$(VERSION_STRING)"' \
 211     -DVERSION_SHORT='"$(VERSION_SHORT)"' \
 212     -DVERSION_SPECIFICATION='"$(VERSION_SPECIFICATION)"' \
 213     -DVERSION_DATE='"$(VERSION_DATE)"' \
 214     -DVENDOR_VERSION_STRING='"$(VENDOR_VERSION_STRING)"' \
 215     -DVERSION_CLASSFILE_MAJOR=$(VERSION_CLASSFILE_MAJOR) \
 216     -DVERSION_CLASSFILE_MINOR=$(VERSION_CLASSFILE_MINOR) \
 217     #
 218 
 219 ifneq ($(COMPANY_NAME),)
 220   # COMPANY_NAME is set to "N/A" in $AUTOCONF_DIR/version-numbers by default,
 221   # but can be customized with the '--with-vendor-name' configure option.
 222   # Only export "VENDOR" to the build if COMPANY_NAME contains a real value.
 223   # Otherwise the default value for VENDOR, which is used to set the "java.vendor"
 224   # and "java.vm.vendor" properties is hard-coded into the source code (i.e. in
 225   # System.c in the jdk for "vm.vendor" and vm_version.cpp in the VM for "java.vm.vendor")
 226   ifneq ($(COMPANY_NAME), N/A)
 227     VERSION_CFLAGS += -DVENDOR='"$(COMPANY_NAME)"'
 228   endif
 229 endif
 230 
 231 # Only export VENDOR_URL, VENDOR_URL_BUG and VENDOR_VM_URL_BUG to the build if
 232 # they are not empty. Otherwise, default values which are defined in the sources
 233 # will be used.
 234 ifneq ($(VENDOR_URL),)
 235   VERSION_CFLAGS += -DVENDOR_URL='"$(VENDOR_URL)"'
 236 endif
 237 ifneq ($(VENDOR_URL_BUG),)
 238   VERSION_CFLAGS += -DVENDOR_URL_BUG='"$(VENDOR_URL_BUG)"'
 239 endif
 240 ifneq ($(VENDOR_URL_VM_BUG),)
 241   VERSION_CFLAGS += -DVENDOR_URL_VM_BUG='"$(VENDOR_URL_VM_BUG)"'
 242 endif
 243 
 244 # Different naming strings generated from the above information.
 245 RUNTIME_NAME=$(PRODUCT_NAME) $(PRODUCT_SUFFIX)
 246 
 247 # How to compile the code: release, fastdebug or slowdebug
 248 DEBUG_LEVEL:=@DEBUG_LEVEL@
 249 HOTSPOT_DEBUG_LEVEL:=@HOTSPOT_DEBUG_LEVEL@
 250 
 251 # This is the JDK variant to build.
 252 # The JDK variant is a name for a specific set of modules to be compiled for the JDK.
 253 JDK_VARIANT:=@JDK_VARIANT@
 254 
 255 # Which JVM variants to build (space-separated list)
 256 JVM_VARIANTS := @JVM_VARIANTS@
 257 JVM_VARIANT_MAIN := @JVM_VARIANT_MAIN@
 258 
 259 # Lists of features per variant. Only relevant for the variants listed in
 260 # JVM_VARIANTS.
 261 JVM_FEATURES_server := @JVM_FEATURES_server@
 262 JVM_FEATURES_hardened := @JVM_FEATURES_hardened@
 263 JVM_FEATURES_client := @JVM_FEATURES_client@
 264 JVM_FEATURES_core := @JVM_FEATURES_core@
 265 JVM_FEATURES_minimal := @JVM_FEATURES_minimal@
 266 JVM_FEATURES_zero := @JVM_FEATURES_zero@
 267 JVM_FEATURES_custom := @JVM_FEATURES_custom@
 268 
 269 # Used for make-time verifications
 270 VALID_JVM_FEATURES := @VALID_JVM_FEATURES@
 271 VALID_JVM_VARIANTS := @VALID_JVM_VARIANTS@
 272 VALID_MULTIPLE_JVM_VARIANTS := @VALID_MULTIPLE_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 # The boot jdk to use. This is overridden in bootcycle-spec.gmk. Make sure to keep
 309 # it in sync.
 310 BOOT_JDK:=@BOOT_JDK@
 311 
 312 BUILD_JDK:=@BUILD_JDK@
 313 CREATE_BUILDJDK:=@CREATE_BUILDJDK@
 314 EXTERNAL_BUILDJDK:=@EXTERNAL_BUILDJDK@
 315 
 316 # When compiling Java source to be run by the boot jdk
 317 # use these extra flags, eg -source 6 -target 6
 318 BOOT_JDK_SOURCETARGET:=@BOOT_JDK_SOURCETARGET@
 319 
 320 # Information about the build system
 321 NUM_CORES:=@NUM_CORES@
 322 MEMORY_SIZE:=@MEMORY_SIZE@
 323 # Enable sjavac support = use a javac server,
 324 # multi core javac compilation and dependency tracking.
 325 ENABLE_SJAVAC:=@ENABLE_SJAVAC@
 326 ENABLE_JAVAC_SERVER:=@ENABLE_JAVAC_SERVER@
 327 # Store sjavac server synchronization files here, and
 328 # the sjavac server log files.
 329 SJAVAC_SERVER_DIR=$(MAKESUPPORT_OUTPUTDIR)/javacservers
 330 
 331 # Number of parallel jobs to use for compilation
 332 JOBS?=@JOBS@
 333 TEST_JOBS?=@TEST_JOBS@
 334 
 335 # Default make target
 336 DEFAULT_MAKE_TARGET:=@DEFAULT_MAKE_TARGET@
 337 DEFAULT_LOG:=@DEFAULT_LOG@
 338 
 339 FREETYPE_TO_USE:=@FREETYPE_TO_USE@
 340 FREETYPE_LIBS:=@FREETYPE_LIBS@
 341 FREETYPE_CFLAGS:=@FREETYPE_CFLAGS@
 342 FONTCONFIG_CFLAGS:=@FONTCONFIG_CFLAGS@
 343 CUPS_CFLAGS:=@CUPS_CFLAGS@
 344 ALSA_LIBS:=@ALSA_LIBS@
 345 ALSA_CFLAGS:=@ALSA_CFLAGS@
 346 LIBFFI_LIBS:=@LIBFFI_LIBS@
 347 LIBFFI_CFLAGS:=@LIBFFI_CFLAGS@
 348 ENABLE_LIBFFI_BUNDLING:=@ENABLE_LIBFFI_BUNDLING@
 349 LIBFFI_LIB_FILE:=@LIBFFI_LIB_FILE@
 350 
 351 PACKAGE_PATH=@PACKAGE_PATH@
 352 
 353 # Source file for cacerts
 354 CACERTS_FILE=@CACERTS_FILE@
 355 
 356 # Enable unlimited crypto policy
 357 UNLIMITED_CRYPTO=@UNLIMITED_CRYPTO@
 358 
 359 GCOV_ENABLED=@GCOV_ENABLED@
 360 
 361 # AddressSanitizer
 362 export ASAN_ENABLED:=@ASAN_ENABLED@
 363 export DEVKIT_LIB_DIR:=@DEVKIT_LIB_DIR@
 364 ifeq ($(ASAN_ENABLED), yes)
 365   export ASAN_OPTIONS="handle_segv=0 detect_leaks=0"
 366   ifneq ($(DEVKIT_LIB_DIR),)
 367     export LD_LIBRARY_PATH:=$(LD_LIBRARY_PATH):$(DEVKIT_LIB_DIR)
 368   endif
 369 endif
 370 
 371 # Necessary additional compiler flags to compile X11
 372 X_CFLAGS:=@X_CFLAGS@
 373 X_LIBS:=@X_LIBS@
 374 
 375 # The lowest required version of macosx
 376 MACOSX_VERSION_MIN=@MACOSX_VERSION_MIN@
 377 # The highest allowed version of macosx
 378 MACOSX_VERSION_MAX=@MACOSX_VERSION_MAX@
 379 
 380 # Toolchain type: gcc, clang, solstudio, lxc, microsoft...
 381 TOOLCHAIN_TYPE:=@TOOLCHAIN_TYPE@
 382 TOOLCHAIN_VERSION := @TOOLCHAIN_VERSION@
 383 CC_VERSION_NUMBER := @CC_VERSION_NUMBER@
 384 CXX_VERSION_NUMBER := @CXX_VERSION_NUMBER@
 385 
 386 # Legacy support
 387 HOTSPOT_TOOLCHAIN_TYPE := @HOTSPOT_TOOLCHAIN_TYPE@
 388 
 389 # Option used to tell the compiler whether to create 32- or 64-bit executables
 390 COMPILER_TARGET_BITS_FLAG:=@COMPILER_TARGET_BITS_FLAG@
 391 COMPILER_SUPPORTS_TARGET_BITS_FLAG=@COMPILER_SUPPORTS_TARGET_BITS_FLAG@
 392 
 393 # Option used to pass a command file to the compiler
 394 COMPILER_COMMAND_FILE_FLAG:=@COMPILER_COMMAND_FILE_FLAG@
 395 
 396 # Option for specifying a file which saves the binder commands
 397 # produced by the link step (for debugging, currently AIX only)
 398 COMPILER_BINDCMD_FILE_FLAG:=@COMPILER_BINDCMD_FILE_FLAG@
 399 
 400 CC_OUT_OPTION:=@CC_OUT_OPTION@
 401 LD_OUT_OPTION:=@LD_OUT_OPTION@
 402 AR_OUT_OPTION:=@AR_OUT_OPTION@
 403 
 404 # Flags used for overriding the default opt setting for a C/C++ source file.
 405 C_O_FLAG_HIGHEST_JVM:=@C_O_FLAG_HIGHEST_JVM@
 406 C_O_FLAG_HIGHEST:=@C_O_FLAG_HIGHEST@
 407 C_O_FLAG_HI:=@C_O_FLAG_HI@
 408 C_O_FLAG_NORM:=@C_O_FLAG_NORM@
 409 C_O_FLAG_NONE:=@C_O_FLAG_NONE@
 410 C_O_FLAG_SIZE:=@C_O_FLAG_SIZE@
 411 CXX_O_FLAG_HIGHEST_JVM:=@CXX_O_FLAG_HIGHEST_JVM@
 412 CXX_O_FLAG_HIGHEST:=@CXX_O_FLAG_HIGHEST@
 413 CXX_O_FLAG_HI:=@CXX_O_FLAG_HI@
 414 CXX_O_FLAG_NORM:=@CXX_O_FLAG_NORM@
 415 CXX_O_FLAG_NONE:=@CXX_O_FLAG_NONE@
 416 CXX_O_FLAG_SIZE:=@CXX_O_FLAG_SIZE@
 417 
 418 C_FLAG_DEPS:=@C_FLAG_DEPS@
 419 CXX_FLAG_DEPS:=@CXX_FLAG_DEPS@
 420 
 421 DISABLE_WARNING_PREFIX := @DISABLE_WARNING_PREFIX@
 422 CFLAGS_WARNINGS_ARE_ERRORS:=@CFLAGS_WARNINGS_ARE_ERRORS@
 423 
 424 # A global flag (true or false) determining if native warnings are considered errors.
 425 WARNINGS_AS_ERRORS := @WARNINGS_AS_ERRORS@
 426 
 427 CFLAGS_CCACHE:=@CFLAGS_CCACHE@
 428 ADLC_CXXFLAG=@ADLC_CXXFLAG@
 429 
 430 # Tools that potentially need to be cross compilation aware.
 431 CC:=@FIXPATH@ @CCACHE@ @ICECC@ @CC@
 432 
 433 NO_SPECULATIVE_CTI_CFLAGS := @NO_SPECULATIVE_CTI_CFLAGS@
 434 
 435 # CFLAGS used to compile the jdk native libraries (C-code)
 436 CFLAGS_JDKLIB:=@CFLAGS_JDKLIB@
 437 CXXFLAGS_JDKLIB:=@CXXFLAGS_JDKLIB@
 438 
 439 # CFLAGS used to compile the jdk native launchers (C-code)
 440 CFLAGS_JDKEXE:=@CFLAGS_JDKEXE@
 441 CXXFLAGS_JDKEXE:=@CXXFLAGS_JDKEXE@
 442 
 443 LIBJSIG_HASHSTYLE_LDFLAGS := @LIBJSIG_HASHSTYLE_LDFLAGS@
 444 LIBJSIG_NOEXECSTACK_LDFLAGS := @LIBJSIG_NOEXECSTACK_LDFLAGS@
 445 
 446 JVM_CFLAGS := @JVM_CFLAGS@
 447 JVM_LDFLAGS := @JVM_LDFLAGS@
 448 JVM_ASFLAGS := @JVM_ASFLAGS@
 449 JVM_LIBS := @JVM_LIBS@
 450 JVM_RCFLAGS := @JVM_RCFLAGS@
 451 
 452 # These flags might contain variables set by a custom extension that is included later.
 453 EXTRA_CFLAGS = @EXTRA_CFLAGS@
 454 EXTRA_CXXFLAGS = @EXTRA_CXXFLAGS@
 455 EXTRA_LDFLAGS = @EXTRA_LDFLAGS@
 456 
 457 CXX:=@FIXPATH@ @CCACHE@ @ICECC@ @CXX@
 458 
 459 CPP:=@FIXPATH@ @CPP@
 460 
 461 # The linker can be gcc or ld on unix systems, or link.exe on windows systems.
 462 LD:=@FIXPATH@ @LD@
 463 
 464 # Xcode SDK path
 465 SDKROOT:=@SDKROOT@
 466 
 467 # LDFLAGS used to link the jdk native libraries (C-code)
 468 LDFLAGS_JDKLIB:=@LDFLAGS_JDKLIB@
 469 JDKLIB_LIBS:=@JDKLIB_LIBS@
 470 GLOBAL_LIBS:=@GLOBAL_LIBS@
 471 
 472 # LDFLAGS used to link the jdk native launchers (C-code)
 473 LDFLAGS_JDKEXE:=@LDFLAGS_JDKEXE@
 474 JDKEXE_LIBS:=@JDKEXE_LIBS@
 475 
 476 # LDFLAGS specific to C++ linking.
 477 LDFLAGS_CXX_JDK:=@LDFLAGS_CXX_JDK@
 478 
 479 # Sometimes a different linker is needed for c++ libs
 480 LDCXX:=@FIXPATH@ @LDCXX@
 481 # The flags for linking libstdc++ linker.
 482 LIBCXX:=@LIBCXX@
 483 
 484 # Compiler and linker flags used when building native tests
 485 CFLAGS_TESTLIB:=@CFLAGS_TESTLIB@
 486 CXXFLAGS_TESTLIB:=@CXXFLAGS_TESTLIB@
 487 CFLAGS_TESTEXE:=@CFLAGS_TESTEXE@
 488 CXXFLAGS_TESTEXE:=@CXXFLAGS_TESTEXE@
 489 LDFLAGS_TESTLIB:=@LDFLAGS_TESTLIB@
 490 LDFLAGS_TESTEXE:=@LDFLAGS_TESTEXE@
 491 
 492 # BUILD_CC/BUILD_LD is a compiler/linker that generates code that is runnable on the
 493 # build platform.
 494 BUILD_CC:=@FIXPATH@ @BUILD_ICECC@ @BUILD_CC@
 495 BUILD_CXX:=@FIXPATH@ @BUILD_ICECC@ @BUILD_CXX@
 496 BUILD_LD:=@FIXPATH@ @BUILD_LD@
 497 BUILD_LDCXX:=@FIXPATH@ @BUILD_LDCXX@
 498 BUILD_AS:=@FIXPATH@ @BUILD_AS@
 499 BUILD_AR:=@FIXPATH@ @BUILD_AR@
 500 BUILD_NM:=@FIXPATH@ @BUILD_NM@
 501 BUILD_OBJCOPY:=@BUILD_OBJCOPY@
 502 BUILD_STRIP:=@BUILD_STRIP@
 503 BUILD_SYSROOT_CFLAGS:=@BUILD_SYSROOT_CFLAGS@
 504 BUILD_SYSROOT_LDFLAGS:=@BUILD_SYSROOT_LDFLAGS@
 505 
 506 AS:=@FIXPATH@ @AS@
 507 
 508 # AR is used to create a static library (is ar in unix, lib.exe in windows)
 509 AR:=@FIXPATH@ @AR@
 510 ARFLAGS:=@ARFLAGS@
 511 
 512 NM:=@NM@
 513 GNM:=@GNM@
 514 STRIP:=@STRIP@
 515 OBJDUMP:=@OBJDUMP@
 516 CXXFILT:=@CXXFILT@
 517 
 518 LIPO:=@LIPO@
 519 INSTALL_NAME_TOOL:=@INSTALL_NAME_TOOL@
 520 
 521 # Options to linker to specify a mapfile.
 522 # (Note absence of := assignment, because we do not want to evaluate the macro body here)
 523 SET_SHARED_LIBRARY_MAPFILE=@SET_SHARED_LIBRARY_MAPFILE@
 524 
 525 # Options for C/CXX compiler to be used if linking is performed
 526 #   using reorder file
 527 C_FLAG_REORDER:=@C_FLAG_REORDER@
 528 
 529 #
 530 # Options for generating debug symbols
 531 COMPILE_WITH_DEBUG_SYMBOLS := @COMPILE_WITH_DEBUG_SYMBOLS@
 532 COPY_DEBUG_SYMBOLS := @COPY_DEBUG_SYMBOLS@
 533 ZIP_EXTERNAL_DEBUG_SYMBOLS := @ZIP_EXTERNAL_DEBUG_SYMBOLS@
 534 
 535 CFLAGS_DEBUG_SYMBOLS:=@CFLAGS_DEBUG_SYMBOLS@
 536 
 537 #
 538 # Compress (or not) jars
 539 COMPRESS_JARS=@COMPRESS_JARS@
 540 
 541 # Options to linker to specify the library name.
 542 # (Note absence of := assignment, because we do not want to evaluate the macro body here)
 543 SET_SHARED_LIBRARY_NAME=@SET_SHARED_LIBRARY_NAME@
 544 
 545 SHARED_LIBRARY_FLAGS=@SHARED_LIBRARY_FLAGS@
 546 
 547 # Set origin using the linker, ie use the relative path to the dependent library to find the dependees.
 548 # (Note absence of := assignment, because we do not want to evaluate the macro body here)
 549 SET_SHARED_LIBRARY_ORIGIN=@SET_SHARED_LIBRARY_ORIGIN@
 550 SET_EXECUTABLE_ORIGIN=@SET_EXECUTABLE_ORIGIN@
 551 
 552 # Different OS:es have different ways of naming shared libraries.
 553 # The SHARED_LIBRARY macro takes "verify" as and argument and returns:
 554 #    "libverify.so" or "libverify.dylib" or "verify.dll" depending on platform.
 555 # (Note absence of := assignment, because we do not want to evaluate the macro body here)
 556 SHARED_LIBRARY=@SHARED_LIBRARY@
 557 STATIC_LIBRARY=@STATIC_LIBRARY@
 558 LIBRARY_PREFIX:=@LIBRARY_PREFIX@
 559 SHARED_LIBRARY_SUFFIX:=@SHARED_LIBRARY_SUFFIX@
 560 STATIC_LIBRARY_SUFFIX:=@STATIC_LIBRARY_SUFFIX@
 561 EXE_SUFFIX:=@EXE_SUFFIX@
 562 OBJ_SUFFIX:=@OBJ_SUFFIX@
 563 STATIC_BUILD:=@STATIC_BUILD@
 564 
 565 STRIPFLAGS:=@STRIPFLAGS@
 566 
 567 JAVA_FLAGS:=@JAVA_FLAGS@
 568 JAVA_FLAGS_BIG:=@JAVA_FLAGS_BIG@
 569 JAVA_FLAGS_SMALL:=@JAVA_FLAGS_SMALL@
 570 JAVA_FLAGS_JAVAC:=@JAVA_FLAGS_JAVAC@
 571 JAVA_TOOL_FLAGS_SMALL:=@JAVA_TOOL_FLAGS_SMALL@
 572 SJAVAC_SERVER_JAVA_FLAGS:=@SJAVAC_SERVER_JAVA_FLAGS@
 573 
 574 # The *_CMD variables are defined separately to be easily overridden in bootcycle-spec.gmk
 575 # for bootcycle-images build. Make sure to keep them in sync. Do not use the *_CMD
 576 # versions of the variables directly.
 577 JAVA_CMD:=@JAVA@
 578 JAVAC_CMD:=@JAVAC@
 579 JAVADOC_CMD:=@JAVADOC@
 580 JAR_CMD:=@JAR@
 581 JLINK_CMD := @JLINK@
 582 JMOD_CMD := @JMOD@
 583 JARSIGNER_CMD:=@JARSIGNER@
 584 SJAVAC_SERVER_JAVA_CMD:=@SJAVAC_SERVER_JAVA@
 585 # These variables are meant to be used. They are defined with = instead of := to make
 586 # it possible to override only the *_CMD variables.
 587 JAVA=@FIXPATH@ $(JAVA_CMD) $(JAVA_FLAGS_BIG) $(JAVA_FLAGS)
 588 JAVA_SMALL=@FIXPATH@ $(JAVA_CMD) $(JAVA_FLAGS_SMALL) $(JAVA_FLAGS)
 589 JAVA_JAVAC=@FIXPATH@ $(JAVA_CMD) $(JAVA_FLAGS_JAVAC) $(JAVA_FLAGS)
 590 JAVAC=@FIXPATH@ $(JAVAC_CMD)
 591 JAVADOC=@FIXPATH@ $(JAVADOC_CMD)
 592 JAR=@FIXPATH@ $(JAR_CMD)
 593 JLINK = @FIXPATH@ $(JLINK_CMD) $(JAVA_TOOL_FLAGS_SMALL)
 594 JMOD = @FIXPATH@ $(JMOD_CMD) $(JAVA_TOOL_FLAGS_SMALL)
 595 JARSIGNER=@FIXPATH@ $(JARSIGNER_CMD)
 596 # A specific java binary with specific options can be used to run
 597 # the long running background sjavac servers and other long running tasks.
 598 SJAVAC_SERVER_JAVA=@FIXPATH@ @FIXPATH_DETACH_FLAG@ $(SJAVAC_SERVER_JAVA_CMD) \
 599     $(SJAVAC_SERVER_JAVA_FLAGS)
 600 
 601 # Hotspot sets this variable before reading the SPEC when compiling sa-jdi.jar. Avoid
 602 # overriding that value by using ?=.
 603 JAVAC_FLAGS?=@JAVAC_FLAGS@
 604 
 605 
 606 BUILD_JAVA_FLAGS := @BOOTCYCLE_JVM_ARGS_BIG@
 607 BUILD_JAVA=@FIXPATH@ $(BUILD_JDK)/bin/java $(BUILD_JAVA_FLAGS)
 608 BUILD_JAR=@FIXPATH@ $(BUILD_JDK)/bin/jar
 609 
 610 # Interim langtools and rmic modules and arguments
 611 INTERIM_LANGTOOLS_BASE_MODULES := java.compiler jdk.compiler jdk.javadoc
 612 INTERIM_LANGTOOLS_MODULES := $(addsuffix .interim, $(INTERIM_LANGTOOLS_BASE_MODULES))
 613 INTERIM_LANGTOOLS_ADD_EXPORTS := \
 614     --add-exports java.base/sun.reflect.annotation=jdk.compiler.interim \
 615     --add-exports java.base/jdk.internal.jmod=jdk.compiler.interim \
 616     --add-exports java.base/jdk.internal.misc=jdk.compiler.interim \
 617     #
 618 INTERIM_LANGTOOLS_MODULES_COMMA := $(strip $(subst $(SPACE),$(COMMA),$(strip \
 619     $(INTERIM_LANGTOOLS_MODULES))))
 620 INTERIM_LANGTOOLS_ARGS := \
 621     --limit-modules java.base,jdk.zipfs,$(INTERIM_LANGTOOLS_MODULES_COMMA) \
 622     --add-modules $(INTERIM_LANGTOOLS_MODULES_COMMA) \
 623     --module-path $(BUILDTOOLS_OUTPUTDIR)/interim_langtools_modules \
 624     $(INTERIM_LANGTOOLS_ADD_EXPORTS) \
 625     #
 626 JAVAC_MAIN_CLASS = -m jdk.compiler.interim/com.sun.tools.javac.Main
 627 JAVADOC_MAIN_CLASS = -m jdk.javadoc.interim/jdk.javadoc.internal.tool.Main
 628 
 629 INTERIM_RMIC_BASE_MODULES := jdk.rmic
 630 INTERIM_RMIC_MODULES := $(addsuffix .interim, $(INTERIM_RMIC_BASE_MODULES))
 631     #
 632 # Use = to delay expansion of PathList since it's not available in this file.
 633 INTERIM_RMIC_ARGS = --limit-modules java.base,jdk.compiler,jdk.javadoc \
 634     --module-path $(call PathList, $(BUILDTOOLS_OUTPUTDIR)/interim_rmic_modules \
 635         $(BUILDTOOLS_OUTPUTDIR)/interim_langtools_modules) \
 636     #
 637 
 638 # You run the new javac using the boot jdk with $(BOOT_JDK)/bin/java $(NEW_JAVAC) ...
 639 # Use = assignment to be able to override in bootcycle-spec.gmk
 640 NEW_JAVAC   = $(INTERIM_LANGTOOLS_ARGS) $(JAVAC_MAIN_CLASS)
 641 NEW_JAVADOC = $(INTERIM_LANGTOOLS_ARGS) $(JAVADOC_MAIN_CLASS)
 642 
 643 JLINK_KEEP_PACKAGED_MODULES:=@JLINK_KEEP_PACKAGED_MODULES@
 644 
 645 # Base flags for RC
 646 # Guarding this against resetting value. Legacy make files include spec multiple
 647 # times.
 648 ifndef RC_FLAGS
 649   RC_FLAGS:=@RC_FLAGS@
 650 endif
 651 
 652 # Tools adhering to a minimal and common standard of posix compliance.
 653 AWK:=@AWK@
 654 BASENAME:=@BASENAME@
 655 CAT:=@CAT@
 656 CCACHE:=@CCACHE@
 657 # CD is going away, but remains to cater for legacy makefiles.
 658 CD:=cd
 659 CHMOD:=@CHMOD@
 660 CODESIGN:=@CODESIGN@
 661 COMM:=@COMM@
 662 CP:=@CP@
 663 CPIO:=@CPIO@
 664 CUT:=@CUT@
 665 DATE:=@DATE@
 666 DIFF:=@DIFF@
 667 DIRNAME:=@DIRNAME@
 668 DSYMUTIL:=@DSYMUTIL@
 669 FIND:=@FIND@
 670 FIND_DELETE:=@FIND_DELETE@
 671 FLOCK:=@FLOCK@
 672 ECHO:=@ECHO@
 673 EGREP:=@EGREP@
 674 FGREP:=@FGREP@
 675 GREP:=@GREP@
 676 GZIP:=@GZIP@
 677 HEAD:=@HEAD@
 678 LS:=@LS@
 679 LN:=@LN@
 680 MKDIR:=@MKDIR@
 681 MV:=@MV@
 682 NAWK:=@NAWK@
 683 NICE:=@NICE@
 684 PANDOC:=@FIXPATH@ @PANDOC@
 685 PATCH:=@PATCH@
 686 PRINTF:=@PRINTF@
 687 READLINK:=@READLINK@
 688 RM:=@RM@
 689 RMDIR:=@RMDIR@
 690 SED:=@SED@
 691 SH:=@SH@
 692 SORT:=@SORT@
 693 TAR:=@TAR@
 694 TAIL:=@TAIL@
 695 TEE:=@TEE@
 696 TIME:=@TIME@
 697 IS_GNU_TIME:=@IS_GNU_TIME@
 698 TR:=@TR@
 699 TOUCH:=@TOUCH@
 700 UNIQ:=@UNIQ@
 701 WC:=@WC@
 702 XARGS:=@XARGS@
 703 ZIPEXE:=@ZIPEXE@
 704 UNZIP:=@UNZIP@
 705 MT:=@FIXPATH@ @MT@
 706 RC:=@FIXPATH@ @RC@
 707 DUMPBIN:=@FIXPATH@ @DUMPBIN@
 708 CYGPATH:=@CYGPATH@
 709 LDD:=@LDD@
 710 OTOOL:=@OTOOL@
 711 READELF:=@READELF@
 712 ELFEDIT:=@ELFEDIT@
 713 EXPR:=@EXPR@
 714 FILE:=@FILE@
 715 DOT:=@DOT@
 716 HG:=@HG@
 717 OBJCOPY:=@OBJCOPY@
 718 SETFILE:=@SETFILE@
 719 XATTR:=@XATTR@
 720 JT_HOME:=@JT_HOME@
 721 JTREGEXE:=@JTREGEXE@
 722 JIB_JAR:=@JIB_JAR@
 723 XCODEBUILD=@XCODEBUILD@
 724 DTRACE := @DTRACE@
 725 FIXPATH:=@FIXPATH@
 726 
 727 TAR_TYPE:=@TAR_TYPE@
 728 TAR_CREATE_EXTRA_PARAM:=@TAR_CREATE_EXTRA_PARAM@
 729 TAR_INCLUDE_PARAM:=@TAR_INCLUDE_PARAM@
 730 TAR_SUPPORTS_TRANSFORM:=@TAR_SUPPORTS_TRANSFORM@
 731 
 732 # Build setup
 733 ENABLE_AOT:=@ENABLE_AOT@
 734 ENABLE_INTREE_EC:=@ENABLE_INTREE_EC@
 735 USE_EXTERNAL_LIBJPEG:=@USE_EXTERNAL_LIBJPEG@
 736 USE_EXTERNAL_LIBGIF:=@USE_EXTERNAL_LIBGIF@
 737 USE_EXTERNAL_LIBZ:=@USE_EXTERNAL_LIBZ@
 738 LIBZ_CFLAGS:=@LIBZ_CFLAGS@
 739 LIBZ_LIBS:=@LIBZ_LIBS@
 740 LIBZIP_CAN_USE_MMAP:=@LIBZIP_CAN_USE_MMAP@
 741 MSVCR_DLL:=@MSVCR_DLL@
 742 MSVCP_DLL:=@MSVCP_DLL@
 743 UCRT_DLL_DIR:=@UCRT_DLL_DIR@
 744 STLPORT_LIB:=@STLPORT_LIB@
 745 
 746 ####################################################
 747 #
 748 # INSTALLATION
 749 #
 750 
 751 # Common prefix for all installed files. Defaults to /usr/local,
 752 # but /opt/myjdk is another common version.
 753 INSTALL_PREFIX=@prefix@
 754 
 755 # Directories containing architecture-dependent files should be relative to exec_prefix
 756 INSTALL_EXECPREFIX=@exec_prefix@
 757 
 758 # java,javac,javap etc are installed here.
 759 INSTALL_BINDIR=@bindir@
 760 
 761 # Read only architecture-independent data
 762 INSTALL_DATADIR=@datadir@
 763 
 764 # Root of above.
 765 INSTALL_DATAROOTDIR=@datarootdir@
 766 
 767 # Doc files, other than info and man.
 768 INSTALL_DOCDIR=@docdir@
 769 
 770 # Html documentation
 771 INSTALL_HTMLDIR=@htmldir@
 772 
 773 # Installing C header files, JNI headers for example.
 774 INSTALL_INCLUDEDIR=@includedir@
 775 
 776 # Installing library files....
 777 INSTALL_INCLUDEDIR=@libdir@
 778 
 779 # Executables that other programs run.
 780 INSTALL_LIBEXECDIR=@libexecdir@
 781 
 782 # Locale-dependent but architecture-independent data, such as message catalogs.
 783 INSTALL_LOCALEDIR=@localedir@
 784 
 785 # Modifiable single-machine data
 786 INSTALL_LOCALSTATEDIR=@localstatedir@
 787 
 788 # Man pages
 789 INSTALL_MANDIR=@mandir@
 790 
 791 # Modifiable architecture-independent data.
 792 INSTALL_SHAREDSTATEDIR=@sharedstatedir@
 793 
 794 # Read-only single-machine data
 795 INSTALL_SYSCONFDIR=@sysconfdir@
 796 
 797 ####################################################
 798 #
 799 # Libraries
 800 #
 801 
 802 USE_EXTERNAL_LCMS:=@USE_EXTERNAL_LCMS@
 803 LCMS_CFLAGS:=@LCMS_CFLAGS@
 804 LCMS_LIBS:=@LCMS_LIBS@
 805 
 806 USE_EXTERNAL_LIBPNG:=@USE_EXTERNAL_LIBPNG@
 807 PNG_LIBS:=@PNG_LIBS@
 808 PNG_CFLAGS:=@PNG_CFLAGS@
 809 
 810 ####################################################
 811 #
 812 # Misc
 813 #
 814 
 815 INCLUDE_SA=@INCLUDE_SA@
 816 INCLUDE_GRAAL=@INCLUDE_GRAAL@
 817 
 818 OS_VERSION_MAJOR:=@OS_VERSION_MAJOR@
 819 OS_VERSION_MINOR:=@OS_VERSION_MINOR@
 820 OS_VERSION_MICRO:=@OS_VERSION_MICRO@
 821 
 822 # Images directory definitions
 823 JDK_IMAGE_SUBDIR:=jdk
 824 JRE_IMAGE_SUBDIR:=jre
 825 
 826 # Colon left out to be able to override output dir for bootcycle-images
 827 JDK_IMAGE_DIR=$(IMAGES_OUTPUTDIR)/$(JDK_IMAGE_SUBDIR)
 828 JRE_IMAGE_DIR=$(IMAGES_OUTPUTDIR)/$(JRE_IMAGE_SUBDIR)
 829 
 830 # Test image, as above
 831 TEST_IMAGE_SUBDIR:=test
 832 TEST_IMAGE_DIR=$(IMAGES_OUTPUTDIR)/$(TEST_IMAGE_SUBDIR)
 833 
 834 # Symbols image
 835 SYMBOLS_IMAGE_SUBDIR:=symbols
 836 SYMBOLS_IMAGE_DIR=$(IMAGES_OUTPUTDIR)/$(SYMBOLS_IMAGE_SUBDIR)
 837 
 838 # Interim image
 839 INTERIM_JMODS_DIR := $(SUPPORT_OUTPUTDIR)/interim-jmods
 840 INTERIM_IMAGE_DIR := $(SUPPORT_OUTPUTDIR)/interim-image
 841 
 842 # Docs image
 843 DOCS_IMAGE_SUBDIR := docs
 844 DOCS_IMAGE_DIR = $(IMAGES_OUTPUTDIR)/$(DOCS_IMAGE_SUBDIR)
 845 # Output docs directly into image
 846 DOCS_OUTPUTDIR := $(DOCS_IMAGE_DIR)
 847 
 848 # Macosx bundles directory definitions
 849 JDK_MACOSX_BUNDLE_SUBDIR=jdk-bundle
 850 JRE_MACOSX_BUNDLE_SUBDIR=jre-bundle
 851 JDK_MACOSX_BUNDLE_DIR=$(IMAGES_OUTPUTDIR)/$(JDK_MACOSX_BUNDLE_SUBDIR)
 852 JRE_MACOSX_BUNDLE_DIR=$(IMAGES_OUTPUTDIR)/$(JRE_MACOSX_BUNDLE_SUBDIR)
 853 JDK_MACOSX_CONTENTS_SUBDIR=jdk-$(VERSION_NUMBER).jdk/Contents
 854 JRE_MACOSX_CONTENTS_SUBDIR=jre-$(VERSION_NUMBER).jre/Contents
 855 JDK_MACOSX_CONTENTS_DIR=$(JDK_MACOSX_BUNDLE_DIR)/$(JDK_MACOSX_CONTENTS_SUBDIR)
 856 JRE_MACOSX_CONTENTS_DIR=$(JRE_MACOSX_BUNDLE_DIR)/$(JRE_MACOSX_CONTENTS_SUBDIR)
 857 
 858 # Bundle names
 859 BASE_NAME := $(VERSION_SHORT)+$(VERSION_BUILD)_$(OPENJDK_TARGET_BUNDLE_PLATFORM)
 860 ifeq ($(DEBUG_LEVEL), fastdebug)
 861   DEBUG_PART := -debug
 862 else ifneq ($(DEBUG_LEVEL), release)
 863   DEBUG_PART := -$(DEBUG_LEVEL)
 864 endif
 865 JDK_BUNDLE_NAME := jdk-$(BASE_NAME)_bin$(DEBUG_PART).tar.gz
 866 JRE_BUNDLE_NAME := jre-$(BASE_NAME)_bin$(DEBUG_PART).tar.gz
 867 JDK_SYMBOLS_BUNDLE_NAME := jdk-$(BASE_NAME)_bin$(DEBUG_PART)-symbols.tar.gz
 868 JRE_SYMBOLS_BUNDLE_NAME := jre-$(BASE_NAME)_bin$(DEBUG_PART)-symbols.tar.gz
 869 TEST_DEMOS_BUNDLE_NAME := jdk-$(BASE_NAME)_bin-tests-demos$(DEBUG_PART).tar.gz
 870 TEST_BUNDLE_NAME := jdk-$(BASE_NAME)_bin-tests$(DEBUG_PART).tar.gz
 871 DOCS_BUNDLE_NAME := jdk-$(BASE_NAME)_doc-api-spec$(DEBUG_PART).tar.gz
 872 
 873 JDK_BUNDLE := $(BUNDLES_OUTPUTDIR)/$(JDK_BUNDLE_NAME)
 874 JRE_BUNDLE :=  $(BUNDLES_OUTPUTDIR)/$(JRE_BUNDLE_NAME)
 875 JDK_SYMBOLS_BUNDLE :=  $(BUNDLES_OUTPUTDIR)/$(JDK_SYMBOLS_BUNDLE_NAME)
 876 JRE_SYMBOLS_BUNDLE :=  $(BUNDLES_OUTPUTDIR)/$(JRE_SYMBOLS_BUNDLE_NAME)
 877 TEST_DEMOS_BUNDLE := $(BUNDLES_OUTPUTDIR)/$(TEST_DEMOS_BUNDLE_NAME)
 878 TEST_BUNDLE :=  $(BUNDLES_OUTPUTDIR)/$(TEST_BUNDLE_NAME)
 879 DOCS_BUNDLE :=  $(BUNDLES_OUTPUTDIR)/$(DOCS_BUNDLE_NAME)
 880 
 881 # This macro is called to allow inclusion of closed source counterparts.
 882 # Unless overridden in closed sources, it expands to nothing.
 883 # Usage: This function is called in an open makefile, with the following
 884 # argument:
 885 # $1 the name of the makefile
 886 define IncludeCustomExtension
 887 endef
 888 
 889 # Include the custom-spec.gmk file if it exists
 890 -include $(dir @SPEC@)/custom-spec.gmk
--- EOF ---