annotate make/autoconf/spec.gmk.in @ 51124:075e9982b409

8204127: Change bundle format on Windows to zip Reviewed-by: ihse
author erikj
date Tue, 12 Jun 2018 01:31:49 +0200
parents cbae0e359538
children 3532b9384a41 0a0371f27986 5fa19bad622d
rev   line source
ohair@12258 1 #
jjg@48704 2 # Copyright (c) 2011, 2018, 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@
ihse@49904 68 OPENJDK_TARGET_OS_UPPERCASE:=@OPENJDK_TARGET_OS_UPPERCASE@
erikj@13132 69
erikj@13132 70 OPENJDK_TARGET_CPU:=@OPENJDK_TARGET_CPU@
erikj@13132 71 OPENJDK_TARGET_CPU_ARCH:=@OPENJDK_TARGET_CPU_ARCH@
erikj@13132 72 OPENJDK_TARGET_CPU_BITS:=@OPENJDK_TARGET_CPU_BITS@
erikj@13132 73 OPENJDK_TARGET_CPU_ENDIAN:=@OPENJDK_TARGET_CPU_ENDIAN@
ohair@12258 74
ohair@13697 75 COMPILE_TYPE:=@COMPILE_TYPE@
ohair@13697 76
ohair@13697 77 # Legacy support
ohair@13697 78 OPENJDK_TARGET_CPU_ISADIR:=@OPENJDK_TARGET_CPU_ISADIR@
ohair@13697 79 OPENJDK_TARGET_CPU_LEGACY:=@OPENJDK_TARGET_CPU_LEGACY@
ohair@13697 80 OPENJDK_TARGET_CPU_LEGACY_LIB:=@OPENJDK_TARGET_CPU_LEGACY_LIB@
ohair@13697 81 OPENJDK_TARGET_CPU_OSARCH:=@OPENJDK_TARGET_CPU_OSARCH@
psandoz@48610 82 OPENJDK_TARGET_OS_INCLUDE_SUBIDR:=@OPENJDK_TARGET_OS_INCLUDE_SUBDIR@
ohair@13697 83
erikj@37402 84 HOTSPOT_TARGET_OS := @HOTSPOT_TARGET_OS@
erikj@37402 85 HOTSPOT_TARGET_OS_TYPE := @HOTSPOT_TARGET_OS_TYPE@
erikj@37402 86
erikj@37402 87 HOTSPOT_TARGET_CPU := @HOTSPOT_TARGET_CPU@
erikj@37402 88 HOTSPOT_TARGET_CPU_ARCH := @HOTSPOT_TARGET_CPU_ARCH@
erikj@37402 89 HOTSPOT_TARGET_CPU_DEFINE := @HOTSPOT_TARGET_CPU_DEFINE@
erikj@37402 90
erikj@37972 91 OPENJDK_TARGET_BUNDLE_PLATFORM:=@OPENJDK_TARGET_BUNDLE_PLATFORM@
ihse@43383 92 JDK_ARCH_ABI_PROP_NAME := @JDK_ARCH_ABI_PROP_NAME@
erikj@37972 93
ohair@12258 94 # We are building on this build system.
erikj@13132 95 # When not cross-compiling, it is the same as the target.
erikj@13132 96 OPENJDK_BUILD_OS:=@OPENJDK_BUILD_OS@
ihse@27586 97 OPENJDK_BUILD_OS_TYPE:=@OPENJDK_BUILD_OS_TYPE@
erikj@25882 98 OPENJDK_BUILD_OS_ENV:=@OPENJDK_BUILD_OS_ENV@
erikj@13132 99
erikj@13132 100 OPENJDK_BUILD_CPU:=@OPENJDK_BUILD_CPU@
erikj@13132 101 OPENJDK_BUILD_CPU_ARCH:=@OPENJDK_BUILD_CPU_ARCH@
erikj@13132 102 OPENJDK_BUILD_CPU_BITS:=@OPENJDK_BUILD_CPU_BITS@
erikj@13132 103 OPENJDK_BUILD_CPU_ENDIAN:=@OPENJDK_BUILD_CPU_ENDIAN@
ohair@12258 104
psandoz@48610 105 OPENJDK_BUILD_OS_INCLUDE_SUBIDR:=@OPENJDK_TARGET_OS_INCLUDE_SUBDIR@
psandoz@48610 106
alanb@44985 107 # Target platform value in ModuleTarget class file attribute.
alanb@44985 108 OPENJDK_MODULE_TARGET_PLATFORM:=@OPENJDK_MODULE_TARGET_PLATFORM@
alanb@44985 109
alanb@44985 110 # OS_* properties in release file
alanb@44985 111 RELEASE_FILE_OS_NAME:=@RELEASE_FILE_OS_NAME@
alanb@44985 112 RELEASE_FILE_OS_ARCH:=@RELEASE_FILE_OS_ARCH@
erikj@12801 113
ihse@32921 114 LIBM:=@LIBM@
erikj@12801 115 LIBDL:=@LIBDL@
ohair@12258 116
ohair@12258 117 # colon or semicolon
ohair@12258 118 PATH_SEP:=@PATH_SEP@
ohair@12258 119
erikj@28809 120 # Save the original path before replacing it with the Visual Studio tools
erikj@28809 121 ORIGINAL_PATH:=@ORIGINAL_PATH@
ohair@14111 122 ifeq ($(OPENJDK_TARGET_OS), windows)
erikj@28809 123 # On Windows, the Visual Studio toolchain needs the PATH to be adjusted
erikj@28809 124 # to include Visual Studio tools (this needs to be in cygwin/msys style).
ohair@14111 125 export PATH:=@VS_PATH@
ohair@14111 126 endif
ohair@12258 127
erikj@23428 128 SYSROOT_CFLAGS := @SYSROOT_CFLAGS@
erikj@23428 129 SYSROOT_LDFLAGS := @SYSROOT_LDFLAGS@
ohair@12258 130
ihse@47274 131 # The top-level directory of the source repository
ihse@22722 132 TOPDIR:=@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
simonis@48901 146 # Platform naming variables
simonis@48901 147 LAUNCHER_NAME:=@LAUNCHER_NAME@
simonis@48901 148 PRODUCT_NAME:=@PRODUCT_NAME@
simonis@48901 149 PRODUCT_SUFFIX:=@PRODUCT_SUFFIX@
simonis@48901 150 JDK_RC_PLATFORM_NAME:=@JDK_RC_PLATFORM_NAME@
simonis@48901 151 COMPANY_NAME:=@COMPANY_NAME@
simonis@48901 152 HOTSPOT_VM_DISTRO:=@HOTSPOT_VM_DISTRO@
simonis@48901 153 MACOSX_BUNDLE_NAME_BASE=@MACOSX_BUNDLE_NAME_BASE@
simonis@48901 154 MACOSX_BUNDLE_ID_BASE=@MACOSX_BUNDLE_ID_BASE@
simonis@48901 155 USERNAME:=@USERNAME@
simonis@48901 156 VENDOR_URL:=@VENDOR_URL@
simonis@48901 157 VENDOR_URL_BUG:=@VENDOR_URL_BUG@
simonis@48901 158 VENDOR_URL_VM_BUG:=@VENDOR_URL_VM_BUG@
simonis@48901 159
ihse@33926 160 # New (JEP-223) version information
ihse@33926 161
ihse@33926 162 ## Building blocks of the version string
ihse@33926 163 # First three version numbers, with well-specified meanings (numerical)
mr@48567 164 VERSION_FEATURE := @VERSION_FEATURE@
mr@48567 165 VERSION_INTERIM := @VERSION_INTERIM@
mr@48567 166 VERSION_UPDATE := @VERSION_UPDATE@
ihse@33926 167 VERSION_PATCH := @VERSION_PATCH@
ihse@33926 168 # The pre-release identifier (string)
ihse@33926 169 VERSION_PRE := @VERSION_PRE@
ihse@33926 170 # The build number (numerical)
ihse@33926 171 VERSION_BUILD := @VERSION_BUILD@
ihse@33926 172 # Optional build information (string)
ihse@33926 173 VERSION_OPT := @VERSION_OPT@
ihse@33926 174
ihse@33926 175 ## Composite variables
ihse@33926 176 # The version number as a dot separated sequence of numbers, e.g. 9.0.1
ihse@33926 177 VERSION_NUMBER := @VERSION_NUMBER@
ihse@33926 178 # VERSION_NUMBER but always with exactly 4 positions, with 0 for empty positions.
ihse@33926 179 VERSION_NUMBER_FOUR_POSITIONS := @VERSION_NUMBER_FOUR_POSITIONS@
ihse@33926 180 # The complete version string, with additional build information
ihse@33926 181 VERSION_STRING := @VERSION_STRING@
ihse@33926 182 # The short version string, without trailing zeroes and just PRE, if present.
ihse@33926 183 VERSION_SHORT := @VERSION_SHORT@
mr@48567 184 # The Java specification version. It usually equals the feature version number.
mr@48567 185 VERSION_SPECIFICATION := @VERSION_FEATURE@
erikj@33929 186 # A GA version is defined by the PRE string being empty. Rather than testing for
erikj@33929 187 # that, this variable defines it with true/false.
erikj@33929 188 VERSION_IS_GA := @VERSION_IS_GA@
ihse@33926 189
mr@48567 190 # Version date
mr@48567 191 VERSION_DATE := @VERSION_DATE@
mr@48567 192
mr@48567 193 # Vendor version string
mr@48567 194 VENDOR_VERSION_STRING := @VENDOR_VERSION_STRING@
mr@48567 195
psandoz@48610 196 # Class-file version
psandoz@48610 197 VERSION_CLASSFILE_MAJOR := @VERSION_CLASSFILE_MAJOR@
psandoz@48610 198 VERSION_CLASSFILE_MINOR := @VERSION_CLASSFILE_MINOR@
psandoz@48610 199
ihse@33926 200 # Convenience CFLAGS settings for passing version information into native programs.
ihse@33926 201 VERSION_CFLAGS := \
mr@48567 202 -DVERSION_FEATURE=$(VERSION_FEATURE) \
mr@48567 203 -DVERSION_INTERIM=$(VERSION_INTERIM) \
mr@48567 204 -DVERSION_UPDATE=$(VERSION_UPDATE) \
ihse@33926 205 -DVERSION_PATCH=$(VERSION_PATCH) \
ihse@33926 206 -DVERSION_PRE='"$(VERSION_PRE)"' \
ihse@33926 207 -DVERSION_BUILD=$(VERSION_BUILD) \
ihse@33926 208 -DVERSION_OPT='"$(VERSION_OPT)"' \
ihse@33926 209 -DVERSION_NUMBER='"$(VERSION_NUMBER)"' \
ihse@33926 210 -DVERSION_STRING='"$(VERSION_STRING)"' \
ihse@33926 211 -DVERSION_SHORT='"$(VERSION_SHORT)"' \
ihse@33926 212 -DVERSION_SPECIFICATION='"$(VERSION_SPECIFICATION)"' \
mr@48567 213 -DVERSION_DATE='"$(VERSION_DATE)"' \
mr@48567 214 -DVENDOR_VERSION_STRING='"$(VENDOR_VERSION_STRING)"' \
psandoz@48610 215 -DVERSION_CLASSFILE_MAJOR=$(VERSION_CLASSFILE_MAJOR) \
psandoz@48610 216 -DVERSION_CLASSFILE_MINOR=$(VERSION_CLASSFILE_MINOR) \
ihse@33926 217 #
ihse@33926 218
simonis@48901 219 ifneq ($(COMPANY_NAME),)
simonis@48901 220 # COMPANY_NAME is set to "N/A" in $AUTOCONF_DIR/version-numbers by default,
simonis@48901 221 # but can be customized with the '--with-vendor-name' configure option.
simonis@48901 222 # Only export "VENDOR" to the build if COMPANY_NAME contains a real value.
simonis@48901 223 # Otherwise the default value for VENDOR, which is used to set the "java.vendor"
simonis@48901 224 # and "java.vm.vendor" properties is hard-coded into the source code (i.e. in
lancea@49225 225 # System.c in the jdk for "vm.vendor" and vm_version.cpp in the VM for "java.vm.vendor")
simonis@48901 226 ifneq ($(COMPANY_NAME), N/A)
lancea@49225 227 VERSION_CFLAGS += -DVENDOR='"$(COMPANY_NAME)"'
simonis@48901 228 endif
simonis@48901 229 endif
simonis@48901 230
simonis@48901 231 # Only export VENDOR_URL, VENDOR_URL_BUG and VENDOR_VM_URL_BUG to the build if
simonis@48901 232 # they are not empty. Otherwise, default values which are defined in the sources
simonis@48901 233 # will be used.
simonis@48901 234 ifneq ($(VENDOR_URL),)
simonis@48901 235 VERSION_CFLAGS += -DVENDOR_URL='"$(VENDOR_URL)"'
simonis@48901 236 endif
simonis@48901 237 ifneq ($(VENDOR_URL_BUG),)
simonis@48901 238 VERSION_CFLAGS += -DVENDOR_URL_BUG='"$(VENDOR_URL_BUG)"'
simonis@48901 239 endif
simonis@48901 240 ifneq ($(VENDOR_URL_VM_BUG),)
simonis@48901 241 VERSION_CFLAGS += -DVENDOR_URL_VM_BUG='"$(VENDOR_URL_VM_BUG)"'
simonis@48901 242 endif
ohair@12258 243
ihse@33926 244 # Different naming strings generated from the above information.
erikj@15056 245 RUNTIME_NAME=$(PRODUCT_NAME) $(PRODUCT_SUFFIX)
ohair@12258 246
ohair@12258 247 # How to compile the code: release, fastdebug or slowdebug
ohair@12258 248 DEBUG_LEVEL:=@DEBUG_LEVEL@
erikj@37402 249 HOTSPOT_DEBUG_LEVEL:=@HOTSPOT_DEBUG_LEVEL@
ohair@12258 250
ohair@12258 251 # This is the JDK variant to build.
ohair@12258 252 # The JDK variant is a name for a specific set of modules to be compiled for the JDK.
ohair@12258 253 JDK_VARIANT:=@JDK_VARIANT@
ohair@12258 254
erikj@37402 255 # Which JVM variants to build (space-separated list)
erikj@37402 256 JVM_VARIANTS := @JVM_VARIANTS@
erikj@42510 257 JVM_VARIANT_MAIN := @JVM_VARIANT_MAIN@
erikj@37402 258
erikj@37402 259 # Lists of features per variant. Only relevant for the variants listed in
erikj@37402 260 # JVM_VARIANTS.
erikj@37402 261 JVM_FEATURES_server := @JVM_FEATURES_server@
erikj@37402 262 JVM_FEATURES_client := @JVM_FEATURES_client@
erikj@37402 263 JVM_FEATURES_core := @JVM_FEATURES_core@
erikj@37402 264 JVM_FEATURES_minimal := @JVM_FEATURES_minimal@
erikj@37402 265 JVM_FEATURES_zero := @JVM_FEATURES_zero@
erikj@37402 266 JVM_FEATURES_custom := @JVM_FEATURES_custom@
erikj@37402 267
erikj@37402 268 # Used for make-time verifications
erikj@37402 269 VALID_JVM_FEATURES := @VALID_JVM_FEATURES@
erikj@37402 270 VALID_JVM_VARIANTS := @VALID_JVM_VARIANTS@
erikj@37402 271
iignatyev@37967 272 # Control wether Hotspot builds gtest tests
erikj@37978 273 BUILD_GTEST := @BUILD_GTEST@
iignatyev@37967 274
erikj@37402 275 # Control use of precompiled header in hotspot libjvm build
erikj@37402 276 USE_PRECOMPILED_HEADER := @USE_PRECOMPILED_HEADER@
erikj@37402 277
erikj@41046 278 # Only build headless support or not
erikj@41046 279 ENABLE_HEADLESS_ONLY := @ENABLE_HEADLESS_ONLY@
ohair@12258 280
ihse@44727 281 ENABLE_FULL_DOCS := @ENABLE_FULL_DOCS@
ihse@44727 282
ohair@13697 283 # JDK_OUTPUTDIR specifies where a working jvm is built.
ohair@12258 284 # You can run $(JDK_OUTPUTDIR)/bin/java
erikj@13132 285
ihse@47275 286 OUTPUTDIR := @OUTPUTDIR@
erikj@16578 287 # Colon left out to be able to override IMAGES_OUTPUTDIR for bootcycle-images
ihse@47275 288 SUPPORT_OUTPUTDIR=$(OUTPUTDIR)/support
ihse@47275 289 BUILDTOOLS_OUTPUTDIR=$(OUTPUTDIR)/buildtools
chegar@27560 290
ihse@47275 291 HOTSPOT_OUTPUTDIR=$(OUTPUTDIR)/hotspot
ihse@47275 292 JDK_OUTPUTDIR=$(OUTPUTDIR)/jdk
ihse@47275 293 IMAGES_OUTPUTDIR=$(OUTPUTDIR)/images
ihse@47275 294 BUNDLES_OUTPUTDIR=$(OUTPUTDIR)/bundles
ihse@47275 295 TESTMAKE_OUTPUTDIR=$(OUTPUTDIR)/test-make
ihse@47275 296 MAKESUPPORT_OUTPUTDIR=$(OUTPUTDIR)/make-support
ihse@41652 297
erikj@29790 298 # This does not get overridden in a bootcycle build
erikj@29790 299 CONFIGURESUPPORT_OUTPUTDIR:=@CONFIGURESUPPORT_OUTPUTDIR@
ihse@47275 300 BUILDJDK_OUTPUTDIR=$(OUTPUTDIR)/buildjdk
erikj@13132 301
erikj@37035 302 BUILD_FAILURE_HANDLER := @BUILD_FAILURE_HANDLER@
erikj@37035 303
erikj@38546 304 ENABLE_GENERATE_CLASSLIST := @ENABLE_GENERATE_CLASSLIST@
erikj@38546 305
chegar@27560 306 # The boot jdk to use. This is overridden in bootcycle-spec.gmk. Make sure to keep
chegar@27560 307 # it in sync.
ohair@12258 308 BOOT_JDK:=@BOOT_JDK@
ohair@12258 309
alanb@36506 310 BUILD_JDK:=@BUILD_JDK@
alanb@36506 311 CREATE_BUILDJDK:=@CREATE_BUILDJDK@
redestad@37770 312 EXTERNAL_BUILDJDK:=@EXTERNAL_BUILDJDK@
alanb@36506 313
ohair@12258 314 # When compiling Java source to be run by the boot jdk
ohair@12258 315 # use these extra flags, eg -source 6 -target 6
ohair@12258 316 BOOT_JDK_SOURCETARGET:=@BOOT_JDK_SOURCETARGET@
ohair@12258 317
ohair@12258 318 # Information about the build system
ohair@12258 319 NUM_CORES:=@NUM_CORES@
mduigou@23985 320 MEMORY_SIZE:=@MEMORY_SIZE@
ohair@13697 321 # Enable sjavac support = use a javac server,
ohair@13697 322 # multi core javac compilation and dependency tracking.
ohair@13697 323 ENABLE_SJAVAC:=@ENABLE_SJAVAC@
erikj@33055 324 ENABLE_JAVAC_SERVER:=@ENABLE_JAVAC_SERVER@
ohair@13697 325 # Store sjavac server synchronization files here, and
ohair@13697 326 # the sjavac server log files.
erikj@29790 327 SJAVAC_SERVER_DIR=$(MAKESUPPORT_OUTPUTDIR)/javacservers
ohair@12258 328
erikj@15790 329 # Number of parallel jobs to use for compilation
erikj@15790 330 JOBS?=@JOBS@
ehelin@34594 331 TEST_JOBS?=@TEST_JOBS@
erikj@15790 332
erikj@34491 333 # Default make target
erikj@34491 334 DEFAULT_MAKE_TARGET:=@DEFAULT_MAKE_TARGET@
ihse@50047 335 DEFAULT_LOG:=@DEFAULT_LOG@
erikj@34491 336
prr@49665 337 FREETYPE_TO_USE:=@FREETYPE_TO_USE@
ihse@20654 338 FREETYPE_LIBS:=@FREETYPE_LIBS@
ihse@20654 339 FREETYPE_CFLAGS:=@FREETYPE_CFLAGS@
ihse@48261 340 FONTCONFIG_CFLAGS:=@FONTCONFIG_CFLAGS@
ohair@12258 341 CUPS_CFLAGS:=@CUPS_CFLAGS@
erikj@18018 342 ALSA_LIBS:=@ALSA_LIBS@
erikj@18018 343 ALSA_CFLAGS:=@ALSA_CFLAGS@
ihse@34596 344 LIBFFI_LIBS:=@LIBFFI_LIBS@
ihse@34596 345 LIBFFI_CFLAGS:=@LIBFFI_CFLAGS@
erikj@42425 346 ENABLE_LIBFFI_BUNDLING:=@ENABLE_LIBFFI_BUNDLING@
erikj@42425 347 LIBFFI_LIB_FILE:=@LIBFFI_LIB_FILE@
ohair@12258 348
ohair@12258 349 PACKAGE_PATH=@PACKAGE_PATH@
ohair@12258 350
erikj@12801 351 # Source file for cacerts
erikj@12801 352 CACERTS_FILE=@CACERTS_FILE@
ohair@12258 353
ihse@14112 354 # Enable unlimited crypto policy
ihse@14112 355 UNLIMITED_CRYPTO=@UNLIMITED_CRYPTO@
ihse@14112 356
erikj@29305 357 GCOV_ENABLED=@GCOV_ENABLED@
erikj@29305 358
asmotrak@47625 359 # AddressSanitizer
asmotrak@47625 360 export ASAN_ENABLED:=@ASAN_ENABLED@
asmotrak@47625 361 export DEVKIT_LIB_DIR:=@DEVKIT_LIB_DIR@
asmotrak@47625 362 ifeq ($(ASAN_ENABLED), yes)
asmotrak@47625 363 export ASAN_OPTIONS="handle_segv=0 detect_leaks=0"
asmotrak@47625 364 ifneq ($(DEVKIT_LIB_DIR),)
asmotrak@47625 365 export LD_LIBRARY_PATH:=$(LD_LIBRARY_PATH):$(DEVKIT_LIB_DIR)
asmotrak@47625 366 endif
asmotrak@47625 367 endif
asmotrak@47625 368
ihse@20363 369 # Necessary additional compiler flags to compile X11
ohair@12258 370 X_CFLAGS:=@X_CFLAGS@
ohair@12258 371 X_LIBS:=@X_LIBS@
ohair@12258 372
phh@45875 373 # The lowest required version of macosx
erikj@15786 374 MACOSX_VERSION_MIN=@MACOSX_VERSION_MIN@
phh@45875 375 # The highest allowed version of macosx
phh@45875 376 MACOSX_VERSION_MAX=@MACOSX_VERSION_MAX@
erikj@15581 377
ihse@22721 378 # Toolchain type: gcc, clang, solstudio, lxc, microsoft...
ihse@22721 379 TOOLCHAIN_TYPE:=@TOOLCHAIN_TYPE@
ihse@34596 380 TOOLCHAIN_VERSION := @TOOLCHAIN_VERSION@
erikj@37402 381 CC_VERSION_NUMBER := @CC_VERSION_NUMBER@
erikj@37402 382 CXX_VERSION_NUMBER := @CXX_VERSION_NUMBER@
erikj@37402 383
erikj@37402 384 # Legacy support
erikj@37402 385 HOTSPOT_TOOLCHAIN_TYPE := @HOTSPOT_TOOLCHAIN_TYPE@
ohair@12258 386
simonis@22466 387 # Option used to tell the compiler whether to create 32- or 64-bit executables
simonis@22466 388 COMPILER_TARGET_BITS_FLAG:=@COMPILER_TARGET_BITS_FLAG@
omajid@16984 389 COMPILER_SUPPORTS_TARGET_BITS_FLAG=@COMPILER_SUPPORTS_TARGET_BITS_FLAG@
omajid@16984 390
ihse@34596 391 # Option used to pass a command file to the compiler
ihse@34596 392 COMPILER_COMMAND_FILE_FLAG:=@COMPILER_COMMAND_FILE_FLAG@
ihse@34596 393
simonis@36051 394 # Option for specifying a file which saves the binder commands
simonis@36051 395 # produced by the link step (for debugging, currently AIX only)
simonis@36051 396 COMPILER_BINDCMD_FILE_FLAG:=@COMPILER_BINDCMD_FILE_FLAG@
simonis@36051 397
ohair@12258 398 CC_OUT_OPTION:=@CC_OUT_OPTION@
ohair@12258 399 LD_OUT_OPTION:=@LD_OUT_OPTION@
ohair@12258 400 AR_OUT_OPTION:=@AR_OUT_OPTION@
ohair@12258 401
ohair@12258 402 # Flags used for overriding the default opt setting for a C/C++ source file.
erikj@37402 403 C_O_FLAG_HIGHEST_JVM:=@C_O_FLAG_HIGHEST_JVM@
erikj@12801 404 C_O_FLAG_HIGHEST:=@C_O_FLAG_HIGHEST@
ohair@12258 405 C_O_FLAG_HI:=@C_O_FLAG_HI@
ohair@12258 406 C_O_FLAG_NORM:=@C_O_FLAG_NORM@
ohair@12258 407 C_O_FLAG_NONE:=@C_O_FLAG_NONE@
erikj@37402 408 C_O_FLAG_SIZE:=@C_O_FLAG_SIZE@
erikj@37402 409 CXX_O_FLAG_HIGHEST_JVM:=@CXX_O_FLAG_HIGHEST_JVM@
erikj@12801 410 CXX_O_FLAG_HIGHEST:=@CXX_O_FLAG_HIGHEST@
ohair@12258 411 CXX_O_FLAG_HI:=@CXX_O_FLAG_HI@
ohair@12258 412 CXX_O_FLAG_NORM:=@CXX_O_FLAG_NORM@
ohair@12258 413 CXX_O_FLAG_NONE:=@CXX_O_FLAG_NONE@
erikj@37402 414 CXX_O_FLAG_SIZE:=@CXX_O_FLAG_SIZE@
ohair@12258 415
erikj@12801 416 C_FLAG_DEPS:=@C_FLAG_DEPS@
erikj@12801 417 CXX_FLAG_DEPS:=@CXX_FLAG_DEPS@
erikj@12801 418
ihse@29304 419 DISABLE_WARNING_PREFIX := @DISABLE_WARNING_PREFIX@
sla@23423 420 CFLAGS_WARNINGS_ARE_ERRORS:=@CFLAGS_WARNINGS_ARE_ERRORS@
sla@23423 421
ihse@30415 422 # A global flag (true or false) determining if native warnings are considered errors.
ihse@30415 423 WARNINGS_AS_ERRORS := @WARNINGS_AS_ERRORS@
ihse@30415 424
erikj@28812 425 CFLAGS_CCACHE:=@CFLAGS_CCACHE@
ihse@49551 426 ADLC_CXXFLAG=@ADLC_CXXFLAG@
erikj@28812 427
ohair@12258 428 # Tools that potentially need to be cross compilation aware.
erikj@34103 429 CC:=@FIXPATH@ @CCACHE@ @ICECC@ @CC@
ohair@12258 430
ohair@12258 431 # CFLAGS used to compile the jdk native libraries (C-code)
ohair@12258 432 CFLAGS_JDKLIB:=@CFLAGS_JDKLIB@
ohair@12258 433 CXXFLAGS_JDKLIB:=@CXXFLAGS_JDKLIB@
ohair@12258 434
ohair@12258 435 # CFLAGS used to compile the jdk native launchers (C-code)
ohair@12258 436 CFLAGS_JDKEXE:=@CFLAGS_JDKEXE@
ohair@12258 437 CXXFLAGS_JDKEXE:=@CXXFLAGS_JDKEXE@
ohair@12258 438
ihse@49551 439 LIBJSIG_HASHSTYLE_LDFLAGS := @LIBJSIG_HASHSTYLE_LDFLAGS@
ihse@49551 440 LIBJSIG_NOEXECSTACK_LDFLAGS := @LIBJSIG_NOEXECSTACK_LDFLAGS@
ihse@36050 441
erikj@37402 442 JVM_CFLAGS := @JVM_CFLAGS@
erikj@37402 443 JVM_LDFLAGS := @JVM_LDFLAGS@
erikj@37402 444 JVM_ASFLAGS := @JVM_ASFLAGS@
erikj@37402 445 JVM_LIBS := @JVM_LIBS@
erikj@37402 446 JVM_RCFLAGS := @JVM_RCFLAGS@
erikj@37402 447
erikj@37402 448 # These flags might contain variables set by a custom extension that is included later.
erikj@37402 449 EXTRA_CFLAGS = @EXTRA_CFLAGS@
erikj@37402 450 EXTRA_CXXFLAGS = @EXTRA_CXXFLAGS@
erikj@37402 451 EXTRA_LDFLAGS = @EXTRA_LDFLAGS@
erikj@37402 452
erikj@34103 453 CXX:=@FIXPATH@ @CCACHE@ @ICECC@ @CXX@
ohair@12258 454
ohair@14111 455 CPP:=@FIXPATH@ @CPP@
ohair@12258 456
ihse@27586 457 # The linker can be gcc or ld on unix systems, or link.exe on windows systems.
ohair@14111 458 LD:=@FIXPATH@ @LD@
ohair@12258 459
ddehaven@25034 460 # Xcode SDK path
ddehaven@25034 461 SDKROOT:=@SDKROOT@
ddehaven@25034 462
ohair@12258 463 # LDFLAGS used to link the jdk native libraries (C-code)
ohair@12258 464 LDFLAGS_JDKLIB:=@LDFLAGS_JDKLIB@
ihse@33394 465 JDKLIB_LIBS:=@JDKLIB_LIBS@
ihse@49672 466 GLOBAL_LIBS:=@GLOBAL_LIBS@
ohair@12258 467
ohair@12258 468 # LDFLAGS used to link the jdk native launchers (C-code)
ohair@12258 469 LDFLAGS_JDKEXE:=@LDFLAGS_JDKEXE@
ihse@33394 470 JDKEXE_LIBS:=@JDKEXE_LIBS@
ohair@12258 471
ohair@13697 472 # LDFLAGS specific to C++ linking.
ohair@13697 473 LDFLAGS_CXX_JDK:=@LDFLAGS_CXX_JDK@
ohair@13697 474
ohair@12258 475 # Sometimes a different linker is needed for c++ libs
ohair@14111 476 LDCXX:=@FIXPATH@ @LDCXX@
ohair@12258 477 # The flags for linking libstdc++ linker.
ohair@12258 478 LIBCXX:=@LIBCXX@
ohair@12258 479
erikj@29305 480 # Compiler and linker flags used when building native tests
erikj@29305 481 CFLAGS_TESTLIB:=@CFLAGS_TESTLIB@
erikj@29305 482 CXXFLAGS_TESTLIB:=@CXXFLAGS_TESTLIB@
erikj@29305 483 CFLAGS_TESTEXE:=@CFLAGS_TESTEXE@
erikj@29305 484 CXXFLAGS_TESTEXE:=@CXXFLAGS_TESTEXE@
erikj@29305 485 LDFLAGS_TESTLIB:=@LDFLAGS_TESTLIB@
erikj@29305 486 LDFLAGS_TESTEXE:=@LDFLAGS_TESTEXE@
erikj@29305 487
ohair@13697 488 # BUILD_CC/BUILD_LD is a compiler/linker that generates code that is runnable on the
ohair@13697 489 # build platform.
erikj@34103 490 BUILD_CC:=@FIXPATH@ @BUILD_ICECC@ @BUILD_CC@
erikj@34103 491 BUILD_CXX:=@FIXPATH@ @BUILD_ICECC@ @BUILD_CXX@
ohair@14111 492 BUILD_LD:=@FIXPATH@ @BUILD_LD@
ihse@34596 493 BUILD_LDCXX:=@FIXPATH@ @BUILD_LDCXX@
erikj@34102 494 BUILD_AS:=@FIXPATH@ @BUILD_AS@
erikj@34102 495 BUILD_AR:=@FIXPATH@ @BUILD_AR@
erikj@34102 496 BUILD_NM:=@FIXPATH@ @BUILD_NM@
alanb@36506 497 BUILD_OBJCOPY:=@BUILD_OBJCOPY@
alanb@36506 498 BUILD_STRIP:=@BUILD_STRIP@
erikj@32810 499 BUILD_SYSROOT_CFLAGS:=@BUILD_SYSROOT_CFLAGS@
erikj@32810 500 BUILD_SYSROOT_LDFLAGS:=@BUILD_SYSROOT_LDFLAGS@
erikj@13132 501
ohair@14111 502 AS:=@FIXPATH@ @AS@
ohair@12258 503
ihse@27586 504 # AR is used to create a static library (is ar in unix, lib.exe in windows)
ohair@14111 505 AR:=@FIXPATH@ @AR@
ohair@12258 506 ARFLAGS:=@ARFLAGS@
ohair@12258 507
ohair@13697 508 NM:=@NM@
erikj@16582 509 GNM:=@GNM@
ohair@13697 510 STRIP:=@STRIP@
erikj@49822 511 OBJDUMP:=@OBJDUMP@
erikj@49822 512 CXXFILT:=@CXXFILT@
ohair@13697 513
ohair@13697 514 LIPO:=@LIPO@
erikj@48238 515 INSTALL_NAME_TOOL:=@INSTALL_NAME_TOOL@
ohair@12258 516
ihse@20363 517 # Options to linker to specify a mapfile.
ohair@12258 518 # (Note absence of := assignment, because we do not want to evaluate the macro body here)
ohair@12258 519 SET_SHARED_LIBRARY_MAPFILE=@SET_SHARED_LIBRARY_MAPFILE@
ohair@12258 520
erikj@12801 521 # Options for C/CXX compiler to be used if linking is performed
erikj@12801 522 # using reorder file
erikj@12801 523 C_FLAG_REORDER:=@C_FLAG_REORDER@
erikj@12801 524
erikj@13132 525 #
erikj@13132 526 # Options for generating debug symbols
ihse@35032 527 COMPILE_WITH_DEBUG_SYMBOLS := @COMPILE_WITH_DEBUG_SYMBOLS@
ihse@35032 528 COPY_DEBUG_SYMBOLS := @COPY_DEBUG_SYMBOLS@
ihse@35032 529 ZIP_EXTERNAL_DEBUG_SYMBOLS := @ZIP_EXTERNAL_DEBUG_SYMBOLS@
ihse@35032 530
erikj@13132 531 CFLAGS_DEBUG_SYMBOLS:=@CFLAGS_DEBUG_SYMBOLS@
erikj@13132 532
erikj@13132 533 #
erikj@13132 534 # Compress (or not) jars
erikj@13132 535 COMPRESS_JARS=@COMPRESS_JARS@
erikj@13132 536
ohair@12258 537 # Options to linker to specify the library name.
ohair@12258 538 # (Note absence of := assignment, because we do not want to evaluate the macro body here)
ohair@12258 539 SET_SHARED_LIBRARY_NAME=@SET_SHARED_LIBRARY_NAME@
ohair@12258 540
ihse@34596 541 SHARED_LIBRARY_FLAGS=@SHARED_LIBRARY_FLAGS@
ihse@34596 542
ohair@12258 543 # Set origin using the linker, ie use the relative path to the dependent library to find the dependees.
ohair@12258 544 # (Note absence of := assignment, because we do not want to evaluate the macro body here)
ohair@12258 545 SET_SHARED_LIBRARY_ORIGIN=@SET_SHARED_LIBRARY_ORIGIN@
ohair@13697 546 SET_EXECUTABLE_ORIGIN=@SET_EXECUTABLE_ORIGIN@
ohair@12258 547
ohair@12258 548 # Different OS:es have different ways of naming shared libraries.
ohair@12258 549 # The SHARED_LIBRARY macro takes "verify" as and argument and returns:
ohair@12258 550 # "libverify.so" or "libverify.dylib" or "verify.dll" depending on platform.
ohair@12258 551 # (Note absence of := assignment, because we do not want to evaluate the macro body here)
ohair@12258 552 SHARED_LIBRARY=@SHARED_LIBRARY@
ohair@12258 553 STATIC_LIBRARY=@STATIC_LIBRARY@
ohair@12258 554 LIBRARY_PREFIX:=@LIBRARY_PREFIX@
ohair@12258 555 SHARED_LIBRARY_SUFFIX:=@SHARED_LIBRARY_SUFFIX@
ohair@12258 556 STATIC_LIBRARY_SUFFIX:=@STATIC_LIBRARY_SUFFIX@
ohair@12258 557 EXE_SUFFIX:=@EXE_SUFFIX@
ohair@12258 558 OBJ_SUFFIX:=@OBJ_SUFFIX@
bobv@33562 559 STATIC_BUILD:=@STATIC_BUILD@
ohair@12258 560
erikj@32811 561 STRIPFLAGS:=@STRIPFLAGS@
erikj@12801 562
mduigou@22728 563 JAVA_FLAGS:=@JAVA_FLAGS@
erikj@23171 564 JAVA_FLAGS_BIG:=@JAVA_FLAGS_BIG@
erikj@23171 565 JAVA_FLAGS_SMALL:=@JAVA_FLAGS_SMALL@
erikj@34101 566 JAVA_FLAGS_JAVAC:=@JAVA_FLAGS_JAVAC@
chegar@25854 567 JAVA_TOOL_FLAGS_SMALL:=@JAVA_TOOL_FLAGS_SMALL@
erikj@26907 568 SJAVAC_SERVER_JAVA_FLAGS:=@SJAVAC_SERVER_JAVA_FLAGS@
ohair@12258 569
ihse@27595 570 # The *_CMD variables are defined separately to be easily overridden in bootcycle-spec.gmk
erikj@26907 571 # for bootcycle-images build. Make sure to keep them in sync. Do not use the *_CMD
erikj@26907 572 # versions of the variables directly.
erikj@26907 573 JAVA_CMD:=@JAVA@
erikj@26907 574 JAVAC_CMD:=@JAVAC@
ihse@47563 575 JAVADOC_CMD:=@JAVADOC@
erikj@26907 576 JAR_CMD:=@JAR@
erikj@37771 577 JLINK_CMD := @JLINK@
erikj@37771 578 JMOD_CMD := @JMOD@
erikj@26907 579 JARSIGNER_CMD:=@JARSIGNER@
erikj@26907 580 SJAVAC_SERVER_JAVA_CMD:=@SJAVAC_SERVER_JAVA@
erikj@26907 581 # These variables are meant to be used. They are defined with = instead of := to make
erikj@26907 582 # it possible to override only the *_CMD variables.
erikj@26907 583 JAVA=@FIXPATH@ $(JAVA_CMD) $(JAVA_FLAGS_BIG) $(JAVA_FLAGS)
erikj@26907 584 JAVA_SMALL=@FIXPATH@ $(JAVA_CMD) $(JAVA_FLAGS_SMALL) $(JAVA_FLAGS)
erikj@34101 585 JAVA_JAVAC=@FIXPATH@ $(JAVA_CMD) $(JAVA_FLAGS_JAVAC) $(JAVA_FLAGS)
erikj@26907 586 JAVAC=@FIXPATH@ $(JAVAC_CMD)
ihse@47563 587 JAVADOC=@FIXPATH@ $(JAVADOC_CMD)
erikj@26907 588 JAR=@FIXPATH@ $(JAR_CMD)
erikj@37771 589 JLINK = @FIXPATH@ $(JLINK_CMD) $(JAVA_TOOL_FLAGS_SMALL)
erikj@37771 590 JMOD = @FIXPATH@ $(JMOD_CMD) $(JAVA_TOOL_FLAGS_SMALL)
erikj@26907 591 JARSIGNER=@FIXPATH@ $(JARSIGNER_CMD)
erikj@26907 592 # A specific java binary with specific options can be used to run
erikj@26907 593 # the long running background sjavac servers and other long running tasks.
erikj@34101 594 SJAVAC_SERVER_JAVA=@FIXPATH@ @FIXPATH_DETACH_FLAG@ $(SJAVAC_SERVER_JAVA_CMD) \
erikj@34101 595 $(SJAVAC_SERVER_JAVA_FLAGS)
ohair@12258 596
ohair@13697 597 # Hotspot sets this variable before reading the SPEC when compiling sa-jdi.jar. Avoid
ohair@13697 598 # overriding that value by using ?=.
ohair@13697 599 JAVAC_FLAGS?=@JAVAC_FLAGS@
ohair@12258 600
alanb@36506 601
erikj@39203 602 BUILD_JAVA_FLAGS := @BOOTCYCLE_JVM_ARGS_BIG@
alanb@36506 603 BUILD_JAVA=@FIXPATH@ $(BUILD_JDK)/bin/java $(BUILD_JAVA_FLAGS)
erikj@48285 604 BUILD_JAR=@FIXPATH@ $(BUILD_JDK)/bin/jar
alanb@36506 605
erikj@47474 606 # Interim langtools and rmic modules and arguments
mchung@48186 607 INTERIM_LANGTOOLS_BASE_MODULES := java.compiler jdk.compiler jdk.javadoc
erikj@47474 608 INTERIM_LANGTOOLS_MODULES := $(addsuffix .interim, $(INTERIM_LANGTOOLS_BASE_MODULES))
erikj@47474 609 INTERIM_LANGTOOLS_ADD_EXPORTS := \
erikj@47474 610 --add-exports java.base/sun.reflect.annotation=jdk.compiler.interim \
jjg@48704 611 --add-exports java.base/jdk.internal.jmod=jdk.compiler.interim \
jjg@48704 612 --add-exports java.base/jdk.internal.misc=jdk.compiler.interim \
erikj@47474 613 #
erikj@47474 614 INTERIM_LANGTOOLS_MODULES_COMMA := $(strip $(subst $(SPACE),$(COMMA),$(strip \
erikj@47474 615 $(INTERIM_LANGTOOLS_MODULES))))
erikj@47474 616 INTERIM_LANGTOOLS_ARGS := \
erikj@47474 617 --limit-modules java.base,jdk.zipfs,$(INTERIM_LANGTOOLS_MODULES_COMMA) \
erikj@47474 618 --add-modules $(INTERIM_LANGTOOLS_MODULES_COMMA) \
erikj@48284 619 --module-path $(BUILDTOOLS_OUTPUTDIR)/interim_langtools_modules \
erikj@47474 620 $(INTERIM_LANGTOOLS_ADD_EXPORTS) \
erikj@47474 621 #
erikj@47474 622 JAVAC_MAIN_CLASS = -m jdk.compiler.interim/com.sun.tools.javac.Main
erikj@47474 623 JAVADOC_MAIN_CLASS = -m jdk.javadoc.interim/jdk.javadoc.internal.tool.Main
alanb@36506 624
erikj@47474 625 INTERIM_RMIC_BASE_MODULES := jdk.rmic
erikj@47474 626 INTERIM_RMIC_MODULES := $(addsuffix .interim, $(INTERIM_RMIC_BASE_MODULES))
erikj@47474 627 #
erikj@48284 628 # Use = to delay expansion of PathList since it's not available in this file.
lancea@49225 629 INTERIM_RMIC_ARGS = --limit-modules java.base,jdk.compiler,jdk.javadoc \
erikj@48284 630 --module-path $(call PathList, $(BUILDTOOLS_OUTPUTDIR)/interim_rmic_modules \
erikj@48284 631 $(BUILDTOOLS_OUTPUTDIR)/interim_langtools_modules) \
erikj@47474 632 #
erikj@47474 633
ohrstrom@15393 634 # You run the new javac using the boot jdk with $(BOOT_JDK)/bin/java $(NEW_JAVAC) ...
chegar@27560 635 # Use = assignment to be able to override in bootcycle-spec.gmk
alanb@36506 636 NEW_JAVAC = $(INTERIM_LANGTOOLS_ARGS) $(JAVAC_MAIN_CLASS)
alanb@36506 637 NEW_JAVADOC = $(INTERIM_LANGTOOLS_ARGS) $(JAVADOC_MAIN_CLASS)
alanb@36506 638
alanb@36506 639 JLINK_KEEP_PACKAGED_MODULES:=@JLINK_KEEP_PACKAGED_MODULES@
alanb@36506 640
ohair@12258 641 # Base flags for RC
ohair@12258 642 # Guarding this against resetting value. Legacy make files include spec multiple
ohair@12258 643 # times.
ohair@12258 644 ifndef RC_FLAGS
ihse@20363 645 RC_FLAGS:=@RC_FLAGS@
ohair@12258 646 endif
ohair@12258 647
ohair@12258 648 # Tools adhering to a minimal and common standard of posix compliance.
ohair@12258 649 AWK:=@AWK@
ohair@13697 650 BASENAME:=@BASENAME@
ohair@12258 651 CAT:=@CAT@
ohair@12258 652 CCACHE:=@CCACHE@
ohair@12258 653 # CD is going away, but remains to cater for legacy makefiles.
ohair@12258 654 CD:=cd
ohair@12258 655 CHMOD:=@CHMOD@
erikj@17661 656 CODESIGN:=@CODESIGN@
erikj@15056 657 COMM:=@COMM@
ohair@12258 658 CP:=@CP@
erikj@15056 659 CPIO:=@CPIO@
ohair@12258 660 CUT:=@CUT@
ohair@12258 661 DATE:=@DATE@
ohair@12258 662 DIFF:=@DIFF@
erikj@15056 663 DIRNAME:=@DIRNAME@
dcubed@20640 664 DSYMUTIL:=@DSYMUTIL@
ohair@12258 665 FIND:=@FIND@
ohair@12258 666 FIND_DELETE:=@FIND_DELETE@
asemenyuk@44465 667 FLOCK:=@FLOCK@
ohair@12258 668 ECHO:=@ECHO@
ohair@12258 669 EGREP:=@EGREP@
ohair@12258 670 FGREP:=@FGREP@
ohair@12258 671 GREP:=@GREP@
erikj@37972 672 GZIP:=@GZIP@
ohair@12258 673 HEAD:=@HEAD@
ohair@12258 674 LS:=@LS@
ohair@12258 675 LN:=@LN@
ohair@12258 676 MKDIR:=@MKDIR@
ohair@12258 677 MV:=@MV@
ohair@12258 678 NAWK:=@NAWK@
ihse@32920 679 NICE:=@NICE@
wetmore@45231 680 PANDOC:=@FIXPATH@ @PANDOC@
ihse@32715 681 PATCH:=@PATCH@
ohair@12258 682 PRINTF:=@PRINTF@
ihse@49343 683 READLINK:=@READLINK@
ohair@12258 684 RM:=@RM@
ihse@33052 685 RMDIR:=@RMDIR@
ohair@12258 686 SED:=@SED@
ohair@12258 687 SH:=@SH@
ohair@12258 688 SORT:=@SORT@
ohair@12258 689 TAR:=@TAR@
ohair@12258 690 TAIL:=@TAIL@
ohair@12258 691 TEE:=@TEE@
ohair@14111 692 TIME:=@TIME@
erikj@18425 693 IS_GNU_TIME:=@IS_GNU_TIME@
ohair@12258 694 TR:=@TR@
ohair@12258 695 TOUCH:=@TOUCH@
erikj@15056 696 UNIQ:=@UNIQ@
ohair@12258 697 WC:=@WC@
ohair@12258 698 XARGS:=@XARGS@
ihse@42136 699 ZIPEXE:=@ZIPEXE@
ohair@12258 700 UNZIP:=@UNZIP@
ohair@14111 701 MT:=@FIXPATH@ @MT@
ohair@14111 702 RC:=@FIXPATH@ @RC@
ohair@14111 703 DUMPBIN:=@FIXPATH@ @DUMPBIN@
ohair@12258 704 CYGPATH:=@CYGPATH@
ohair@12258 705 LDD:=@LDD@
ohair@12258 706 OTOOL:=@OTOOL@
ohair@12258 707 READELF:=@READELF@
ihse@49509 708 ELFEDIT:=@ELFEDIT@
ohair@12258 709 EXPR:=@EXPR@
ohair@12258 710 FILE:=@FILE@
ihse@44727 711 DOT:=@DOT@
erikj@12801 712 HG:=@HG@
erikj@13132 713 OBJCOPY:=@OBJCOPY@
ohair@14111 714 SETFILE:=@SETFILE@
erikj@16580 715 XATTR:=@XATTR@
erikj@17593 716 JT_HOME:=@JT_HOME@
erikj@17593 717 JTREGEXE:=@JTREGEXE@
ctornqvi@46196 718 JIB_JAR:=@JIB_JAR@
ddehaven@25034 719 XCODEBUILD=@XCODEBUILD@
erikj@37402 720 DTRACE := @DTRACE@
ohair@14111 721 FIXPATH:=@FIXPATH@
ohair@12258 722
erikj@38924 723 TAR_TYPE:=@TAR_TYPE@
erikj@38924 724 TAR_CREATE_EXTRA_PARAM:=@TAR_CREATE_EXTRA_PARAM@
erikj@37972 725 TAR_INCLUDE_PARAM:=@TAR_INCLUDE_PARAM@
erikj@37972 726 TAR_SUPPORTS_TRANSFORM:=@TAR_SUPPORTS_TRANSFORM@
erikj@37972 727
ohair@12258 728 # Build setup
kvn@42532 729 ENABLE_AOT:=@ENABLE_AOT@
ihse@43388 730 ENABLE_INTREE_EC:=@ENABLE_INTREE_EC@
ohair@12258 731 USE_EXTERNAL_LIBJPEG:=@USE_EXTERNAL_LIBJPEG@
ohair@12258 732 USE_EXTERNAL_LIBGIF:=@USE_EXTERNAL_LIBGIF@
ohair@12258 733 USE_EXTERNAL_LIBZ:=@USE_EXTERNAL_LIBZ@
erikj@49112 734 LIBZ_CFLAGS:=@LIBZ_CFLAGS@
erikj@49112 735 LIBZ_LIBS:=@LIBZ_LIBS@
erikj@13132 736 LIBZIP_CAN_USE_MMAP:=@LIBZIP_CAN_USE_MMAP@
ohair@14111 737 MSVCR_DLL:=@MSVCR_DLL@
erikj@28901 738 MSVCP_DLL:=@MSVCP_DLL@
erikj@50609 739 UCRT_DLL_DIR:=@UCRT_DLL_DIR@
iignatyev@37967 740 STLPORT_LIB:=@STLPORT_LIB@
ohair@12258 741
ohair@12258 742 ####################################################
ohair@12258 743 #
ohair@12258 744 # INSTALLATION
ohair@12258 745 #
ohair@12258 746
ohair@12258 747 # Common prefix for all installed files. Defaults to /usr/local,
ihse@20363 748 # but /opt/myjdk is another common version.
ohair@12258 749 INSTALL_PREFIX=@prefix@
ohair@12258 750
ohair@12258 751 # Directories containing architecture-dependent files should be relative to exec_prefix
ohair@12258 752 INSTALL_EXECPREFIX=@exec_prefix@
ohair@12258 753
jjg@48677 754 # java,javac,javap etc are installed here.
ohair@12258 755 INSTALL_BINDIR=@bindir@
ohair@12258 756
ohair@12258 757 # Read only architecture-independent data
ohair@12258 758 INSTALL_DATADIR=@datadir@
ohair@12258 759
ohair@12258 760 # Root of above.
ohair@12258 761 INSTALL_DATAROOTDIR=@datarootdir@
ohair@12258 762
ohair@12258 763 # Doc files, other than info and man.
ohair@12258 764 INSTALL_DOCDIR=@docdir@
ohair@12258 765
ohair@12258 766 # Html documentation
ohair@12258 767 INSTALL_HTMLDIR=@htmldir@
ohair@12258 768
ohair@12258 769 # Installing C header files, JNI headers for example.
ohair@12258 770 INSTALL_INCLUDEDIR=@includedir@
ohair@12258 771
ohair@12258 772 # Installing library files....
ohair@12258 773 INSTALL_INCLUDEDIR=@libdir@
ohair@12258 774
ohair@12258 775 # Executables that other programs run.
ohair@12258 776 INSTALL_LIBEXECDIR=@libexecdir@
ohair@12258 777
ihse@20363 778 # Locale-dependent but architecture-independent data, such as message catalogs.
ohair@12258 779 INSTALL_LOCALEDIR=@localedir@
ohair@12258 780
ohair@12258 781 # Modifiable single-machine data
ohair@12258 782 INSTALL_LOCALSTATEDIR=@localstatedir@
ohair@12258 783
ohair@12258 784 # Man pages
ohair@12258 785 INSTALL_MANDIR=@mandir@
ohair@12258 786
ohair@12258 787 # Modifiable architecture-independent data.
ohair@12258 788 INSTALL_SHAREDSTATEDIR=@sharedstatedir@
ohair@12258 789
ohair@12258 790 # Read-only single-machine data
ohair@12258 791 INSTALL_SYSCONFDIR=@sysconfdir@
ohair@12258 792
omajid@23163 793 ####################################################
omajid@23163 794 #
omajid@23163 795 # Libraries
omajid@23163 796 #
omajid@23163 797
omajid@24413 798 USE_EXTERNAL_LCMS:=@USE_EXTERNAL_LCMS@
omajid@24413 799 LCMS_CFLAGS:=@LCMS_CFLAGS@
omajid@24413 800 LCMS_LIBS:=@LCMS_LIBS@
omajid@24413 801
omajid@23163 802 USE_EXTERNAL_LIBPNG:=@USE_EXTERNAL_LIBPNG@
omajid@23163 803 PNG_LIBS:=@PNG_LIBS@
omajid@23163 804 PNG_CFLAGS:=@PNG_CFLAGS@
omajid@23163 805
ohair@12258 806 ####################################################
ohair@12258 807 #
ohair@12258 808 # Misc
ohair@12258 809 #
ohair@12258 810
omajid@16581 811 INCLUDE_SA=@INCLUDE_SA@
kvn@42531 812 INCLUDE_GRAAL=@INCLUDE_GRAAL@
omajid@16581 813
erikj@12801 814 OS_VERSION_MAJOR:=@OS_VERSION_MAJOR@
erikj@12801 815 OS_VERSION_MINOR:=@OS_VERSION_MINOR@
erikj@12801 816 OS_VERSION_MICRO:=@OS_VERSION_MICRO@
erikj@12801 817
erikj@15058 818 # Images directory definitions
chegar@27560 819 JDK_IMAGE_SUBDIR:=jdk
chegar@27560 820 JRE_IMAGE_SUBDIR:=jre
ihse@28285 821
erikj@16578 822 # Colon left out to be able to override output dir for bootcycle-images
erikj@16578 823 JDK_IMAGE_DIR=$(IMAGES_OUTPUTDIR)/$(JDK_IMAGE_SUBDIR)
erikj@16578 824 JRE_IMAGE_DIR=$(IMAGES_OUTPUTDIR)/$(JRE_IMAGE_SUBDIR)
erikj@15058 825
ihse@28285 826 # Test image, as above
ihse@28285 827 TEST_IMAGE_SUBDIR:=test
ihse@28285 828 TEST_IMAGE_DIR=$(IMAGES_OUTPUTDIR)/$(TEST_IMAGE_SUBDIR)
ihse@28285 829
erikj@29305 830 # Symbols image
erikj@29305 831 SYMBOLS_IMAGE_SUBDIR:=symbols
erikj@29305 832 SYMBOLS_IMAGE_DIR=$(IMAGES_OUTPUTDIR)/$(SYMBOLS_IMAGE_SUBDIR)
erikj@29305 833
redestad@37770 834 # Interim image
erikj@41874 835 INTERIM_JMODS_DIR := $(SUPPORT_OUTPUTDIR)/interim-jmods
redestad@37770 836 INTERIM_IMAGE_DIR := $(SUPPORT_OUTPUTDIR)/interim-image
redestad@37770 837
erikj@37972 838 # Docs image
erikj@37972 839 DOCS_IMAGE_SUBDIR := docs
ihse@41652 840 DOCS_IMAGE_DIR = $(IMAGES_OUTPUTDIR)/$(DOCS_IMAGE_SUBDIR)
ihse@45103 841 # Output docs directly into image
ihse@45103 842 DOCS_OUTPUTDIR := $(DOCS_IMAGE_DIR)
erikj@37972 843
erikj@15058 844 # Macosx bundles directory definitions
erikj@37972 845 JDK_MACOSX_BUNDLE_SUBDIR=jdk-bundle
erikj@37972 846 JRE_MACOSX_BUNDLE_SUBDIR=jre-bundle
ihse@30094 847 JDK_MACOSX_BUNDLE_DIR=$(IMAGES_OUTPUTDIR)/$(JDK_MACOSX_BUNDLE_SUBDIR)
ihse@30094 848 JRE_MACOSX_BUNDLE_DIR=$(IMAGES_OUTPUTDIR)/$(JRE_MACOSX_BUNDLE_SUBDIR)
erikj@37972 849 JDK_MACOSX_CONTENTS_SUBDIR=jdk-$(VERSION_NUMBER).jdk/Contents
erikj@37972 850 JRE_MACOSX_CONTENTS_SUBDIR=jre-$(VERSION_NUMBER).jre/Contents
erikj@37972 851 JDK_MACOSX_CONTENTS_DIR=$(JDK_MACOSX_BUNDLE_DIR)/$(JDK_MACOSX_CONTENTS_SUBDIR)
erikj@37972 852 JRE_MACOSX_CONTENTS_DIR=$(JRE_MACOSX_BUNDLE_DIR)/$(JRE_MACOSX_CONTENTS_SUBDIR)
erikj@37972 853
erikj@37972 854 # Bundle names
erikj@37972 855 BASE_NAME := $(VERSION_SHORT)+$(VERSION_BUILD)_$(OPENJDK_TARGET_BUNDLE_PLATFORM)
erikj@37972 856 ifeq ($(DEBUG_LEVEL), fastdebug)
erikj@37972 857 DEBUG_PART := -debug
erikj@37972 858 else ifneq ($(DEBUG_LEVEL), release)
erikj@37972 859 DEBUG_PART := -$(DEBUG_LEVEL)
erikj@37972 860 endif
erikj@51124 861 ifeq ($(OPENJDK_TARGET_OS), windows)
erikj@51124 862 JDK_BUNDLE_EXTENSION := zip
erikj@51124 863 else
erikj@51124 864 JDK_BUNDLE_EXTENSION := tar.gz
erikj@51124 865 endif
erikj@51124 866 JDK_BUNDLE_NAME := jdk-$(BASE_NAME)_bin$(DEBUG_PART).$(JDK_BUNDLE_EXTENSION)
erikj@37972 867 JDK_SYMBOLS_BUNDLE_NAME := jdk-$(BASE_NAME)_bin$(DEBUG_PART)-symbols.tar.gz
erikj@47571 868 TEST_DEMOS_BUNDLE_NAME := jdk-$(BASE_NAME)_bin-tests-demos$(DEBUG_PART).tar.gz
erikj@37972 869 TEST_BUNDLE_NAME := jdk-$(BASE_NAME)_bin-tests$(DEBUG_PART).tar.gz
erikj@37972 870 DOCS_BUNDLE_NAME := jdk-$(BASE_NAME)_doc-api-spec$(DEBUG_PART).tar.gz
erikj@37972 871
erikj@37972 872 JDK_BUNDLE := $(BUNDLES_OUTPUTDIR)/$(JDK_BUNDLE_NAME)
erikj@37972 873 JDK_SYMBOLS_BUNDLE := $(BUNDLES_OUTPUTDIR)/$(JDK_SYMBOLS_BUNDLE_NAME)
erikj@47571 874 TEST_DEMOS_BUNDLE := $(BUNDLES_OUTPUTDIR)/$(TEST_DEMOS_BUNDLE_NAME)
erikj@37972 875 TEST_BUNDLE := $(BUNDLES_OUTPUTDIR)/$(TEST_BUNDLE_NAME)
erikj@37972 876 DOCS_BUNDLE := $(BUNDLES_OUTPUTDIR)/$(DOCS_BUNDLE_NAME)
erikj@15058 877
ihse@22714 878 # This macro is called to allow inclusion of closed source counterparts.
ihse@22714 879 # Unless overridden in closed sources, it expands to nothing.
ihse@27595 880 # Usage: This function is called in an open makefile, with the following
ihse@47396 881 # argument:
ihse@47396 882 # $1 the name of the makefile
ihse@22714 883 define IncludeCustomExtension
ihse@22714 884 endef
ihse@22714 885
ohair@13697 886 # Include the custom-spec.gmk file if it exists
ohair@13697 887 -include $(dir @SPEC@)/custom-spec.gmk