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