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