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