1 #
   2 # Copyright (c) 2011, 2015, 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 
  36 # A self-referential reference to this file.
  37 SPEC:=@SPEC@
  38 
  39 # SPACE is defined in MakeBase.gmk, but it is also used in := rules here for some
  40 # toolchains, and is needed if MakeBase.gmk is not included before this file.
  41 X:=
  42 SPACE:=$(X) $(X)
  43 
  44 # What make to use for main processing, after bootstrapping top-level Makefile.
  45 MAKE := @MAKE@
  46 
  47 # The default make arguments
  48 MAKE_ARGS = $(MAKE_LOG_FLAGS) -r -R -I $(TOPDIR)/make/common SPEC=$(SPEC) \
  49     MAKE_LOG_FLAGS="$(MAKE_LOG_FLAGS)" LOG_LEVEL=$(LOG_LEVEL)
  50 
  51 OUTPUT_SYNC_SUPPORTED:=@OUTPUT_SYNC_SUPPORTED@
  52 OUTPUT_SYNC:=@OUTPUT_SYNC@
  53 
  54 # Override the shell with bash
  55 BASH:=@BASH@
  56 BASH_ARGS:=@BASH_ARGS@
  57 SHELL:=$(BASH) $(BASH_ARGS)
  58 
  59 # The "human readable" name of this configuration
  60 CONF_NAME:=@CONF_NAME@
  61 
  62 # The built jdk will run in this target system.
  63 OPENJDK_TARGET_OS:=@OPENJDK_TARGET_OS@
  64 OPENJDK_TARGET_OS_TYPE:=@OPENJDK_TARGET_OS_TYPE@
  65 OPENJDK_TARGET_OS_ENV:=@OPENJDK_TARGET_OS_ENV@
  66 
  67 OPENJDK_TARGET_CPU:=@OPENJDK_TARGET_CPU@
  68 OPENJDK_TARGET_CPU_ARCH:=@OPENJDK_TARGET_CPU_ARCH@
  69 OPENJDK_TARGET_CPU_BITS:=@OPENJDK_TARGET_CPU_BITS@
  70 OPENJDK_TARGET_CPU_ENDIAN:=@OPENJDK_TARGET_CPU_ENDIAN@
  71 
  72 COMPILE_TYPE:=@COMPILE_TYPE@
  73 
  74 # Legacy support
  75 OPENJDK_TARGET_CPU_ISADIR:=@OPENJDK_TARGET_CPU_ISADIR@
  76 OPENJDK_TARGET_CPU_LIBDIR:=@OPENJDK_TARGET_CPU_LIBDIR@
  77 OPENJDK_TARGET_CPU_LEGACY:=@OPENJDK_TARGET_CPU_LEGACY@
  78 OPENJDK_TARGET_CPU_LEGACY_LIB:=@OPENJDK_TARGET_CPU_LEGACY_LIB@
  79 OPENJDK_TARGET_CPU_OSARCH:=@OPENJDK_TARGET_CPU_OSARCH@
  80 OPENJDK_TARGET_CPU_JLI_CFLAGS:=@OPENJDK_TARGET_CPU_JLI_CFLAGS@
  81 OPENJDK_TARGET_OS_EXPORT_DIR:=@OPENJDK_TARGET_OS_EXPORT_DIR@
  82 
  83 # We are building on this build system.
  84 # When not cross-compiling, it is the same as the target.
  85 OPENJDK_BUILD_OS:=@OPENJDK_BUILD_OS@
  86 OPENJDK_BUILD_OS_TYPE:=@OPENJDK_BUILD_OS_TYPE@
  87 OPENJDK_BUILD_OS_ENV:=@OPENJDK_BUILD_OS_ENV@
  88 
  89 OPENJDK_BUILD_CPU:=@OPENJDK_BUILD_CPU@
  90 OPENJDK_BUILD_CPU_ARCH:=@OPENJDK_BUILD_CPU_ARCH@
  91 OPENJDK_BUILD_CPU_BITS:=@OPENJDK_BUILD_CPU_BITS@
  92 OPENJDK_BUILD_CPU_ENDIAN:=@OPENJDK_BUILD_CPU_ENDIAN@
  93 
  94 # Legacy OS values for use in release file.
  95 REQUIRED_OS_NAME:=@REQUIRED_OS_NAME@
  96 REQUIRED_OS_VERSION:=@REQUIRED_OS_VERSION@
  97 
  98 @SET_OPENJDK@
  99 LIBM:=@LIBM@
 100 LIBDL:=@LIBDL@
 101 
 102 # colon or semicolon
 103 PATH_SEP:=@PATH_SEP@
 104 
 105 # Save the original path before replacing it with the Visual Studio tools
 106 ORIGINAL_PATH:=@ORIGINAL_PATH@
 107 ifeq ($(OPENJDK_TARGET_OS), windows)
 108   # On Windows, the Visual Studio toolchain needs the PATH to be adjusted
 109   # to include Visual Studio tools (this needs to be in cygwin/msys style).
 110   export PATH:=@VS_PATH@
 111 endif
 112 
 113 SYSROOT_CFLAGS := @SYSROOT_CFLAGS@
 114 SYSROOT_LDFLAGS := @SYSROOT_LDFLAGS@
 115 
 116 # The top-level directory of the forest (SRC_ROOT is a traditional alias)
 117 TOPDIR:=@TOPDIR@
 118 # These two versions of TOPDIR are used in string comparisons
 119 ORIGINAL_TOPDIR:=@ORIGINAL_TOPDIR@
 120 CANONICAL_TOPDIR:=@CANONICAL_TOPDIR@
 121 SRC_ROOT:=@TOPDIR@
 122 
 123 OUTPUT_ROOT:=@OUTPUT_ROOT@
 124 JDK_TOPDIR:=@JDK_TOPDIR@
 125 LANGTOOLS_TOPDIR:=@LANGTOOLS_TOPDIR@
 126 CORBA_TOPDIR:=@CORBA_TOPDIR@
 127 JAXP_TOPDIR:=@JAXP_TOPDIR@
 128 JAXWS_TOPDIR:=@JAXWS_TOPDIR@
 129 HOTSPOT_TOPDIR:=@HOTSPOT_TOPDIR@
 130 NASHORN_TOPDIR:=@NASHORN_TOPDIR@
 131 COPYRIGHT_YEAR:=@COPYRIGHT_YEAR@
 132 
 133 # Information gathered from the version.numbers file.
 134 JDK_MAJOR_VERSION:=@JDK_MAJOR_VERSION@
 135 JDK_MINOR_VERSION:=@JDK_MINOR_VERSION@
 136 JDK_MICRO_VERSION:=@JDK_MICRO_VERSION@
 137 JDK_UPDATE_VERSION:=@JDK_UPDATE_VERSION@
 138 JDK_BUILD_NUMBER:=@JDK_BUILD_NUMBER@
 139 MILESTONE:=@MILESTONE@
 140 LAUNCHER_NAME:=@LAUNCHER_NAME@
 141 PRODUCT_NAME:=@PRODUCT_NAME@
 142 PRODUCT_SUFFIX:=@PRODUCT_SUFFIX@
 143 JDK_RC_PLATFORM_NAME:=@JDK_RC_PLATFORM_NAME@
 144 COMPANY_NAME:=@COMPANY_NAME@
 145 MACOSX_BUNDLE_NAME_BASE=@MACOSX_BUNDLE_NAME_BASE@
 146 MACOSX_BUNDLE_ID_BASE=@MACOSX_BUNDLE_ID_BASE@
 147 USER_RELEASE_SUFFIX=@USER_RELEASE_SUFFIX@
 148 
 149 # Different version strings generated from the above information.
 150 JDK_VERSION:=@JDK_VERSION@
 151 RUNTIME_NAME=$(PRODUCT_NAME) $(PRODUCT_SUFFIX)
 152 COOKED_BUILD_NUMBER:=@COOKED_BUILD_NUMBER@
 153 # These variables need to be generated here so that MILESTONE and
 154 # JDK_BUILD_NUMBER can be overridden on the make command line.
 155 ifeq ($(MILESTONE), fcs)
 156   RELEASE=$(JDK_VERSION)$(BUILD_VARIANT_RELEASE)
 157 else
 158   RELEASE=$(JDK_VERSION)-$(MILESTONE)$(BUILD_VARIANT_RELEASE)
 159 endif
 160 
 161 ifneq ($(USER_RELEASE_SUFFIX), )
 162   FULL_VERSION=$(RELEASE)-$(USER_RELEASE_SUFFIX)-$(JDK_BUILD_NUMBER)
 163 else
 164   FULL_VERSION=$(RELEASE)-$(JDK_BUILD_NUMBER)
 165 endif
 166 JRE_RELEASE_VERSION:=$(FULL_VERSION)
 167 JDK_VERSION_FOR_MANIFEST := $(JDK_MINOR_VERSION).$(JDK_MICRO_VERSION).$(if $(JDK_UPDATE_VERSION),$(JDK_UPDATE_VERSION),0).$(COOKED_BUILD_NUMBER)
 168 
 169 # How to compile the code: release, fastdebug or slowdebug
 170 DEBUG_LEVEL:=@DEBUG_LEVEL@
 171 
 172 # This is the JDK variant to build.
 173 # The JDK variant is a name for a specific set of modules to be compiled for the JDK.
 174 JDK_VARIANT:=@JDK_VARIANT@
 175 
 176 # Should we compile support for running with a graphical UI? (ie headful)
 177 # Should we compile support for running without? (ie headless)
 178 SUPPORT_HEADFUL:=@SUPPORT_HEADFUL@
 179 SUPPORT_HEADLESS:=@SUPPORT_HEADLESS@
 180 # Legacy defines controlled by the SUPPORT_HEADLESS and SUPPORT_HEADFUL options.
 181 @BUILD_HEADLESS@
 182 
 183 # These are the libjvms that we want to build.
 184 # The java launcher uses the default.
 185 # The others can be selected by specifying -client -server -minimal1 -kernel -zero or -zeroshark
 186 # on the java launcher command line.
 187 JVM_VARIANTS:=@JVM_VARIANTS@
 188 JVM_VARIANT_SERVER:=@JVM_VARIANT_SERVER@
 189 JVM_VARIANT_CLIENT:=@JVM_VARIANT_CLIENT@
 190 JVM_VARIANT_MINIMAL1:=@JVM_VARIANT_MINIMAL1@
 191 JVM_VARIANT_KERNEL:=@JVM_VARIANT_KERNEL@
 192 JVM_VARIANT_ZERO:=@JVM_VARIANT_ZERO@
 193 JVM_VARIANT_ZEROSHARK:=@JVM_VARIANT_ZEROSHARK@
 194 JVM_VARIANT_CORE:=@JVM_VARIANT_CORE@
 195 
 196 # Universal binaries on macosx
 197 MACOSX_UNIVERSAL=@MACOSX_UNIVERSAL@
 198 
 199 # Legacy setting: -debug or -fastdebug
 200 # Still used in version string...
 201 BUILD_VARIANT_RELEASE:=@BUILD_VARIANT_RELEASE@
 202 
 203 # JDK_OUTPUTDIR specifies where a working jvm is built.
 204 # You can run $(JDK_OUTPUTDIR)/bin/java
 205 # Though the layout of the contents of $(JDK_OUTPUTDIR) is not
 206 # yet the same as a default installation.
 207 #
 208 # When you run "make install" it will create the standardized
 209 # layout for the jdk and the jre inside the IMAGES_OUTPUTDIR subdir.
 210 # Then it will copy the contents of the jdk into the installation
 211 # directory.
 212 
 213 BUILD_OUTPUT:=@BUILD_OUTPUT@
 214 # Colon left out to be able to override IMAGES_OUTPUTDIR for bootcycle-images
 215 SUPPORT_OUTPUTDIR=$(BUILD_OUTPUT)/support
 216 BUILDTOOLS_OUTPUTDIR=$(BUILD_OUTPUT)/buildtools
 217 
 218 HOTSPOT_OUTPUTDIR=$(BUILD_OUTPUT)/hotspot
 219 JDK_OUTPUTDIR=$(BUILD_OUTPUT)/jdk
 220 IMAGES_OUTPUTDIR=$(BUILD_OUTPUT)/images
 221 TESTMAKE_OUTPUTDIR=$(BUILD_OUTPUT)/test-make
 222 MAKESUPPORT_OUTPUTDIR=$(BUILD_OUTPUT)/make-support
 223 # This does not get overridden in a bootcycle build
 224 CONFIGURESUPPORT_OUTPUTDIR:=@CONFIGURESUPPORT_OUTPUTDIR@
 225 
 226 HOTSPOT_DIST=@HOTSPOT_DIST@
 227 
 228 BUILD_HOTSPOT=@BUILD_HOTSPOT@
 229 
 230 # The boot jdk to use. This is overridden in bootcycle-spec.gmk. Make sure to keep
 231 # it in sync.
 232 BOOT_JDK:=@BOOT_JDK@
 233 
 234 # When compiling Java source to be run by the boot jdk
 235 # use these extra flags, eg -source 6 -target 6
 236 BOOT_JDK_SOURCETARGET:=@BOOT_JDK_SOURCETARGET@
 237 
 238 # Information about the build system
 239 NUM_CORES:=@NUM_CORES@
 240 MEMORY_SIZE:=@MEMORY_SIZE@
 241 # Enable sjavac support = use a javac server,
 242 # multi core javac compilation and dependency tracking.
 243 ENABLE_SJAVAC:=@ENABLE_SJAVAC@
 244 ENABLE_JAVAC_SERVER:=@ENABLE_JAVAC_SERVER@
 245 # Store sjavac server synchronization files here, and
 246 # the sjavac server log files.
 247 SJAVAC_SERVER_DIR=$(MAKESUPPORT_OUTPUTDIR)/javacservers
 248 
 249 # Number of parallel jobs to use for compilation
 250 JOBS?=@JOBS@
 251 
 252 FREETYPE_LIBS:=@FREETYPE_LIBS@
 253 FREETYPE_CFLAGS:=@FREETYPE_CFLAGS@
 254 FREETYPE_BUNDLE_LIB_PATH=@FREETYPE_BUNDLE_LIB_PATH@
 255 CUPS_CFLAGS:=@CUPS_CFLAGS@
 256 ALSA_LIBS:=@ALSA_LIBS@
 257 ALSA_CFLAGS:=@ALSA_CFLAGS@
 258 
 259 PACKAGE_PATH=@PACKAGE_PATH@
 260 
 261 # Source file for cacerts
 262 CACERTS_FILE=@CACERTS_FILE@
 263 
 264 # Enable unlimited crypto policy
 265 UNLIMITED_CRYPTO=@UNLIMITED_CRYPTO@
 266 
 267 GCOV_ENABLED=@GCOV_ENABLED@
 268 
 269 # Necessary additional compiler flags to compile X11
 270 X_CFLAGS:=@X_CFLAGS@
 271 X_LIBS:=@X_LIBS@
 272 
 273 # The lowest required version of macosx to enforce compatiblity for
 274 MACOSX_VERSION_MIN=@MACOSX_VERSION_MIN@
 275 
 276 # Toolchain type: gcc, clang, solstudio, lxc, microsoft...
 277 TOOLCHAIN_TYPE:=@TOOLCHAIN_TYPE@
 278 
 279 # Option used to tell the compiler whether to create 32- or 64-bit executables
 280 COMPILER_TARGET_BITS_FLAG:=@COMPILER_TARGET_BITS_FLAG@
 281 COMPILER_SUPPORTS_TARGET_BITS_FLAG=@COMPILER_SUPPORTS_TARGET_BITS_FLAG@
 282 
 283 CC_OUT_OPTION:=@CC_OUT_OPTION@
 284 EXE_OUT_OPTION:=@EXE_OUT_OPTION@
 285 LD_OUT_OPTION:=@LD_OUT_OPTION@
 286 AR_OUT_OPTION:=@AR_OUT_OPTION@
 287 
 288 # Flags used for overriding the default opt setting for a C/C++ source file.
 289 C_O_FLAG_HIGHEST:=@C_O_FLAG_HIGHEST@
 290 C_O_FLAG_HI:=@C_O_FLAG_HI@
 291 C_O_FLAG_NORM:=@C_O_FLAG_NORM@
 292 C_O_FLAG_NONE:=@C_O_FLAG_NONE@
 293 CXX_O_FLAG_HIGHEST:=@CXX_O_FLAG_HIGHEST@
 294 CXX_O_FLAG_HI:=@CXX_O_FLAG_HI@
 295 CXX_O_FLAG_NORM:=@CXX_O_FLAG_NORM@
 296 CXX_O_FLAG_NONE:=@CXX_O_FLAG_NONE@
 297 
 298 C_FLAG_DEPS:=@C_FLAG_DEPS@
 299 CXX_FLAG_DEPS:=@CXX_FLAG_DEPS@
 300 
 301 DISABLE_WARNING_PREFIX := @DISABLE_WARNING_PREFIX@
 302 CFLAGS_WARNINGS_ARE_ERRORS:=@CFLAGS_WARNINGS_ARE_ERRORS@
 303 
 304 # A global flag (true or false) determining if native warnings are considered errors.
 305 WARNINGS_AS_ERRORS := @WARNINGS_AS_ERRORS@
 306 
 307 CFLAGS_CCACHE:=@CFLAGS_CCACHE@
 308 
 309 # Tools that potentially need to be cross compilation aware.
 310 CC:=@FIXPATH@ @CCACHE@ @ICECC@ @CC@
 311 
 312 # CFLAGS used to compile the jdk native libraries (C-code)
 313 CFLAGS_JDKLIB:=@CFLAGS_JDKLIB@
 314 CXXFLAGS_JDKLIB:=@CXXFLAGS_JDKLIB@
 315 
 316 # CFLAGS used to compile the jdk native launchers (C-code)
 317 CFLAGS_JDKEXE:=@CFLAGS_JDKEXE@
 318 CXXFLAGS_JDKEXE:=@CXXFLAGS_JDKEXE@
 319 
 320 CXX:=@FIXPATH@ @CCACHE@ @ICECC@ @CXX@
 321 #CXXFLAGS:=@CXXFLAGS@
 322 
 323 CPP:=@FIXPATH@ @CPP@
 324 #CPPFLAGS:=@CPPFLAGS@
 325 
 326 # The linker can be gcc or ld on unix systems, or link.exe on windows systems.
 327 LD:=@FIXPATH@ @LD@
 328 
 329 # Xcode SDK path
 330 SDKROOT:=@SDKROOT@
 331 
 332 # The linker on older SuSE distros (e.g. on SLES 10) complains with:
 333 # "Invalid version tag `SUNWprivate_1.1'. Only anonymous version tag is allowed in executable."
 334 # if feeded with a version script which contains named tags.
 335 USING_BROKEN_SUSE_LD:=@USING_BROKEN_SUSE_LD@
 336 
 337 # LDFLAGS used to link the jdk native libraries (C-code)
 338 LDFLAGS_JDKLIB:=@LDFLAGS_JDKLIB@
 339 JDKLIB_LIBS:=@JDKLIB_LIBS@
 340 
 341 # LDFLAGS used to link the jdk native launchers (C-code)
 342 LDFLAGS_JDKEXE:=@LDFLAGS_JDKEXE@
 343 JDKEXE_LIBS:=@JDKEXE_LIBS@
 344 
 345 # LDFLAGS specific to C++ linking.
 346 LDFLAGS_CXX_JDK:=@LDFLAGS_CXX_JDK@
 347 
 348 # Sometimes a different linker is needed for c++ libs
 349 LDCXX:=@FIXPATH@ @LDCXX@
 350 # The flags for linking libstdc++ linker.
 351 LIBCXX:=@LIBCXX@
 352 
 353 # Compiler and linker flags used when building native tests
 354 CFLAGS_TESTLIB:=@CFLAGS_TESTLIB@
 355 CXXFLAGS_TESTLIB:=@CXXFLAGS_TESTLIB@
 356 CFLAGS_TESTEXE:=@CFLAGS_TESTEXE@
 357 CXXFLAGS_TESTEXE:=@CXXFLAGS_TESTEXE@
 358 LDFLAGS_TESTLIB:=@LDFLAGS_TESTLIB@
 359 LDFLAGS_TESTEXE:=@LDFLAGS_TESTEXE@
 360 
 361 # BUILD_CC/BUILD_LD is a compiler/linker that generates code that is runnable on the
 362 # build platform.
 363 BUILD_CC:=@FIXPATH@ @BUILD_ICECC@ @BUILD_CC@
 364 BUILD_CXX:=@FIXPATH@ @BUILD_ICECC@ @BUILD_CXX@
 365 BUILD_LD:=@FIXPATH@ @BUILD_LD@
 366 BUILD_AS:=@FIXPATH@ @BUILD_AS@
 367 BUILD_AR:=@FIXPATH@ @BUILD_AR@
 368 BUILD_NM:=@FIXPATH@ @BUILD_NM@
 369 BUILD_SYSROOT_CFLAGS:=@BUILD_SYSROOT_CFLAGS@
 370 BUILD_SYSROOT_LDFLAGS:=@BUILD_SYSROOT_LDFLAGS@
 371 
 372 AS:=@FIXPATH@ @AS@
 373 
 374 # AR is used to create a static library (is ar in unix, lib.exe in windows)
 375 AR:=@FIXPATH@ @AR@
 376 ARFLAGS:=@ARFLAGS@
 377 
 378 NM:=@NM@
 379 GNM:=@GNM@
 380 STRIP:=@STRIP@
 381 
 382 LIPO:=@LIPO@
 383 
 384 # Options to linker to specify a mapfile.
 385 # (Note absence of := assignment, because we do not want to evaluate the macro body here)
 386 SET_SHARED_LIBRARY_MAPFILE=@SET_SHARED_LIBRARY_MAPFILE@
 387 
 388 # Options for C/CXX compiler to be used if linking is performed
 389 #   using reorder file
 390 C_FLAG_REORDER:=@C_FLAG_REORDER@
 391 CXX_FLAG_REORDER:=@CXX_FLAG_REORDER@
 392 
 393 #
 394 # Options for generating debug symbols
 395 ENABLE_DEBUG_SYMBOLS:=@ENABLE_DEBUG_SYMBOLS@
 396 CFLAGS_DEBUG_SYMBOLS:=@CFLAGS_DEBUG_SYMBOLS@
 397 CXXFLAGS_DEBUG_SYMBOLS:=@CXXFLAGS_DEBUG_SYMBOLS@
 398 ZIP_DEBUGINFO_FILES:=@ZIP_DEBUGINFO_FILES@
 399 
 400 #
 401 # Compress (or not) jars
 402 COMPRESS_JARS=@COMPRESS_JARS@
 403 
 404 # Options to linker to specify the library name.
 405 # (Note absence of := assignment, because we do not want to evaluate the macro body here)
 406 SET_SHARED_LIBRARY_NAME=@SET_SHARED_LIBRARY_NAME@
 407 
 408 # Set origin using the linker, ie use the relative path to the dependent library to find the dependees.
 409 # (Note absence of := assignment, because we do not want to evaluate the macro body here)
 410 SET_SHARED_LIBRARY_ORIGIN=@SET_SHARED_LIBRARY_ORIGIN@
 411 SET_EXECUTABLE_ORIGIN=@SET_EXECUTABLE_ORIGIN@
 412 
 413 # Different OS:es have different ways of naming shared libraries.
 414 # The SHARED_LIBRARY macro takes "verify" as and argument and returns:
 415 #    "libverify.so" or "libverify.dylib" or "verify.dll" depending on platform.
 416 # (Note absence of := assignment, because we do not want to evaluate the macro body here)
 417 SHARED_LIBRARY=@SHARED_LIBRARY@
 418 STATIC_LIBRARY=@STATIC_LIBRARY@
 419 LIBRARY_PREFIX:=@LIBRARY_PREFIX@
 420 SHARED_LIBRARY_SUFFIX:=@SHARED_LIBRARY_SUFFIX@
 421 STATIC_LIBRARY_SUFFIX:=@STATIC_LIBRARY_SUFFIX@
 422 EXE_SUFFIX:=@EXE_SUFFIX@
 423 OBJ_SUFFIX:=@OBJ_SUFFIX@
 424 STATIC_BUILD:=@STATIC_BUILD@
 425 
 426 STRIPFLAGS:=@STRIPFLAGS@
 427 
 428 JAVA_FLAGS:=@JAVA_FLAGS@
 429 JAVA_FLAGS_BIG:=@JAVA_FLAGS_BIG@
 430 JAVA_FLAGS_SMALL:=@JAVA_FLAGS_SMALL@
 431 JAVA_FLAGS_JAVAC:=@JAVA_FLAGS_JAVAC@
 432 JAVA_TOOL_FLAGS_SMALL:=@JAVA_TOOL_FLAGS_SMALL@
 433 SJAVAC_SERVER_JAVA_FLAGS:=@SJAVAC_SERVER_JAVA_FLAGS@
 434 
 435 # The *_CMD variables are defined separately to be easily overridden in bootcycle-spec.gmk
 436 # for bootcycle-images build. Make sure to keep them in sync. Do not use the *_CMD
 437 # versions of the variables directly.
 438 JAVA_CMD:=@JAVA@
 439 JAVAC_CMD:=@JAVAC@
 440 JAVAH_CMD:=@JAVAH@
 441 JAR_CMD:=@JAR@
 442 JARSIGNER_CMD:=@JARSIGNER@
 443 SJAVAC_SERVER_JAVA_CMD:=@SJAVAC_SERVER_JAVA@
 444 # These variables are meant to be used. They are defined with = instead of := to make
 445 # it possible to override only the *_CMD variables.
 446 JAVA=@FIXPATH@ $(JAVA_CMD) $(JAVA_FLAGS_BIG) $(JAVA_FLAGS)
 447 JAVA_SMALL=@FIXPATH@ $(JAVA_CMD) $(JAVA_FLAGS_SMALL) $(JAVA_FLAGS)
 448 JAVA_JAVAC=@FIXPATH@ $(JAVA_CMD) $(JAVA_FLAGS_JAVAC) $(JAVA_FLAGS)
 449 JAVAC=@FIXPATH@ $(JAVAC_CMD)
 450 JAVAH=@FIXPATH@ $(JAVAH_CMD)
 451 JAR=@FIXPATH@ $(JAR_CMD)
 452 JARSIGNER=@FIXPATH@ $(JARSIGNER_CMD)
 453 # A specific java binary with specific options can be used to run
 454 # the long running background sjavac servers and other long running tasks.
 455 SJAVAC_SERVER_JAVA=@FIXPATH@ @FIXPATH_DETACH_FLAG@ $(SJAVAC_SERVER_JAVA_CMD) \
 456     $(SJAVAC_SERVER_JAVA_FLAGS)
 457 
 458 # Hotspot sets this variable before reading the SPEC when compiling sa-jdi.jar. Avoid
 459 # overriding that value by using ?=.
 460 JAVAC_FLAGS?=@JAVAC_FLAGS@
 461 
 462 # You run the new javac using the boot jdk with $(BOOT_JDK)/bin/java $(NEW_JAVAC) ...
 463 # Use = assignment to be able to override in bootcycle-spec.gmk
 464 INTERIM_LANGTOOLS_JAR = $(BUILDTOOLS_OUTPUTDIR)/interim_langtools.jar
 465 INTERIM_LANGTOOLS_ARGS = "-Xbootclasspath/p:$(INTERIM_LANGTOOLS_JAR)" -cp $(INTERIM_LANGTOOLS_JAR)
 466 NEW_JAVAC   = $(INTERIM_LANGTOOLS_ARGS) com.sun.tools.javac.Main
 467 NEW_JAVADOC = $(INTERIM_LANGTOOLS_ARGS) com.sun.tools.javadoc.Main
 468 
 469 # Base flags for RC
 470 # Guarding this against resetting value. Legacy make files include spec multiple
 471 # times.
 472 ifndef RC_FLAGS
 473   RC_FLAGS:=@RC_FLAGS@
 474 endif
 475 
 476 # Tools adhering to a minimal and common standard of posix compliance.
 477 AWK:=@AWK@
 478 BASENAME:=@BASENAME@
 479 CAT:=@CAT@
 480 CCACHE:=@CCACHE@
 481 # CD is going away, but remains to cater for legacy makefiles.
 482 CD:=cd
 483 CHMOD:=@CHMOD@
 484 CODESIGN:=@CODESIGN@
 485 COMM:=@COMM@
 486 CP:=@CP@
 487 CPIO:=@CPIO@
 488 CUT:=@CUT@
 489 DATE:=@DATE@
 490 DIFF:=@DIFF@
 491 DIRNAME:=@DIRNAME@
 492 DSYMUTIL:=@DSYMUTIL@
 493 FIND:=@FIND@
 494 FIND_DELETE:=@FIND_DELETE@
 495 ECHO:=@ECHO@
 496 EGREP:=@EGREP@
 497 FGREP:=@FGREP@
 498 GREP:=@GREP@
 499 HEAD:=@HEAD@
 500 LS:=@LS@
 501 LN:=@LN@
 502 MKDIR:=@MKDIR@
 503 MV:=@MV@
 504 NAWK:=@NAWK@
 505 NICE:=@NICE@
 506 PATCH:=@PATCH@
 507 PRINTF:=@PRINTF@
 508 PWD:=@THEPWDCMD@
 509 RM:=@RM@
 510 RMDIR:=@RMDIR@
 511 SED:=@SED@
 512 SH:=@SH@
 513 SORT:=@SORT@
 514 TAR:=@TAR@
 515 TAIL:=@TAIL@
 516 TEE:=@TEE@
 517 TIME:=@TIME@
 518 IS_GNU_TIME:=@IS_GNU_TIME@
 519 TR:=@TR@
 520 TOUCH:=@TOUCH@
 521 UNIQ:=@UNIQ@
 522 WC:=@WC@
 523 XARGS:=@XARGS@
 524 ZIPEXE:=@ZIP@
 525 ZIP:=@ZIP@
 526 UNZIP:=@UNZIP@
 527 MT:=@FIXPATH@ @MT@
 528 RC:=@FIXPATH@ @RC@
 529 DUMPBIN:=@FIXPATH@ @DUMPBIN@
 530 CYGPATH:=@CYGPATH@
 531 LDD:=@LDD@
 532 OTOOL:=@OTOOL@
 533 READELF:=@READELF@
 534 EXPR:=@EXPR@
 535 FILE:=@FILE@
 536 HG:=@HG@
 537 OBJCOPY:=@OBJCOPY@
 538 SETFILE:=@SETFILE@
 539 XATTR:=@XATTR@
 540 JT_HOME:=@JT_HOME@
 541 JTREGEXE:=@JTREGEXE@
 542 XCODEBUILD=@XCODEBUILD@
 543 FIXPATH:=@FIXPATH@
 544 
 545 # Build setup
 546 ENABLE_JFR=@ENABLE_JFR@
 547 ENABLE_INTREE_EC=@ENABLE_INTREE_EC@
 548 USE_EXTERNAL_LIBJPEG:=@USE_EXTERNAL_LIBJPEG@
 549 USE_EXTERNAL_LIBGIF:=@USE_EXTERNAL_LIBGIF@
 550 USE_EXTERNAL_LIBZ:=@USE_EXTERNAL_LIBZ@
 551 LIBZIP_CAN_USE_MMAP:=@LIBZIP_CAN_USE_MMAP@
 552 MSVCR_DLL:=@MSVCR_DLL@
 553 MSVCP_DLL:=@MSVCP_DLL@
 554 
 555 ####################################################
 556 #
 557 # INSTALLATION
 558 #
 559 
 560 # Common prefix for all installed files. Defaults to /usr/local,
 561 # but /opt/myjdk is another common version.
 562 INSTALL_PREFIX=@prefix@
 563 
 564 # Directories containing architecture-dependent files should be relative to exec_prefix
 565 INSTALL_EXECPREFIX=@exec_prefix@
 566 
 567 # java,javac,javah,javap etc are installed here.
 568 INSTALL_BINDIR=@bindir@
 569 
 570 # Read only architecture-independent data
 571 INSTALL_DATADIR=@datadir@
 572 
 573 # Root of above.
 574 INSTALL_DATAROOTDIR=@datarootdir@
 575 
 576 # Doc files, other than info and man.
 577 INSTALL_DOCDIR=@docdir@
 578 
 579 # Html documentation
 580 INSTALL_HTMLDIR=@htmldir@
 581 
 582 # Installing C header files, JNI headers for example.
 583 INSTALL_INCLUDEDIR=@includedir@
 584 
 585 # Installing library files....
 586 INSTALL_INCLUDEDIR=@libdir@
 587 
 588 # Executables that other programs run.
 589 INSTALL_LIBEXECDIR=@libexecdir@
 590 
 591 # Locale-dependent but architecture-independent data, such as message catalogs.
 592 INSTALL_LOCALEDIR=@localedir@
 593 
 594 # Modifiable single-machine data
 595 INSTALL_LOCALSTATEDIR=@localstatedir@
 596 
 597 # Man pages
 598 INSTALL_MANDIR=@mandir@
 599 
 600 # Modifiable architecture-independent data.
 601 INSTALL_SHAREDSTATEDIR=@sharedstatedir@
 602 
 603 # Read-only single-machine data
 604 INSTALL_SYSCONFDIR=@sysconfdir@
 605 
 606 ####################################################
 607 #
 608 # Libraries
 609 #
 610 
 611 USE_EXTERNAL_LCMS:=@USE_EXTERNAL_LCMS@
 612 LCMS_CFLAGS:=@LCMS_CFLAGS@
 613 LCMS_LIBS:=@LCMS_LIBS@
 614 
 615 USE_EXTERNAL_LIBPNG:=@USE_EXTERNAL_LIBPNG@
 616 PNG_LIBS:=@PNG_LIBS@
 617 PNG_CFLAGS:=@PNG_CFLAGS@
 618 
 619 
 620 ####################################################
 621 #
 622 # Misc
 623 #
 624 
 625 # Name of Service Agent library
 626 SALIB_NAME=@SALIB_NAME@
 627 
 628 INCLUDE_SA=@INCLUDE_SA@
 629 
 630 OS_VERSION_MAJOR:=@OS_VERSION_MAJOR@
 631 OS_VERSION_MINOR:=@OS_VERSION_MINOR@
 632 OS_VERSION_MICRO:=@OS_VERSION_MICRO@
 633 
 634 # Images directory definitions
 635 JDK_IMAGE_SUBDIR:=jdk
 636 JRE_IMAGE_SUBDIR:=jre
 637 
 638 # Colon left out to be able to override output dir for bootcycle-images
 639 JDK_IMAGE_DIR=$(IMAGES_OUTPUTDIR)/$(JDK_IMAGE_SUBDIR)
 640 JRE_IMAGE_DIR=$(IMAGES_OUTPUTDIR)/$(JRE_IMAGE_SUBDIR)
 641 
 642 # Test image, as above
 643 TEST_IMAGE_SUBDIR:=test
 644 TEST_IMAGE_DIR=$(IMAGES_OUTPUTDIR)/$(TEST_IMAGE_SUBDIR)
 645 
 646 # Symbols image
 647 SYMBOLS_IMAGE_SUBDIR:=symbols
 648 SYMBOLS_IMAGE_DIR=$(IMAGES_OUTPUTDIR)/$(SYMBOLS_IMAGE_SUBDIR)
 649 
 650 # Macosx bundles directory definitions
 651 JDK_MACOSX_BUNDLE_SUBDIR=jdk-bundle/jdk$(JDK_VERSION).jdk/Contents
 652 JRE_MACOSX_BUNDLE_SUBDIR=jre-bundle/jre$(JDK_VERSION).jre/Contents
 653 JDK_MACOSX_BUNDLE_DIR=$(IMAGES_OUTPUTDIR)/$(JDK_MACOSX_BUNDLE_SUBDIR)
 654 JRE_MACOSX_BUNDLE_DIR=$(IMAGES_OUTPUTDIR)/$(JRE_MACOSX_BUNDLE_SUBDIR)
 655 
 656 # This macro is called to allow inclusion of closed source counterparts.
 657 # Unless overridden in closed sources, it expands to nothing.
 658 # Usage: This function is called in an open makefile, with the following
 659 # arguments:
 660 # $1 the name of the repo, or empty if the top-level repo.
 661 # $2 the name of the makefile
 662 define IncludeCustomExtension
 663 endef
 664 
 665 # Include the custom-spec.gmk file if it exists
 666 -include $(dir @SPEC@)/custom-spec.gmk