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