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