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 # New (JEP-223) version information
 134 
 135 ## Building blocks of the version string
 136 # First three version numbers, with well-specified meanings (numerical)
 137 VERSION_MAJOR := @VERSION_MAJOR@
 138 VERSION_MINOR := @VERSION_MINOR@
 139 VERSION_SECURITY := @VERSION_SECURITY@
 140 # Optional fourth element for use by OpenJDK consumers (numerical)
 141 VERSION_PATCH := @VERSION_PATCH@
 142 # The pre-release identifier (string)
 143 VERSION_PRE := @VERSION_PRE@
 144 # The build number (numerical)
 145 VERSION_BUILD := @VERSION_BUILD@
 146 # Optional build information (string)
 147 VERSION_OPT := @VERSION_OPT@
 148 
 149 ## Composite variables
 150 # The version number as a dot separated sequence of numbers, e.g. 9.0.1
 151 VERSION_NUMBER := @VERSION_NUMBER@
 152 # VERSION_NUMBER but always with exactly 4 positions, with 0 for empty positions.
 153 VERSION_NUMBER_FOUR_POSITIONS := @VERSION_NUMBER_FOUR_POSITIONS@
 154 # The complete version string, with additional build information
 155 VERSION_STRING := @VERSION_STRING@
 156 # The short version string, without trailing zeroes and just PRE, if present.
 157 VERSION_SHORT := @VERSION_SHORT@
 158 # The Java specification version. It should be equal to version number.
 159 VERSION_SPECIFICATION := @VERSION_NUMBER@
 160 # A GA version is defined by the PRE string being empty. Rather than testing for
 161 # that, this variable defines it with true/false.
 162 VERSION_IS_GA := @VERSION_IS_GA@
 163 
 164 # Convenience CFLAGS settings for passing version information into native programs.
 165 VERSION_CFLAGS := \
 166     -DVERSION_MAJOR=$(VERSION_MAJOR) \
 167     -DVERSION_MINOR=$(VERSION_MINOR) \
 168     -DVERSION_SECURITY=$(VERSION_SECURITY) \
 169     -DVERSION_PATCH=$(VERSION_PATCH) \
 170     -DVERSION_PRE='"$(VERSION_PRE)"' \
 171     -DVERSION_BUILD=$(VERSION_BUILD) \
 172     -DVERSION_OPT='"$(VERSION_OPT)"' \
 173     -DVERSION_NUMBER='"$(VERSION_NUMBER)"' \
 174     -DVERSION_STRING='"$(VERSION_STRING)"' \
 175     -DVERSION_SHORT='"$(VERSION_SHORT)"' \
 176     -DVERSION_SPECIFICATION='"$(VERSION_SPECIFICATION)"' \
 177     #
 178 
 179 # Platform naming variables
 180 LAUNCHER_NAME:=@LAUNCHER_NAME@
 181 PRODUCT_NAME:=@PRODUCT_NAME@
 182 PRODUCT_SUFFIX:=@PRODUCT_SUFFIX@
 183 JDK_RC_PLATFORM_NAME:=@JDK_RC_PLATFORM_NAME@
 184 COMPANY_NAME:=@COMPANY_NAME@
 185 MACOSX_BUNDLE_NAME_BASE=@MACOSX_BUNDLE_NAME_BASE@
 186 MACOSX_BUNDLE_ID_BASE=@MACOSX_BUNDLE_ID_BASE@
 187 
 188 # Different naming strings generated from the above information.
 189 RUNTIME_NAME=$(PRODUCT_NAME) $(PRODUCT_SUFFIX)
 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 SUPPORT_OUTPUTDIR=$(BUILD_OUTPUT)/support
 238 BUILDTOOLS_OUTPUTDIR=$(BUILD_OUTPUT)/buildtools
 239 
 240 HOTSPOT_OUTPUTDIR=$(BUILD_OUTPUT)/hotspot
 241 JDK_OUTPUTDIR=$(BUILD_OUTPUT)/jdk
 242 IMAGES_OUTPUTDIR=$(BUILD_OUTPUT)/images
 243 TESTMAKE_OUTPUTDIR=$(BUILD_OUTPUT)/test-make
 244 MAKESUPPORT_OUTPUTDIR=$(BUILD_OUTPUT)/make-support
 245 # This does not get overridden in a bootcycle build
 246 CONFIGURESUPPORT_OUTPUTDIR:=@CONFIGURESUPPORT_OUTPUTDIR@
 247 
 248 HOTSPOT_DIST=@HOTSPOT_DIST@
 249 
 250 BUILD_HOTSPOT=@BUILD_HOTSPOT@
 251 
 252 # The boot jdk to use. This is overridden in bootcycle-spec.gmk. Make sure to keep
 253 # it in sync.
 254 BOOT_JDK:=@BOOT_JDK@
 255 
 256 # When compiling Java source to be run by the boot jdk
 257 # use these extra flags, eg -source 6 -target 6
 258 BOOT_JDK_SOURCETARGET:=@BOOT_JDK_SOURCETARGET@
 259 
 260 # Information about the build system
 261 NUM_CORES:=@NUM_CORES@
 262 MEMORY_SIZE:=@MEMORY_SIZE@
 263 # Enable sjavac support = use a javac server,
 264 # multi core javac compilation and dependency tracking.
 265 ENABLE_SJAVAC:=@ENABLE_SJAVAC@
 266 ENABLE_JAVAC_SERVER:=@ENABLE_JAVAC_SERVER@
 267 # Store sjavac server synchronization files here, and
 268 # the sjavac server log files.
 269 SJAVAC_SERVER_DIR=$(MAKESUPPORT_OUTPUTDIR)/javacservers
 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 GCOV_ENABLED=@GCOV_ENABLED@
 290 
 291 # Necessary additional compiler flags to compile X11
 292 X_CFLAGS:=@X_CFLAGS@
 293 X_LIBS:=@X_LIBS@
 294 
 295 # The lowest required version of macosx to enforce compatiblity for
 296 MACOSX_VERSION_MIN=@MACOSX_VERSION_MIN@
 297 
 298 # Toolchain type: gcc, clang, solstudio, lxc, microsoft...
 299 TOOLCHAIN_TYPE:=@TOOLCHAIN_TYPE@
 300 
 301 # Option used to tell the compiler whether to create 32- or 64-bit executables
 302 COMPILER_TARGET_BITS_FLAG:=@COMPILER_TARGET_BITS_FLAG@
 303 COMPILER_SUPPORTS_TARGET_BITS_FLAG=@COMPILER_SUPPORTS_TARGET_BITS_FLAG@
 304 
 305 CC_OUT_OPTION:=@CC_OUT_OPTION@
 306 EXE_OUT_OPTION:=@EXE_OUT_OPTION@
 307 LD_OUT_OPTION:=@LD_OUT_OPTION@
 308 AR_OUT_OPTION:=@AR_OUT_OPTION@
 309 
 310 # Flags used for overriding the default opt setting for a C/C++ source file.
 311 C_O_FLAG_HIGHEST:=@C_O_FLAG_HIGHEST@
 312 C_O_FLAG_HI:=@C_O_FLAG_HI@
 313 C_O_FLAG_NORM:=@C_O_FLAG_NORM@
 314 C_O_FLAG_NONE:=@C_O_FLAG_NONE@
 315 CXX_O_FLAG_HIGHEST:=@CXX_O_FLAG_HIGHEST@
 316 CXX_O_FLAG_HI:=@CXX_O_FLAG_HI@
 317 CXX_O_FLAG_NORM:=@CXX_O_FLAG_NORM@
 318 CXX_O_FLAG_NONE:=@CXX_O_FLAG_NONE@
 319 
 320 C_FLAG_DEPS:=@C_FLAG_DEPS@
 321 CXX_FLAG_DEPS:=@CXX_FLAG_DEPS@
 322 
 323 DISABLE_WARNING_PREFIX := @DISABLE_WARNING_PREFIX@
 324 CFLAGS_WARNINGS_ARE_ERRORS:=@CFLAGS_WARNINGS_ARE_ERRORS@
 325 
 326 # A global flag (true or false) determining if native warnings are considered errors.
 327 WARNINGS_AS_ERRORS := @WARNINGS_AS_ERRORS@
 328 
 329 CFLAGS_CCACHE:=@CFLAGS_CCACHE@
 330 
 331 # Tools that potentially need to be cross compilation aware.
 332 CC:=@FIXPATH@ @CCACHE@ @ICECC@ @CC@
 333 
 334 # CFLAGS used to compile the jdk native libraries (C-code)
 335 CFLAGS_JDKLIB:=@CFLAGS_JDKLIB@
 336 CXXFLAGS_JDKLIB:=@CXXFLAGS_JDKLIB@
 337 
 338 # CFLAGS used to compile the jdk native launchers (C-code)
 339 CFLAGS_JDKEXE:=@CFLAGS_JDKEXE@
 340 CXXFLAGS_JDKEXE:=@CXXFLAGS_JDKEXE@
 341 
 342 CXX:=@FIXPATH@ @CCACHE@ @ICECC@ @CXX@
 343 #CXXFLAGS:=@CXXFLAGS@
 344 
 345 CPP:=@FIXPATH@ @CPP@
 346 #CPPFLAGS:=@CPPFLAGS@
 347 
 348 # The linker can be gcc or ld on unix systems, or link.exe on windows systems.
 349 LD:=@FIXPATH@ @LD@
 350 
 351 # Xcode SDK path
 352 SDKROOT:=@SDKROOT@
 353 
 354 # The linker on older SuSE distros (e.g. on SLES 10) complains with:
 355 # "Invalid version tag `SUNWprivate_1.1'. Only anonymous version tag is allowed in executable."
 356 # if feeded with a version script which contains named tags.
 357 USING_BROKEN_SUSE_LD:=@USING_BROKEN_SUSE_LD@
 358 
 359 # LDFLAGS used to link the jdk native libraries (C-code)
 360 LDFLAGS_JDKLIB:=@LDFLAGS_JDKLIB@
 361 JDKLIB_LIBS:=@JDKLIB_LIBS@
 362 
 363 # LDFLAGS used to link the jdk native launchers (C-code)
 364 LDFLAGS_JDKEXE:=@LDFLAGS_JDKEXE@
 365 JDKEXE_LIBS:=@JDKEXE_LIBS@
 366 
 367 # LDFLAGS specific to C++ linking.
 368 LDFLAGS_CXX_JDK:=@LDFLAGS_CXX_JDK@
 369 
 370 # Sometimes a different linker is needed for c++ libs
 371 LDCXX:=@FIXPATH@ @LDCXX@
 372 # The flags for linking libstdc++ linker.
 373 LIBCXX:=@LIBCXX@
 374 
 375 # Compiler and linker flags used when building native tests
 376 CFLAGS_TESTLIB:=@CFLAGS_TESTLIB@
 377 CXXFLAGS_TESTLIB:=@CXXFLAGS_TESTLIB@
 378 CFLAGS_TESTEXE:=@CFLAGS_TESTEXE@
 379 CXXFLAGS_TESTEXE:=@CXXFLAGS_TESTEXE@
 380 LDFLAGS_TESTLIB:=@LDFLAGS_TESTLIB@
 381 LDFLAGS_TESTEXE:=@LDFLAGS_TESTEXE@
 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_ICECC@ @BUILD_CC@
 386 BUILD_CXX:=@FIXPATH@ @BUILD_ICECC@ @BUILD_CXX@
 387 BUILD_LD:=@FIXPATH@ @BUILD_LD@
 388 BUILD_AS:=@FIXPATH@ @BUILD_AS@
 389 BUILD_AR:=@FIXPATH@ @BUILD_AR@
 390 BUILD_NM:=@FIXPATH@ @BUILD_NM@
 391 BUILD_SYSROOT_CFLAGS:=@BUILD_SYSROOT_CFLAGS@
 392 BUILD_SYSROOT_LDFLAGS:=@BUILD_SYSROOT_LDFLAGS@
 393 
 394 AS:=@FIXPATH@ @AS@
 395 
 396 # AR is used to create a static library (is ar in unix, lib.exe in windows)
 397 AR:=@FIXPATH@ @AR@
 398 ARFLAGS:=@ARFLAGS@
 399 
 400 NM:=@NM@
 401 GNM:=@GNM@
 402 STRIP:=@STRIP@
 403 
 404 LIPO:=@LIPO@
 405 
 406 # Options to linker to specify a mapfile.
 407 # (Note absence of := assignment, because we do not want to evaluate the macro body here)
 408 SET_SHARED_LIBRARY_MAPFILE=@SET_SHARED_LIBRARY_MAPFILE@
 409 
 410 # Options for C/CXX compiler to be used if linking is performed
 411 #   using reorder file
 412 C_FLAG_REORDER:=@C_FLAG_REORDER@
 413 CXX_FLAG_REORDER:=@CXX_FLAG_REORDER@
 414 
 415 #
 416 # Options for generating debug symbols
 417 ENABLE_DEBUG_SYMBOLS:=@ENABLE_DEBUG_SYMBOLS@
 418 CFLAGS_DEBUG_SYMBOLS:=@CFLAGS_DEBUG_SYMBOLS@
 419 CXXFLAGS_DEBUG_SYMBOLS:=@CXXFLAGS_DEBUG_SYMBOLS@
 420 ZIP_DEBUGINFO_FILES:=@ZIP_DEBUGINFO_FILES@



 421 
 422 #
 423 # Compress (or not) jars
 424 COMPRESS_JARS=@COMPRESS_JARS@
 425 
 426 # Options to linker to specify the library name.
 427 # (Note absence of := assignment, because we do not want to evaluate the macro body here)
 428 SET_SHARED_LIBRARY_NAME=@SET_SHARED_LIBRARY_NAME@
 429 
 430 # Set origin using the linker, ie use the relative path to the dependent library to find the dependees.
 431 # (Note absence of := assignment, because we do not want to evaluate the macro body here)
 432 SET_SHARED_LIBRARY_ORIGIN=@SET_SHARED_LIBRARY_ORIGIN@
 433 SET_EXECUTABLE_ORIGIN=@SET_EXECUTABLE_ORIGIN@
 434 
 435 # Different OS:es have different ways of naming shared libraries.
 436 # The SHARED_LIBRARY macro takes "verify" as and argument and returns:
 437 #    "libverify.so" or "libverify.dylib" or "verify.dll" depending on platform.
 438 # (Note absence of := assignment, because we do not want to evaluate the macro body here)
 439 SHARED_LIBRARY=@SHARED_LIBRARY@
 440 STATIC_LIBRARY=@STATIC_LIBRARY@
 441 LIBRARY_PREFIX:=@LIBRARY_PREFIX@
 442 SHARED_LIBRARY_SUFFIX:=@SHARED_LIBRARY_SUFFIX@
 443 STATIC_LIBRARY_SUFFIX:=@STATIC_LIBRARY_SUFFIX@
 444 EXE_SUFFIX:=@EXE_SUFFIX@
 445 OBJ_SUFFIX:=@OBJ_SUFFIX@
 446 STATIC_BUILD:=@STATIC_BUILD@
 447 
 448 STRIPFLAGS:=@STRIPFLAGS@
 449 
 450 JAVA_FLAGS:=@JAVA_FLAGS@
 451 JAVA_FLAGS_BIG:=@JAVA_FLAGS_BIG@
 452 JAVA_FLAGS_SMALL:=@JAVA_FLAGS_SMALL@
 453 JAVA_FLAGS_JAVAC:=@JAVA_FLAGS_JAVAC@
 454 JAVA_TOOL_FLAGS_SMALL:=@JAVA_TOOL_FLAGS_SMALL@
 455 SJAVAC_SERVER_JAVA_FLAGS:=@SJAVAC_SERVER_JAVA_FLAGS@
 456 
 457 # The *_CMD variables are defined separately to be easily overridden in bootcycle-spec.gmk
 458 # for bootcycle-images build. Make sure to keep them in sync. Do not use the *_CMD
 459 # versions of the variables directly.
 460 JAVA_CMD:=@JAVA@
 461 JAVAC_CMD:=@JAVAC@
 462 JAVAH_CMD:=@JAVAH@
 463 JAR_CMD:=@JAR@
 464 JARSIGNER_CMD:=@JARSIGNER@
 465 SJAVAC_SERVER_JAVA_CMD:=@SJAVAC_SERVER_JAVA@
 466 # These variables are meant to be used. They are defined with = instead of := to make
 467 # it possible to override only the *_CMD variables.
 468 JAVA=@FIXPATH@ $(JAVA_CMD) $(JAVA_FLAGS_BIG) $(JAVA_FLAGS)
 469 JAVA_SMALL=@FIXPATH@ $(JAVA_CMD) $(JAVA_FLAGS_SMALL) $(JAVA_FLAGS)
 470 JAVA_JAVAC=@FIXPATH@ $(JAVA_CMD) $(JAVA_FLAGS_JAVAC) $(JAVA_FLAGS)
 471 JAVAC=@FIXPATH@ $(JAVAC_CMD)
 472 JAVAH=@FIXPATH@ $(JAVAH_CMD)
 473 JAR=@FIXPATH@ $(JAR_CMD)
 474 JARSIGNER=@FIXPATH@ $(JARSIGNER_CMD)
 475 # A specific java binary with specific options can be used to run
 476 # the long running background sjavac servers and other long running tasks.
 477 SJAVAC_SERVER_JAVA=@FIXPATH@ @FIXPATH_DETACH_FLAG@ $(SJAVAC_SERVER_JAVA_CMD) \
 478     $(SJAVAC_SERVER_JAVA_FLAGS)
 479 
 480 # Hotspot sets this variable before reading the SPEC when compiling sa-jdi.jar. Avoid
 481 # overriding that value by using ?=.
 482 JAVAC_FLAGS?=@JAVAC_FLAGS@
 483 
 484 # You run the new javac using the boot jdk with $(BOOT_JDK)/bin/java $(NEW_JAVAC) ...
 485 # Use = assignment to be able to override in bootcycle-spec.gmk
 486 INTERIM_LANGTOOLS_JAR = $(BUILDTOOLS_OUTPUTDIR)/interim_langtools.jar
 487 INTERIM_LANGTOOLS_ARGS = "-Xbootclasspath/p:$(INTERIM_LANGTOOLS_JAR)" -cp $(INTERIM_LANGTOOLS_JAR)
 488 NEW_JAVAC   = $(INTERIM_LANGTOOLS_ARGS) com.sun.tools.javac.Main
 489 NEW_JAVADOC = $(INTERIM_LANGTOOLS_ARGS) com.sun.tools.javadoc.Main
 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 NICE:=@NICE@
 528 PATCH:=@PATCH@
 529 PRINTF:=@PRINTF@
 530 PWD:=@THEPWDCMD@
 531 RM:=@RM@
 532 RMDIR:=@RMDIR@
 533 SED:=@SED@
 534 SH:=@SH@
 535 SORT:=@SORT@
 536 TAR:=@TAR@
 537 TAIL:=@TAIL@
 538 TEE:=@TEE@
 539 TIME:=@TIME@
 540 IS_GNU_TIME:=@IS_GNU_TIME@
 541 TR:=@TR@
 542 TOUCH:=@TOUCH@
 543 UNIQ:=@UNIQ@
 544 WC:=@WC@
 545 XARGS:=@XARGS@
 546 ZIPEXE:=@ZIP@
 547 ZIP:=@ZIP@
 548 UNZIP:=@UNZIP@
 549 MT:=@FIXPATH@ @MT@
 550 RC:=@FIXPATH@ @RC@
 551 DUMPBIN:=@FIXPATH@ @DUMPBIN@
 552 CYGPATH:=@CYGPATH@
 553 LDD:=@LDD@
 554 OTOOL:=@OTOOL@
 555 READELF:=@READELF@
 556 EXPR:=@EXPR@
 557 FILE:=@FILE@
 558 HG:=@HG@
 559 OBJCOPY:=@OBJCOPY@
 560 SETFILE:=@SETFILE@
 561 XATTR:=@XATTR@
 562 JT_HOME:=@JT_HOME@
 563 JTREGEXE:=@JTREGEXE@
 564 XCODEBUILD=@XCODEBUILD@
 565 FIXPATH:=@FIXPATH@
 566 
 567 # Build setup
 568 ENABLE_JFR=@ENABLE_JFR@
 569 ENABLE_INTREE_EC=@ENABLE_INTREE_EC@
 570 USE_EXTERNAL_LIBJPEG:=@USE_EXTERNAL_LIBJPEG@
 571 USE_EXTERNAL_LIBGIF:=@USE_EXTERNAL_LIBGIF@
 572 USE_EXTERNAL_LIBZ:=@USE_EXTERNAL_LIBZ@
 573 LIBZIP_CAN_USE_MMAP:=@LIBZIP_CAN_USE_MMAP@
 574 MSVCR_DLL:=@MSVCR_DLL@
 575 MSVCP_DLL:=@MSVCP_DLL@
 576 
 577 ####################################################
 578 #
 579 # INSTALLATION
 580 #
 581 
 582 # Common prefix for all installed files. Defaults to /usr/local,
 583 # but /opt/myjdk is another common version.
 584 INSTALL_PREFIX=@prefix@
 585 
 586 # Directories containing architecture-dependent files should be relative to exec_prefix
 587 INSTALL_EXECPREFIX=@exec_prefix@
 588 
 589 # java,javac,javah,javap etc are installed here.
 590 INSTALL_BINDIR=@bindir@
 591 
 592 # Read only architecture-independent data
 593 INSTALL_DATADIR=@datadir@
 594 
 595 # Root of above.
 596 INSTALL_DATAROOTDIR=@datarootdir@
 597 
 598 # Doc files, other than info and man.
 599 INSTALL_DOCDIR=@docdir@
 600 
 601 # Html documentation
 602 INSTALL_HTMLDIR=@htmldir@
 603 
 604 # Installing C header files, JNI headers for example.
 605 INSTALL_INCLUDEDIR=@includedir@
 606 
 607 # Installing library files....
 608 INSTALL_INCLUDEDIR=@libdir@
 609 
 610 # Executables that other programs run.
 611 INSTALL_LIBEXECDIR=@libexecdir@
 612 
 613 # Locale-dependent but architecture-independent data, such as message catalogs.
 614 INSTALL_LOCALEDIR=@localedir@
 615 
 616 # Modifiable single-machine data
 617 INSTALL_LOCALSTATEDIR=@localstatedir@
 618 
 619 # Man pages
 620 INSTALL_MANDIR=@mandir@
 621 
 622 # Modifiable architecture-independent data.
 623 INSTALL_SHAREDSTATEDIR=@sharedstatedir@
 624 
 625 # Read-only single-machine data
 626 INSTALL_SYSCONFDIR=@sysconfdir@
 627 
 628 ####################################################
 629 #
 630 # Libraries
 631 #
 632 
 633 USE_EXTERNAL_LCMS:=@USE_EXTERNAL_LCMS@
 634 LCMS_CFLAGS:=@LCMS_CFLAGS@
 635 LCMS_LIBS:=@LCMS_LIBS@
 636 
 637 USE_EXTERNAL_LIBPNG:=@USE_EXTERNAL_LIBPNG@
 638 PNG_LIBS:=@PNG_LIBS@
 639 PNG_CFLAGS:=@PNG_CFLAGS@
 640 
 641 
 642 ####################################################
 643 #
 644 # Misc
 645 #
 646 
 647 # Name of Service Agent library
 648 SALIB_NAME=@SALIB_NAME@
 649 
 650 INCLUDE_SA=@INCLUDE_SA@
 651 
 652 OS_VERSION_MAJOR:=@OS_VERSION_MAJOR@
 653 OS_VERSION_MINOR:=@OS_VERSION_MINOR@
 654 OS_VERSION_MICRO:=@OS_VERSION_MICRO@
 655 
 656 # Images directory definitions
 657 JDK_IMAGE_SUBDIR:=jdk
 658 JRE_IMAGE_SUBDIR:=jre
 659 
 660 # Colon left out to be able to override output dir for bootcycle-images
 661 JDK_IMAGE_DIR=$(IMAGES_OUTPUTDIR)/$(JDK_IMAGE_SUBDIR)
 662 JRE_IMAGE_DIR=$(IMAGES_OUTPUTDIR)/$(JRE_IMAGE_SUBDIR)
 663 
 664 # Test image, as above
 665 TEST_IMAGE_SUBDIR:=test
 666 TEST_IMAGE_DIR=$(IMAGES_OUTPUTDIR)/$(TEST_IMAGE_SUBDIR)
 667 
 668 # Symbols image
 669 SYMBOLS_IMAGE_SUBDIR:=symbols
 670 SYMBOLS_IMAGE_DIR=$(IMAGES_OUTPUTDIR)/$(SYMBOLS_IMAGE_SUBDIR)
 671 
 672 # Macosx bundles directory definitions
 673 JDK_MACOSX_BUNDLE_SUBDIR=jdk-bundle/jdk-$(VERSION_NUMBER).jdk/Contents
 674 JRE_MACOSX_BUNDLE_SUBDIR=jre-bundle/jre-$(VERSION_NUMBER).jre/Contents
 675 JDK_MACOSX_BUNDLE_DIR=$(IMAGES_OUTPUTDIR)/$(JDK_MACOSX_BUNDLE_SUBDIR)
 676 JRE_MACOSX_BUNDLE_DIR=$(IMAGES_OUTPUTDIR)/$(JRE_MACOSX_BUNDLE_SUBDIR)
 677 
 678 # This macro is called to allow inclusion of closed source counterparts.
 679 # Unless overridden in closed sources, it expands to nothing.
 680 # Usage: This function is called in an open makefile, with the following
 681 # arguments:
 682 # $1 the name of the repo, or empty if the top-level repo.
 683 # $2 the name of the makefile
 684 define IncludeCustomExtension
 685 endef
 686 
 687 # Include the custom-spec.gmk file if it exists
 688 -include $(dir @SPEC@)/custom-spec.gmk
--- EOF ---