annotate make/autoconf/spec.gmk.in @ 47275:92fd0e04e0e1

8187544: Replace BUILD_OUTPUT and OUTPUT_ROOT with OUTPUTDIR Reviewed-by: erikj
author ihse
date Mon, 25 Sep 2017 10:32:00 +0200
parents fdac20095dff
children b90a1b5b8142 8b5ed0358b3a
rev   line source
ohair@12258 1 #
ihse@43383 2 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
ohair@12258 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
ohair@12258 4 #
ohair@12258 5 # This code is free software; you can redistribute it and/or modify it
ohair@12258 6 # under the terms of the GNU General Public License version 2 only, as
ohair@12258 7 # published by the Free Software Foundation. Oracle designates this
ohair@12258 8 # particular file as subject to the "Classpath" exception as provided
ohair@12258 9 # by Oracle in the LICENSE file that accompanied this code.
ohair@12258 10 #
ohair@12258 11 # This code is distributed in the hope that it will be useful, but WITHOUT
ohair@12258 12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
ohair@12258 13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
ohair@12258 14 # version 2 for more details (a copy is included in the LICENSE file that
ohair@12258 15 # accompanied this code).
ohair@12258 16 #
ohair@12258 17 # You should have received a copy of the GNU General Public License version
ohair@12258 18 # 2 along with this work; if not, write to the Free Software Foundation,
ohair@12258 19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
ohair@12258 20 #
ohair@12258 21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
ohair@12258 22 # or visit www.oracle.com if you need additional information or have any
ohair@12258 23 # questions.
ohair@12258 24 #
ohair@12258 25
ohair@13697 26 # Configured @DATE_WHEN_CONFIGURED@ to build
ohair@13697 27 # for target system @OPENJDK_TARGET_OS@-@OPENJDK_TARGET_CPU@
ohair@13697 28 # (called @OPENJDK_TARGET_AUTOCONF_NAME@ by autoconf)
ohair@13697 29 # on build system @OPENJDK_BUILD_OS@-@OPENJDK_BUILD_CPU@
ohair@13697 30 # (called @OPENJDK_BUILD_AUTOCONF_NAME@ by autoconf)
erikj@13132 31 # using 'configure @CONFIGURE_COMMAND_LINE@'
ohair@12258 32
ihse@22716 33 # The command line given to configure.
ihse@22716 34 CONFIGURE_COMMAND_LINE:=@CONFIGURE_COMMAND_LINE@
ihse@22716 35
ohair@13697 36 # A self-referential reference to this file.
ohair@13697 37 SPEC:=@SPEC@
ohair@13697 38
ihse@35747 39 # SPACE and COMMA are defined in MakeBase.gmk, but they are also used in
ihse@35747 40 # some definitions here, and are needed if MakeBase.gmk is not included before
ihse@35747 41 # this file.
ihse@32719 42 X:=
ihse@32719 43 SPACE:=$(X) $(X)
ihse@35747 44 COMMA:=,
ihse@32719 45
ihse@29662 46 # What make to use for main processing, after bootstrapping top-level Makefile.
ihse@29662 47 MAKE := @MAKE@
ohair@13697 48
ihse@29662 49 # The default make arguments
ihse@29788 50 MAKE_ARGS = $(MAKE_LOG_FLAGS) -r -R -I $(TOPDIR)/make/common SPEC=$(SPEC) \
asemenyuk@44465 51 MAKE_LOG_FLAGS="$(MAKE_LOG_FLAGS)" $(MAKE_LOG_VARS)
ohair@12258 52
chegar@25854 53 OUTPUT_SYNC_SUPPORTED:=@OUTPUT_SYNC_SUPPORTED@
chegar@25854 54 OUTPUT_SYNC:=@OUTPUT_SYNC@
chegar@25854 55
erikj@28602 56 # Override the shell with bash
erikj@28602 57 BASH:=@BASH@
erikj@28602 58 BASH_ARGS:=@BASH_ARGS@
erikj@28602 59 SHELL:=$(BASH) $(BASH_ARGS)
erikj@28602 60
erikj@12801 61 # The "human readable" name of this configuration
erikj@12801 62 CONF_NAME:=@CONF_NAME@
erikj@12801 63
erikj@13132 64 # The built jdk will run in this target system.
erikj@13132 65 OPENJDK_TARGET_OS:=@OPENJDK_TARGET_OS@
ihse@27586 66 OPENJDK_TARGET_OS_TYPE:=@OPENJDK_TARGET_OS_TYPE@
ohair@14111 67 OPENJDK_TARGET_OS_ENV:=@OPENJDK_TARGET_OS_ENV@
erikj@13132 68
erikj@13132 69 OPENJDK_TARGET_CPU:=@OPENJDK_TARGET_CPU@
erikj@13132 70 OPENJDK_TARGET_CPU_ARCH:=@OPENJDK_TARGET_CPU_ARCH@
erikj@13132 71 OPENJDK_TARGET_CPU_BITS:=@OPENJDK_TARGET_CPU_BITS@
erikj@13132 72 OPENJDK_TARGET_CPU_ENDIAN:=@OPENJDK_TARGET_CPU_ENDIAN@
ohair@12258 73
ohair@13697 74 COMPILE_TYPE:=@COMPILE_TYPE@
ohair@13697 75
ohair@13697 76 # Legacy support
ohair@13697 77 OPENJDK_TARGET_CPU_ISADIR:=@OPENJDK_TARGET_CPU_ISADIR@
ohair@13697 78 OPENJDK_TARGET_CPU_LEGACY:=@OPENJDK_TARGET_CPU_LEGACY@
ohair@13697 79 OPENJDK_TARGET_CPU_LEGACY_LIB:=@OPENJDK_TARGET_CPU_LEGACY_LIB@
ohair@13697 80 OPENJDK_TARGET_CPU_OSARCH:=@OPENJDK_TARGET_CPU_OSARCH@
dholmes@21055 81 OPENJDK_TARGET_OS_EXPORT_DIR:=@OPENJDK_TARGET_OS_EXPORT_DIR@
ohair@13697 82
erikj@37402 83 HOTSPOT_TARGET_OS := @HOTSPOT_TARGET_OS@
erikj@37402 84 HOTSPOT_TARGET_OS_TYPE := @HOTSPOT_TARGET_OS_TYPE@
erikj@37402 85
erikj@37402 86 HOTSPOT_TARGET_CPU := @HOTSPOT_TARGET_CPU@
erikj@37402 87 HOTSPOT_TARGET_CPU_ARCH := @HOTSPOT_TARGET_CPU_ARCH@
erikj@37402 88 HOTSPOT_TARGET_CPU_DEFINE := @HOTSPOT_TARGET_CPU_DEFINE@
erikj@37402 89
erikj@37972 90 OPENJDK_TARGET_BUNDLE_PLATFORM:=@OPENJDK_TARGET_BUNDLE_PLATFORM@
ihse@43383 91 JDK_ARCH_ABI_PROP_NAME := @JDK_ARCH_ABI_PROP_NAME@
erikj@37972 92
ohair@12258 93 # We are building on this build system.
erikj@13132 94 # When not cross-compiling, it is the same as the target.
erikj@13132 95 OPENJDK_BUILD_OS:=@OPENJDK_BUILD_OS@
ihse@27586 96 OPENJDK_BUILD_OS_TYPE:=@OPENJDK_BUILD_OS_TYPE@
erikj@25882 97 OPENJDK_BUILD_OS_ENV:=@OPENJDK_BUILD_OS_ENV@
erikj@13132 98
erikj@13132 99 OPENJDK_BUILD_CPU:=@OPENJDK_BUILD_CPU@
erikj@13132 100 OPENJDK_BUILD_CPU_ARCH:=@OPENJDK_BUILD_CPU_ARCH@
erikj@13132 101 OPENJDK_BUILD_CPU_BITS:=@OPENJDK_BUILD_CPU_BITS@
erikj@13132 102 OPENJDK_BUILD_CPU_ENDIAN:=@OPENJDK_BUILD_CPU_ENDIAN@
ohair@12258 103
alanb@44985 104 # Target platform value in ModuleTarget class file attribute.
alanb@44985 105 OPENJDK_MODULE_TARGET_PLATFORM:=@OPENJDK_MODULE_TARGET_PLATFORM@
alanb@44985 106
alanb@44985 107 # OS_* properties in release file
alanb@44985 108 RELEASE_FILE_OS_NAME:=@RELEASE_FILE_OS_NAME@
alanb@44985 109 RELEASE_FILE_OS_ARCH:=@RELEASE_FILE_OS_ARCH@
erikj@12801 110
ihse@32921 111 LIBM:=@LIBM@
erikj@12801 112 LIBDL:=@LIBDL@
ohair@12258 113
ohair@12258 114 # colon or semicolon
ohair@12258 115 PATH_SEP:=@PATH_SEP@
ohair@12258 116
erikj@28809 117 # Save the original path before replacing it with the Visual Studio tools
erikj@28809 118 ORIGINAL_PATH:=@ORIGINAL_PATH@
ohair@14111 119 ifeq ($(OPENJDK_TARGET_OS), windows)
erikj@28809 120 # On Windows, the Visual Studio toolchain needs the PATH to be adjusted
erikj@28809 121 # to include Visual Studio tools (this needs to be in cygwin/msys style).
ohair@14111 122 export PATH:=@VS_PATH@
ohair@14111 123 endif
ohair@12258 124
erikj@23428 125 SYSROOT_CFLAGS := @SYSROOT_CFLAGS@
erikj@23428 126 SYSROOT_LDFLAGS := @SYSROOT_LDFLAGS@
ohair@12258 127
ihse@47274 128 # The top-level directory of the source repository
ihse@22722 129 TOPDIR:=@TOPDIR@
erikj@29663 130 # These two versions of TOPDIR are used in string comparisons
erikj@29663 131 ORIGINAL_TOPDIR:=@ORIGINAL_TOPDIR@
erikj@29663 132 CANONICAL_TOPDIR:=@CANONICAL_TOPDIR@
ihse@22722 133
alanb@36506 134
alanb@36506 135 IMPORT_MODULES_CLASSES:=@IMPORT_MODULES_CLASSES@
alanb@36506 136 IMPORT_MODULES_CMDS:=@IMPORT_MODULES_CMDS@
alanb@36506 137 IMPORT_MODULES_LIBS:=@IMPORT_MODULES_LIBS@
alanb@36506 138 IMPORT_MODULES_CONF:=@IMPORT_MODULES_CONF@
mchung@42505 139 IMPORT_MODULES_LEGAL:=@IMPORT_MODULES_LEGAL@
mchung@42505 140 IMPORT_MODULES_MAN:=@IMPORT_MODULES_MAN@
alanb@36506 141 IMPORT_MODULES_SRC:=@IMPORT_MODULES_SRC@
alanb@36506 142 IMPORT_MODULES_MAKE:=@IMPORT_MODULES_MAKE@
alanb@36506 143
ohair@12258 144 COPYRIGHT_YEAR:=@COPYRIGHT_YEAR@
ohair@12258 145
ihse@33926 146 # New (JEP-223) version information
ihse@33926 147
ihse@33926 148 ## Building blocks of the version string
ihse@33926 149 # First three version numbers, with well-specified meanings (numerical)
ihse@33926 150 VERSION_MAJOR := @VERSION_MAJOR@
ihse@33926 151 VERSION_MINOR := @VERSION_MINOR@
ihse@33926 152 VERSION_SECURITY := @VERSION_SECURITY@
ihse@33926 153 # Optional fourth element for use by OpenJDK consumers (numerical)
ihse@33926 154 VERSION_PATCH := @VERSION_PATCH@
ihse@33926 155 # The pre-release identifier (string)
ihse@33926 156 VERSION_PRE := @VERSION_PRE@
ihse@33926 157 # The build number (numerical)
ihse@33926 158 VERSION_BUILD := @VERSION_BUILD@
ihse@33926 159 # Optional build information (string)
ihse@33926 160 VERSION_OPT := @VERSION_OPT@
ihse@33926 161
ihse@33926 162 ## Composite variables
ihse@33926 163 # The version number as a dot separated sequence of numbers, e.g. 9.0.1
ihse@33926 164 VERSION_NUMBER := @VERSION_NUMBER@
ihse@33926 165 # VERSION_NUMBER but always with exactly 4 positions, with 0 for empty positions.
ihse@33926 166 VERSION_NUMBER_FOUR_POSITIONS := @VERSION_NUMBER_FOUR_POSITIONS@
ihse@33926 167 # The complete version string, with additional build information
ihse@33926 168 VERSION_STRING := @VERSION_STRING@
ihse@33926 169 # The short version string, without trailing zeroes and just PRE, if present.
ihse@33926 170 VERSION_SHORT := @VERSION_SHORT@
ihse@41458 171 # The Java specification version. It usually equals the major version number.
simonis@39819 172 VERSION_SPECIFICATION := @VERSION_MAJOR@
erikj@33929 173 # A GA version is defined by the PRE string being empty. Rather than testing for
erikj@33929 174 # that, this variable defines it with true/false.
erikj@33929 175 VERSION_IS_GA := @VERSION_IS_GA@
ihse@33926 176
ihse@33926 177 # Convenience CFLAGS settings for passing version information into native programs.
ihse@33926 178 VERSION_CFLAGS := \
ihse@33926 179 -DVERSION_MAJOR=$(VERSION_MAJOR) \
ihse@33926 180 -DVERSION_MINOR=$(VERSION_MINOR) \
ihse@33926 181 -DVERSION_SECURITY=$(VERSION_SECURITY) \
ihse@33926 182 -DVERSION_PATCH=$(VERSION_PATCH) \
ihse@33926 183 -DVERSION_PRE='"$(VERSION_PRE)"' \
ihse@33926 184 -DVERSION_BUILD=$(VERSION_BUILD) \
ihse@33926 185 -DVERSION_OPT='"$(VERSION_OPT)"' \
ihse@33926 186 -DVERSION_NUMBER='"$(VERSION_NUMBER)"' \
ihse@33926 187 -DVERSION_STRING='"$(VERSION_STRING)"' \
ihse@33926 188 -DVERSION_SHORT='"$(VERSION_SHORT)"' \
ihse@33926 189 -DVERSION_SPECIFICATION='"$(VERSION_SPECIFICATION)"' \
ihse@33926 190 #
ihse@33926 191
ihse@33926 192 # Platform naming variables
ohair@12258 193 LAUNCHER_NAME:=@LAUNCHER_NAME@
ohair@12258 194 PRODUCT_NAME:=@PRODUCT_NAME@
ohair@12258 195 PRODUCT_SUFFIX:=@PRODUCT_SUFFIX@
ohair@12258 196 JDK_RC_PLATFORM_NAME:=@JDK_RC_PLATFORM_NAME@
ohair@12258 197 COMPANY_NAME:=@COMPANY_NAME@
erikj@37402 198 HOTSPOT_VM_DISTRO:=@HOTSPOT_VM_DISTRO@
ohair@14111 199 MACOSX_BUNDLE_NAME_BASE=@MACOSX_BUNDLE_NAME_BASE@
ohair@14111 200 MACOSX_BUNDLE_ID_BASE=@MACOSX_BUNDLE_ID_BASE@
ihse@35444 201 USERNAME:=@USERNAME@
ohair@12258 202
ihse@33926 203 # Different naming strings generated from the above information.
erikj@15056 204 RUNTIME_NAME=$(PRODUCT_NAME) $(PRODUCT_SUFFIX)
ohair@12258 205
ohair@12258 206 # How to compile the code: release, fastdebug or slowdebug
ohair@12258 207 DEBUG_LEVEL:=@DEBUG_LEVEL@
erikj@37402 208 HOTSPOT_DEBUG_LEVEL:=@HOTSPOT_DEBUG_LEVEL@
ohair@12258 209
ohair@12258 210 # This is the JDK variant to build.
ohair@12258 211 # The JDK variant is a name for a specific set of modules to be compiled for the JDK.
ohair@12258 212 JDK_VARIANT:=@JDK_VARIANT@
ohair@12258 213
erikj@37402 214 # Which JVM variants to build (space-separated list)
erikj@37402 215 JVM_VARIANTS := @JVM_VARIANTS@
erikj@42510 216 JVM_VARIANT_MAIN := @JVM_VARIANT_MAIN@
erikj@37402 217
erikj@37402 218 # Lists of features per variant. Only relevant for the variants listed in
erikj@37402 219 # JVM_VARIANTS.
erikj@37402 220 JVM_FEATURES_server := @JVM_FEATURES_server@
erikj@37402 221 JVM_FEATURES_client := @JVM_FEATURES_client@
erikj@37402 222 JVM_FEATURES_core := @JVM_FEATURES_core@
erikj@37402 223 JVM_FEATURES_minimal := @JVM_FEATURES_minimal@
erikj@37402 224 JVM_FEATURES_zero := @JVM_FEATURES_zero@
erikj@37402 225 JVM_FEATURES_zeroshark := @JVM_FEATURES_zeroshark@
erikj@37402 226 JVM_FEATURES_custom := @JVM_FEATURES_custom@
erikj@37402 227
erikj@37402 228 # Used for make-time verifications
erikj@37402 229 VALID_JVM_FEATURES := @VALID_JVM_FEATURES@
erikj@37402 230 VALID_JVM_VARIANTS := @VALID_JVM_VARIANTS@
erikj@37402 231
iignatyev@37967 232 # Control wether Hotspot builds gtest tests
erikj@37978 233 BUILD_GTEST := @BUILD_GTEST@
iignatyev@37967 234
erikj@37402 235 # Control use of precompiled header in hotspot libjvm build
erikj@37402 236 USE_PRECOMPILED_HEADER := @USE_PRECOMPILED_HEADER@
erikj@37402 237
erikj@41046 238 # Only build headless support or not
erikj@41046 239 ENABLE_HEADLESS_ONLY := @ENABLE_HEADLESS_ONLY@
ohair@12258 240
ihse@44727 241 ENABLE_FULL_DOCS := @ENABLE_FULL_DOCS@
ihse@44727 242
ohair@13697 243 # JDK_OUTPUTDIR specifies where a working jvm is built.
ohair@12258 244 # You can run $(JDK_OUTPUTDIR)/bin/java
erikj@13132 245
ihse@47275 246 OUTPUTDIR := @OUTPUTDIR@
erikj@16578 247 # Colon left out to be able to override IMAGES_OUTPUTDIR for bootcycle-images
ihse@47275 248 SUPPORT_OUTPUTDIR=$(OUTPUTDIR)/support
ihse@47275 249 BUILDTOOLS_OUTPUTDIR=$(OUTPUTDIR)/buildtools
chegar@27560 250
ihse@47275 251 HOTSPOT_OUTPUTDIR=$(OUTPUTDIR)/hotspot
ihse@47275 252 JDK_OUTPUTDIR=$(OUTPUTDIR)/jdk
ihse@47275 253 IMAGES_OUTPUTDIR=$(OUTPUTDIR)/images
ihse@47275 254 BUNDLES_OUTPUTDIR=$(OUTPUTDIR)/bundles
ihse@47275 255 TESTMAKE_OUTPUTDIR=$(OUTPUTDIR)/test-make
ihse@47275 256 MAKESUPPORT_OUTPUTDIR=$(OUTPUTDIR)/make-support
ihse@41652 257
erikj@29790 258 # This does not get overridden in a bootcycle build
erikj@29790 259 CONFIGURESUPPORT_OUTPUTDIR:=@CONFIGURESUPPORT_OUTPUTDIR@
ihse@47275 260 BUILDJDK_OUTPUTDIR=$(OUTPUTDIR)/buildjdk
erikj@13132 261
erikj@37035 262 BUILD_FAILURE_HANDLER := @BUILD_FAILURE_HANDLER@
erikj@37035 263
erikj@38546 264 ENABLE_GENERATE_CLASSLIST := @ENABLE_GENERATE_CLASSLIST@
erikj@38546 265
chegar@27560 266 # The boot jdk to use. This is overridden in bootcycle-spec.gmk. Make sure to keep
chegar@27560 267 # it in sync.
ohair@12258 268 BOOT_JDK:=@BOOT_JDK@
ohair@12258 269
alanb@36506 270 BUILD_JDK:=@BUILD_JDK@
alanb@36506 271 CREATE_BUILDJDK:=@CREATE_BUILDJDK@
redestad@37770 272 EXTERNAL_BUILDJDK:=@EXTERNAL_BUILDJDK@
alanb@36506 273
ohair@12258 274 # When compiling Java source to be run by the boot jdk
ohair@12258 275 # use these extra flags, eg -source 6 -target 6
ohair@12258 276 BOOT_JDK_SOURCETARGET:=@BOOT_JDK_SOURCETARGET@
ohair@12258 277
ohair@12258 278 # Information about the build system
ohair@12258 279 NUM_CORES:=@NUM_CORES@
mduigou@23985 280 MEMORY_SIZE:=@MEMORY_SIZE@
ohair@13697 281 # Enable sjavac support = use a javac server,
ohair@13697 282 # multi core javac compilation and dependency tracking.
ohair@13697 283 ENABLE_SJAVAC:=@ENABLE_SJAVAC@
erikj@33055 284 ENABLE_JAVAC_SERVER:=@ENABLE_JAVAC_SERVER@
ohair@13697 285 # Store sjavac server synchronization files here, and
ohair@13697 286 # the sjavac server log files.
erikj@29790 287 SJAVAC_SERVER_DIR=$(MAKESUPPORT_OUTPUTDIR)/javacservers
ohair@12258 288
erikj@15790 289 # Number of parallel jobs to use for compilation
erikj@15790 290 JOBS?=@JOBS@
ehelin@34594 291 TEST_JOBS?=@TEST_JOBS@
erikj@15790 292
erikj@34491 293 # Default make target
erikj@34491 294 DEFAULT_MAKE_TARGET:=@DEFAULT_MAKE_TARGET@
erikj@34491 295
ihse@20654 296 FREETYPE_LIBS:=@FREETYPE_LIBS@
ihse@20654 297 FREETYPE_CFLAGS:=@FREETYPE_CFLAGS@
ihse@20654 298 FREETYPE_BUNDLE_LIB_PATH=@FREETYPE_BUNDLE_LIB_PATH@
erikj@45510 299 FREETYPE_LICENSE=@FREETYPE_LICENSE@
ohair@12258 300 CUPS_CFLAGS:=@CUPS_CFLAGS@
erikj@18018 301 ALSA_LIBS:=@ALSA_LIBS@
erikj@18018 302 ALSA_CFLAGS:=@ALSA_CFLAGS@
ihse@34596 303 LIBFFI_LIBS:=@LIBFFI_LIBS@
ihse@34596 304 LIBFFI_CFLAGS:=@LIBFFI_CFLAGS@
erikj@42425 305 ENABLE_LIBFFI_BUNDLING:=@ENABLE_LIBFFI_BUNDLING@
erikj@42425 306 LIBFFI_LIB_FILE:=@LIBFFI_LIB_FILE@
ohair@12258 307
ohair@12258 308 PACKAGE_PATH=@PACKAGE_PATH@
ohair@12258 309
erikj@12801 310 # Source file for cacerts
erikj@12801 311 CACERTS_FILE=@CACERTS_FILE@
ohair@12258 312
ihse@14112 313 # Enable unlimited crypto policy
ihse@14112 314 UNLIMITED_CRYPTO=@UNLIMITED_CRYPTO@
ihse@14112 315
erikj@29305 316 GCOV_ENABLED=@GCOV_ENABLED@
erikj@29305 317
ihse@20363 318 # Necessary additional compiler flags to compile X11
ohair@12258 319 X_CFLAGS:=@X_CFLAGS@
ohair@12258 320 X_LIBS:=@X_LIBS@
ohair@12258 321
phh@45875 322 # The lowest required version of macosx
erikj@15786 323 MACOSX_VERSION_MIN=@MACOSX_VERSION_MIN@
phh@45875 324 # The highest allowed version of macosx
phh@45875 325 MACOSX_VERSION_MAX=@MACOSX_VERSION_MAX@
erikj@15581 326
ihse@22721 327 # Toolchain type: gcc, clang, solstudio, lxc, microsoft...
ihse@22721 328 TOOLCHAIN_TYPE:=@TOOLCHAIN_TYPE@
ihse@34596 329 TOOLCHAIN_VERSION := @TOOLCHAIN_VERSION@
erikj@37402 330 CC_VERSION_NUMBER := @CC_VERSION_NUMBER@
erikj@37402 331 CXX_VERSION_NUMBER := @CXX_VERSION_NUMBER@
erikj@37402 332
erikj@37402 333 # Legacy support
erikj@37402 334 HOTSPOT_TOOLCHAIN_TYPE := @HOTSPOT_TOOLCHAIN_TYPE@
ohair@12258 335
simonis@22466 336 # Option used to tell the compiler whether to create 32- or 64-bit executables
simonis@22466 337 COMPILER_TARGET_BITS_FLAG:=@COMPILER_TARGET_BITS_FLAG@
omajid@16984 338 COMPILER_SUPPORTS_TARGET_BITS_FLAG=@COMPILER_SUPPORTS_TARGET_BITS_FLAG@
omajid@16984 339
ihse@34596 340 # Option used to pass a command file to the compiler
ihse@34596 341 COMPILER_COMMAND_FILE_FLAG:=@COMPILER_COMMAND_FILE_FLAG@
ihse@34596 342
simonis@36051 343 # Option for specifying a file which saves the binder commands
simonis@36051 344 # produced by the link step (for debugging, currently AIX only)
simonis@36051 345 COMPILER_BINDCMD_FILE_FLAG:=@COMPILER_BINDCMD_FILE_FLAG@
simonis@36051 346
ohair@12258 347 CC_OUT_OPTION:=@CC_OUT_OPTION@
ohair@12258 348 EXE_OUT_OPTION:=@EXE_OUT_OPTION@
ohair@12258 349 LD_OUT_OPTION:=@LD_OUT_OPTION@
ohair@12258 350 AR_OUT_OPTION:=@AR_OUT_OPTION@
ohair@12258 351
ohair@12258 352 # Flags used for overriding the default opt setting for a C/C++ source file.
erikj@37402 353 C_O_FLAG_HIGHEST_JVM:=@C_O_FLAG_HIGHEST_JVM@
erikj@12801 354 C_O_FLAG_HIGHEST:=@C_O_FLAG_HIGHEST@
ohair@12258 355 C_O_FLAG_HI:=@C_O_FLAG_HI@
ohair@12258 356 C_O_FLAG_NORM:=@C_O_FLAG_NORM@
ohair@12258 357 C_O_FLAG_NONE:=@C_O_FLAG_NONE@
erikj@37402 358 C_O_FLAG_SIZE:=@C_O_FLAG_SIZE@
erikj@37402 359 CXX_O_FLAG_HIGHEST_JVM:=@CXX_O_FLAG_HIGHEST_JVM@
erikj@12801 360 CXX_O_FLAG_HIGHEST:=@CXX_O_FLAG_HIGHEST@
ohair@12258 361 CXX_O_FLAG_HI:=@CXX_O_FLAG_HI@
ohair@12258 362 CXX_O_FLAG_NORM:=@CXX_O_FLAG_NORM@
ohair@12258 363 CXX_O_FLAG_NONE:=@CXX_O_FLAG_NONE@
erikj@37402 364 CXX_O_FLAG_SIZE:=@CXX_O_FLAG_SIZE@
ohair@12258 365
erikj@12801 366 C_FLAG_DEPS:=@C_FLAG_DEPS@
erikj@12801 367 CXX_FLAG_DEPS:=@CXX_FLAG_DEPS@
erikj@12801 368
ihse@29304 369 DISABLE_WARNING_PREFIX := @DISABLE_WARNING_PREFIX@
sla@23423 370 CFLAGS_WARNINGS_ARE_ERRORS:=@CFLAGS_WARNINGS_ARE_ERRORS@
sla@23423 371
ihse@30415 372 # A global flag (true or false) determining if native warnings are considered errors.
ihse@30415 373 WARNINGS_AS_ERRORS := @WARNINGS_AS_ERRORS@
ihse@30415 374
erikj@28812 375 CFLAGS_CCACHE:=@CFLAGS_CCACHE@
andrew@36535 376 CXXSTD_CXXFLAG=@CXXSTD_CXXFLAG@
erikj@28812 377
ohair@12258 378 # Tools that potentially need to be cross compilation aware.
erikj@34103 379 CC:=@FIXPATH@ @CCACHE@ @ICECC@ @CC@
ohair@12258 380
ohair@12258 381 # CFLAGS used to compile the jdk native libraries (C-code)
ohair@12258 382 CFLAGS_JDKLIB:=@CFLAGS_JDKLIB@
ohair@12258 383 CXXFLAGS_JDKLIB:=@CXXFLAGS_JDKLIB@
ohair@12258 384
ohair@12258 385 # CFLAGS used to compile the jdk native launchers (C-code)
ohair@12258 386 CFLAGS_JDKEXE:=@CFLAGS_JDKEXE@
ohair@12258 387 CXXFLAGS_JDKEXE:=@CXXFLAGS_JDKEXE@
ohair@12258 388
ihse@36050 389 LDFLAGS_HASH_STYLE := @LDFLAGS_HASH_STYLE@
ihse@36050 390
erikj@37402 391 JVM_CFLAGS := @JVM_CFLAGS@
erikj@37402 392 JVM_CFLAGS_SYMBOLS := @JVM_CFLAGS_SYMBOLS@
erikj@37402 393 JVM_LDFLAGS := @JVM_LDFLAGS@
erikj@37402 394 JVM_ASFLAGS := @JVM_ASFLAGS@
erikj@37402 395 JVM_LIBS := @JVM_LIBS@
erikj@37402 396 JVM_RCFLAGS := @JVM_RCFLAGS@
erikj@37402 397
erikj@37402 398 # Flags for zeroshark
erikj@37402 399 LLVM_CFLAGS := @LLVM_CFLAGS@
erikj@37402 400 LLVM_LIBS := @LLVM_LIBS@
erikj@37402 401 LLVM_LDFLAGS := @LLVM_LDFLAGS@
erikj@37402 402
erikj@37402 403 # These flags might contain variables set by a custom extension that is included later.
erikj@37402 404 EXTRA_CFLAGS = @EXTRA_CFLAGS@
erikj@37402 405 EXTRA_CXXFLAGS = @EXTRA_CXXFLAGS@
erikj@37402 406 EXTRA_LDFLAGS = @EXTRA_LDFLAGS@
erikj@37402 407
erikj@34103 408 CXX:=@FIXPATH@ @CCACHE@ @ICECC@ @CXX@
ohair@12258 409
ohair@14111 410 CPP:=@FIXPATH@ @CPP@
ohair@12258 411
ihse@27586 412 # The linker can be gcc or ld on unix systems, or link.exe on windows systems.
ohair@14111 413 LD:=@FIXPATH@ @LD@
ohair@12258 414
ddehaven@25034 415 # Xcode SDK path
ddehaven@25034 416 SDKROOT:=@SDKROOT@
ddehaven@25034 417
simonis@22460 418 # The linker on older SuSE distros (e.g. on SLES 10) complains with:
simonis@22460 419 # "Invalid version tag `SUNWprivate_1.1'. Only anonymous version tag is allowed in executable."
simonis@22460 420 # if feeded with a version script which contains named tags.
simonis@22460 421 USING_BROKEN_SUSE_LD:=@USING_BROKEN_SUSE_LD@
simonis@22460 422
ohair@12258 423 # LDFLAGS used to link the jdk native libraries (C-code)
ohair@12258 424 LDFLAGS_JDKLIB:=@LDFLAGS_JDKLIB@
ihse@33394 425 JDKLIB_LIBS:=@JDKLIB_LIBS@
ohair@12258 426
ohair@12258 427 # LDFLAGS used to link the jdk native launchers (C-code)
ohair@12258 428 LDFLAGS_JDKEXE:=@LDFLAGS_JDKEXE@
ihse@33394 429 JDKEXE_LIBS:=@JDKEXE_LIBS@
ohair@12258 430
ohair@13697 431 # LDFLAGS specific to C++ linking.
ohair@13697 432 LDFLAGS_CXX_JDK:=@LDFLAGS_CXX_JDK@
ohair@13697 433
ohair@12258 434 # Sometimes a different linker is needed for c++ libs
ohair@14111 435 LDCXX:=@FIXPATH@ @LDCXX@
ohair@12258 436 # The flags for linking libstdc++ linker.
ohair@12258 437 LIBCXX:=@LIBCXX@
ohair@12258 438
erikj@29305 439 # Compiler and linker flags used when building native tests
erikj@29305 440 CFLAGS_TESTLIB:=@CFLAGS_TESTLIB@
erikj@29305 441 CXXFLAGS_TESTLIB:=@CXXFLAGS_TESTLIB@
erikj@29305 442 CFLAGS_TESTEXE:=@CFLAGS_TESTEXE@
erikj@29305 443 CXXFLAGS_TESTEXE:=@CXXFLAGS_TESTEXE@
erikj@29305 444 LDFLAGS_TESTLIB:=@LDFLAGS_TESTLIB@
erikj@29305 445 LDFLAGS_TESTEXE:=@LDFLAGS_TESTEXE@
erikj@29305 446
ohair@13697 447 # BUILD_CC/BUILD_LD is a compiler/linker that generates code that is runnable on the
ohair@13697 448 # build platform.
erikj@34103 449 BUILD_CC:=@FIXPATH@ @BUILD_ICECC@ @BUILD_CC@
erikj@34103 450 BUILD_CXX:=@FIXPATH@ @BUILD_ICECC@ @BUILD_CXX@
ohair@14111 451 BUILD_LD:=@FIXPATH@ @BUILD_LD@
ihse@34596 452 BUILD_LDCXX:=@FIXPATH@ @BUILD_LDCXX@
erikj@34102 453 BUILD_AS:=@FIXPATH@ @BUILD_AS@
erikj@34102 454 BUILD_AR:=@FIXPATH@ @BUILD_AR@
erikj@34102 455 BUILD_NM:=@FIXPATH@ @BUILD_NM@
alanb@36506 456 BUILD_OBJCOPY:=@BUILD_OBJCOPY@
alanb@36506 457 BUILD_STRIP:=@BUILD_STRIP@
erikj@32810 458 BUILD_SYSROOT_CFLAGS:=@BUILD_SYSROOT_CFLAGS@
erikj@32810 459 BUILD_SYSROOT_LDFLAGS:=@BUILD_SYSROOT_LDFLAGS@
erikj@13132 460
ohair@14111 461 AS:=@FIXPATH@ @AS@
ohair@12258 462
ihse@27586 463 # AR is used to create a static library (is ar in unix, lib.exe in windows)
ohair@14111 464 AR:=@FIXPATH@ @AR@
ohair@12258 465 ARFLAGS:=@ARFLAGS@
ohair@12258 466
ohair@13697 467 NM:=@NM@
erikj@16582 468 GNM:=@GNM@
ohair@13697 469 STRIP:=@STRIP@
ohair@13697 470
ohair@13697 471 LIPO:=@LIPO@
ohair@12258 472
ihse@20363 473 # Options to linker to specify a mapfile.
ohair@12258 474 # (Note absence of := assignment, because we do not want to evaluate the macro body here)
ohair@12258 475 SET_SHARED_LIBRARY_MAPFILE=@SET_SHARED_LIBRARY_MAPFILE@
ohair@12258 476
erikj@12801 477 # Options for C/CXX compiler to be used if linking is performed
erikj@12801 478 # using reorder file
erikj@12801 479 C_FLAG_REORDER:=@C_FLAG_REORDER@
erikj@12801 480 CXX_FLAG_REORDER:=@CXX_FLAG_REORDER@
erikj@12801 481
erikj@13132 482 #
erikj@13132 483 # Options for generating debug symbols
ihse@35032 484 COMPILE_WITH_DEBUG_SYMBOLS := @COMPILE_WITH_DEBUG_SYMBOLS@
ihse@35032 485 COPY_DEBUG_SYMBOLS := @COPY_DEBUG_SYMBOLS@
ihse@35032 486 ZIP_EXTERNAL_DEBUG_SYMBOLS := @ZIP_EXTERNAL_DEBUG_SYMBOLS@
ihse@35032 487
erikj@13132 488 CFLAGS_DEBUG_SYMBOLS:=@CFLAGS_DEBUG_SYMBOLS@
erikj@13132 489 CXXFLAGS_DEBUG_SYMBOLS:=@CXXFLAGS_DEBUG_SYMBOLS@
erikj@13132 490
erikj@13132 491 #
erikj@13132 492 # Compress (or not) jars
erikj@13132 493 COMPRESS_JARS=@COMPRESS_JARS@
erikj@13132 494
ohair@12258 495 # Options to linker to specify the library name.
ohair@12258 496 # (Note absence of := assignment, because we do not want to evaluate the macro body here)
ohair@12258 497 SET_SHARED_LIBRARY_NAME=@SET_SHARED_LIBRARY_NAME@
ohair@12258 498
ihse@34596 499 SHARED_LIBRARY_FLAGS=@SHARED_LIBRARY_FLAGS@
ihse@34596 500
ohair@12258 501 # Set origin using the linker, ie use the relative path to the dependent library to find the dependees.
ohair@12258 502 # (Note absence of := assignment, because we do not want to evaluate the macro body here)
ohair@12258 503 SET_SHARED_LIBRARY_ORIGIN=@SET_SHARED_LIBRARY_ORIGIN@
ohair@13697 504 SET_EXECUTABLE_ORIGIN=@SET_EXECUTABLE_ORIGIN@
ohair@12258 505
ohair@12258 506 # Different OS:es have different ways of naming shared libraries.
ohair@12258 507 # The SHARED_LIBRARY macro takes "verify" as and argument and returns:
ohair@12258 508 # "libverify.so" or "libverify.dylib" or "verify.dll" depending on platform.
ohair@12258 509 # (Note absence of := assignment, because we do not want to evaluate the macro body here)
ohair@12258 510 SHARED_LIBRARY=@SHARED_LIBRARY@
ohair@12258 511 STATIC_LIBRARY=@STATIC_LIBRARY@
ohair@12258 512 LIBRARY_PREFIX:=@LIBRARY_PREFIX@
ohair@12258 513 SHARED_LIBRARY_SUFFIX:=@SHARED_LIBRARY_SUFFIX@
ohair@12258 514 STATIC_LIBRARY_SUFFIX:=@STATIC_LIBRARY_SUFFIX@
ohair@12258 515 EXE_SUFFIX:=@EXE_SUFFIX@
ohair@12258 516 OBJ_SUFFIX:=@OBJ_SUFFIX@
bobv@33562 517 STATIC_BUILD:=@STATIC_BUILD@
ohair@12258 518
erikj@32811 519 STRIPFLAGS:=@STRIPFLAGS@
erikj@12801 520
mduigou@22728 521 JAVA_FLAGS:=@JAVA_FLAGS@
erikj@23171 522 JAVA_FLAGS_BIG:=@JAVA_FLAGS_BIG@
erikj@23171 523 JAVA_FLAGS_SMALL:=@JAVA_FLAGS_SMALL@
erikj@34101 524 JAVA_FLAGS_JAVAC:=@JAVA_FLAGS_JAVAC@
chegar@25854 525 JAVA_TOOL_FLAGS_SMALL:=@JAVA_TOOL_FLAGS_SMALL@
erikj@26907 526 SJAVAC_SERVER_JAVA_FLAGS:=@SJAVAC_SERVER_JAVA_FLAGS@
ohair@12258 527
ihse@27595 528 # The *_CMD variables are defined separately to be easily overridden in bootcycle-spec.gmk
erikj@26907 529 # for bootcycle-images build. Make sure to keep them in sync. Do not use the *_CMD
erikj@26907 530 # versions of the variables directly.
erikj@26907 531 JAVA_CMD:=@JAVA@
erikj@26907 532 JAVAC_CMD:=@JAVAC@
erikj@26907 533 JAVAH_CMD:=@JAVAH@
erikj@26907 534 JAR_CMD:=@JAR@
erikj@37771 535 JLINK_CMD := @JLINK@
erikj@37771 536 JMOD_CMD := @JMOD@
erikj@26907 537 JARSIGNER_CMD:=@JARSIGNER@
erikj@26907 538 SJAVAC_SERVER_JAVA_CMD:=@SJAVAC_SERVER_JAVA@
erikj@26907 539 # These variables are meant to be used. They are defined with = instead of := to make
erikj@26907 540 # it possible to override only the *_CMD variables.
erikj@26907 541 JAVA=@FIXPATH@ $(JAVA_CMD) $(JAVA_FLAGS_BIG) $(JAVA_FLAGS)
erikj@26907 542 JAVA_SMALL=@FIXPATH@ $(JAVA_CMD) $(JAVA_FLAGS_SMALL) $(JAVA_FLAGS)
erikj@34101 543 JAVA_JAVAC=@FIXPATH@ $(JAVA_CMD) $(JAVA_FLAGS_JAVAC) $(JAVA_FLAGS)
erikj@26907 544 JAVAC=@FIXPATH@ $(JAVAC_CMD)
erikj@26907 545 JAVAH=@FIXPATH@ $(JAVAH_CMD)
erikj@26907 546 JAR=@FIXPATH@ $(JAR_CMD)
erikj@37771 547 JLINK = @FIXPATH@ $(JLINK_CMD) $(JAVA_TOOL_FLAGS_SMALL)
erikj@37771 548 JMOD = @FIXPATH@ $(JMOD_CMD) $(JAVA_TOOL_FLAGS_SMALL)
erikj@26907 549 JARSIGNER=@FIXPATH@ $(JARSIGNER_CMD)
erikj@26907 550 # A specific java binary with specific options can be used to run
erikj@26907 551 # the long running background sjavac servers and other long running tasks.
erikj@34101 552 SJAVAC_SERVER_JAVA=@FIXPATH@ @FIXPATH_DETACH_FLAG@ $(SJAVAC_SERVER_JAVA_CMD) \
erikj@34101 553 $(SJAVAC_SERVER_JAVA_FLAGS)
ohair@12258 554
ohair@13697 555 # Hotspot sets this variable before reading the SPEC when compiling sa-jdi.jar. Avoid
ohair@13697 556 # overriding that value by using ?=.
ohair@13697 557 JAVAC_FLAGS?=@JAVAC_FLAGS@
ohair@12258 558
alanb@36506 559
erikj@39203 560 BUILD_JAVA_FLAGS := @BOOTCYCLE_JVM_ARGS_BIG@
alanb@36506 561 BUILD_JAVA=@FIXPATH@ $(BUILD_JDK)/bin/java $(BUILD_JAVA_FLAGS)
alanb@36506 562
alanb@36506 563 # Use ?= as this can be overridden from bootcycle-spec.gmk
alanb@36506 564 BOOT_JDK_MODULAR ?= @BOOT_JDK_MODULAR@
alanb@36506 565
erikj@44077 566 INTERIM_LANGTOOLS_OVERRIDE_MODULES := java.compiler jdk.compiler \
erikj@44077 567 jdk.jdeps jdk.javadoc
erikj@44077 568 INTERIM_RMIC_OVERRIDE_MODULES := jdk.rmic
alanb@36506 569 ifeq ($(BOOT_JDK_MODULAR), true)
erikj@44077 570 INTERIM_LANGTOOLS_OVERRIDE_MODULES_ARGS = $(foreach m, \
erikj@44077 571 $(INTERIM_LANGTOOLS_OVERRIDE_MODULES), \
mchung@40241 572 --patch-module $m=$(BUILDTOOLS_OUTPUTDIR)/override_modules/$m)
erikj@44077 573 INTERIM_RMIC_OVERRIDE_MODULES_ARGS = $(foreach m, \
erikj@44077 574 $(INTERIM_LANGTOOLS_OVERRIDE_MODULES) \
erikj@44077 575 $(INTERIM_RMIC_OVERRIDE_MODULES), \
erikj@44077 576 --patch-module $m=$(BUILDTOOLS_OUTPUTDIR)/override_modules/$m)
erikj@44077 577 INTERIM_LANGTOOLS_ARGS = $(INTERIM_LANGTOOLS_OVERRIDE_MODULES_ARGS)
alanb@36506 578 JAVAC_MAIN_CLASS = -m jdk.compiler/com.sun.tools.javac.Main
alanb@36506 579 JAVADOC_MAIN_CLASS = -m jdk.javadoc/jdk.javadoc.internal.tool.Main
alanb@36506 580 else
erikj@44077 581 INTERIM_LANGTOOLS_OVERRIDE_MODULES_ARGS = \
alanb@36506 582 -Xbootclasspath/p:$(call PathList, \
alanb@36506 583 $(addprefix $(BUILDTOOLS_OUTPUTDIR)/override_modules/, \
erikj@44077 584 $(INTERIM_LANGTOOLS_OVERRIDE_MODULES)))
erikj@44077 585 INTERIM_RMIC_OVERRIDE_MODULES_ARGS = \
erikj@44077 586 -Xbootclasspath/p:$(call PathList, \
erikj@44077 587 $(addprefix $(BUILDTOOLS_OUTPUTDIR)/override_modules/, \
erikj@44077 588 $(INTERIM_LANGTOOLS_OVERRIDE_MODULES) \
erikj@44077 589 $(INTERIM_RMIC_OVERRIDE_MODULES)))
erikj@44077 590 INTERIM_LANGTOOLS_ARGS = $(INTERIM_LANGTOOLS_OVERRIDE_MODULES_ARGS) \
alanb@36506 591 -cp $(BUILDTOOLS_OUTPUTDIR)/override_modules/jdk.compiler
alanb@36506 592 JAVAC_MAIN_CLASS = com.sun.tools.javac.Main
alanb@36506 593 JAVADOC_MAIN_CLASS = jdk.javadoc.internal.tool.Main
alanb@36506 594 endif
ohrstrom@15393 595 # You run the new javac using the boot jdk with $(BOOT_JDK)/bin/java $(NEW_JAVAC) ...
chegar@27560 596 # Use = assignment to be able to override in bootcycle-spec.gmk
alanb@36506 597 NEW_JAVAC = $(INTERIM_LANGTOOLS_ARGS) $(JAVAC_MAIN_CLASS)
alanb@36506 598 NEW_JAVADOC = $(INTERIM_LANGTOOLS_ARGS) $(JAVADOC_MAIN_CLASS)
alanb@36506 599
alanb@36506 600 JLINK_KEEP_PACKAGED_MODULES:=@JLINK_KEEP_PACKAGED_MODULES@
alanb@36506 601
ohair@12258 602 # Base flags for RC
ohair@12258 603 # Guarding this against resetting value. Legacy make files include spec multiple
ohair@12258 604 # times.
ohair@12258 605 ifndef RC_FLAGS
ihse@20363 606 RC_FLAGS:=@RC_FLAGS@
ohair@12258 607 endif
ohair@12258 608
ohair@12258 609 # Tools adhering to a minimal and common standard of posix compliance.
ohair@12258 610 AWK:=@AWK@
ohair@13697 611 BASENAME:=@BASENAME@
ohair@12258 612 CAT:=@CAT@
ohair@12258 613 CCACHE:=@CCACHE@
ohair@12258 614 # CD is going away, but remains to cater for legacy makefiles.
ohair@12258 615 CD:=cd
ohair@12258 616 CHMOD:=@CHMOD@
erikj@17661 617 CODESIGN:=@CODESIGN@
erikj@15056 618 COMM:=@COMM@
ohair@12258 619 CP:=@CP@
erikj@15056 620 CPIO:=@CPIO@
ohair@12258 621 CUT:=@CUT@
ohair@12258 622 DATE:=@DATE@
ohair@12258 623 DIFF:=@DIFF@
erikj@15056 624 DIRNAME:=@DIRNAME@
dcubed@20640 625 DSYMUTIL:=@DSYMUTIL@
ohair@12258 626 FIND:=@FIND@
ohair@12258 627 FIND_DELETE:=@FIND_DELETE@
asemenyuk@44465 628 FLOCK:=@FLOCK@
ohair@12258 629 ECHO:=@ECHO@
ohair@12258 630 EGREP:=@EGREP@
ohair@12258 631 FGREP:=@FGREP@
ohair@12258 632 GREP:=@GREP@
erikj@37972 633 GZIP:=@GZIP@
ohair@12258 634 HEAD:=@HEAD@
ohair@12258 635 LS:=@LS@
ohair@12258 636 LN:=@LN@
ohair@12258 637 MKDIR:=@MKDIR@
ohair@12258 638 MV:=@MV@
ohair@12258 639 NAWK:=@NAWK@
ihse@32920 640 NICE:=@NICE@
wetmore@45231 641 PANDOC:=@FIXPATH@ @PANDOC@
ihse@32715 642 PATCH:=@PATCH@
ohair@12258 643 PRINTF:=@PRINTF@
ohair@12258 644 RM:=@RM@
ihse@33052 645 RMDIR:=@RMDIR@
ohair@12258 646 SED:=@SED@
ohair@12258 647 SH:=@SH@
ohair@12258 648 SORT:=@SORT@
ohair@12258 649 TAR:=@TAR@
ohair@12258 650 TAIL:=@TAIL@
ohair@12258 651 TEE:=@TEE@
ohair@14111 652 TIME:=@TIME@
erikj@18425 653 IS_GNU_TIME:=@IS_GNU_TIME@
ohair@12258 654 TR:=@TR@
ohair@12258 655 TOUCH:=@TOUCH@
erikj@15056 656 UNIQ:=@UNIQ@
ohair@12258 657 WC:=@WC@
ohair@12258 658 XARGS:=@XARGS@
ihse@42136 659 ZIPEXE:=@ZIPEXE@
ohair@12258 660 UNZIP:=@UNZIP@
ohair@14111 661 MT:=@FIXPATH@ @MT@
ohair@14111 662 RC:=@FIXPATH@ @RC@
ohair@14111 663 DUMPBIN:=@FIXPATH@ @DUMPBIN@
ohair@12258 664 CYGPATH:=@CYGPATH@
ohair@12258 665 LDD:=@LDD@
ohair@12258 666 OTOOL:=@OTOOL@
ohair@12258 667 READELF:=@READELF@
ohair@12258 668 EXPR:=@EXPR@
ohair@12258 669 FILE:=@FILE@
ihse@44727 670 DOT:=@DOT@
erikj@12801 671 HG:=@HG@
erikj@13132 672 OBJCOPY:=@OBJCOPY@
ohair@14111 673 SETFILE:=@SETFILE@
erikj@16580 674 XATTR:=@XATTR@
erikj@17593 675 JT_HOME:=@JT_HOME@
erikj@17593 676 JTREGEXE:=@JTREGEXE@
ctornqvi@46196 677 JIB_JAR:=@JIB_JAR@
ddehaven@25034 678 XCODEBUILD=@XCODEBUILD@
erikj@37402 679 DTRACE := @DTRACE@
ohair@14111 680 FIXPATH:=@FIXPATH@
ohair@12258 681
erikj@38924 682 TAR_TYPE:=@TAR_TYPE@
erikj@38924 683 TAR_CREATE_EXTRA_PARAM:=@TAR_CREATE_EXTRA_PARAM@
erikj@37972 684 TAR_INCLUDE_PARAM:=@TAR_INCLUDE_PARAM@
erikj@37972 685 TAR_SUPPORTS_TRANSFORM:=@TAR_SUPPORTS_TRANSFORM@
erikj@37972 686
ohair@12258 687 # Build setup
kvn@42532 688 ENABLE_AOT:=@ENABLE_AOT@
ihse@43388 689 ENABLE_INTREE_EC:=@ENABLE_INTREE_EC@
ohair@12258 690 USE_EXTERNAL_LIBJPEG:=@USE_EXTERNAL_LIBJPEG@
ohair@12258 691 USE_EXTERNAL_LIBGIF:=@USE_EXTERNAL_LIBGIF@
ohair@12258 692 USE_EXTERNAL_LIBZ:=@USE_EXTERNAL_LIBZ@
erikj@13132 693 LIBZIP_CAN_USE_MMAP:=@LIBZIP_CAN_USE_MMAP@
ohair@14111 694 MSVCR_DLL:=@MSVCR_DLL@
erikj@28901 695 MSVCP_DLL:=@MSVCP_DLL@
iignatyev@37967 696 STLPORT_LIB:=@STLPORT_LIB@
ohair@12258 697
ohair@12258 698 ####################################################
ohair@12258 699 #
ohair@12258 700 # INSTALLATION
ohair@12258 701 #
ohair@12258 702
ohair@12258 703 # Common prefix for all installed files. Defaults to /usr/local,
ihse@20363 704 # but /opt/myjdk is another common version.
ohair@12258 705 INSTALL_PREFIX=@prefix@
ohair@12258 706
ohair@12258 707 # Directories containing architecture-dependent files should be relative to exec_prefix
ohair@12258 708 INSTALL_EXECPREFIX=@exec_prefix@
ohair@12258 709
ohair@12258 710 # java,javac,javah,javap etc are installed here.
ohair@12258 711 INSTALL_BINDIR=@bindir@
ohair@12258 712
ohair@12258 713 # Read only architecture-independent data
ohair@12258 714 INSTALL_DATADIR=@datadir@
ohair@12258 715
ohair@12258 716 # Root of above.
ohair@12258 717 INSTALL_DATAROOTDIR=@datarootdir@
ohair@12258 718
ohair@12258 719 # Doc files, other than info and man.
ohair@12258 720 INSTALL_DOCDIR=@docdir@
ohair@12258 721
ohair@12258 722 # Html documentation
ohair@12258 723 INSTALL_HTMLDIR=@htmldir@
ohair@12258 724
ohair@12258 725 # Installing C header files, JNI headers for example.
ohair@12258 726 INSTALL_INCLUDEDIR=@includedir@
ohair@12258 727
ohair@12258 728 # Installing library files....
ohair@12258 729 INSTALL_INCLUDEDIR=@libdir@
ohair@12258 730
ohair@12258 731 # Executables that other programs run.
ohair@12258 732 INSTALL_LIBEXECDIR=@libexecdir@
ohair@12258 733
ihse@20363 734 # Locale-dependent but architecture-independent data, such as message catalogs.
ohair@12258 735 INSTALL_LOCALEDIR=@localedir@
ohair@12258 736
ohair@12258 737 # Modifiable single-machine data
ohair@12258 738 INSTALL_LOCALSTATEDIR=@localstatedir@
ohair@12258 739
ohair@12258 740 # Man pages
ohair@12258 741 INSTALL_MANDIR=@mandir@
ohair@12258 742
ohair@12258 743 # Modifiable architecture-independent data.
ohair@12258 744 INSTALL_SHAREDSTATEDIR=@sharedstatedir@
ohair@12258 745
ohair@12258 746 # Read-only single-machine data
ohair@12258 747 INSTALL_SYSCONFDIR=@sysconfdir@
ohair@12258 748
omajid@23163 749 ####################################################
omajid@23163 750 #
omajid@23163 751 # Libraries
omajid@23163 752 #
omajid@23163 753
omajid@24413 754 USE_EXTERNAL_LCMS:=@USE_EXTERNAL_LCMS@
omajid@24413 755 LCMS_CFLAGS:=@LCMS_CFLAGS@
omajid@24413 756 LCMS_LIBS:=@LCMS_LIBS@
omajid@24413 757
omajid@23163 758 USE_EXTERNAL_LIBPNG:=@USE_EXTERNAL_LIBPNG@
omajid@23163 759 PNG_LIBS:=@PNG_LIBS@
omajid@23163 760 PNG_CFLAGS:=@PNG_CFLAGS@
omajid@23163 761
ohair@12258 762 ####################################################
ohair@12258 763 #
ohair@12258 764 # Misc
ohair@12258 765 #
ohair@12258 766
omajid@16581 767 INCLUDE_SA=@INCLUDE_SA@
kvn@42531 768 INCLUDE_GRAAL=@INCLUDE_GRAAL@
omajid@16581 769
erikj@12801 770 OS_VERSION_MAJOR:=@OS_VERSION_MAJOR@
erikj@12801 771 OS_VERSION_MINOR:=@OS_VERSION_MINOR@
erikj@12801 772 OS_VERSION_MICRO:=@OS_VERSION_MICRO@
erikj@12801 773
erikj@15058 774 # Images directory definitions
chegar@27560 775 JDK_IMAGE_SUBDIR:=jdk
chegar@27560 776 JRE_IMAGE_SUBDIR:=jre
erikj@43043 777 JRE_COMPACT1_IMAGE_SUBDIR := jre-compact1
erikj@43043 778 JRE_COMPACT2_IMAGE_SUBDIR := jre-compact2
erikj@43043 779 JRE_COMPACT3_IMAGE_SUBDIR := jre-compact3
ihse@28285 780
erikj@16578 781 # Colon left out to be able to override output dir for bootcycle-images
erikj@16578 782 JDK_IMAGE_DIR=$(IMAGES_OUTPUTDIR)/$(JDK_IMAGE_SUBDIR)
erikj@16578 783 JRE_IMAGE_DIR=$(IMAGES_OUTPUTDIR)/$(JRE_IMAGE_SUBDIR)
erikj@15058 784
erikj@43043 785 JRE_COMPACT1_IMAGE_DIR := $(IMAGES_OUTPUTDIR)/$(JRE_COMPACT1_IMAGE_SUBDIR)
erikj@43043 786 JRE_COMPACT2_IMAGE_DIR := $(IMAGES_OUTPUTDIR)/$(JRE_COMPACT2_IMAGE_SUBDIR)
erikj@43043 787 JRE_COMPACT3_IMAGE_DIR := $(IMAGES_OUTPUTDIR)/$(JRE_COMPACT3_IMAGE_SUBDIR)
erikj@43043 788
ihse@28285 789 # Test image, as above
ihse@28285 790 TEST_IMAGE_SUBDIR:=test
ihse@28285 791 TEST_IMAGE_DIR=$(IMAGES_OUTPUTDIR)/$(TEST_IMAGE_SUBDIR)
ihse@28285 792
erikj@29305 793 # Symbols image
erikj@29305 794 SYMBOLS_IMAGE_SUBDIR:=symbols
erikj@29305 795 SYMBOLS_IMAGE_DIR=$(IMAGES_OUTPUTDIR)/$(SYMBOLS_IMAGE_SUBDIR)
erikj@29305 796
redestad@37770 797 # Interim image
erikj@41874 798 INTERIM_JMODS_DIR := $(SUPPORT_OUTPUTDIR)/interim-jmods
redestad@37770 799 INTERIM_IMAGE_DIR := $(SUPPORT_OUTPUTDIR)/interim-image
redestad@37770 800
erikj@37972 801 # Docs image
erikj@37972 802 DOCS_IMAGE_SUBDIR := docs
ihse@41652 803 DOCS_IMAGE_DIR = $(IMAGES_OUTPUTDIR)/$(DOCS_IMAGE_SUBDIR)
ihse@45103 804 # Output docs directly into image
ihse@45103 805 DOCS_OUTPUTDIR := $(DOCS_IMAGE_DIR)
erikj@37972 806
erikj@15058 807 # Macosx bundles directory definitions
erikj@37972 808 JDK_MACOSX_BUNDLE_SUBDIR=jdk-bundle
erikj@37972 809 JRE_MACOSX_BUNDLE_SUBDIR=jre-bundle
ihse@30094 810 JDK_MACOSX_BUNDLE_DIR=$(IMAGES_OUTPUTDIR)/$(JDK_MACOSX_BUNDLE_SUBDIR)
ihse@30094 811 JRE_MACOSX_BUNDLE_DIR=$(IMAGES_OUTPUTDIR)/$(JRE_MACOSX_BUNDLE_SUBDIR)
erikj@37972 812 JDK_MACOSX_CONTENTS_SUBDIR=jdk-$(VERSION_NUMBER).jdk/Contents
erikj@37972 813 JRE_MACOSX_CONTENTS_SUBDIR=jre-$(VERSION_NUMBER).jre/Contents
erikj@37972 814 JDK_MACOSX_CONTENTS_DIR=$(JDK_MACOSX_BUNDLE_DIR)/$(JDK_MACOSX_CONTENTS_SUBDIR)
erikj@37972 815 JRE_MACOSX_CONTENTS_DIR=$(JRE_MACOSX_BUNDLE_DIR)/$(JRE_MACOSX_CONTENTS_SUBDIR)
erikj@37972 816
erikj@37972 817 # Bundle names
erikj@37972 818 BASE_NAME := $(VERSION_SHORT)+$(VERSION_BUILD)_$(OPENJDK_TARGET_BUNDLE_PLATFORM)
erikj@37972 819 ifeq ($(DEBUG_LEVEL), fastdebug)
erikj@37972 820 DEBUG_PART := -debug
erikj@37972 821 else ifneq ($(DEBUG_LEVEL), release)
erikj@37972 822 DEBUG_PART := -$(DEBUG_LEVEL)
erikj@37972 823 endif
erikj@37972 824 JDK_BUNDLE_NAME := jdk-$(BASE_NAME)_bin$(DEBUG_PART).tar.gz
erikj@37972 825 JRE_BUNDLE_NAME := jre-$(BASE_NAME)_bin$(DEBUG_PART).tar.gz
erikj@43043 826 JRE_COMPACT1_BUNDLE_NAME := \
erikj@43043 827 jre-$(VERSION_SHORT)+$(VERSION_BUILD)-compact1_$(OPENJDK_TARGET_BUNDLE_PLATFORM)_bin$(DEBUG_PART).tar.gz
erikj@43043 828 JRE_COMPACT2_BUNDLE_NAME := \
erikj@43043 829 jre-$(VERSION_SHORT)+$(VERSION_BUILD)-compact2_$(OPENJDK_TARGET_BUNDLE_PLATFORM)_bin$(DEBUG_PART).tar.gz
erikj@43043 830 JRE_COMPACT3_BUNDLE_NAME := \
erikj@43043 831 jre-$(VERSION_SHORT)+$(VERSION_BUILD)-compact3_$(OPENJDK_TARGET_BUNDLE_PLATFORM)_bin$(DEBUG_PART).tar.gz
erikj@37972 832 JDK_SYMBOLS_BUNDLE_NAME := jdk-$(BASE_NAME)_bin$(DEBUG_PART)-symbols.tar.gz
erikj@37972 833 JRE_SYMBOLS_BUNDLE_NAME := jre-$(BASE_NAME)_bin$(DEBUG_PART)-symbols.tar.gz
erikj@37972 834 TEST_BUNDLE_NAME := jdk-$(BASE_NAME)_bin-tests$(DEBUG_PART).tar.gz
erikj@37972 835 DOCS_BUNDLE_NAME := jdk-$(BASE_NAME)_doc-api-spec$(DEBUG_PART).tar.gz
erikj@37972 836
erikj@37972 837 JDK_BUNDLE := $(BUNDLES_OUTPUTDIR)/$(JDK_BUNDLE_NAME)
erikj@37972 838 JRE_BUNDLE := $(BUNDLES_OUTPUTDIR)/$(JRE_BUNDLE_NAME)
erikj@37972 839 JDK_SYMBOLS_BUNDLE := $(BUNDLES_OUTPUTDIR)/$(JDK_SYMBOLS_BUNDLE_NAME)
erikj@37972 840 JRE_SYMBOLS_BUNDLE := $(BUNDLES_OUTPUTDIR)/$(JRE_SYMBOLS_BUNDLE_NAME)
erikj@37972 841 TEST_BUNDLE := $(BUNDLES_OUTPUTDIR)/$(TEST_BUNDLE_NAME)
erikj@37972 842 DOCS_BUNDLE := $(BUNDLES_OUTPUTDIR)/$(DOCS_BUNDLE_NAME)
erikj@15058 843
erikj@47217 844 CONFIGURE_CMD := $(TOPDIR)/configure
erikj@47217 845
ihse@22714 846 # This macro is called to allow inclusion of closed source counterparts.
ihse@22714 847 # Unless overridden in closed sources, it expands to nothing.
ihse@27595 848 # Usage: This function is called in an open makefile, with the following
ihse@22714 849 # arguments:
ihse@22714 850 # $1 the name of the repo, or empty if the top-level repo.
ihse@22714 851 # $2 the name of the makefile
ihse@22714 852 define IncludeCustomExtension
ihse@22714 853 endef
ihse@22714 854
ohair@13697 855 # Include the custom-spec.gmk file if it exists
ohair@13697 856 -include $(dir @SPEC@)/custom-spec.gmk