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 # A self-referential reference to this file.
  52 SPEC:=@SPEC@
  53 
  54 # Specify where the spec file is.
  55 MAKE_ARGS="SPEC=$(SPEC)"
  56 
  57 MAKE:=@MAKE@
  58 
  59 # Pass along the verbosity and log level settings.
  60 ifeq (,$(findstring VERBOSE=,$(MAKE)))
  61   MAKE:=$(MAKE) $(VERBOSE) VERBOSE="$(VERBOSE)" LOG_LEVEL="$(LOG_LEVEL)"
  62 endif
  63 
  64 # No implicit variables or rules!
  65 ifeq (,$(findstring -R,$(MAKE)))
  66   MAKE:=$(MAKE) -R
  67 endif
  68 
  69 # Specify where the common include directory for makefiles is.
  70 ifeq (,$(findstring -I @SRC_ROOT@/make/common,$(MAKE)))
  71   MAKE:=$(MAKE) -I @SRC_ROOT@/make/common
  72 endif
  73 
  74 # The "human readable" name of this configuration
  75 CONF_NAME:=@CONF_NAME@
  76 
  77 # The built jdk will run in this target system.
  78 OPENJDK_TARGET_OS:=@OPENJDK_TARGET_OS@
  79 OPENJDK_TARGET_OS_API:=@OPENJDK_TARGET_OS_API@
  80 OPENJDK_TARGET_OS_ENV:=@OPENJDK_TARGET_OS_ENV@
  81 
  82 OPENJDK_TARGET_CPU:=@OPENJDK_TARGET_CPU@
  83 OPENJDK_TARGET_CPU_ARCH:=@OPENJDK_TARGET_CPU_ARCH@
  84 OPENJDK_TARGET_CPU_BITS:=@OPENJDK_TARGET_CPU_BITS@
  85 OPENJDK_TARGET_CPU_ENDIAN:=@OPENJDK_TARGET_CPU_ENDIAN@
  86 
  87 COMPILE_TYPE:=@COMPILE_TYPE@
  88 
  89 # Legacy support
  90 OPENJDK_TARGET_CPU_ISADIR:=@OPENJDK_TARGET_CPU_ISADIR@
  91 OPENJDK_TARGET_CPU_LIBDIR:=@OPENJDK_TARGET_CPU_LIBDIR@
  92 OPENJDK_TARGET_CPU_LEGACY:=@OPENJDK_TARGET_CPU_LEGACY@
  93 OPENJDK_TARGET_CPU_LEGACY_LIB:=@OPENJDK_TARGET_CPU_LEGACY_LIB@
  94 OPENJDK_TARGET_CPU_OSARCH:=@OPENJDK_TARGET_CPU_OSARCH@
  95 OPENJDK_TARGET_CPU_JLI_CFLAGS:=@OPENJDK_TARGET_CPU_JLI_CFLAGS@
  96 OPENJDK_TARGET_OS_API_DIR:=@OPENJDK_TARGET_OS_API_DIR@
  97 OPENJDK_TARGET_OS_EXPORT_DIR:=@OPENJDK_TARGET_OS_EXPORT_DIR@
  98 
  99 # We are building on this build system.
 100 # When not cross-compiling, it is the same as the target.
 101 OPENJDK_BUILD_OS:=@OPENJDK_BUILD_OS@
 102 OPENJDK_BUILD_OS_API:=@OPENJDK_BUILD_OS_API@
 103 
 104 OPENJDK_BUILD_CPU:=@OPENJDK_BUILD_CPU@
 105 OPENJDK_BUILD_CPU_ARCH:=@OPENJDK_BUILD_CPU_ARCH@
 106 OPENJDK_BUILD_CPU_BITS:=@OPENJDK_BUILD_CPU_BITS@
 107 OPENJDK_BUILD_CPU_ENDIAN:=@OPENJDK_BUILD_CPU_ENDIAN@
 108 
 109 # Legacy OS values for use in release file.
 110 REQUIRED_OS_NAME:=@REQUIRED_OS_NAME@
 111 REQUIRED_OS_VERSION:=@REQUIRED_OS_VERSION@
 112 
 113 @SET_OPENJDK@
 114 LIBM:=-lm
 115 LIBDL:=@LIBDL@
 116 
 117 # colon or semicolon
 118 PATH_SEP:=@PATH_SEP@
 119 
 120 ifeq ($(OPENJDK_TARGET_OS), windows)
 121   # On Windows, the Visual Studio toolchain needs the LIB and INCLUDE
 122   # environment variables (in Windows path style), and the PATH needs to
 123   # be adjusted to include Visual Studio tools (but this needs to be in
 124   # cygwin/msys style).
 125   export PATH:=@VS_PATH@
 126   export INCLUDE:=@VS_INCLUDE@
 127   export LIB:=@VS_LIB@
 128 endif
 129 
 130 # The sys root where standard headers and libraries are found.
 131 # Usually not needed since the configure script should have
 132 # taken it into account already when setting CFLAGS et al.
 133 SYS_ROOT:=@SYS_ROOT@
 134 
 135 # Paths to the source code
 136 SRC_ROOT:=@SRC_ROOT@
 137 ADD_SRC_ROOT:=@ADD_SRC_ROOT@
 138 OVERRIDE_SRC_ROOT:=@OVERRIDE_SRC_ROOT@
 139 TOPDIR:=@SRC_ROOT@
 140 OUTPUT_ROOT:=@OUTPUT_ROOT@
 141 JDK_TOPDIR:=@JDK_TOPDIR@
 142 LANGTOOLS_TOPDIR:=@LANGTOOLS_TOPDIR@
 143 CORBA_TOPDIR:=@CORBA_TOPDIR@
 144 JAXP_TOPDIR:=@JAXP_TOPDIR@
 145 JAXWS_TOPDIR:=@JAXWS_TOPDIR@
 146 HOTSPOT_TOPDIR:=@HOTSPOT_TOPDIR@
 147 NASHORN_TOPDIR:=@NASHORN_TOPDIR@
 148 COPYRIGHT_YEAR:=@COPYRIGHT_YEAR@
 149 
 150 # Location where build customization files may be found
 151 CUSTOM_MAKE_DIR:=@CUSTOM_MAKE_DIR@
 152 
 153 # Information gathered from the version.numbers file.
 154 JDK_MAJOR_VERSION:=@JDK_MAJOR_VERSION@
 155 JDK_MINOR_VERSION:=@JDK_MINOR_VERSION@
 156 JDK_MICRO_VERSION:=@JDK_MICRO_VERSION@
 157 JDK_UPDATE_VERSION:=@JDK_UPDATE_VERSION@
 158 JDK_BUILD_NUMBER:=@JDK_BUILD_NUMBER@
 159 MILESTONE:=@MILESTONE@
 160 LAUNCHER_NAME:=@LAUNCHER_NAME@
 161 PRODUCT_NAME:=@PRODUCT_NAME@
 162 PRODUCT_SUFFIX:=@PRODUCT_SUFFIX@
 163 JDK_RC_PLATFORM_NAME:=@JDK_RC_PLATFORM_NAME@
 164 COMPANY_NAME:=@COMPANY_NAME@
 165 MACOSX_BUNDLE_NAME_BASE=@MACOSX_BUNDLE_NAME_BASE@
 166 MACOSX_BUNDLE_ID_BASE=@MACOSX_BUNDLE_ID_BASE@
 167 USER_RELEASE_SUFFIX=@USER_RELEASE_SUFFIX@
 168 
 169 # Different version strings generated from the above information.
 170 JDK_VERSION:=@JDK_VERSION@
 171 RUNTIME_NAME=$(PRODUCT_NAME) $(PRODUCT_SUFFIX)
 172 COOKED_BUILD_NUMBER:=@COOKED_BUILD_NUMBER@
 173 # These variables need to be generated here so that MILESTONE and
 174 # JDK_BUILD_NUMBER can be overridden on the make command line.
 175 ifeq ($(MILESTONE), fcs)
 176   RELEASE=$(JDK_VERSION)$(BUILD_VARIANT_RELEASE)
 177 else
 178   RELEASE=$(JDK_VERSION)-$(MILESTONE)$(BUILD_VARIANT_RELEASE)
 179 endif
 180 
 181 ifneq ($(USER_RELEASE_SUFFIX), )
 182   FULL_VERSION=$(RELEASE)-$(USER_RELEASE_SUFFIX)-$(JDK_BUILD_NUMBER)
 183 else
 184   FULL_VERSION=$(RELEASE)-$(JDK_BUILD_NUMBER)
 185 endif
 186 JRE_RELEASE_VERSION:=$(FULL_VERSION)
 187 
 188 # How to compile the code: release, fastdebug or slowdebug
 189 DEBUG_LEVEL:=@DEBUG_LEVEL@
 190 
 191 # This is the JDK variant to build.
 192 # The JDK variant is a name for a specific set of modules to be compiled for the JDK.
 193 JDK_VARIANT:=@JDK_VARIANT@
 194 
 195 # Should we compile support for running with a graphical UI? (ie headful)
 196 # Should we compile support for running without? (ie headless)
 197 SUPPORT_HEADFUL:=@SUPPORT_HEADFUL@
 198 SUPPORT_HEADLESS:=@SUPPORT_HEADLESS@
 199 # Legacy defines controlled by the SUPPORT_HEADLESS and SUPPORT_HEADFUL options.
 200 @BUILD_HEADLESS@
 201 
 202 # These are the libjvms that we want to build.
 203 # The java launcher uses the default.
 204 # The others can be selected by specifying -client -server -minimal1 -kernel -zero or -zeroshark
 205 # on the java launcher command line.
 206 JVM_VARIANTS:=@JVM_VARIANTS@
 207 JVM_VARIANT_SERVER:=@JVM_VARIANT_SERVER@
 208 JVM_VARIANT_CLIENT:=@JVM_VARIANT_CLIENT@
 209 JVM_VARIANT_MINIMAL1:=@JVM_VARIANT_MINIMAL1@
 210 JVM_VARIANT_KERNEL:=@JVM_VARIANT_KERNEL@
 211 JVM_VARIANT_ZERO:=@JVM_VARIANT_ZERO@
 212 JVM_VARIANT_ZEROSHARK:=@JVM_VARIANT_ZEROSHARK@
 213 JVM_VARIANT_CORE:=@JVM_VARIANT_CORE@
 214 
 215 # Universal binaries on macosx
 216 MACOSX_UNIVERSAL=@MACOSX_UNIVERSAL@
 217 
 218 # Legacy setting: -debug or -fastdebug
 219 # Still used in version string...
 220 BUILD_VARIANT_RELEASE:=@BUILD_VARIANT_RELEASE@
 221 
 222 # JDK_OUTPUTDIR specifies where a working jvm is built.
 223 # You can run $(JDK_OUTPUTDIR)/bin/java
 224 # Though the layout of the contents of $(JDK_OUTPUTDIR) is not
 225 # yet the same as a default installation.
 226 #
 227 # When you run "make install" it will create the standardized
 228 # layout for the jdk and the jre inside the IMAGES_OUTPUTDIR subdir.
 229 # Then it will copy the contents of the jdk into the installation
 230 # directory.
 231 
 232 BUILD_OUTPUT:=@BUILD_OUTPUT@
 233 # Colon left out to be able to override IMAGES_OUTPUTDIR for bootcycle-images
 234 LANGTOOLS_OUTPUTDIR=$(BUILD_OUTPUT)/langtools
 235 CORBA_OUTPUTDIR=$(BUILD_OUTPUT)/corba
 236 JAXP_OUTPUTDIR=$(BUILD_OUTPUT)/jaxp
 237 JAXWS_OUTPUTDIR=$(BUILD_OUTPUT)/jaxws
 238 HOTSPOT_OUTPUTDIR=$(BUILD_OUTPUT)/hotspot
 239 JDK_OUTPUTDIR=$(BUILD_OUTPUT)/jdk
 240 NASHORN_OUTPUTDIR=$(BUILD_OUTPUT)/nashorn
 241 IMAGES_OUTPUTDIR=$(BUILD_OUTPUT)/images
 242 
 243 LANGTOOLS_DIST=$(LANGTOOLS_OUTPUTDIR)/dist
 244 CORBA_DIST=$(CORBA_OUTPUTDIR)/dist
 245 JAXP_DIST=$(JAXP_OUTPUTDIR)/dist
 246 JAXWS_DIST=$(JAXWS_OUTPUTDIR)/dist
 247 HOTSPOT_DIST=@HOTSPOT_DIST@
 248 NASHORN_DIST=$(NASHORN_OUTPUTDIR)/dist
 249 
 250 BUILD_HOTSPOT=@BUILD_HOTSPOT@
 251 
 252 # The boot jdk to use
 253 BOOT_JDK:=@BOOT_JDK@
 254 BOOT_JDK_JVMARGS:=@BOOT_JDK_JVMARGS@
 255 BOOT_RTJAR:=@BOOT_RTJAR@
 256 BOOT_TOOLSJAR=$(BOOT_JDK)/lib/tools.jar
 257 
 258 # When compiling Java source to be run by the boot jdk
 259 # use these extra flags, eg -source 6 -target 6
 260 BOOT_JDK_SOURCETARGET:=@BOOT_JDK_SOURCETARGET@
 261 
 262 # Information about the build system
 263 NUM_CORES:=@NUM_CORES@
 264 # Enable sjavac support = use a javac server,
 265 # multi core javac compilation and dependency tracking.
 266 ENABLE_SJAVAC:=@ENABLE_SJAVAC@
 267 # Store sjavac server synchronization files here, and
 268 # the sjavac server log files.
 269 SJAVAC_SERVER_DIR:=@SJAVAC_SERVER_DIR@
 270 
 271 # Number of parallel jobs to use for compilation
 272 JOBS?=@JOBS@
 273 
 274 FREETYPE_LIBS:=@FREETYPE_LIBS@
 275 FREETYPE_CFLAGS:=@FREETYPE_CFLAGS@
 276 FREETYPE_BUNDLE_LIB_PATH=@FREETYPE_BUNDLE_LIB_PATH@
 277 CUPS_CFLAGS:=@CUPS_CFLAGS@
 278 ALSA_LIBS:=@ALSA_LIBS@
 279 ALSA_CFLAGS:=@ALSA_CFLAGS@
 280 
 281 PACKAGE_PATH=@PACKAGE_PATH@
 282 
 283 # Source file for cacerts
 284 CACERTS_FILE=@CACERTS_FILE@
 285 
 286 # Enable unlimited crypto policy
 287 UNLIMITED_CRYPTO=@UNLIMITED_CRYPTO@
 288 
 289 # Enable RMIConnector IIOP transport
 290 RMICONNECTOR_IIOP=@RMICONNECTOR_IIOP@
 291 
 292 # Necessary additional compiler flags to compile X11
 293 X_CFLAGS:=@X_CFLAGS@
 294 X_LIBS:=@X_LIBS@
 295 OPENWIN_HOME:=@OPENWIN_HOME@
 296 
 297 # The lowest required version of macosx to enforce compatiblity for
 298 MACOSX_VERSION_MIN=@MACOSX_VERSION_MIN@
 299 
 300 # There are two types: CC or CL
 301 # CC is gcc and others behaving reasonably similar.
 302 # CL is cl.exe only.
 303 COMPILER_TYPE:=@COMPILER_TYPE@
 304 COMPILER_NAME:=@COMPILER_NAME@
 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:=@BOOT_JDK_JVMARGS@
 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 # Include the custom-spec.gmk file if it exists
 690 -include $(dir @SPEC@)/custom-spec.gmk