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