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 # Xcode SDK path
552 SDKROOT:=@SDKROOT@
553 
554 # LDFLAGS used to link the jdk native libraries (C-code)
555 LDFLAGS_JDKLIB:=@LDFLAGS_JDKLIB@
556 JDKLIB_LIBS:=@JDKLIB_LIBS@
557 
558 # LDFLAGS used to link the jdk native launchers (C-code)
559 LDFLAGS_JDKEXE:=@LDFLAGS_JDKEXE@
560 JDKEXE_LIBS:=@JDKEXE_LIBS@
561 
562 # LDFLAGS specific to C++ linking.
563 LDFLAGS_CXX_JDK:=@LDFLAGS_CXX_JDK@
564 
565 # Sometimes a different linker is needed for c++ libs
566 LDCXX := @LDCXX@
567 # The flags for linking libstdc++ linker.
568 LIBCXX:=@LIBCXX@
569 
570 # Compiler and linker flags used when building native tests
571 LDFLAGS_TESTEXE:=@LDFLAGS_TESTEXE@
572 
573 # BUILD_CC/BUILD_LD is a compiler/linker that generates code that is runnable on the
574 # build platform.
575 BUILD_CC := @BUILD_ICECC@ @BUILD_CC@
576 BUILD_CXX := @BUILD_ICECC@ @BUILD_CXX@
577 BUILD_LD := @BUILD_LD@
578 BUILD_LDCXX := @BUILD_LDCXX@
579 BUILD_AS := @BUILD_AS@
580 BUILD_AR := @BUILD_AR@
581 BUILD_NM := @BUILD_NM@
582 BUILD_OBJCOPY:=@BUILD_OBJCOPY@
583 BUILD_STRIP:=@BUILD_STRIP@
584 BUILD_SYSROOT_CFLAGS:=@BUILD_SYSROOT_CFLAGS@
585 BUILD_SYSROOT_LDFLAGS:=@BUILD_SYSROOT_LDFLAGS@
586 
587 AS := @AS@
588 
589 # AR is used to create a static library (is ar in unix, lib.exe in windows)
590 AR := @AR@
591 ARFLAGS:=@ARFLAGS@
592 
593 NM:=@NM@
594 STRIP:=@STRIP@
595 OBJDUMP:=@OBJDUMP@
596 CXXFILT:=@CXXFILT@
597 
598 LIPO:=@LIPO@
599 INSTALL_NAME_TOOL:=@INSTALL_NAME_TOOL@
600 METAL := @METAL@
601 METALLIB := @METALLIB@
602 
603 # Options to linker to specify a mapfile.
604 # (Note absence of := assignment, because we do not want to evaluate the macro body here)
605 SET_SHARED_LIBRARY_MAPFILE=@SET_SHARED_LIBRARY_MAPFILE@
606 
607 #
608 # Options for generating debug symbols
609 COMPILE_WITH_DEBUG_SYMBOLS := @COMPILE_WITH_DEBUG_SYMBOLS@
610 COPY_DEBUG_SYMBOLS := @COPY_DEBUG_SYMBOLS@
611 ZIP_EXTERNAL_DEBUG_SYMBOLS := @ZIP_EXTERNAL_DEBUG_SYMBOLS@
612 
613 CFLAGS_DEBUG_SYMBOLS:=@CFLAGS_DEBUG_SYMBOLS@
614 ASFLAGS_DEBUG_SYMBOLS:=@ASFLAGS_DEBUG_SYMBOLS@
615 
616 #
617 # Compress (or not) jars
618 COMPRESS_JARS=@COMPRESS_JARS@
619 
620 # Options to linker to specify the library name.
621 # (Note absence of := assignment, because we do not want to evaluate the macro body here)
622 SET_SHARED_LIBRARY_NAME=@SET_SHARED_LIBRARY_NAME@
623 
624 SHARED_LIBRARY_FLAGS=@SHARED_LIBRARY_FLAGS@
625 
626 # Set origin using the linker, ie use the relative path to the dependent library to find the dependencies.
627 # (Note absence of := assignment, because we do not want to evaluate the macro body here)
628 SET_SHARED_LIBRARY_ORIGIN=@SET_SHARED_LIBRARY_ORIGIN@
629 SET_EXECUTABLE_ORIGIN=@SET_EXECUTABLE_ORIGIN@
630 
631 # Different OS:es have different ways of naming shared libraries.
632 # The SHARED_LIBRARY macro takes "verify" as and argument and returns:
633 #    "libverify.so" or "libverify.dylib" or "verify.dll" depending on platform.
634 # (Note absence of := assignment, because we do not want to evaluate the macro body here)
635 SHARED_LIBRARY=@SHARED_LIBRARY@
636 STATIC_LIBRARY=@STATIC_LIBRARY@
637 LIBRARY_PREFIX:=@LIBRARY_PREFIX@
638 SHARED_LIBRARY_SUFFIX:=@SHARED_LIBRARY_SUFFIX@
639 STATIC_LIBRARY_SUFFIX:=@STATIC_LIBRARY_SUFFIX@
640 EXECUTABLE_SUFFIX:=@EXECUTABLE_SUFFIX@
641 OBJ_SUFFIX:=@OBJ_SUFFIX@
642 STATIC_BUILD:=@STATIC_BUILD@
643 
644 STRIPFLAGS:=@STRIPFLAGS@
645 
646 JAVA_FLAGS:=@JAVA_FLAGS@
647 JAVA_FLAGS_BIG:=@JAVA_FLAGS_BIG@
648 JAVA_FLAGS_SMALL:=@JAVA_FLAGS_SMALL@
649 BUILDJDK_JAVA_FLAGS_SMALL:=@BUILDJDK_JAVA_FLAGS_SMALL@
650 JAVA_TOOL_FLAGS_SMALL:=@JAVA_TOOL_FLAGS_SMALL@
651 
652 # The *_CMD variables are defined separately to be easily overridden in bootcycle-spec.gmk
653 # for bootcycle-images build. Make sure to keep them in sync. Do not use the *_CMD
654 # versions of the variables directly.
655 JAVA_CMD:=@JAVA@
656 JAVAC_CMD:=@JAVAC@
657 JAVADOC_CMD:=@JAVADOC@
658 JAR_CMD:=@JAR@
659 JLINK_CMD := @JLINK@
660 JMOD_CMD := @JMOD@
661 # These variables are meant to be used. They are defined with = instead of := to make
662 # it possible to override only the *_CMD variables.
663 JAVA = $(JAVA_CMD) $(JAVA_FLAGS_BIG) $(JAVA_FLAGS)
664 JAVA_SMALL = $(JAVA_CMD) $(JAVA_FLAGS_SMALL) $(JAVA_FLAGS)
665 JAVAC = $(JAVAC_CMD)
666 JAVADOC = $(JAVADOC_CMD)
667 JAR = $(JAR_CMD)
668 JLINK = $(JLINK_CMD)
669 JMOD = $(JMOD_CMD) $(JAVA_TOOL_FLAGS_SMALL)
670 
671 BUILD_JAVA_FLAGS := @BOOTCYCLE_JVM_ARGS_BIG@
672 BUILD_JAVA=@FIXPATH@ $(BUILD_JDK)/bin/java $(BUILD_JAVA_FLAGS)
673 BUILD_JAVAC=@FIXPATH@ $(BUILD_JDK)/bin/javac
674 BUILD_JAR=@FIXPATH@ $(BUILD_JDK)/bin/jar
675 
676 DOCS_REFERENCE_JAVADOC := @DOCS_REFERENCE_JAVADOC@
677 
678 # Interim langtools modules and arguments
679 INTERIM_LANGTOOLS_BASE_MODULES := java.compiler jdk.compiler jdk.javadoc
680 INTERIM_LANGTOOLS_MODULES := $(addsuffix .interim, $(INTERIM_LANGTOOLS_BASE_MODULES))
681 INTERIM_LANGTOOLS_ADD_EXPORTS := \
682     --add-exports java.base/sun.reflect.annotation=jdk.compiler.interim \
683     --add-exports java.base/jdk.internal.jmod=jdk.compiler.interim \
684     --add-exports java.base/jdk.internal.misc=jdk.compiler.interim \
685     --add-exports java.base/sun.invoke.util=jdk.compiler.interim \
686     --add-exports java.base/jdk.internal.javac=java.compiler.interim \
687     --add-exports java.base/jdk.internal.javac=jdk.compiler.interim \
688     #
689 INTERIM_LANGTOOLS_MODULES_COMMA := $(strip $(subst $(SPACE),$(COMMA),$(strip \
690     $(INTERIM_LANGTOOLS_MODULES))))
691 INTERIM_LANGTOOLS_ARGS := \
692     --limit-modules java.base,jdk.zipfs,$(INTERIM_LANGTOOLS_MODULES_COMMA) \
693     --add-modules $(INTERIM_LANGTOOLS_MODULES_COMMA) \
694     --module-path $(BUILDTOOLS_OUTPUTDIR)/interim_langtools_modules \
695     --patch-module java.base=$(BUILDTOOLS_OUTPUTDIR)/gensrc/java.base.interim \
696     $(INTERIM_LANGTOOLS_ADD_EXPORTS) \
697     #
698 JAVAC_MAIN_CLASS = -m jdk.compiler.interim/com.sun.tools.javac.Main
699 JAVADOC_MAIN_CLASS = -m jdk.javadoc.interim/jdk.javadoc.internal.tool.Main
700 
701 # You run the new javac using the boot jdk with $(BOOT_JDK)/bin/java $(NEW_JAVAC) ...
702 # Use = assignment to be able to override in bootcycle-spec.gmk
703 NEW_JAVAC   = $(INTERIM_LANGTOOLS_ARGS) $(JAVAC_MAIN_CLASS)
704 NEW_JAVADOC = $(INTERIM_LANGTOOLS_ARGS) $(JAVADOC_MAIN_CLASS)
705 
706 JLINK_KEEP_PACKAGED_MODULES:=@JLINK_KEEP_PACKAGED_MODULES@
707 
708 RCFLAGS := @RCFLAGS@
709 
710 # Tools adhering to a minimal and common standard of posix compliance.
711 AWK:=@AWK@
712 BASENAME:=@BASENAME@
713 CAT:=@CAT@
714 CCACHE:=@CCACHE@
715 # CD is going away, but remains to cater for legacy makefiles.
716 CD:=cd
717 CHMOD:=@CHMOD@
718 CODESIGN:=@CODESIGN@
719 CP:=@CP@
720 CUT:=@CUT@
721 DATE:=@DATE@
722 IS_GNU_DATE:=@IS_GNU_DATE@
723 DIFF:=@DIFF@
724 DIRNAME:=@DIRNAME@
725 DSYMUTIL:=@DSYMUTIL@
726 FIND:=@FIND@
727 FIND_DELETE:=@FIND_DELETE@
728 FLOCK:=@FLOCK@
729 ECHO:=@ECHO@
730 EGREP:=@EGREP@
731 FGREP:=@FGREP@
732 GREP:=@GREP@
733 GZIP:=@GZIP@
734 HEAD:=@HEAD@
735 LS:=@LS@
736 LN:=@LN@
737 MIG:=@MIG@
738 MKDIR:=@MKDIR@
739 MV:=@MV@
740 NICE:=@NICE@
741 PANDOC:=@PANDOC@
742 PATCH:=@PATCH@
743 PRINTF:=@PRINTF@
744 READLINK:=@READLINK@
745 RM:=@RM@
746 RMDIR:=@RMDIR@
747 SED:=@SED@
748 SH:=@SH@
749 SORT:=@SORT@
750 TAR:=@TAR@
751 TAIL:=@TAIL@
752 TEE:=@TEE@
753 TIME:=@TIME@
754 IS_GNU_TIME:=@IS_GNU_TIME@
755 TR:=@TR@
756 TOUCH:=@TOUCH@
757 WC:=@WC@
758 XARGS:=@XARGS@
759 ZIPEXE:=@ZIPEXE@
760 UNZIP:=@UNZIP@
761 MT:=@MT@
762 RC:=@RC@
763 DUMPBIN:=@DUMPBIN@
764 PATHTOOL:=@PATHTOOL@
765 WSLPATH:=@WSLPATH@
766 LDD:=@LDD@
767 OTOOL:=@OTOOL@
768 READELF:=@READELF@
769 EXPR:=@EXPR@
770 FILE:=@FILE@
771 DOT:=@DOT@
772 HG:=@HG@
773 GIT:=@GIT@
774 OBJCOPY:=@OBJCOPY@
775 SETFILE:=@SETFILE@
776 XATTR:=@XATTR@
777 JT_HOME:=@JT_HOME@
778 JIB_HOME:=@JIB_HOME@
779 XCODEBUILD=@XCODEBUILD@
780 DTRACE := @DTRACE@
781 FIXPATH := @FIXPATH@
782 FIXPATH_BASE := @FIXPATH_BASE@
783 ULIMIT:=@ULIMIT@
784 
785 TAR_TYPE:=@TAR_TYPE@
786 TAR_INCLUDE_PARAM:=@TAR_INCLUDE_PARAM@
787 TAR_SUPPORTS_TRANSFORM:=@TAR_SUPPORTS_TRANSFORM@
788 
789 # Build setup
790 USE_EXTERNAL_LIBJPEG:=@USE_EXTERNAL_LIBJPEG@
791 USE_EXTERNAL_LIBGIF:=@USE_EXTERNAL_LIBGIF@
792 USE_EXTERNAL_LIBZ:=@USE_EXTERNAL_LIBZ@
793 LIBZ_CFLAGS:=@LIBZ_CFLAGS@
794 LIBZ_LIBS:=@LIBZ_LIBS@
795 LIBZIP_CAN_USE_MMAP:=@LIBZIP_CAN_USE_MMAP@
796 MSVCR_DLL:=@MSVCR_DLL@
797 VCRUNTIME_1_DLL:=@VCRUNTIME_1_DLL@
798 MSVCP_DLL:=@MSVCP_DLL@
799 UCRT_DLL_DIR:=@UCRT_DLL_DIR@
800 ENABLE_PANDOC:=@ENABLE_PANDOC@
801 PANDOC_MARKDOWN_FLAG:=@PANDOC_MARKDOWN_FLAG@
802 
803 ####################################################
804 #
805 # INSTALLATION
806 #
807 
808 # Common prefix for all installed files. Defaults to /usr/local,
809 # but /opt/myjdk is another common version.
810 INSTALL_PREFIX=@prefix@
811 
812 # Directories containing architecture-dependent files should be relative to exec_prefix
813 INSTALL_EXECPREFIX=@exec_prefix@
814 
815 # java,javac,javap etc are installed here.
816 INSTALL_BINDIR=@bindir@
817 
818 # Read only architecture-independent data
819 INSTALL_DATADIR=@datadir@
820 
821 # Root of above.
822 INSTALL_DATAROOTDIR=@datarootdir@
823 
824 # Doc files, other than info and man.
825 INSTALL_DOCDIR=@docdir@
826 
827 # Html documentation
828 INSTALL_HTMLDIR=@htmldir@
829 
830 # Installing C header files, JNI headers for example.
831 INSTALL_INCLUDEDIR=@includedir@
832 
833 # Installing library files....
834 INSTALL_INCLUDEDIR=@libdir@
835 
836 # Executables that other programs run.
837 INSTALL_LIBEXECDIR=@libexecdir@
838 
839 # Locale-dependent but architecture-independent data, such as message catalogs.
840 INSTALL_LOCALEDIR=@localedir@
841 
842 # Modifiable single-machine data
843 INSTALL_LOCALSTATEDIR=@localstatedir@
844 
845 # Man pages
846 INSTALL_MANDIR=@mandir@
847 
848 # Modifiable architecture-independent data.
849 INSTALL_SHAREDSTATEDIR=@sharedstatedir@
850 
851 # Read-only single-machine data
852 INSTALL_SYSCONFDIR=@sysconfdir@
853 
854 ####################################################
855 #
856 # Libraries
857 #
858 
859 USE_EXTERNAL_LCMS:=@USE_EXTERNAL_LCMS@
860 LCMS_CFLAGS:=@LCMS_CFLAGS@
861 LCMS_LIBS:=@LCMS_LIBS@
862 
863 USE_EXTERNAL_HARFBUZZ:=@USE_EXTERNAL_HARFBUZZ@
864 HARFBUZZ_CFLAGS:=@HARFBUZZ_CFLAGS@
865 HARFBUZZ_LIBS:=@HARFBUZZ_LIBS@
866 
867 USE_EXTERNAL_LIBPNG:=@USE_EXTERNAL_LIBPNG@
868 PNG_LIBS:=@PNG_LIBS@
869 PNG_CFLAGS:=@PNG_CFLAGS@
870 
871 ####################################################
872 #
873 # Misc
874 #
875 
876 INCLUDE_SA=@INCLUDE_SA@
877 INCLUDE_JVMCI=@INCLUDE_JVMCI@
878 INCLUDE_COMPILER2=@INCLUDE_COMPILER2@
879 
880 OS_VERSION_MAJOR:=@OS_VERSION_MAJOR@
881 OS_VERSION_MINOR:=@OS_VERSION_MINOR@
882 OS_VERSION_MICRO:=@OS_VERSION_MICRO@
883 
884 # Images directory definitions
885 JDK_IMAGE_SUBDIR:=jdk
886 JRE_IMAGE_SUBDIR:=jre
887 JCOV_IMAGE_SUBDIR := jdk-jcov
888 
889 # Colon left out to be able to override output dir for bootcycle-images
890 JDK_IMAGE_DIR=$(IMAGES_OUTPUTDIR)/$(JDK_IMAGE_SUBDIR)
891 JRE_IMAGE_DIR=$(IMAGES_OUTPUTDIR)/$(JRE_IMAGE_SUBDIR)
892 JCOV_IMAGE_DIR = $(IMAGES_OUTPUTDIR)/$(JCOV_IMAGE_SUBDIR)
893 
894 # Test image, as above
895 TEST_IMAGE_SUBDIR:=test
896 TEST_IMAGE_DIR=$(IMAGES_OUTPUTDIR)/$(TEST_IMAGE_SUBDIR)
897 
898 # Symbols image
899 SYMBOLS_IMAGE_SUBDIR:=symbols
900 SYMBOLS_IMAGE_DIR=$(IMAGES_OUTPUTDIR)/$(SYMBOLS_IMAGE_SUBDIR)
901 
902 # Interim image
903 INTERIM_JMODS_DIR := $(SUPPORT_OUTPUTDIR)/interim-jmods
904 INTERIM_IMAGE_DIR := $(SUPPORT_OUTPUTDIR)/interim-image
905 
906 # Docs image
907 DOCS_JDK_IMAGE_SUBDIR := docs
908 DOCS_JDK_IMAGE_DIR = $(IMAGES_OUTPUTDIR)/$(DOCS_JDK_IMAGE_SUBDIR)
909 DOCS_JAVASE_IMAGE_SUBDIR := docs-javase
910 DOCS_JAVASE_IMAGE_DIR = $(IMAGES_OUTPUTDIR)/$(DOCS_JAVASE_IMAGE_SUBDIR)
911 DOCS_REFERENCE_IMAGE_SUBDIR := docs-reference
912 DOCS_REFERENCE_IMAGE_DIR = $(IMAGES_OUTPUTDIR)/$(DOCS_REFERENCE_IMAGE_SUBDIR)
913 # Output docs directly into image
914 DOCS_OUTPUTDIR := $(DOCS_JDK_IMAGE_DIR)
915 
916 # Static libs image
917 STATIC_LIBS_IMAGE_SUBDIR := static-libs
918 STATIC_LIBS_IMAGE_DIR := $(IMAGES_OUTPUTDIR)/$(STATIC_LIBS_IMAGE_SUBDIR)
919 
920 # Graal builder image
921 GRAAL_BUILDER_IMAGE_SUBDIR := graal-builder-jdk
922 GRAAL_BUILDER_IMAGE_DIR := $(IMAGES_OUTPUTDIR)/$(GRAAL_BUILDER_IMAGE_SUBDIR)
923 
924 # Macosx bundles directory definitions
925 JDK_MACOSX_BUNDLE_SUBDIR=jdk-bundle
926 JRE_MACOSX_BUNDLE_SUBDIR=jre-bundle
927 JDK_MACOSX_BUNDLE_SUBDIR_SIGNED=jdk-bundle-signed
928 JRE_MACOSX_BUNDLE_SUBDIR_SIGNED=jre-bundle-signed
929 JDK_MACOSX_BUNDLE_DIR=$(IMAGES_OUTPUTDIR)/$(JDK_MACOSX_BUNDLE_SUBDIR)
930 JRE_MACOSX_BUNDLE_DIR=$(IMAGES_OUTPUTDIR)/$(JRE_MACOSX_BUNDLE_SUBDIR)
931 JDK_MACOSX_BUNDLE_DIR_SIGNED=$(IMAGES_OUTPUTDIR)/$(JDK_MACOSX_BUNDLE_SUBDIR_SIGNED)
932 JRE_MACOSX_BUNDLE_DIR_SIGNED=$(IMAGES_OUTPUTDIR)/$(JRE_MACOSX_BUNDLE_SUBDIR_SIGNED)
933 JDK_MACOSX_BUNDLE_TOP_DIR=jdk-$(VERSION_NUMBER).jdk
934 JRE_MACOSX_BUNDLE_TOP_DIR=jre-$(VERSION_NUMBER).jre
935 JDK_MACOSX_CONTENTS_SUBDIR=$(JDK_MACOSX_BUNDLE_TOP_DIR)/Contents
936 JRE_MACOSX_CONTENTS_SUBDIR=$(JRE_MACOSX_BUNDLE_TOP_DIR)/Contents
937 JDK_MACOSX_CONTENTS_DIR=$(JDK_MACOSX_BUNDLE_DIR)/$(JDK_MACOSX_CONTENTS_SUBDIR)
938 JRE_MACOSX_CONTENTS_DIR=$(JRE_MACOSX_BUNDLE_DIR)/$(JRE_MACOSX_CONTENTS_SUBDIR)
939 
940 # Bundle names
941 ifneq ($(VERSION_BUILD), )
942   BASE_NAME := $(VERSION_SHORT)+$(VERSION_BUILD)_$(OPENJDK_TARGET_BUNDLE_PLATFORM)
943 else
944   BASE_NAME := $(VERSION_SHORT)_$(OPENJDK_TARGET_BUNDLE_PLATFORM)
945 endif
946 
947 ifeq ($(DEBUG_LEVEL), fastdebug)
948   DEBUG_PART := -debug
949 else ifneq ($(DEBUG_LEVEL), release)
950   DEBUG_PART := -$(DEBUG_LEVEL)
951 endif
952 ifeq ($(OPENJDK_TARGET_OS), windows)
953   JDK_BUNDLE_EXTENSION := zip
954 else
955   JDK_BUNDLE_EXTENSION := tar.gz
956 endif
957 JDK_BUNDLE_NAME := jdk-$(BASE_NAME)_bin$(DEBUG_PART).$(JDK_BUNDLE_EXTENSION)
958 JRE_BUNDLE_NAME := jre-$(BASE_NAME)_bin$(DEBUG_PART).$(JDK_BUNDLE_EXTENSION)
959 JDK_SYMBOLS_BUNDLE_NAME := jdk-$(BASE_NAME)_bin$(DEBUG_PART)-symbols.tar.gz
960 TEST_DEMOS_BUNDLE_NAME := jdk-$(BASE_NAME)_bin-tests-demos$(DEBUG_PART).tar.gz
961 TEST_BUNDLE_NAME := jdk-$(BASE_NAME)_bin-tests$(DEBUG_PART).tar.gz
962 DOCS_JDK_BUNDLE_NAME := jdk-$(BASE_NAME)_doc-api-spec$(DEBUG_PART).tar.gz
963 DOCS_JAVASE_BUNDLE_NAME := javase-$(BASE_NAME)_doc-api-spec$(DEBUG_PART).tar.gz
964 DOCS_REFERENCE_BUNDLE_NAME := jdk-reference-$(BASE_NAME)_doc-api-spec$(DEBUG_PART).tar.gz
965 STATIC_LIBS_BUNDLE_NAME := jdk-$(BASE_NAME)_bin-static-libs$(DEBUG_PART).tar.gz
966 JCOV_BUNDLE_NAME := jdk-jcov-$(BASE_NAME)_bin$(DEBUG_PART).$(JDK_BUNDLE_EXTENSION)
967 
968 JDK_BUNDLE := $(BUNDLES_OUTPUTDIR)/$(JDK_BUNDLE_NAME)
969 JRE_BUNDLE :=  $(BUNDLES_OUTPUTDIR)/$(JRE_BUNDLE_NAME)
970 JDK_SYMBOLS_BUNDLE :=  $(BUNDLES_OUTPUTDIR)/$(JDK_SYMBOLS_BUNDLE_NAME)
971 TEST_DEMOS_BUNDLE := $(BUNDLES_OUTPUTDIR)/$(TEST_DEMOS_BUNDLE_NAME)
972 TEST_BUNDLE :=  $(BUNDLES_OUTPUTDIR)/$(TEST_BUNDLE_NAME)
973 DOCS_JDK_BUNDLE :=  $(BUNDLES_OUTPUTDIR)/$(DOCS_JDK_BUNDLE_NAME)
974 DOCS_JAVASE_BUNDLE :=  $(BUNDLES_OUTPUTDIR)/$(DOCS_JAVASE_BUNDLE_NAME)
975 DOCS_REFERENCE_BUNDLE :=  $(BUNDLES_OUTPUTDIR)/$(DOCS_REFERENCE_BUNDLE_NAME)
976 JCOV_BUNDLE := $(BUNDLES_OUTPUTDIR)/$(JCOV_BUNDLE_NAME)
977 
978 # This macro is called to allow inclusion of closed source counterparts.
979 # Unless overridden in closed sources, it expands to nothing.
980 # Usage: This function is called in an open makefile, with the following
981 # argument:
982 # $1 the name of the makefile
983 define IncludeCustomExtension
984 endef
985 
986 # Include the custom-spec.gmk file if it exists
987 -include $(dir @SPEC@)/custom-spec.gmk