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