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 # When compiling Java source to be run by the boot jdk
375 # use these extra flags, eg -source 6 -target 6
376 BOOT_JDK_SOURCETARGET:=@BOOT_JDK_SOURCETARGET@
377 
378 # Information about the build system
379 NUM_CORES:=@NUM_CORES@
380 MEMORY_SIZE:=@MEMORY_SIZE@
381 ENABLE_JAVAC_SERVER:=@ENABLE_JAVAC_SERVER@
382 # Store javac server synchronization files here, and
383 # the javac server log files.
384 JAVAC_SERVER_DIR=$(MAKESUPPORT_OUTPUTDIR)/javacservers
385 
386 # Number of parallel jobs to use for compilation
387 JOBS?=@JOBS@
388 TEST_JOBS?=@TEST_JOBS@
389 
390 # Default make target
391 DEFAULT_MAKE_TARGET:=@DEFAULT_MAKE_TARGET@
392 DEFAULT_LOG:=@DEFAULT_LOG@
393 
394 FREETYPE_TO_USE:=@FREETYPE_TO_USE@
395 FREETYPE_LIBS:=@FREETYPE_LIBS@
396 FREETYPE_CFLAGS:=@FREETYPE_CFLAGS@
397 FONTCONFIG_CFLAGS:=@FONTCONFIG_CFLAGS@
398 CUPS_CFLAGS:=@CUPS_CFLAGS@
399 ALSA_LIBS:=@ALSA_LIBS@
400 ALSA_CFLAGS:=@ALSA_CFLAGS@
401 LIBFFI_LIBS:=@LIBFFI_LIBS@
402 LIBFFI_CFLAGS:=@LIBFFI_CFLAGS@
403 ENABLE_LIBFFI_BUNDLING:=@ENABLE_LIBFFI_BUNDLING@
404 LIBFFI_LIB_FILE:=@LIBFFI_LIB_FILE@
405 FILE_MACRO_CFLAGS := @FILE_MACRO_CFLAGS@
406 
407 STATIC_LIBS_CFLAGS := @STATIC_LIBS_CFLAGS@
408 
409 JMH_CORE_JAR := @JMH_CORE_JAR@
410 JMH_GENERATOR_JAR := @JMH_GENERATOR_JAR@
411 JMH_JOPT_SIMPLE_JAR := @JMH_JOPT_SIMPLE_JAR@
412 JMH_COMMONS_MATH_JAR := @JMH_COMMONS_MATH_JAR@
413 JMH_VERSION := @JMH_VERSION@
414 
415 GTEST_FRAMEWORK_SRC := @GTEST_FRAMEWORK_SRC@
416 
417 # Source file for cacerts
418 CACERTS_FILE=@CACERTS_FILE@
419 
420 # Enable unlimited crypto policy
421 UNLIMITED_CRYPTO=@UNLIMITED_CRYPTO@
422 
423 GCOV_ENABLED=@GCOV_ENABLED@
424 JCOV_ENABLED=@JCOV_ENABLED@
425 JCOV_HOME=@JCOV_HOME@
426 JCOV_INPUT_JDK=@JCOV_INPUT_JDK@
427 JCOV_FILTERS=@JCOV_FILTERS@
428 
429 # AddressSanitizer
430 export ASAN_ENABLED:=@ASAN_ENABLED@
431 export DEVKIT_LIB_DIR:=@DEVKIT_LIB_DIR@
432 ifeq ($(ASAN_ENABLED), yes)
433   export ASAN_OPTIONS=handle_segv=0 detect_leaks=0
434   ifneq ($(DEVKIT_LIB_DIR),)
435     export LD_LIBRARY_PATH:=$(LD_LIBRARY_PATH):$(DEVKIT_LIB_DIR)
436   endif
437 endif
438 
439 # Necessary additional compiler flags to compile X11
440 X_CFLAGS:=@X_CFLAGS@
441 X_LIBS:=@X_LIBS@
442 
443 # The lowest required version of macosx
444 MACOSX_VERSION_MIN=@MACOSX_VERSION_MIN@
445 # The highest allowed version of macosx
446 MACOSX_VERSION_MAX=@MACOSX_VERSION_MAX@
447 
448 # The macosx code signing identity to use
449 MACOSX_CODESIGN_IDENTITY=@MACOSX_CODESIGN_IDENTITY@
450 
451 # Toolchain type: gcc, clang, xlc, microsoft...
452 TOOLCHAIN_TYPE:=@TOOLCHAIN_TYPE@
453 TOOLCHAIN_VERSION := @TOOLCHAIN_VERSION@
454 CC_VERSION_NUMBER := @CC_VERSION_NUMBER@
455 CXX_VERSION_NUMBER := @CXX_VERSION_NUMBER@
456 
457 # Legacy support
458 HOTSPOT_TOOLCHAIN_TYPE := @HOTSPOT_TOOLCHAIN_TYPE@
459 
460 # Option used to tell the compiler whether to create 32- or 64-bit executables
461 COMPILER_TARGET_BITS_FLAG:=@COMPILER_TARGET_BITS_FLAG@
462 COMPILER_SUPPORTS_TARGET_BITS_FLAG=@COMPILER_SUPPORTS_TARGET_BITS_FLAG@
463 
464 # Option used to pass a command file to the compiler
465 COMPILER_COMMAND_FILE_FLAG:=@COMPILER_COMMAND_FILE_FLAG@
466 
467 # Option for specifying a file which saves the binder commands
468 # produced by the link step (for debugging, currently AIX only)
469 COMPILER_BINDCMD_FILE_FLAG:=@COMPILER_BINDCMD_FILE_FLAG@
470 
471 CC_OUT_OPTION:=@CC_OUT_OPTION@
472 LD_OUT_OPTION:=@LD_OUT_OPTION@
473 AR_OUT_OPTION:=@AR_OUT_OPTION@
474 
475 # Flags used for overriding the default opt setting for a C/C++ source file.
476 C_O_FLAG_HIGHEST_JVM:=@C_O_FLAG_HIGHEST_JVM@
477 C_O_FLAG_HIGHEST:=@C_O_FLAG_HIGHEST@
478 C_O_FLAG_HI:=@C_O_FLAG_HI@
479 C_O_FLAG_NORM:=@C_O_FLAG_NORM@
480 C_O_FLAG_NONE:=@C_O_FLAG_NONE@
481 C_O_FLAG_SIZE:=@C_O_FLAG_SIZE@
482 CXX_O_FLAG_HIGHEST_JVM:=@CXX_O_FLAG_HIGHEST_JVM@
483 CXX_O_FLAG_HIGHEST:=@CXX_O_FLAG_HIGHEST@
484 CXX_O_FLAG_HI:=@CXX_O_FLAG_HI@
485 CXX_O_FLAG_NORM:=@CXX_O_FLAG_NORM@
486 CXX_O_FLAG_NONE:=@CXX_O_FLAG_NONE@
487 CXX_O_FLAG_SIZE:=@CXX_O_FLAG_SIZE@
488 
489 GENDEPS_FLAGS := @GENDEPS_FLAGS@
490 
491 DISABLE_WARNING_PREFIX := @DISABLE_WARNING_PREFIX@
492 CFLAGS_WARNINGS_ARE_ERRORS:=@CFLAGS_WARNINGS_ARE_ERRORS@
493 DISABLED_WARNINGS := @DISABLED_WARNINGS@
494 DISABLED_WARNINGS_C := @DISABLED_WARNINGS_C@
495 DISABLED_WARNINGS_CXX := @DISABLED_WARNINGS_CXX@
496 
497 # A global flag (true or false) determining if native warnings are considered errors.
498 WARNINGS_AS_ERRORS := @WARNINGS_AS_ERRORS@
499 
500 CFLAGS_CCACHE:=@CFLAGS_CCACHE@
501 ADLC_LANGSTD_CXXFLAGS=@ADLC_LANGSTD_CXXFLAGS@
502 ADLC_LDFLAGS=@ADLC_LDFLAGS@
503 
504 # Tools that potentially need to be cross compilation aware.
505 CC := @CCACHE@ @ICECC@ @CC@
506 
507 # CFLAGS used to compile the jdk native libraries (C-code)
508 CFLAGS_JDKLIB:=@CFLAGS_JDKLIB@
509 CXXFLAGS_JDKLIB:=@CXXFLAGS_JDKLIB@
510 
511 # CFLAGS used to compile the jdk native launchers (C-code)
512 CFLAGS_JDKEXE:=@CFLAGS_JDKEXE@
513 CXXFLAGS_JDKEXE:=@CXXFLAGS_JDKEXE@
514 
515 FDLIBM_CFLAGS := @FDLIBM_CFLAGS@
516 JVM_CFLAGS := @JVM_CFLAGS@
517 JVM_LDFLAGS := @JVM_LDFLAGS@
518 JVM_ASFLAGS := @JVM_ASFLAGS@
519 JVM_LIBS := @JVM_LIBS@
520 
521 BASIC_ASFLAGS := @BASIC_ASFLAGS@
522 
523 # These flags might contain variables set by a custom extension that is included later.
524 EXTRA_CFLAGS = @EXTRA_CFLAGS@
525 EXTRA_CXXFLAGS = @EXTRA_CXXFLAGS@
526 EXTRA_LDFLAGS = @EXTRA_LDFLAGS@
527 EXTRA_ASFLAGS = @EXTRA_ASFLAGS@
528 
529 CXX := @CCACHE@ @ICECC@ @CXX@
530 
531 CPP := @CPP@
532 
533 # The linker can be gcc or ld on unix systems, or link.exe on windows systems.
534 LD := @LD@
535 
536 # Xcode SDK path
537 SDKROOT:=@SDKROOT@
538 
539 # LDFLAGS used to link the jdk native libraries (C-code)
540 LDFLAGS_JDKLIB:=@LDFLAGS_JDKLIB@
541 JDKLIB_LIBS:=@JDKLIB_LIBS@
542 
543 # LDFLAGS used to link the jdk native launchers (C-code)
544 LDFLAGS_JDKEXE:=@LDFLAGS_JDKEXE@
545 JDKEXE_LIBS:=@JDKEXE_LIBS@
546 
547 # LDFLAGS specific to C++ linking.
548 LDFLAGS_CXX_JDK:=@LDFLAGS_CXX_JDK@
549 
550 # Sometimes a different linker is needed for c++ libs
551 LDCXX := @LDCXX@
552 # The flags for linking libstdc++ linker.
553 LIBCXX:=@LIBCXX@
554 
555 # Compiler and linker flags used when building native tests
556 LDFLAGS_TESTEXE:=@LDFLAGS_TESTEXE@
557 
558 # BUILD_CC/BUILD_LD is a compiler/linker that generates code that is runnable on the
559 # build platform.
560 BUILD_CC := @BUILD_ICECC@ @BUILD_CC@
561 BUILD_CXX := @BUILD_ICECC@ @BUILD_CXX@
562 BUILD_LD := @BUILD_LD@
563 BUILD_LDCXX := @BUILD_LDCXX@
564 BUILD_AS := @BUILD_AS@
565 BUILD_AR := @BUILD_AR@
566 BUILD_NM := @BUILD_NM@
567 BUILD_OBJCOPY:=@BUILD_OBJCOPY@
568 BUILD_STRIP:=@BUILD_STRIP@
569 BUILD_SYSROOT_CFLAGS:=@BUILD_SYSROOT_CFLAGS@
570 BUILD_SYSROOT_LDFLAGS:=@BUILD_SYSROOT_LDFLAGS@
571 
572 AS := @AS@
573 
574 # AR is used to create a static library (is ar in unix, lib.exe in windows)
575 AR := @AR@
576 ARFLAGS:=@ARFLAGS@
577 
578 NM:=@NM@
579 GNM:=@GNM@
580 STRIP:=@STRIP@
581 OBJDUMP:=@OBJDUMP@
582 CXXFILT:=@CXXFILT@
583 
584 LIPO:=@LIPO@
585 INSTALL_NAME_TOOL:=@INSTALL_NAME_TOOL@
586 METAL := @METAL@
587 METALLIB := @METALLIB@
588 
589 # Options to linker to specify a mapfile.
590 # (Note absence of := assignment, because we do not want to evaluate the macro body here)
591 SET_SHARED_LIBRARY_MAPFILE=@SET_SHARED_LIBRARY_MAPFILE@
592 
593 #
594 # Options for generating debug symbols
595 COMPILE_WITH_DEBUG_SYMBOLS := @COMPILE_WITH_DEBUG_SYMBOLS@
596 COPY_DEBUG_SYMBOLS := @COPY_DEBUG_SYMBOLS@
597 ZIP_EXTERNAL_DEBUG_SYMBOLS := @ZIP_EXTERNAL_DEBUG_SYMBOLS@
598 
599 CFLAGS_DEBUG_SYMBOLS:=@CFLAGS_DEBUG_SYMBOLS@
600 ASFLAGS_DEBUG_SYMBOLS:=@ASFLAGS_DEBUG_SYMBOLS@
601 
602 #
603 # Compress (or not) jars
604 COMPRESS_JARS=@COMPRESS_JARS@
605 
606 # Options to linker to specify the library name.
607 # (Note absence of := assignment, because we do not want to evaluate the macro body here)
608 SET_SHARED_LIBRARY_NAME=@SET_SHARED_LIBRARY_NAME@
609 
610 SHARED_LIBRARY_FLAGS=@SHARED_LIBRARY_FLAGS@
611 
612 # Set origin using the linker, ie use the relative path to the dependent library to find the dependees.
613 # (Note absence of := assignment, because we do not want to evaluate the macro body here)
614 SET_SHARED_LIBRARY_ORIGIN=@SET_SHARED_LIBRARY_ORIGIN@
615 SET_EXECUTABLE_ORIGIN=@SET_EXECUTABLE_ORIGIN@
616 
617 # Different OS:es have different ways of naming shared libraries.
618 # The SHARED_LIBRARY macro takes "verify" as and argument and returns:
619 #    "libverify.so" or "libverify.dylib" or "verify.dll" depending on platform.
620 # (Note absence of := assignment, because we do not want to evaluate the macro body here)
621 SHARED_LIBRARY=@SHARED_LIBRARY@
622 STATIC_LIBRARY=@STATIC_LIBRARY@
623 LIBRARY_PREFIX:=@LIBRARY_PREFIX@
624 SHARED_LIBRARY_SUFFIX:=@SHARED_LIBRARY_SUFFIX@
625 STATIC_LIBRARY_SUFFIX:=@STATIC_LIBRARY_SUFFIX@
626 EXECUTABLE_SUFFIX:=@EXECUTABLE_SUFFIX@
627 OBJ_SUFFIX:=@OBJ_SUFFIX@
628 STATIC_BUILD:=@STATIC_BUILD@
629 
630 STRIPFLAGS:=@STRIPFLAGS@
631 
632 JAVA_FLAGS:=@JAVA_FLAGS@
633 JAVA_FLAGS_BIG:=@JAVA_FLAGS_BIG@
634 JAVA_FLAGS_SMALL:=@JAVA_FLAGS_SMALL@
635 BUILDJDK_JAVA_FLAGS_SMALL:=@BUILDJDK_JAVA_FLAGS_SMALL@
636 JAVA_TOOL_FLAGS_SMALL:=@JAVA_TOOL_FLAGS_SMALL@
637 
638 # The *_CMD variables are defined separately to be easily overridden in bootcycle-spec.gmk
639 # for bootcycle-images build. Make sure to keep them in sync. Do not use the *_CMD
640 # versions of the variables directly.
641 JAVA_CMD:=@JAVA@
642 JAVAC_CMD:=@JAVAC@
643 JAVADOC_CMD:=@JAVADOC@
644 JAR_CMD:=@JAR@
645 JLINK_CMD := @JLINK@
646 JMOD_CMD := @JMOD@
647 # These variables are meant to be used. They are defined with = instead of := to make
648 # it possible to override only the *_CMD variables.
649 JAVA = $(JAVA_CMD) $(JAVA_FLAGS_BIG) $(JAVA_FLAGS)
650 JAVA_SMALL = $(JAVA_CMD) $(JAVA_FLAGS_SMALL) $(JAVA_FLAGS)
651 JAVAC = $(JAVAC_CMD)
652 JAVADOC = $(JAVADOC_CMD)
653 JAR = $(JAR_CMD)
654 JLINK = $(JLINK_CMD)
655 JMOD = $(JMOD_CMD) $(JAVA_TOOL_FLAGS_SMALL)
656 
657 BUILD_JAVA_FLAGS := @BOOTCYCLE_JVM_ARGS_BIG@
658 BUILD_JAVA=@FIXPATH@ $(BUILD_JDK)/bin/java $(BUILD_JAVA_FLAGS)
659 BUILD_JAVAC=@FIXPATH@ $(BUILD_JDK)/bin/javac
660 BUILD_JAR=@FIXPATH@ $(BUILD_JDK)/bin/jar
661 
662 DOCS_REFERENCE_JAVADOC := @DOCS_REFERENCE_JAVADOC@
663 
664 # Interim langtools modules and arguments
665 INTERIM_LANGTOOLS_BASE_MODULES := java.compiler jdk.compiler jdk.javadoc
666 INTERIM_LANGTOOLS_MODULES := $(addsuffix .interim, $(INTERIM_LANGTOOLS_BASE_MODULES))
667 INTERIM_LANGTOOLS_ADD_EXPORTS := \
668     --add-exports java.base/sun.reflect.annotation=jdk.compiler.interim \
669     --add-exports java.base/jdk.internal.jmod=jdk.compiler.interim \
670     --add-exports java.base/jdk.internal.misc=jdk.compiler.interim \
671     --add-exports java.base/sun.invoke.util=jdk.compiler.interim \
672     --add-exports java.base/jdk.internal.javac=java.compiler.interim \
673     --add-exports java.base/jdk.internal.javac=jdk.compiler.interim \
674     #
675 INTERIM_LANGTOOLS_MODULES_COMMA := $(strip $(subst $(SPACE),$(COMMA),$(strip \
676     $(INTERIM_LANGTOOLS_MODULES))))
677 INTERIM_LANGTOOLS_ARGS := \
678     --limit-modules java.base,jdk.zipfs,$(INTERIM_LANGTOOLS_MODULES_COMMA) \
679     --add-modules $(INTERIM_LANGTOOLS_MODULES_COMMA) \
680     --module-path $(BUILDTOOLS_OUTPUTDIR)/interim_langtools_modules \
681     --patch-module java.base=$(BUILDTOOLS_OUTPUTDIR)/gensrc/java.base.interim \
682     $(INTERIM_LANGTOOLS_ADD_EXPORTS) \
683     #
684 JAVAC_MAIN_CLASS = -m jdk.compiler.interim/com.sun.tools.javac.Main
685 JAVADOC_MAIN_CLASS = -m jdk.javadoc.interim/jdk.javadoc.internal.tool.Main
686 
687 # You run the new javac using the boot jdk with $(BOOT_JDK)/bin/java $(NEW_JAVAC) ...
688 # Use = assignment to be able to override in bootcycle-spec.gmk
689 NEW_JAVAC   = $(INTERIM_LANGTOOLS_ARGS) $(JAVAC_MAIN_CLASS)
690 NEW_JAVADOC = $(INTERIM_LANGTOOLS_ARGS) $(JAVADOC_MAIN_CLASS)
691 
692 JLINK_KEEP_PACKAGED_MODULES:=@JLINK_KEEP_PACKAGED_MODULES@
693 
694 RCFLAGS := @RCFLAGS@
695 
696 # Tools adhering to a minimal and common standard of posix compliance.
697 AWK:=@AWK@
698 BASENAME:=@BASENAME@
699 CAT:=@CAT@
700 CCACHE:=@CCACHE@
701 # CD is going away, but remains to cater for legacy makefiles.
702 CD:=cd
703 CHMOD:=@CHMOD@
704 CODESIGN:=@CODESIGN@
705 CP:=@CP@
706 CUT:=@CUT@
707 DATE:=@DATE@
708 DIFF:=@DIFF@
709 DIRNAME:=@DIRNAME@
710 DSYMUTIL:=@DSYMUTIL@
711 FIND:=@FIND@
712 FIND_DELETE:=@FIND_DELETE@
713 FLOCK:=@FLOCK@
714 ECHO:=@ECHO@
715 EGREP:=@EGREP@
716 FGREP:=@FGREP@
717 GREP:=@GREP@
718 GZIP:=@GZIP@
719 HEAD:=@HEAD@
720 LS:=@LS@
721 LN:=@LN@
722 MIG:=@MIG@
723 MKDIR:=@MKDIR@
724 MV:=@MV@
725 NICE:=@NICE@
726 PANDOC:=@PANDOC@
727 PATCH:=@PATCH@
728 PRINTF:=@PRINTF@
729 READLINK:=@READLINK@
730 RM:=@RM@
731 RMDIR:=@RMDIR@
732 SED:=@SED@
733 SH:=@SH@
734 SORT:=@SORT@
735 TAR:=@TAR@
736 TAIL:=@TAIL@
737 TEE:=@TEE@
738 TIME:=@TIME@
739 IS_GNU_TIME:=@IS_GNU_TIME@
740 TR:=@TR@
741 TOUCH:=@TOUCH@
742 WC:=@WC@
743 XARGS:=@XARGS@
744 ZIPEXE:=@ZIPEXE@
745 UNZIP:=@UNZIP@
746 MT:=@MT@
747 RC:=@RC@
748 DUMPBIN:=@DUMPBIN@
749 PATHTOOL:=@PATHTOOL@
750 WSLPATH:=@WSLPATH@
751 LDD:=@LDD@
752 OTOOL:=@OTOOL@
753 READELF:=@READELF@
754 EXPR:=@EXPR@
755 FILE:=@FILE@
756 DOT:=@DOT@
757 HG:=@HG@
758 GIT:=@GIT@
759 OBJCOPY:=@OBJCOPY@
760 SETFILE:=@SETFILE@
761 XATTR:=@XATTR@
762 JT_HOME:=@JT_HOME@
763 JT_HOME_MW:=@JT_HOME_MW@
764 JIB_HOME:=@JIB_HOME@
765 XCODEBUILD=@XCODEBUILD@
766 DTRACE := @DTRACE@
767 FIXPATH := @FIXPATH@
768 FIXPATH_BASE := @FIXPATH_BASE@
769 ULIMIT:=@ULIMIT@
770 
771 TAR_TYPE:=@TAR_TYPE@
772 TAR_INCLUDE_PARAM:=@TAR_INCLUDE_PARAM@
773 TAR_SUPPORTS_TRANSFORM:=@TAR_SUPPORTS_TRANSFORM@
774 
775 # Build setup
776 USE_EXTERNAL_LIBJPEG:=@USE_EXTERNAL_LIBJPEG@
777 USE_EXTERNAL_LIBGIF:=@USE_EXTERNAL_LIBGIF@
778 USE_EXTERNAL_LIBZ:=@USE_EXTERNAL_LIBZ@
779 LIBZ_CFLAGS:=@LIBZ_CFLAGS@
780 LIBZ_LIBS:=@LIBZ_LIBS@
781 LIBZIP_CAN_USE_MMAP:=@LIBZIP_CAN_USE_MMAP@
782 MSVCR_DLL:=@MSVCR_DLL@
783 VCRUNTIME_1_DLL:=@VCRUNTIME_1_DLL@
784 MSVCP_DLL:=@MSVCP_DLL@
785 UCRT_DLL_DIR:=@UCRT_DLL_DIR@
786 ENABLE_PANDOC:=@ENABLE_PANDOC@
787 PANDOC_MARKDOWN_FLAG:=@PANDOC_MARKDOWN_FLAG@
788 
789 ####################################################
790 #
791 # INSTALLATION
792 #
793 
794 # Common prefix for all installed files. Defaults to /usr/local,
795 # but /opt/myjdk is another common version.
796 INSTALL_PREFIX=@prefix@
797 
798 # Directories containing architecture-dependent files should be relative to exec_prefix
799 INSTALL_EXECPREFIX=@exec_prefix@
800 
801 # java,javac,javap etc are installed here.
802 INSTALL_BINDIR=@bindir@
803 
804 # Read only architecture-independent data
805 INSTALL_DATADIR=@datadir@
806 
807 # Root of above.
808 INSTALL_DATAROOTDIR=@datarootdir@
809 
810 # Doc files, other than info and man.
811 INSTALL_DOCDIR=@docdir@
812 
813 # Html documentation
814 INSTALL_HTMLDIR=@htmldir@
815 
816 # Installing C header files, JNI headers for example.
817 INSTALL_INCLUDEDIR=@includedir@
818 
819 # Installing library files....
820 INSTALL_INCLUDEDIR=@libdir@
821 
822 # Executables that other programs run.
823 INSTALL_LIBEXECDIR=@libexecdir@
824 
825 # Locale-dependent but architecture-independent data, such as message catalogs.
826 INSTALL_LOCALEDIR=@localedir@
827 
828 # Modifiable single-machine data
829 INSTALL_LOCALSTATEDIR=@localstatedir@
830 
831 # Man pages
832 INSTALL_MANDIR=@mandir@
833 
834 # Modifiable architecture-independent data.
835 INSTALL_SHAREDSTATEDIR=@sharedstatedir@
836 
837 # Read-only single-machine data
838 INSTALL_SYSCONFDIR=@sysconfdir@
839 
840 ####################################################
841 #
842 # Libraries
843 #
844 
845 USE_EXTERNAL_LCMS:=@USE_EXTERNAL_LCMS@
846 LCMS_CFLAGS:=@LCMS_CFLAGS@
847 LCMS_LIBS:=@LCMS_LIBS@
848 
849 USE_EXTERNAL_HARFBUZZ:=@USE_EXTERNAL_HARFBUZZ@
850 HARFBUZZ_CFLAGS:=@HARFBUZZ_CFLAGS@
851 HARFBUZZ_LIBS:=@HARFBUZZ_LIBS@
852 
853 USE_EXTERNAL_LIBPNG:=@USE_EXTERNAL_LIBPNG@
854 PNG_LIBS:=@PNG_LIBS@
855 PNG_CFLAGS:=@PNG_CFLAGS@
856 
857 ####################################################
858 #
859 # Misc
860 #
861 
862 INCLUDE_SA=@INCLUDE_SA@
863 INCLUDE_JVMCI=@INCLUDE_JVMCI@
864 INCLUDE_COMPILER2=@INCLUDE_COMPILER2@
865 
866 OS_VERSION_MAJOR:=@OS_VERSION_MAJOR@
867 OS_VERSION_MINOR:=@OS_VERSION_MINOR@
868 OS_VERSION_MICRO:=@OS_VERSION_MICRO@
869 
870 # Images directory definitions
871 JDK_IMAGE_SUBDIR:=jdk
872 JRE_IMAGE_SUBDIR:=jre
873 JCOV_IMAGE_SUBDIR := jdk-jcov
874 
875 # Colon left out to be able to override output dir for bootcycle-images
876 JDK_IMAGE_DIR=$(IMAGES_OUTPUTDIR)/$(JDK_IMAGE_SUBDIR)
877 JRE_IMAGE_DIR=$(IMAGES_OUTPUTDIR)/$(JRE_IMAGE_SUBDIR)
878 JCOV_IMAGE_DIR = $(IMAGES_OUTPUTDIR)/$(JCOV_IMAGE_SUBDIR)
879 
880 # Test image, as above
881 TEST_IMAGE_SUBDIR:=test
882 TEST_IMAGE_DIR=$(IMAGES_OUTPUTDIR)/$(TEST_IMAGE_SUBDIR)
883 
884 # Symbols image
885 SYMBOLS_IMAGE_SUBDIR:=symbols
886 SYMBOLS_IMAGE_DIR=$(IMAGES_OUTPUTDIR)/$(SYMBOLS_IMAGE_SUBDIR)
887 
888 # Interim image
889 INTERIM_JMODS_DIR := $(SUPPORT_OUTPUTDIR)/interim-jmods
890 INTERIM_IMAGE_DIR := $(SUPPORT_OUTPUTDIR)/interim-image
891 
892 # Docs image
893 DOCS_JDK_IMAGE_SUBDIR := docs
894 DOCS_JDK_IMAGE_DIR = $(IMAGES_OUTPUTDIR)/$(DOCS_JDK_IMAGE_SUBDIR)
895 DOCS_JAVASE_IMAGE_SUBDIR := docs-javase
896 DOCS_JAVASE_IMAGE_DIR = $(IMAGES_OUTPUTDIR)/$(DOCS_JAVASE_IMAGE_SUBDIR)
897 DOCS_REFERENCE_IMAGE_SUBDIR := docs-reference
898 DOCS_REFERENCE_IMAGE_DIR = $(IMAGES_OUTPUTDIR)/$(DOCS_REFERENCE_IMAGE_SUBDIR)
899 # Output docs directly into image
900 DOCS_OUTPUTDIR := $(DOCS_JDK_IMAGE_DIR)
901 
902 # Static libs image
903 STATIC_LIBS_IMAGE_SUBDIR := static-libs
904 STATIC_LIBS_IMAGE_DIR := $(IMAGES_OUTPUTDIR)/$(STATIC_LIBS_IMAGE_SUBDIR)
905 
906 # Graal builder image
907 GRAAL_BUILDER_IMAGE_SUBDIR := graal-builder-jdk
908 GRAAL_BUILDER_IMAGE_DIR := $(IMAGES_OUTPUTDIR)/$(GRAAL_BUILDER_IMAGE_SUBDIR)
909 
910 # Macosx bundles directory definitions
911 JDK_MACOSX_BUNDLE_SUBDIR=jdk-bundle
912 JRE_MACOSX_BUNDLE_SUBDIR=jre-bundle
913 JDK_MACOSX_BUNDLE_SUBDIR_SIGNED=jdk-bundle-signed
914 JRE_MACOSX_BUNDLE_SUBDIR_SIGNED=jre-bundle-signed
915 JDK_MACOSX_BUNDLE_DIR=$(IMAGES_OUTPUTDIR)/$(JDK_MACOSX_BUNDLE_SUBDIR)
916 JRE_MACOSX_BUNDLE_DIR=$(IMAGES_OUTPUTDIR)/$(JRE_MACOSX_BUNDLE_SUBDIR)
917 JDK_MACOSX_BUNDLE_DIR_SIGNED=$(IMAGES_OUTPUTDIR)/$(JDK_MACOSX_BUNDLE_SUBDIR_SIGNED)
918 JRE_MACOSX_BUNDLE_DIR_SIGNED=$(IMAGES_OUTPUTDIR)/$(JRE_MACOSX_BUNDLE_SUBDIR_SIGNED)
919 JDK_MACOSX_BUNDLE_TOP_DIR=jdk-$(VERSION_NUMBER).jdk
920 JRE_MACOSX_BUNDLE_TOP_DIR=jre-$(VERSION_NUMBER).jre
921 JDK_MACOSX_CONTENTS_SUBDIR=$(JDK_MACOSX_BUNDLE_TOP_DIR)/Contents
922 JRE_MACOSX_CONTENTS_SUBDIR=$(JRE_MACOSX_BUNDLE_TOP_DIR)/Contents
923 JDK_MACOSX_CONTENTS_DIR=$(JDK_MACOSX_BUNDLE_DIR)/$(JDK_MACOSX_CONTENTS_SUBDIR)
924 JRE_MACOSX_CONTENTS_DIR=$(JRE_MACOSX_BUNDLE_DIR)/$(JRE_MACOSX_CONTENTS_SUBDIR)
925 
926 # Bundle names
927 BASE_NAME := $(VERSION_SHORT)+$(VERSION_BUILD)_$(OPENJDK_TARGET_BUNDLE_PLATFORM)
928 ifeq ($(DEBUG_LEVEL), fastdebug)
929   DEBUG_PART := -debug
930 else ifneq ($(DEBUG_LEVEL), release)
931   DEBUG_PART := -$(DEBUG_LEVEL)
932 endif
933 ifeq ($(OPENJDK_TARGET_OS), windows)
934   JDK_BUNDLE_EXTENSION := zip
935 else
936   JDK_BUNDLE_EXTENSION := tar.gz
937 endif
938 JDK_BUNDLE_NAME := jdk-$(BASE_NAME)_bin$(DEBUG_PART).$(JDK_BUNDLE_EXTENSION)
939 JRE_BUNDLE_NAME := jre-$(BASE_NAME)_bin$(DEBUG_PART).$(JDK_BUNDLE_EXTENSION)
940 JDK_SYMBOLS_BUNDLE_NAME := jdk-$(BASE_NAME)_bin$(DEBUG_PART)-symbols.tar.gz
941 TEST_DEMOS_BUNDLE_NAME := jdk-$(BASE_NAME)_bin-tests-demos$(DEBUG_PART).tar.gz
942 TEST_BUNDLE_NAME := jdk-$(BASE_NAME)_bin-tests$(DEBUG_PART).tar.gz
943 DOCS_JDK_BUNDLE_NAME := jdk-$(BASE_NAME)_doc-api-spec$(DEBUG_PART).tar.gz
944 DOCS_JAVASE_BUNDLE_NAME := javase-$(BASE_NAME)_doc-api-spec$(DEBUG_PART).tar.gz
945 DOCS_REFERENCE_BUNDLE_NAME := jdk-reference-$(BASE_NAME)_doc-api-spec$(DEBUG_PART).tar.gz
946 STATIC_LIBS_BUNDLE_NAME := jdk-$(BASE_NAME)_bin-static-libs$(DEBUG_PART).tar.gz
947 JCOV_BUNDLE_NAME := jdk-jcov-$(BASE_NAME)_bin$(DEBUG_PART).$(JDK_BUNDLE_EXTENSION)
948 
949 JDK_BUNDLE := $(BUNDLES_OUTPUTDIR)/$(JDK_BUNDLE_NAME)
950 JRE_BUNDLE :=  $(BUNDLES_OUTPUTDIR)/$(JRE_BUNDLE_NAME)
951 JDK_SYMBOLS_BUNDLE :=  $(BUNDLES_OUTPUTDIR)/$(JDK_SYMBOLS_BUNDLE_NAME)
952 TEST_DEMOS_BUNDLE := $(BUNDLES_OUTPUTDIR)/$(TEST_DEMOS_BUNDLE_NAME)
953 TEST_BUNDLE :=  $(BUNDLES_OUTPUTDIR)/$(TEST_BUNDLE_NAME)
954 DOCS_JDK_BUNDLE :=  $(BUNDLES_OUTPUTDIR)/$(DOCS_JDK_BUNDLE_NAME)
955 DOCS_JAVASE_BUNDLE :=  $(BUNDLES_OUTPUTDIR)/$(DOCS_JAVASE_BUNDLE_NAME)
956 DOCS_REFERENCE_BUNDLE :=  $(BUNDLES_OUTPUTDIR)/$(DOCS_REFERENCE_BUNDLE_NAME)
957 JCOV_BUNDLE := $(BUNDLES_OUTPUTDIR)/$(JCOV_BUNDLE_NAME)
958 
959 # This macro is called to allow inclusion of closed source counterparts.
960 # Unless overridden in closed sources, it expands to nothing.
961 # Usage: This function is called in an open makefile, with the following
962 # argument:
963 # $1 the name of the makefile
964 define IncludeCustomExtension
965 endef
966 
967 # Include the custom-spec.gmk file if it exists
968 -include $(dir @SPEC@)/custom-spec.gmk