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