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