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 OPENJDK_TARGET_LIBC:=@OPENJDK_TARGET_LIBC@
  81 
  82 COMPILE_TYPE:=@COMPILE_TYPE@
  83 
  84 # Legacy support
  85 OPENJDK_TARGET_CPU_ISADIR:=@OPENJDK_TARGET_CPU_ISADIR@
  86 OPENJDK_TARGET_CPU_LEGACY:=@OPENJDK_TARGET_CPU_LEGACY@
  87 OPENJDK_TARGET_CPU_LEGACY_LIB:=@OPENJDK_TARGET_CPU_LEGACY_LIB@
  88 OPENJDK_TARGET_CPU_OSARCH:=@OPENJDK_TARGET_CPU_OSARCH@
  89 OPENJDK_TARGET_OS_INCLUDE_SUBDIR:=@OPENJDK_TARGET_OS_INCLUDE_SUBDIR@
  90 
  91 HOTSPOT_TARGET_OS := @HOTSPOT_TARGET_OS@
  92 HOTSPOT_TARGET_OS_TYPE := @HOTSPOT_TARGET_OS_TYPE@
  93 
  94 HOTSPOT_TARGET_CPU := @HOTSPOT_TARGET_CPU@
  95 HOTSPOT_TARGET_CPU_ARCH := @HOTSPOT_TARGET_CPU_ARCH@
  96 HOTSPOT_TARGET_CPU_DEFINE := @HOTSPOT_TARGET_CPU_DEFINE@
  97 
  98 HOTSPOT_TARGET_LIBC := @HOTSPOT_TARGET_LIBC@
  99 
 100 OPENJDK_TARGET_BUNDLE_PLATFORM:=@OPENJDK_TARGET_BUNDLE_PLATFORM@
 101 JDK_ARCH_ABI_PROP_NAME := @JDK_ARCH_ABI_PROP_NAME@
 102 
 103 # We are building on this build system.
 104 # When not cross-compiling, it is the same as the target.
 105 OPENJDK_BUILD_OS:=@OPENJDK_BUILD_OS@
 106 OPENJDK_BUILD_OS_TYPE:=@OPENJDK_BUILD_OS_TYPE@
 107 OPENJDK_BUILD_OS_ENV:=@OPENJDK_BUILD_OS_ENV@
 108 
 109 OPENJDK_BUILD_CPU:=@OPENJDK_BUILD_CPU@
 110 OPENJDK_BUILD_CPU_ARCH:=@OPENJDK_BUILD_CPU_ARCH@
 111 OPENJDK_BUILD_CPU_BITS:=@OPENJDK_BUILD_CPU_BITS@
 112 OPENJDK_BUILD_CPU_ENDIAN:=@OPENJDK_BUILD_CPU_ENDIAN@
 113 
 114 OPENJDK_BUILD_LIBC:=@OPENJDK_BUILD_LIBC@
 115 
 116 OPENJDK_BUILD_OS_INCLUDE_SUBDIR:=@OPENJDK_TARGET_OS_INCLUDE_SUBDIR@
 117 
 118 # Target platform value in ModuleTarget class file attribute.
 119 OPENJDK_MODULE_TARGET_PLATFORM:=@OPENJDK_MODULE_TARGET_PLATFORM@
 120 
 121 # OS_* properties in release file
 122 RELEASE_FILE_OS_NAME:=@RELEASE_FILE_OS_NAME@
 123 RELEASE_FILE_OS_ARCH:=@RELEASE_FILE_OS_ARCH@
 124 
 125 LIBM:=@LIBM@
 126 LIBDL:=@LIBDL@
 127 
 128 # colon or semicolon
 129 PATH_SEP:=@PATH_SEP@
 130 
 131 # Save the original path before replacing it with the Visual Studio tools
 132 ORIGINAL_PATH:=@ORIGINAL_PATH@
 133 ifeq ($(OPENJDK_TARGET_OS), windows)
 134   # On Windows, the Visual Studio toolchain needs the PATH to be adjusted
 135   # to include Visual Studio tools (this needs to be in cygwin/msys style).
 136   ifeq ($(OPENJDK_TARGET_OS_ENV), windows.wsl)
 137     export FIXPATH_PATH:=@VS_PATH_WINDOWS@
 138     export WSLENV:=$(WSLENV):FIXPATH_PATH:DEBUG_FIXPATH
 139   else
 140     export PATH:=@VS_PATH@
 141   endif
 142 endif
 143 
 144 SYSROOT_CFLAGS := @SYSROOT_CFLAGS@
 145 SYSROOT_LDFLAGS := @SYSROOT_LDFLAGS@
 146 
 147 # The top-level directory of the source repository
 148 TOPDIR:=@TOPDIR@
 149 # Usually the top level directory, but could be something else if a custom
 150 # root is defined.
 151 WORKSPACE_ROOT:=@WORKSPACE_ROOT@
 152 IMPORT_MODULES_CLASSES:=@IMPORT_MODULES_CLASSES@
 153 IMPORT_MODULES_CMDS:=@IMPORT_MODULES_CMDS@
 154 IMPORT_MODULES_LIBS:=@IMPORT_MODULES_LIBS@
 155 IMPORT_MODULES_CONF:=@IMPORT_MODULES_CONF@
 156 IMPORT_MODULES_LEGAL:=@IMPORT_MODULES_LEGAL@
 157 IMPORT_MODULES_MAN:=@IMPORT_MODULES_MAN@
 158 IMPORT_MODULES_SRC:=@IMPORT_MODULES_SRC@
 159 IMPORT_MODULES_MAKE:=@IMPORT_MODULES_MAKE@
 160 
 161 COPYRIGHT_YEAR:=@COPYRIGHT_YEAR@
 162 
 163 # Platform naming variables
 164 LAUNCHER_NAME:=@LAUNCHER_NAME@
 165 PRODUCT_NAME:=@PRODUCT_NAME@
 166 PRODUCT_SUFFIX:=@PRODUCT_SUFFIX@
 167 JDK_RC_PLATFORM_NAME:=@JDK_RC_PLATFORM_NAME@
 168 JDK_RC_NAME:=@JDK_RC_NAME@
 169 COMPANY_NAME:=@COMPANY_NAME@
 170 HOTSPOT_VM_DISTRO:=@HOTSPOT_VM_DISTRO@
 171 MACOSX_BUNDLE_NAME_BASE=@MACOSX_BUNDLE_NAME_BASE@
 172 MACOSX_BUNDLE_ID_BASE=@MACOSX_BUNDLE_ID_BASE@
 173 USERNAME:=@USERNAME@
 174 VENDOR_URL:=@VENDOR_URL@
 175 VENDOR_URL_BUG:=@VENDOR_URL_BUG@
 176 VENDOR_URL_VM_BUG:=@VENDOR_URL_VM_BUG@
 177 
 178 # New (JEP-223) version information
 179 
 180 ## Building blocks of the version string
 181 # First three version numbers, with well-specified meanings (numerical)
 182 VERSION_FEATURE := @VERSION_FEATURE@
 183 VERSION_INTERIM := @VERSION_INTERIM@
 184 VERSION_UPDATE := @VERSION_UPDATE@
 185 VERSION_PATCH := @VERSION_PATCH@
 186 VERSION_EXTRA1 := @VERSION_EXTRA1@
 187 VERSION_EXTRA2 := @VERSION_EXTRA2@
 188 VERSION_EXTRA3 := @VERSION_EXTRA3@
 189 # The pre-release identifier (string)
 190 VERSION_PRE := @VERSION_PRE@
 191 # The build number (numerical)
 192 VERSION_BUILD := @VERSION_BUILD@
 193 # Optional build information (string)
 194 VERSION_OPT := @VERSION_OPT@
 195 
 196 ## Composite variables
 197 # The version number as a dot separated sequence of numbers, e.g. 9.0.1
 198 VERSION_NUMBER := @VERSION_NUMBER@
 199 # VERSION_NUMBER but always with exactly 4 positions, with 0 for empty positions.
 200 VERSION_NUMBER_FOUR_POSITIONS := @VERSION_NUMBER_FOUR_POSITIONS@
 201 # The complete version string, with additional build information
 202 VERSION_STRING := @VERSION_STRING@
 203 # The short version string, without trailing zeroes and just PRE, if present.
 204 VERSION_SHORT := @VERSION_SHORT@
 205 # The Java specification version. It usually equals the feature version number.
 206 VERSION_SPECIFICATION := @VERSION_FEATURE@
 207 # A GA version is defined by the PRE string being empty. Rather than testing for
 208 # that, this variable defines it with true/false.
 209 VERSION_IS_GA := @VERSION_IS_GA@
 210 
 211 # Version date
 212 VERSION_DATE := @VERSION_DATE@
 213 
 214 # Vendor version string
 215 VENDOR_VERSION_STRING := @VENDOR_VERSION_STRING@
 216 
 217 # Class-file version
 218 VERSION_CLASSFILE_MAJOR := @VERSION_CLASSFILE_MAJOR@
 219 VERSION_CLASSFILE_MINOR := @VERSION_CLASSFILE_MINOR@
 220 
 221 JDK_SOURCE_TARGET_VERSION := @JDK_SOURCE_TARGET_VERSION@
 222 
 223 # Convenience CFLAGS settings for passing version information into native programs.
 224 VERSION_CFLAGS := \
 225     -DVERSION_FEATURE=$(VERSION_FEATURE) \
 226     -DVERSION_INTERIM=$(VERSION_INTERIM) \
 227     -DVERSION_UPDATE=$(VERSION_UPDATE) \
 228     -DVERSION_PATCH=$(VERSION_PATCH) \
 229     -DVERSION_EXTRA1=$(VERSION_EXTRA1) \
 230     -DVERSION_EXTRA2=$(VERSION_EXTRA2) \
 231     -DVERSION_EXTRA3=$(VERSION_EXTRA3) \
 232     -DVERSION_PRE='"$(VERSION_PRE)"' \
 233     -DVERSION_BUILD=$(VERSION_BUILD) \
 234     -DVERSION_OPT='"$(VERSION_OPT)"' \
 235     -DVERSION_NUMBER='"$(VERSION_NUMBER)"' \
 236     -DVERSION_STRING='"$(VERSION_STRING)"' \
 237     -DVERSION_SHORT='"$(VERSION_SHORT)"' \
 238     -DVERSION_SPECIFICATION='"$(VERSION_SPECIFICATION)"' \
 239     -DVERSION_DATE='"$(VERSION_DATE)"' \
 240     -DVENDOR_VERSION_STRING='"$(VENDOR_VERSION_STRING)"' \
 241     -DVERSION_CLASSFILE_MAJOR=$(VERSION_CLASSFILE_MAJOR) \
 242     -DVERSION_CLASSFILE_MINOR=$(VERSION_CLASSFILE_MINOR) \
 243     #
 244 
 245 ifneq ($(COMPANY_NAME),)
 246   # COMPANY_NAME is set to "N/A" in $AUTOCONF_DIR/version-numbers by default,
 247   # but can be customized with the '--with-vendor-name' configure option.
 248   # Only export "VENDOR" to the build if COMPANY_NAME contains a real value.
 249   # Otherwise the default value for VENDOR, which is used to set the "java.vendor"
 250   # and "java.vm.vendor" properties is hard-coded into the source code (i.e. in
 251   # VersionProps.java.template in the jdk for "vm.vendor" and
 252   # vm_version.cpp in the VM for "java.vm.vendor")
 253   ifneq ($(COMPANY_NAME), N/A)
 254     VERSION_CFLAGS += -DVENDOR='"$(COMPANY_NAME)"'
 255   endif
 256 endif
 257 
 258 # Only export VENDOR_URL, VENDOR_URL_BUG and VENDOR_VM_URL_BUG to the build if
 259 # they are not empty. Otherwise, default values which are defined in the sources
 260 # will be used.
 261 ifneq ($(VENDOR_URL),)
 262   VERSION_CFLAGS += -DVENDOR_URL='"$(VENDOR_URL)"'
 263 endif
 264 ifneq ($(VENDOR_URL_BUG),)
 265   VERSION_CFLAGS += -DVENDOR_URL_BUG='"$(VENDOR_URL_BUG)"'
 266 endif
 267 ifneq ($(VENDOR_URL_VM_BUG),)
 268   VERSION_CFLAGS += -DVENDOR_URL_VM_BUG='"$(VENDOR_URL_VM_BUG)"'
 269 endif
 270 
 271 # Different naming strings generated from the above information.
 272 RUNTIME_NAME=$(PRODUCT_NAME) $(PRODUCT_SUFFIX)
 273 
 274 # How to compile the code: release, fastdebug or slowdebug
 275 DEBUG_LEVEL:=@DEBUG_LEVEL@
 276 HOTSPOT_DEBUG_LEVEL:=@HOTSPOT_DEBUG_LEVEL@
 277 
 278 # Which JVM variants to build (space-separated list)
 279 JVM_VARIANTS := @JVM_VARIANTS@
 280 JVM_VARIANT_MAIN := @JVM_VARIANT_MAIN@
 281 
 282 # Lists of features per variant. Only relevant for the variants listed in
 283 # JVM_VARIANTS.
 284 JVM_FEATURES_server := @JVM_FEATURES_server@
 285 JVM_FEATURES_client := @JVM_FEATURES_client@
 286 JVM_FEATURES_core := @JVM_FEATURES_core@
 287 JVM_FEATURES_minimal := @JVM_FEATURES_minimal@
 288 JVM_FEATURES_zero := @JVM_FEATURES_zero@
 289 JVM_FEATURES_custom := @JVM_FEATURES_custom@
 290 
 291 # Used for make-time verifications
 292 VALID_JVM_FEATURES := @VALID_JVM_FEATURES@
 293 VALID_JVM_VARIANTS := @VALID_JVM_VARIANTS@
 294 
 295 # Control wether Hotspot builds gtest tests
 296 BUILD_GTEST := @BUILD_GTEST@
 297 
 298 # Allow overriding the default hotspot library path
 299 HOTSPOT_OVERRIDE_LIBPATH := @HOTSPOT_OVERRIDE_LIBPATH@
 300 
 301 # Control use of precompiled header in hotspot libjvm build
 302 USE_PRECOMPILED_HEADER := @USE_PRECOMPILED_HEADER@
 303 
 304 # Only build headless support or not
 305 ENABLE_HEADLESS_ONLY := @ENABLE_HEADLESS_ONLY@
 306 
 307 ENABLE_FULL_DOCS := @ENABLE_FULL_DOCS@
 308 
 309 # JDK_OUTPUTDIR specifies where a working jvm is built.
 310 # You can run $(JDK_OUTPUTDIR)/bin/java
 311 
 312 OUTPUTDIR := @OUTPUTDIR@
 313 # Colon left out to be able to override IMAGES_OUTPUTDIR for bootcycle-images
 314 SUPPORT_OUTPUTDIR=$(OUTPUTDIR)/support
 315 BUILDTOOLS_OUTPUTDIR=$(OUTPUTDIR)/buildtools
 316 
 317 HOTSPOT_OUTPUTDIR=$(OUTPUTDIR)/hotspot
 318 JDK_OUTPUTDIR=$(OUTPUTDIR)/jdk
 319 IMAGES_OUTPUTDIR=$(OUTPUTDIR)/images
 320 BUNDLES_OUTPUTDIR=$(OUTPUTDIR)/bundles
 321 TESTMAKE_OUTPUTDIR=$(OUTPUTDIR)/test-make
 322 MAKESUPPORT_OUTPUTDIR=$(OUTPUTDIR)/make-support
 323 
 324 # This does not get overridden in a bootcycle build
 325 CONFIGURESUPPORT_OUTPUTDIR:=@CONFIGURESUPPORT_OUTPUTDIR@
 326 BUILDJDK_OUTPUTDIR=$(OUTPUTDIR)/buildjdk
 327 
 328 BUILD_FAILURE_HANDLER := @BUILD_FAILURE_HANDLER@
 329 
 330 ENABLE_GENERATE_CLASSLIST := @ENABLE_GENERATE_CLASSLIST@
 331 
 332 EXCLUDE_TRANSLATIONS := @EXCLUDE_TRANSLATIONS@
 333 
 334 BUILD_MANPAGES := @BUILD_MANPAGES@
 335 
 336 BUILD_CDS_ARCHIVE := @BUILD_CDS_ARCHIVE@
 337 
 338 # The boot jdk to use. This is overridden in bootcycle-spec.gmk. Make sure to keep
 339 # it in sync.
 340 BOOT_JDK:=@BOOT_JDK@
 341 
 342 BUILD_JDK:=@BUILD_JDK@
 343 CREATE_BUILDJDK:=@CREATE_BUILDJDK@
 344 EXTERNAL_BUILDJDK:=@EXTERNAL_BUILDJDK@
 345 
 346 # When compiling Java source to be run by the boot jdk
 347 # use these extra flags, eg -source 6 -target 6
 348 BOOT_JDK_SOURCETARGET:=@BOOT_JDK_SOURCETARGET@
 349 
 350 # Information about the build system
 351 NUM_CORES:=@NUM_CORES@
 352 MEMORY_SIZE:=@MEMORY_SIZE@
 353 # Enable sjavac support = use a javac server,
 354 # multi core javac compilation and dependency tracking.
 355 ENABLE_SJAVAC:=@ENABLE_SJAVAC@
 356 ENABLE_JAVAC_SERVER:=@ENABLE_JAVAC_SERVER@
 357 # Store sjavac server synchronization files here, and
 358 # the sjavac server log files.
 359 SJAVAC_SERVER_DIR=$(MAKESUPPORT_OUTPUTDIR)/javacservers
 360 
 361 # Number of parallel jobs to use for compilation
 362 JOBS?=@JOBS@
 363 TEST_JOBS?=@TEST_JOBS@
 364 
 365 # Default make target
 366 DEFAULT_MAKE_TARGET:=@DEFAULT_MAKE_TARGET@
 367 DEFAULT_LOG:=@DEFAULT_LOG@
 368 
 369 FREETYPE_TO_USE:=@FREETYPE_TO_USE@
 370 FREETYPE_LIBS:=@FREETYPE_LIBS@
 371 FREETYPE_CFLAGS:=@FREETYPE_CFLAGS@
 372 FONTCONFIG_CFLAGS:=@FONTCONFIG_CFLAGS@
 373 CUPS_CFLAGS:=@CUPS_CFLAGS@
 374 ALSA_LIBS:=@ALSA_LIBS@
 375 ALSA_CFLAGS:=@ALSA_CFLAGS@
 376 LIBFFI_LIBS:=@LIBFFI_LIBS@
 377 LIBFFI_CFLAGS:=@LIBFFI_CFLAGS@
 378 ENABLE_LIBFFI_BUNDLING:=@ENABLE_LIBFFI_BUNDLING@
 379 LIBFFI_LIB_FILE:=@LIBFFI_LIB_FILE@
 380 GRAALUNIT_LIB := @GRAALUNIT_LIB@
 381 
 382 JMH_CORE_JAR := @JMH_CORE_JAR@
 383 JMH_GENERATOR_JAR := @JMH_GENERATOR_JAR@
 384 JMH_JOPT_SIMPLE_JAR := @JMH_JOPT_SIMPLE_JAR@
 385 JMH_COMMONS_MATH_JAR := @JMH_COMMONS_MATH_JAR@
 386 JMH_VERSION := @JMH_VERSION@
 387 
 388 # Source file for cacerts
 389 CACERTS_FILE=@CACERTS_FILE@
 390 
 391 # Enable unlimited crypto policy
 392 UNLIMITED_CRYPTO=@UNLIMITED_CRYPTO@
 393 
 394 GCOV_ENABLED=@GCOV_ENABLED@
 395 JCOV_ENABLED=@JCOV_ENABLED@
 396 JCOV_HOME=@JCOV_HOME@
 397 JCOV_INPUT_JDK=@JCOV_INPUT_JDK@
 398 JCOV_FILTERS=@JCOV_FILTERS@
 399 
 400 # AddressSanitizer
 401 export ASAN_ENABLED:=@ASAN_ENABLED@
 402 export DEVKIT_LIB_DIR:=@DEVKIT_LIB_DIR@
 403 ifeq ($(ASAN_ENABLED), yes)
 404   export ASAN_OPTIONS="handle_segv=0 detect_leaks=0"
 405   ifneq ($(DEVKIT_LIB_DIR),)
 406     export LD_LIBRARY_PATH:=$(LD_LIBRARY_PATH):$(DEVKIT_LIB_DIR)
 407   endif
 408 endif
 409 
 410 # Necessary additional compiler flags to compile X11
 411 X_CFLAGS:=@X_CFLAGS@
 412 X_LIBS:=@X_LIBS@
 413 
 414 # The lowest required version of macosx
 415 MACOSX_VERSION_MIN=@MACOSX_VERSION_MIN@
 416 # The highest allowed version of macosx
 417 MACOSX_VERSION_MAX=@MACOSX_VERSION_MAX@
 418 
 419 # Toolchain type: gcc, clang, solstudio, lxc, microsoft...
 420 TOOLCHAIN_TYPE:=@TOOLCHAIN_TYPE@
 421 TOOLCHAIN_VERSION := @TOOLCHAIN_VERSION@
 422 CC_VERSION_NUMBER := @CC_VERSION_NUMBER@
 423 CXX_VERSION_NUMBER := @CXX_VERSION_NUMBER@
 424 
 425 # Legacy support
 426 HOTSPOT_TOOLCHAIN_TYPE := @HOTSPOT_TOOLCHAIN_TYPE@
 427 
 428 # Option used to tell the compiler whether to create 32- or 64-bit executables
 429 COMPILER_TARGET_BITS_FLAG:=@COMPILER_TARGET_BITS_FLAG@
 430 COMPILER_SUPPORTS_TARGET_BITS_FLAG=@COMPILER_SUPPORTS_TARGET_BITS_FLAG@
 431 
 432 # Option used to pass a command file to the compiler
 433 COMPILER_COMMAND_FILE_FLAG:=@COMPILER_COMMAND_FILE_FLAG@
 434 
 435 # Option for specifying a file which saves the binder commands
 436 # produced by the link step (for debugging, currently AIX only)
 437 COMPILER_BINDCMD_FILE_FLAG:=@COMPILER_BINDCMD_FILE_FLAG@
 438 
 439 CC_OUT_OPTION:=@CC_OUT_OPTION@
 440 LD_OUT_OPTION:=@LD_OUT_OPTION@
 441 AR_OUT_OPTION:=@AR_OUT_OPTION@
 442 
 443 # Flags used for overriding the default opt setting for a C/C++ source file.
 444 C_O_FLAG_HIGHEST_JVM:=@C_O_FLAG_HIGHEST_JVM@
 445 C_O_FLAG_HIGHEST:=@C_O_FLAG_HIGHEST@
 446 C_O_FLAG_HI:=@C_O_FLAG_HI@
 447 C_O_FLAG_NORM:=@C_O_FLAG_NORM@
 448 C_O_FLAG_NONE:=@C_O_FLAG_NONE@
 449 C_O_FLAG_SIZE:=@C_O_FLAG_SIZE@
 450 CXX_O_FLAG_HIGHEST_JVM:=@CXX_O_FLAG_HIGHEST_JVM@
 451 CXX_O_FLAG_HIGHEST:=@CXX_O_FLAG_HIGHEST@
 452 CXX_O_FLAG_HI:=@CXX_O_FLAG_HI@
 453 CXX_O_FLAG_NORM:=@CXX_O_FLAG_NORM@
 454 CXX_O_FLAG_NONE:=@CXX_O_FLAG_NONE@
 455 CXX_O_FLAG_SIZE:=@CXX_O_FLAG_SIZE@
 456 
 457 C_FLAG_DEPS:=@C_FLAG_DEPS@
 458 CXX_FLAG_DEPS:=@CXX_FLAG_DEPS@
 459 
 460 DISABLE_WARNING_PREFIX := @DISABLE_WARNING_PREFIX@
 461 CFLAGS_WARNINGS_ARE_ERRORS:=@CFLAGS_WARNINGS_ARE_ERRORS@
 462 LDFLAGS_WARNINGS_ARE_ERRORS:=@LDFLAGS_WARNINGS_ARE_ERRORS@
 463 DISABLED_WARNINGS := @DISABLED_WARNINGS@
 464 DISABLED_WARNINGS_C := @DISABLED_WARNINGS_C@
 465 DISABLED_WARNINGS_CXX := @DISABLED_WARNINGS_CXX@
 466 
 467 # A global flag (true or false) determining if native warnings are considered errors.
 468 WARNINGS_AS_ERRORS := @WARNINGS_AS_ERRORS@
 469 
 470 CFLAGS_CCACHE:=@CFLAGS_CCACHE@
 471 ADLC_CXXFLAG=@ADLC_CXXFLAG@
 472 
 473 # Tools that potentially need to be cross compilation aware.
 474 CC:=@FIXPATH@ @CCACHE@ @ICECC@ @CC@
 475 
 476 # CFLAGS used to compile the jdk native libraries (C-code)
 477 CFLAGS_JDKLIB:=@CFLAGS_JDKLIB@
 478 CXXFLAGS_JDKLIB:=@CXXFLAGS_JDKLIB@
 479 
 480 # CFLAGS used to compile the jdk native launchers (C-code)
 481 CFLAGS_JDKEXE:=@CFLAGS_JDKEXE@
 482 CXXFLAGS_JDKEXE:=@CXXFLAGS_JDKEXE@
 483 
 484 LIBJSIG_HASHSTYLE_LDFLAGS := @LIBJSIG_HASHSTYLE_LDFLAGS@
 485 LIBJSIG_NOEXECSTACK_LDFLAGS := @LIBJSIG_NOEXECSTACK_LDFLAGS@
 486 
 487 FDLIBM_CFLAGS := @FDLIBM_CFLAGS@
 488 JVM_CFLAGS := @JVM_CFLAGS@
 489 JVM_LDFLAGS := @JVM_LDFLAGS@
 490 JVM_ASFLAGS := @JVM_ASFLAGS@
 491 JVM_LIBS := @JVM_LIBS@
 492 JVM_RCFLAGS := @JVM_RCFLAGS@
 493 
 494 # These flags might contain variables set by a custom extension that is included later.
 495 EXTRA_CFLAGS = @EXTRA_CFLAGS@
 496 EXTRA_CXXFLAGS = @EXTRA_CXXFLAGS@
 497 EXTRA_LDFLAGS = @EXTRA_LDFLAGS@
 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_SA_ATTACH=@INCLUDE_SA_ATTACH@
 863 INCLUDE_GRAAL=@INCLUDE_GRAAL@
 864 INCLUDE_JVMCI=@INCLUDE_JVMCI@
 865 
 866 OS_VERSION_MAJOR:=@OS_VERSION_MAJOR@
 867 OS_VERSION_MINOR:=@OS_VERSION_MINOR@
 868 OS_VERSION_MICRO:=@OS_VERSION_MICRO@
 869 
 870 # Images directory definitions
 871 JDK_IMAGE_SUBDIR:=jdk
 872 JRE_IMAGE_SUBDIR:=jre
 873 JCOV_IMAGE_SUBDIR := jdk-jcov
 874 
 875 # Colon left out to be able to override output dir for bootcycle-images
 876 JDK_IMAGE_DIR=$(IMAGES_OUTPUTDIR)/$(JDK_IMAGE_SUBDIR)
 877 JRE_IMAGE_DIR=$(IMAGES_OUTPUTDIR)/$(JRE_IMAGE_SUBDIR)
 878 JCOV_IMAGE_DIR = $(IMAGES_OUTPUTDIR)/$(JCOV_IMAGE_SUBDIR)
 879 
 880 # Test image, as above
 881 TEST_IMAGE_SUBDIR:=test
 882 TEST_IMAGE_DIR=$(IMAGES_OUTPUTDIR)/$(TEST_IMAGE_SUBDIR)
 883 
 884 # Symbols image
 885 SYMBOLS_IMAGE_SUBDIR:=symbols
 886 SYMBOLS_IMAGE_DIR=$(IMAGES_OUTPUTDIR)/$(SYMBOLS_IMAGE_SUBDIR)
 887 
 888 # Interim image
 889 INTERIM_JMODS_DIR := $(SUPPORT_OUTPUTDIR)/interim-jmods
 890 INTERIM_IMAGE_DIR := $(SUPPORT_OUTPUTDIR)/interim-image
 891 
 892 # Docs image
 893 DOCS_IMAGE_SUBDIR := docs
 894 DOCS_IMAGE_DIR = $(IMAGES_OUTPUTDIR)/$(DOCS_IMAGE_SUBDIR)
 895 # Output docs directly into image
 896 DOCS_OUTPUTDIR := $(DOCS_IMAGE_DIR)
 897 
 898 # Macosx bundles directory definitions
 899 JDK_MACOSX_BUNDLE_SUBDIR=jdk-bundle
 900 JRE_MACOSX_BUNDLE_SUBDIR=jre-bundle
 901 JDK_MACOSX_BUNDLE_DIR=$(IMAGES_OUTPUTDIR)/$(JDK_MACOSX_BUNDLE_SUBDIR)
 902 JRE_MACOSX_BUNDLE_DIR=$(IMAGES_OUTPUTDIR)/$(JRE_MACOSX_BUNDLE_SUBDIR)
 903 JDK_MACOSX_CONTENTS_SUBDIR=jdk-$(VERSION_NUMBER).jdk/Contents
 904 JRE_MACOSX_CONTENTS_SUBDIR=jre-$(VERSION_NUMBER).jre/Contents
 905 JDK_MACOSX_CONTENTS_DIR=$(JDK_MACOSX_BUNDLE_DIR)/$(JDK_MACOSX_CONTENTS_SUBDIR)
 906 JRE_MACOSX_CONTENTS_DIR=$(JRE_MACOSX_BUNDLE_DIR)/$(JRE_MACOSX_CONTENTS_SUBDIR)
 907 
 908 # Bundle names
 909 BASE_NAME := $(VERSION_SHORT)+$(VERSION_BUILD)_$(OPENJDK_TARGET_BUNDLE_PLATFORM)
 910 ifeq ($(DEBUG_LEVEL), fastdebug)
 911   DEBUG_PART := -debug
 912 else ifneq ($(DEBUG_LEVEL), release)
 913   DEBUG_PART := -$(DEBUG_LEVEL)
 914 endif
 915 ifeq ($(OPENJDK_TARGET_OS), windows)
 916   JDK_BUNDLE_EXTENSION := zip
 917 else
 918   JDK_BUNDLE_EXTENSION := tar.gz
 919 endif
 920 JDK_BUNDLE_NAME := jdk-$(BASE_NAME)_bin$(DEBUG_PART).$(JDK_BUNDLE_EXTENSION)
 921 JRE_BUNDLE_NAME := jre-$(BASE_NAME)_bin$(DEBUG_PART).$(JDK_BUNDLE_EXTENSION)
 922 JDK_SYMBOLS_BUNDLE_NAME := jdk-$(BASE_NAME)_bin$(DEBUG_PART)-symbols.tar.gz
 923 TEST_DEMOS_BUNDLE_NAME := jdk-$(BASE_NAME)_bin-tests-demos$(DEBUG_PART).tar.gz
 924 TEST_BUNDLE_NAME := jdk-$(BASE_NAME)_bin-tests$(DEBUG_PART).tar.gz
 925 DOCS_BUNDLE_NAME := jdk-$(BASE_NAME)_doc-api-spec$(DEBUG_PART).tar.gz
 926 JCOV_BUNDLE_NAME := jdk-jcov-$(BASE_NAME)_bin$(DEBUG_PART).$(JDK_BUNDLE_EXTENSION)
 927 
 928 JDK_BUNDLE := $(BUNDLES_OUTPUTDIR)/$(JDK_BUNDLE_NAME)
 929 JRE_BUNDLE :=  $(BUNDLES_OUTPUTDIR)/$(JRE_BUNDLE_NAME)
 930 JDK_SYMBOLS_BUNDLE :=  $(BUNDLES_OUTPUTDIR)/$(JDK_SYMBOLS_BUNDLE_NAME)
 931 TEST_DEMOS_BUNDLE := $(BUNDLES_OUTPUTDIR)/$(TEST_DEMOS_BUNDLE_NAME)
 932 TEST_BUNDLE :=  $(BUNDLES_OUTPUTDIR)/$(TEST_BUNDLE_NAME)
 933 DOCS_BUNDLE :=  $(BUNDLES_OUTPUTDIR)/$(DOCS_BUNDLE_NAME)
 934 JCOV_BUNDLE := $(BUNDLES_OUTPUTDIR)/$(JCOV_BUNDLE_NAME)
 935 
 936 # This macro is called to allow inclusion of closed source counterparts.
 937 # Unless overridden in closed sources, it expands to nothing.
 938 # Usage: This function is called in an open makefile, with the following
 939 # argument:
 940 # $1 the name of the makefile
 941 define IncludeCustomExtension
 942 endef
 943 
 944 # Include the custom-spec.gmk file if it exists
 945 -include $(dir @SPEC@)/custom-spec.gmk