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