annotate make/autoconf/spec.gmk.in @ 55009:9c44ab24b4a4

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