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