annotate common/autoconf/spec.gmk.in @ 34103:d03d49538b76

8142983: Enable builds with icecc/icecream Reviewed-by: ihse
author erikj
date Tue, 24 Nov 2015 17:45:59 +0100
parents c0a98357f847
children 313fb07f49a6
rev   line source
ohair@12258 1 #
ihse@29173 2 # Copyright (c) 2011, 2015, 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@32719 39 # SPACE is defined in MakeBase.gmk, but it is also used in := rules here for some
ihse@32719 40 # toolchains, and is needed if MakeBase.gmk is not included before this file.
ihse@32719 41 X:=
ihse@32719 42 SPACE:=$(X) $(X)
ihse@32719 43
ihse@29662 44 # What make to use for main processing, after bootstrapping top-level Makefile.
ihse@29662 45 MAKE := @MAKE@
ohair@13697 46
ihse@29662 47 # The default make arguments
ihse@29788 48 MAKE_ARGS = $(MAKE_LOG_FLAGS) -r -R -I $(TOPDIR)/make/common SPEC=$(SPEC) \
ihse@29662 49 MAKE_LOG_FLAGS="$(MAKE_LOG_FLAGS)" LOG_LEVEL=$(LOG_LEVEL)
ohair@12258 50
chegar@25854 51 OUTPUT_SYNC_SUPPORTED:=@OUTPUT_SYNC_SUPPORTED@
chegar@25854 52 OUTPUT_SYNC:=@OUTPUT_SYNC@
chegar@25854 53
erikj@28602 54 # Override the shell with bash
erikj@28602 55 BASH:=@BASH@
erikj@28602 56 BASH_ARGS:=@BASH_ARGS@
erikj@28602 57 SHELL:=$(BASH) $(BASH_ARGS)
erikj@28602 58
erikj@12801 59 # The "human readable" name of this configuration
erikj@12801 60 CONF_NAME:=@CONF_NAME@
erikj@12801 61
erikj@13132 62 # The built jdk will run in this target system.
erikj@13132 63 OPENJDK_TARGET_OS:=@OPENJDK_TARGET_OS@
ihse@27586 64 OPENJDK_TARGET_OS_TYPE:=@OPENJDK_TARGET_OS_TYPE@
ohair@14111 65 OPENJDK_TARGET_OS_ENV:=@OPENJDK_TARGET_OS_ENV@
erikj@13132 66
erikj@13132 67 OPENJDK_TARGET_CPU:=@OPENJDK_TARGET_CPU@
erikj@13132 68 OPENJDK_TARGET_CPU_ARCH:=@OPENJDK_TARGET_CPU_ARCH@
erikj@13132 69 OPENJDK_TARGET_CPU_BITS:=@OPENJDK_TARGET_CPU_BITS@
erikj@13132 70 OPENJDK_TARGET_CPU_ENDIAN:=@OPENJDK_TARGET_CPU_ENDIAN@
ohair@12258 71
ohair@13697 72 COMPILE_TYPE:=@COMPILE_TYPE@
ohair@13697 73
ohair@13697 74 # Legacy support
ohair@13697 75 OPENJDK_TARGET_CPU_ISADIR:=@OPENJDK_TARGET_CPU_ISADIR@
ohair@13697 76 OPENJDK_TARGET_CPU_LIBDIR:=@OPENJDK_TARGET_CPU_LIBDIR@
ohair@13697 77 OPENJDK_TARGET_CPU_LEGACY:=@OPENJDK_TARGET_CPU_LEGACY@
ohair@13697 78 OPENJDK_TARGET_CPU_LEGACY_LIB:=@OPENJDK_TARGET_CPU_LEGACY_LIB@
ohair@13697 79 OPENJDK_TARGET_CPU_OSARCH:=@OPENJDK_TARGET_CPU_OSARCH@
ohair@13697 80 OPENJDK_TARGET_CPU_JLI_CFLAGS:=@OPENJDK_TARGET_CPU_JLI_CFLAGS@
dholmes@21055 81 OPENJDK_TARGET_OS_EXPORT_DIR:=@OPENJDK_TARGET_OS_EXPORT_DIR@
ohair@13697 82
ohair@12258 83 # We are building on this build system.
erikj@13132 84 # When not cross-compiling, it is the same as the target.
erikj@13132 85 OPENJDK_BUILD_OS:=@OPENJDK_BUILD_OS@
ihse@27586 86 OPENJDK_BUILD_OS_TYPE:=@OPENJDK_BUILD_OS_TYPE@
erikj@25882 87 OPENJDK_BUILD_OS_ENV:=@OPENJDK_BUILD_OS_ENV@
erikj@13132 88
erikj@13132 89 OPENJDK_BUILD_CPU:=@OPENJDK_BUILD_CPU@
erikj@13132 90 OPENJDK_BUILD_CPU_ARCH:=@OPENJDK_BUILD_CPU_ARCH@
erikj@13132 91 OPENJDK_BUILD_CPU_BITS:=@OPENJDK_BUILD_CPU_BITS@
erikj@13132 92 OPENJDK_BUILD_CPU_ENDIAN:=@OPENJDK_BUILD_CPU_ENDIAN@
ohair@12258 93
erikj@12801 94 # Legacy OS values for use in release file.
erikj@12801 95 REQUIRED_OS_NAME:=@REQUIRED_OS_NAME@
erikj@12801 96 REQUIRED_OS_VERSION:=@REQUIRED_OS_VERSION@
erikj@12801 97
ohair@12258 98 @SET_OPENJDK@
ihse@32921 99 LIBM:=@LIBM@
erikj@12801 100 LIBDL:=@LIBDL@
ohair@12258 101
ohair@12258 102 # colon or semicolon
ohair@12258 103 PATH_SEP:=@PATH_SEP@
ohair@12258 104
erikj@28809 105 # Save the original path before replacing it with the Visual Studio tools
erikj@28809 106 ORIGINAL_PATH:=@ORIGINAL_PATH@
ohair@14111 107 ifeq ($(OPENJDK_TARGET_OS), windows)
erikj@28809 108 # On Windows, the Visual Studio toolchain needs the PATH to be adjusted
erikj@28809 109 # to include Visual Studio tools (this needs to be in cygwin/msys style).
ohair@14111 110 export PATH:=@VS_PATH@
ohair@14111 111 endif
ohair@12258 112
erikj@23428 113 SYSROOT_CFLAGS := @SYSROOT_CFLAGS@
erikj@23428 114 SYSROOT_LDFLAGS := @SYSROOT_LDFLAGS@
ohair@12258 115
ihse@22722 116 # The top-level directory of the forest (SRC_ROOT is a traditional alias)
ihse@22722 117 TOPDIR:=@TOPDIR@
erikj@29663 118 # These two versions of TOPDIR are used in string comparisons
erikj@29663 119 ORIGINAL_TOPDIR:=@ORIGINAL_TOPDIR@
erikj@29663 120 CANONICAL_TOPDIR:=@CANONICAL_TOPDIR@
ihse@22722 121 SRC_ROOT:=@TOPDIR@
ihse@22722 122
ohair@12258 123 OUTPUT_ROOT:=@OUTPUT_ROOT@
ohair@12258 124 JDK_TOPDIR:=@JDK_TOPDIR@
ohair@12258 125 LANGTOOLS_TOPDIR:=@LANGTOOLS_TOPDIR@
ohair@12258 126 CORBA_TOPDIR:=@CORBA_TOPDIR@
ohair@12258 127 JAXP_TOPDIR:=@JAXP_TOPDIR@
ohair@12258 128 JAXWS_TOPDIR:=@JAXWS_TOPDIR@
ohair@12258 129 HOTSPOT_TOPDIR:=@HOTSPOT_TOPDIR@
jjg@15903 130 NASHORN_TOPDIR:=@NASHORN_TOPDIR@
ohair@12258 131 COPYRIGHT_YEAR:=@COPYRIGHT_YEAR@
ohair@12258 132
ohair@12258 133 # Information gathered from the version.numbers file.
ohair@12258 134 JDK_MAJOR_VERSION:=@JDK_MAJOR_VERSION@
ohair@12258 135 JDK_MINOR_VERSION:=@JDK_MINOR_VERSION@
ohair@12258 136 JDK_MICRO_VERSION:=@JDK_MICRO_VERSION@
ohair@12258 137 JDK_UPDATE_VERSION:=@JDK_UPDATE_VERSION@
ohair@12258 138 JDK_BUILD_NUMBER:=@JDK_BUILD_NUMBER@
ohair@12258 139 MILESTONE:=@MILESTONE@
ohair@12258 140 LAUNCHER_NAME:=@LAUNCHER_NAME@
ohair@12258 141 PRODUCT_NAME:=@PRODUCT_NAME@
ohair@12258 142 PRODUCT_SUFFIX:=@PRODUCT_SUFFIX@
ohair@12258 143 JDK_RC_PLATFORM_NAME:=@JDK_RC_PLATFORM_NAME@
ohair@12258 144 COMPANY_NAME:=@COMPANY_NAME@
ohair@14111 145 MACOSX_BUNDLE_NAME_BASE=@MACOSX_BUNDLE_NAME_BASE@
ohair@14111 146 MACOSX_BUNDLE_ID_BASE=@MACOSX_BUNDLE_ID_BASE@
erikj@20275 147 USER_RELEASE_SUFFIX=@USER_RELEASE_SUFFIX@
ohair@12258 148
ohair@12258 149 # Different version strings generated from the above information.
ohair@12258 150 JDK_VERSION:=@JDK_VERSION@
erikj@15056 151 RUNTIME_NAME=$(PRODUCT_NAME) $(PRODUCT_SUFFIX)
ohair@12258 152 COOKED_BUILD_NUMBER:=@COOKED_BUILD_NUMBER@
erikj@15055 153 # These variables need to be generated here so that MILESTONE and
erikj@15055 154 # JDK_BUILD_NUMBER can be overridden on the make command line.
erikj@22711 155 ifeq ($(MILESTONE), fcs)
erikj@15055 156 RELEASE=$(JDK_VERSION)$(BUILD_VARIANT_RELEASE)
erikj@15055 157 else
erikj@15055 158 RELEASE=$(JDK_VERSION)-$(MILESTONE)$(BUILD_VARIANT_RELEASE)
erikj@15055 159 endif
erikj@20275 160
ihse@20363 161 ifneq ($(USER_RELEASE_SUFFIX), )
erikj@15055 162 FULL_VERSION=$(RELEASE)-$(USER_RELEASE_SUFFIX)-$(JDK_BUILD_NUMBER)
erikj@15055 163 else
erikj@15055 164 FULL_VERSION=$(RELEASE)-$(JDK_BUILD_NUMBER)
erikj@15055 165 endif
erikj@15056 166 JRE_RELEASE_VERSION:=$(FULL_VERSION)
ihse@29862 167 JDK_VERSION_FOR_MANIFEST := $(JDK_MINOR_VERSION).$(JDK_MICRO_VERSION).$(if $(JDK_UPDATE_VERSION),$(JDK_UPDATE_VERSION),0).$(COOKED_BUILD_NUMBER)
ohair@12258 168
ohair@12258 169 # How to compile the code: release, fastdebug or slowdebug
ohair@12258 170 DEBUG_LEVEL:=@DEBUG_LEVEL@
ohair@12258 171
ohair@12258 172 # This is the JDK variant to build.
ohair@12258 173 # The JDK variant is a name for a specific set of modules to be compiled for the JDK.
ohair@12258 174 JDK_VARIANT:=@JDK_VARIANT@
ohair@12258 175
ohair@12258 176 # Should we compile support for running with a graphical UI? (ie headful)
ohair@12258 177 # Should we compile support for running without? (ie headless)
ohair@12258 178 SUPPORT_HEADFUL:=@SUPPORT_HEADFUL@
ohair@12258 179 SUPPORT_HEADLESS:=@SUPPORT_HEADLESS@
ohair@12258 180 # Legacy defines controlled by the SUPPORT_HEADLESS and SUPPORT_HEADFUL options.
ohair@12258 181 @BUILD_HEADLESS@
ohair@12258 182
ohair@12258 183 # These are the libjvms that we want to build.
ohair@12258 184 # The java launcher uses the default.
dholmes@14810 185 # The others can be selected by specifying -client -server -minimal1 -kernel -zero or -zeroshark
ohair@12258 186 # on the java launcher command line.
ohair@12258 187 JVM_VARIANTS:=@JVM_VARIANTS@
ohair@12258 188 JVM_VARIANT_SERVER:=@JVM_VARIANT_SERVER@
ohair@12258 189 JVM_VARIANT_CLIENT:=@JVM_VARIANT_CLIENT@
dholmes@14810 190 JVM_VARIANT_MINIMAL1:=@JVM_VARIANT_MINIMAL1@
ohair@12258 191 JVM_VARIANT_KERNEL:=@JVM_VARIANT_KERNEL@
ohair@12258 192 JVM_VARIANT_ZERO:=@JVM_VARIANT_ZERO@
ohair@12258 193 JVM_VARIANT_ZEROSHARK:=@JVM_VARIANT_ZEROSHARK@
simonis@22460 194 JVM_VARIANT_CORE:=@JVM_VARIANT_CORE@
ohair@12258 195
ohair@13697 196 # Universal binaries on macosx
ohair@13697 197 MACOSX_UNIVERSAL=@MACOSX_UNIVERSAL@
ohair@13697 198
ohair@12258 199 # Legacy setting: -debug or -fastdebug
ohair@13697 200 # Still used in version string...
ohair@12258 201 BUILD_VARIANT_RELEASE:=@BUILD_VARIANT_RELEASE@
ohair@12258 202
ohair@13697 203 # JDK_OUTPUTDIR specifies where a working jvm is built.
ohair@12258 204 # You can run $(JDK_OUTPUTDIR)/bin/java
ohair@12258 205 # Though the layout of the contents of $(JDK_OUTPUTDIR) is not
ohair@12258 206 # yet the same as a default installation.
ohair@13697 207 #
ohair@12258 208 # When you run "make install" it will create the standardized
ohair@13697 209 # layout for the jdk and the jre inside the IMAGES_OUTPUTDIR subdir.
ohair@12258 210 # Then it will copy the contents of the jdk into the installation
ohair@12258 211 # directory.
erikj@13132 212
ohair@13697 213 BUILD_OUTPUT:=@BUILD_OUTPUT@
erikj@16578 214 # Colon left out to be able to override IMAGES_OUTPUTDIR for bootcycle-images
chegar@27560 215 SUPPORT_OUTPUTDIR=$(BUILD_OUTPUT)/support
chegar@27560 216 BUILDTOOLS_OUTPUTDIR=$(BUILD_OUTPUT)/buildtools
chegar@27560 217
ohair@13697 218 HOTSPOT_OUTPUTDIR=$(BUILD_OUTPUT)/hotspot
ohair@13697 219 JDK_OUTPUTDIR=$(BUILD_OUTPUT)/jdk
ohair@13697 220 IMAGES_OUTPUTDIR=$(BUILD_OUTPUT)/images
erikj@28600 221 TESTMAKE_OUTPUTDIR=$(BUILD_OUTPUT)/test-make
erikj@26548 222 MAKESUPPORT_OUTPUTDIR=$(BUILD_OUTPUT)/make-support
erikj@29790 223 # This does not get overridden in a bootcycle build
erikj@29790 224 CONFIGURESUPPORT_OUTPUTDIR:=@CONFIGURESUPPORT_OUTPUTDIR@
erikj@13132 225
tbell@14378 226 HOTSPOT_DIST=@HOTSPOT_DIST@
tbell@14378 227
tbell@14378 228 BUILD_HOTSPOT=@BUILD_HOTSPOT@
ohair@12258 229
chegar@27560 230 # The boot jdk to use. This is overridden in bootcycle-spec.gmk. Make sure to keep
chegar@27560 231 # it in sync.
ohair@12258 232 BOOT_JDK:=@BOOT_JDK@
ohair@12258 233
ohair@12258 234 # When compiling Java source to be run by the boot jdk
ohair@12258 235 # use these extra flags, eg -source 6 -target 6
ohair@12258 236 BOOT_JDK_SOURCETARGET:=@BOOT_JDK_SOURCETARGET@
ohair@12258 237
ohair@12258 238 # Information about the build system
ohair@12258 239 NUM_CORES:=@NUM_CORES@
mduigou@23985 240 MEMORY_SIZE:=@MEMORY_SIZE@
ohair@13697 241 # Enable sjavac support = use a javac server,
ohair@13697 242 # multi core javac compilation and dependency tracking.
ohair@13697 243 ENABLE_SJAVAC:=@ENABLE_SJAVAC@
erikj@33055 244 ENABLE_JAVAC_SERVER:=@ENABLE_JAVAC_SERVER@
ohair@13697 245 # Store sjavac server synchronization files here, and
ohair@13697 246 # the sjavac server log files.
erikj@29790 247 SJAVAC_SERVER_DIR=$(MAKESUPPORT_OUTPUTDIR)/javacservers
ohair@12258 248
erikj@15790 249 # Number of parallel jobs to use for compilation
erikj@15790 250 JOBS?=@JOBS@
erikj@15790 251
ihse@20654 252 FREETYPE_LIBS:=@FREETYPE_LIBS@
ihse@20654 253 FREETYPE_CFLAGS:=@FREETYPE_CFLAGS@
ihse@20654 254 FREETYPE_BUNDLE_LIB_PATH=@FREETYPE_BUNDLE_LIB_PATH@
ohair@12258 255 CUPS_CFLAGS:=@CUPS_CFLAGS@
erikj@18018 256 ALSA_LIBS:=@ALSA_LIBS@
erikj@18018 257 ALSA_CFLAGS:=@ALSA_CFLAGS@
ohair@12258 258
ohair@12258 259 PACKAGE_PATH=@PACKAGE_PATH@
ohair@12258 260
erikj@12801 261 # Source file for cacerts
erikj@12801 262 CACERTS_FILE=@CACERTS_FILE@
ohair@12258 263
ihse@14112 264 # Enable unlimited crypto policy
ihse@14112 265 UNLIMITED_CRYPTO=@UNLIMITED_CRYPTO@
ihse@14112 266
erikj@29305 267 GCOV_ENABLED=@GCOV_ENABLED@
erikj@29305 268
ihse@20363 269 # Necessary additional compiler flags to compile X11
ohair@12258 270 X_CFLAGS:=@X_CFLAGS@
ohair@12258 271 X_LIBS:=@X_LIBS@
ohair@12258 272
erikj@15581 273 # The lowest required version of macosx to enforce compatiblity for
erikj@15786 274 MACOSX_VERSION_MIN=@MACOSX_VERSION_MIN@
erikj@15581 275
ihse@22721 276 # Toolchain type: gcc, clang, solstudio, lxc, microsoft...
ihse@22721 277 TOOLCHAIN_TYPE:=@TOOLCHAIN_TYPE@
ohair@12258 278
simonis@22466 279 # Option used to tell the compiler whether to create 32- or 64-bit executables
simonis@22466 280 COMPILER_TARGET_BITS_FLAG:=@COMPILER_TARGET_BITS_FLAG@
omajid@16984 281 COMPILER_SUPPORTS_TARGET_BITS_FLAG=@COMPILER_SUPPORTS_TARGET_BITS_FLAG@
omajid@16984 282
ohair@12258 283 CC_OUT_OPTION:=@CC_OUT_OPTION@
ohair@12258 284 EXE_OUT_OPTION:=@EXE_OUT_OPTION@
ohair@12258 285 LD_OUT_OPTION:=@LD_OUT_OPTION@
ohair@12258 286 AR_OUT_OPTION:=@AR_OUT_OPTION@
ohair@12258 287
ohair@12258 288 # Flags used for overriding the default opt setting for a C/C++ source file.
erikj@12801 289 C_O_FLAG_HIGHEST:=@C_O_FLAG_HIGHEST@
ohair@12258 290 C_O_FLAG_HI:=@C_O_FLAG_HI@
ohair@12258 291 C_O_FLAG_NORM:=@C_O_FLAG_NORM@
ohair@12258 292 C_O_FLAG_NONE:=@C_O_FLAG_NONE@
erikj@12801 293 CXX_O_FLAG_HIGHEST:=@CXX_O_FLAG_HIGHEST@
ohair@12258 294 CXX_O_FLAG_HI:=@CXX_O_FLAG_HI@
ohair@12258 295 CXX_O_FLAG_NORM:=@CXX_O_FLAG_NORM@
ohair@12258 296 CXX_O_FLAG_NONE:=@CXX_O_FLAG_NONE@
ohair@12258 297
erikj@12801 298 C_FLAG_DEPS:=@C_FLAG_DEPS@
erikj@12801 299 CXX_FLAG_DEPS:=@CXX_FLAG_DEPS@
erikj@12801 300
ihse@29304 301 DISABLE_WARNING_PREFIX := @DISABLE_WARNING_PREFIX@
sla@23423 302 CFLAGS_WARNINGS_ARE_ERRORS:=@CFLAGS_WARNINGS_ARE_ERRORS@
sla@23423 303
ihse@30415 304 # A global flag (true or false) determining if native warnings are considered errors.
ihse@30415 305 WARNINGS_AS_ERRORS := @WARNINGS_AS_ERRORS@
ihse@30415 306
erikj@28812 307 CFLAGS_CCACHE:=@CFLAGS_CCACHE@
erikj@28812 308
ohair@12258 309 # Tools that potentially need to be cross compilation aware.
erikj@34103 310 CC:=@FIXPATH@ @CCACHE@ @ICECC@ @CC@
ohair@12258 311
ohair@12258 312 # CFLAGS used to compile the jdk native libraries (C-code)
ohair@12258 313 CFLAGS_JDKLIB:=@CFLAGS_JDKLIB@
ohair@12258 314 CXXFLAGS_JDKLIB:=@CXXFLAGS_JDKLIB@
ohair@12258 315
ohair@12258 316 # CFLAGS used to compile the jdk native launchers (C-code)
ohair@12258 317 CFLAGS_JDKEXE:=@CFLAGS_JDKEXE@
ohair@12258 318 CXXFLAGS_JDKEXE:=@CXXFLAGS_JDKEXE@
ohair@12258 319
erikj@34103 320 CXX:=@FIXPATH@ @CCACHE@ @ICECC@ @CXX@
ohair@12258 321 #CXXFLAGS:=@CXXFLAGS@
ohair@12258 322
ohair@14111 323 CPP:=@FIXPATH@ @CPP@
ohair@12258 324 #CPPFLAGS:=@CPPFLAGS@
ohair@12258 325
ihse@27586 326 # The linker can be gcc or ld on unix systems, or link.exe on windows systems.
ohair@14111 327 LD:=@FIXPATH@ @LD@
ohair@12258 328
ddehaven@25034 329 # Xcode SDK path
ddehaven@25034 330 SDKROOT:=@SDKROOT@
ddehaven@25034 331
simonis@22460 332 # The linker on older SuSE distros (e.g. on SLES 10) complains with:
simonis@22460 333 # "Invalid version tag `SUNWprivate_1.1'. Only anonymous version tag is allowed in executable."
simonis@22460 334 # if feeded with a version script which contains named tags.
simonis@22460 335 USING_BROKEN_SUSE_LD:=@USING_BROKEN_SUSE_LD@
simonis@22460 336
ohair@12258 337 # LDFLAGS used to link the jdk native libraries (C-code)
ohair@12258 338 LDFLAGS_JDKLIB:=@LDFLAGS_JDKLIB@
ihse@33394 339 JDKLIB_LIBS:=@JDKLIB_LIBS@
ohair@12258 340
ohair@12258 341 # LDFLAGS used to link the jdk native launchers (C-code)
ohair@12258 342 LDFLAGS_JDKEXE:=@LDFLAGS_JDKEXE@
ihse@33394 343 JDKEXE_LIBS:=@JDKEXE_LIBS@
ohair@12258 344
ohair@13697 345 # LDFLAGS specific to C++ linking.
ohair@13697 346 LDFLAGS_CXX_JDK:=@LDFLAGS_CXX_JDK@
ohair@13697 347
ohair@12258 348 # Sometimes a different linker is needed for c++ libs
ohair@14111 349 LDCXX:=@FIXPATH@ @LDCXX@
ohair@12258 350 # The flags for linking libstdc++ linker.
ohair@12258 351 LIBCXX:=@LIBCXX@
ohair@12258 352
erikj@29305 353 # Compiler and linker flags used when building native tests
erikj@29305 354 CFLAGS_TESTLIB:=@CFLAGS_TESTLIB@
erikj@29305 355 CXXFLAGS_TESTLIB:=@CXXFLAGS_TESTLIB@
erikj@29305 356 CFLAGS_TESTEXE:=@CFLAGS_TESTEXE@
erikj@29305 357 CXXFLAGS_TESTEXE:=@CXXFLAGS_TESTEXE@
erikj@29305 358 LDFLAGS_TESTLIB:=@LDFLAGS_TESTLIB@
erikj@29305 359 LDFLAGS_TESTEXE:=@LDFLAGS_TESTEXE@
erikj@29305 360
ohair@13697 361 # BUILD_CC/BUILD_LD is a compiler/linker that generates code that is runnable on the
ohair@13697 362 # build platform.
erikj@34103 363 BUILD_CC:=@FIXPATH@ @BUILD_ICECC@ @BUILD_CC@
erikj@34103 364 BUILD_CXX:=@FIXPATH@ @BUILD_ICECC@ @BUILD_CXX@
ohair@14111 365 BUILD_LD:=@FIXPATH@ @BUILD_LD@
erikj@34102 366 BUILD_AS:=@FIXPATH@ @BUILD_AS@
erikj@34102 367 BUILD_AR:=@FIXPATH@ @BUILD_AR@
erikj@34102 368 BUILD_NM:=@FIXPATH@ @BUILD_NM@
erikj@32810 369 BUILD_SYSROOT_CFLAGS:=@BUILD_SYSROOT_CFLAGS@
erikj@32810 370 BUILD_SYSROOT_LDFLAGS:=@BUILD_SYSROOT_LDFLAGS@
erikj@13132 371
ohair@14111 372 AS:=@FIXPATH@ @AS@
ohair@12258 373
ihse@27586 374 # AR is used to create a static library (is ar in unix, lib.exe in windows)
ohair@14111 375 AR:=@FIXPATH@ @AR@
ohair@12258 376 ARFLAGS:=@ARFLAGS@
ohair@12258 377
ohair@13697 378 NM:=@NM@
erikj@16582 379 GNM:=@GNM@
ohair@13697 380 STRIP:=@STRIP@
ohair@13697 381
ohair@13697 382 LIPO:=@LIPO@
ohair@12258 383
ihse@20363 384 # Options to linker to specify a mapfile.
ohair@12258 385 # (Note absence of := assignment, because we do not want to evaluate the macro body here)
ohair@12258 386 SET_SHARED_LIBRARY_MAPFILE=@SET_SHARED_LIBRARY_MAPFILE@
ohair@12258 387
erikj@12801 388 # Options for C/CXX compiler to be used if linking is performed
erikj@12801 389 # using reorder file
erikj@12801 390 C_FLAG_REORDER:=@C_FLAG_REORDER@
erikj@12801 391 CXX_FLAG_REORDER:=@CXX_FLAG_REORDER@
erikj@12801 392
erikj@13132 393 #
erikj@13132 394 # Options for generating debug symbols
erikj@13132 395 ENABLE_DEBUG_SYMBOLS:=@ENABLE_DEBUG_SYMBOLS@
erikj@13132 396 CFLAGS_DEBUG_SYMBOLS:=@CFLAGS_DEBUG_SYMBOLS@
erikj@13132 397 CXXFLAGS_DEBUG_SYMBOLS:=@CXXFLAGS_DEBUG_SYMBOLS@
erikj@13132 398 ZIP_DEBUGINFO_FILES:=@ZIP_DEBUGINFO_FILES@
erikj@13132 399
erikj@13132 400 #
erikj@13132 401 # Compress (or not) jars
erikj@13132 402 COMPRESS_JARS=@COMPRESS_JARS@
erikj@13132 403
ohair@12258 404 # Options to linker to specify the library name.
ohair@12258 405 # (Note absence of := assignment, because we do not want to evaluate the macro body here)
ohair@12258 406 SET_SHARED_LIBRARY_NAME=@SET_SHARED_LIBRARY_NAME@
ohair@12258 407
ohair@12258 408 # Set origin using the linker, ie use the relative path to the dependent library to find the dependees.
ohair@12258 409 # (Note absence of := assignment, because we do not want to evaluate the macro body here)
ohair@12258 410 SET_SHARED_LIBRARY_ORIGIN=@SET_SHARED_LIBRARY_ORIGIN@
ohair@13697 411 SET_EXECUTABLE_ORIGIN=@SET_EXECUTABLE_ORIGIN@
ohair@12258 412
ohair@12258 413 # Different OS:es have different ways of naming shared libraries.
ohair@12258 414 # The SHARED_LIBRARY macro takes "verify" as and argument and returns:
ohair@12258 415 # "libverify.so" or "libverify.dylib" or "verify.dll" depending on platform.
ohair@12258 416 # (Note absence of := assignment, because we do not want to evaluate the macro body here)
ohair@12258 417 SHARED_LIBRARY=@SHARED_LIBRARY@
ohair@12258 418 STATIC_LIBRARY=@STATIC_LIBRARY@
ohair@12258 419 LIBRARY_PREFIX:=@LIBRARY_PREFIX@
ohair@12258 420 SHARED_LIBRARY_SUFFIX:=@SHARED_LIBRARY_SUFFIX@
ohair@12258 421 STATIC_LIBRARY_SUFFIX:=@STATIC_LIBRARY_SUFFIX@
ohair@12258 422 EXE_SUFFIX:=@EXE_SUFFIX@
ohair@12258 423 OBJ_SUFFIX:=@OBJ_SUFFIX@
bobv@33562 424 STATIC_BUILD:=@STATIC_BUILD@
ohair@12258 425
erikj@32811 426 STRIPFLAGS:=@STRIPFLAGS@
erikj@12801 427
mduigou@22728 428 JAVA_FLAGS:=@JAVA_FLAGS@
erikj@23171 429 JAVA_FLAGS_BIG:=@JAVA_FLAGS_BIG@
erikj@23171 430 JAVA_FLAGS_SMALL:=@JAVA_FLAGS_SMALL@
erikj@34101 431 JAVA_FLAGS_JAVAC:=@JAVA_FLAGS_JAVAC@
chegar@25854 432 JAVA_TOOL_FLAGS_SMALL:=@JAVA_TOOL_FLAGS_SMALL@
erikj@26907 433 SJAVAC_SERVER_JAVA_FLAGS:=@SJAVAC_SERVER_JAVA_FLAGS@
ohair@12258 434
ihse@27595 435 # The *_CMD variables are defined separately to be easily overridden in bootcycle-spec.gmk
erikj@26907 436 # for bootcycle-images build. Make sure to keep them in sync. Do not use the *_CMD
erikj@26907 437 # versions of the variables directly.
erikj@26907 438 JAVA_CMD:=@JAVA@
erikj@26907 439 JAVAC_CMD:=@JAVAC@
erikj@26907 440 JAVAH_CMD:=@JAVAH@
erikj@26907 441 JAR_CMD:=@JAR@
erikj@26907 442 JARSIGNER_CMD:=@JARSIGNER@
erikj@26907 443 SJAVAC_SERVER_JAVA_CMD:=@SJAVAC_SERVER_JAVA@
erikj@26907 444 # These variables are meant to be used. They are defined with = instead of := to make
erikj@26907 445 # it possible to override only the *_CMD variables.
erikj@26907 446 JAVA=@FIXPATH@ $(JAVA_CMD) $(JAVA_FLAGS_BIG) $(JAVA_FLAGS)
erikj@26907 447 JAVA_SMALL=@FIXPATH@ $(JAVA_CMD) $(JAVA_FLAGS_SMALL) $(JAVA_FLAGS)
erikj@34101 448 JAVA_JAVAC=@FIXPATH@ $(JAVA_CMD) $(JAVA_FLAGS_JAVAC) $(JAVA_FLAGS)
erikj@26907 449 JAVAC=@FIXPATH@ $(JAVAC_CMD)
erikj@26907 450 JAVAH=@FIXPATH@ $(JAVAH_CMD)
erikj@26907 451 JAR=@FIXPATH@ $(JAR_CMD)
erikj@26907 452 JARSIGNER=@FIXPATH@ $(JARSIGNER_CMD)
erikj@26907 453 # A specific java binary with specific options can be used to run
erikj@26907 454 # the long running background sjavac servers and other long running tasks.
erikj@34101 455 SJAVAC_SERVER_JAVA=@FIXPATH@ @FIXPATH_DETACH_FLAG@ $(SJAVAC_SERVER_JAVA_CMD) \
erikj@34101 456 $(SJAVAC_SERVER_JAVA_FLAGS)
ohair@12258 457
ohair@13697 458 # Hotspot sets this variable before reading the SPEC when compiling sa-jdi.jar. Avoid
ohair@13697 459 # overriding that value by using ?=.
ohair@13697 460 JAVAC_FLAGS?=@JAVAC_FLAGS@
ohair@12258 461
ohrstrom@15393 462 # You run the new javac using the boot jdk with $(BOOT_JDK)/bin/java $(NEW_JAVAC) ...
chegar@27560 463 # Use = assignment to be able to override in bootcycle-spec.gmk
chegar@27560 464 INTERIM_LANGTOOLS_JAR = $(BUILDTOOLS_OUTPUTDIR)/interim_langtools.jar
chegar@27560 465 INTERIM_LANGTOOLS_ARGS = "-Xbootclasspath/p:$(INTERIM_LANGTOOLS_JAR)" -cp $(INTERIM_LANGTOOLS_JAR)
erikj@22480 466 NEW_JAVAC = $(INTERIM_LANGTOOLS_ARGS) com.sun.tools.javac.Main
erikj@22480 467 NEW_JAVADOC = $(INTERIM_LANGTOOLS_ARGS) com.sun.tools.javadoc.Main
erikj@22480 468
ohair@12258 469 # Base flags for RC
ohair@12258 470 # Guarding this against resetting value. Legacy make files include spec multiple
ohair@12258 471 # times.
ohair@12258 472 ifndef RC_FLAGS
ihse@20363 473 RC_FLAGS:=@RC_FLAGS@
ohair@12258 474 endif
ohair@12258 475
ohair@12258 476 # Tools adhering to a minimal and common standard of posix compliance.
ohair@12258 477 AWK:=@AWK@
ohair@13697 478 BASENAME:=@BASENAME@
ohair@12258 479 CAT:=@CAT@
ohair@12258 480 CCACHE:=@CCACHE@
ohair@12258 481 # CD is going away, but remains to cater for legacy makefiles.
ohair@12258 482 CD:=cd
ohair@12258 483 CHMOD:=@CHMOD@
erikj@17661 484 CODESIGN:=@CODESIGN@
erikj@15056 485 COMM:=@COMM@
ohair@12258 486 CP:=@CP@
erikj@15056 487 CPIO:=@CPIO@
ohair@12258 488 CUT:=@CUT@
ohair@12258 489 DATE:=@DATE@
ohair@12258 490 DIFF:=@DIFF@
erikj@15056 491 DIRNAME:=@DIRNAME@
dcubed@20640 492 DSYMUTIL:=@DSYMUTIL@
ohair@12258 493 FIND:=@FIND@
ohair@12258 494 FIND_DELETE:=@FIND_DELETE@
ohair@12258 495 ECHO:=@ECHO@
ohair@12258 496 EGREP:=@EGREP@
ohair@12258 497 FGREP:=@FGREP@
ohair@12258 498 GREP:=@GREP@
ohair@12258 499 HEAD:=@HEAD@
ohair@12258 500 LS:=@LS@
ohair@12258 501 LN:=@LN@
ohair@12258 502 MKDIR:=@MKDIR@
ohair@12258 503 MV:=@MV@
ohair@12258 504 NAWK:=@NAWK@
ihse@32920 505 NICE:=@NICE@
ihse@32715 506 PATCH:=@PATCH@
ohair@12258 507 PRINTF:=@PRINTF@
ohair@12258 508 PWD:=@THEPWDCMD@
ohair@12258 509 RM:=@RM@
ihse@33052 510 RMDIR:=@RMDIR@
ohair@12258 511 SED:=@SED@
ohair@12258 512 SH:=@SH@
ohair@12258 513 SORT:=@SORT@
ohair@12258 514 TAR:=@TAR@
ohair@12258 515 TAIL:=@TAIL@
ohair@12258 516 TEE:=@TEE@
ohair@14111 517 TIME:=@TIME@
erikj@18425 518 IS_GNU_TIME:=@IS_GNU_TIME@
ohair@12258 519 TR:=@TR@
ohair@12258 520 TOUCH:=@TOUCH@
erikj@15056 521 UNIQ:=@UNIQ@
ohair@12258 522 WC:=@WC@
ohair@12258 523 XARGS:=@XARGS@
ohair@12258 524 ZIPEXE:=@ZIP@
ohair@12258 525 ZIP:=@ZIP@
ohair@12258 526 UNZIP:=@UNZIP@
ohair@14111 527 MT:=@FIXPATH@ @MT@
ohair@14111 528 RC:=@FIXPATH@ @RC@
ohair@14111 529 DUMPBIN:=@FIXPATH@ @DUMPBIN@
ohair@12258 530 CYGPATH:=@CYGPATH@
ohair@12258 531 LDD:=@LDD@
ohair@12258 532 OTOOL:=@OTOOL@
ohair@12258 533 READELF:=@READELF@
ohair@12258 534 EXPR:=@EXPR@
ohair@12258 535 FILE:=@FILE@
erikj@12801 536 HG:=@HG@
erikj@13132 537 OBJCOPY:=@OBJCOPY@
ohair@14111 538 SETFILE:=@SETFILE@
erikj@16580 539 XATTR:=@XATTR@
erikj@17593 540 JT_HOME:=@JT_HOME@
erikj@17593 541 JTREGEXE:=@JTREGEXE@
ddehaven@25034 542 XCODEBUILD=@XCODEBUILD@
ohair@14111 543 FIXPATH:=@FIXPATH@
ohair@12258 544
ohair@12258 545 # Build setup
erikj@13132 546 ENABLE_JFR=@ENABLE_JFR@
omajid@15914 547 ENABLE_INTREE_EC=@ENABLE_INTREE_EC@
ohair@12258 548 USE_EXTERNAL_LIBJPEG:=@USE_EXTERNAL_LIBJPEG@
ohair@12258 549 USE_EXTERNAL_LIBGIF:=@USE_EXTERNAL_LIBGIF@
ohair@12258 550 USE_EXTERNAL_LIBZ:=@USE_EXTERNAL_LIBZ@
erikj@13132 551 LIBZIP_CAN_USE_MMAP:=@LIBZIP_CAN_USE_MMAP@
ohair@14111 552 MSVCR_DLL:=@MSVCR_DLL@
erikj@28901 553 MSVCP_DLL:=@MSVCP_DLL@
ohair@12258 554
ohair@12258 555 ####################################################
ohair@12258 556 #
ohair@12258 557 # INSTALLATION
ohair@12258 558 #
ohair@12258 559
ohair@12258 560 # Common prefix for all installed files. Defaults to /usr/local,
ihse@20363 561 # but /opt/myjdk is another common version.
ohair@12258 562 INSTALL_PREFIX=@prefix@
ohair@12258 563
ohair@12258 564 # Directories containing architecture-dependent files should be relative to exec_prefix
ohair@12258 565 INSTALL_EXECPREFIX=@exec_prefix@
ohair@12258 566
ohair@12258 567 # java,javac,javah,javap etc are installed here.
ohair@12258 568 INSTALL_BINDIR=@bindir@
ohair@12258 569
ohair@12258 570 # Read only architecture-independent data
ohair@12258 571 INSTALL_DATADIR=@datadir@
ohair@12258 572
ohair@12258 573 # Root of above.
ohair@12258 574 INSTALL_DATAROOTDIR=@datarootdir@
ohair@12258 575
ohair@12258 576 # Doc files, other than info and man.
ohair@12258 577 INSTALL_DOCDIR=@docdir@
ohair@12258 578
ohair@12258 579 # Html documentation
ohair@12258 580 INSTALL_HTMLDIR=@htmldir@
ohair@12258 581
ohair@12258 582 # Installing C header files, JNI headers for example.
ohair@12258 583 INSTALL_INCLUDEDIR=@includedir@
ohair@12258 584
ohair@12258 585 # Installing library files....
ohair@12258 586 INSTALL_INCLUDEDIR=@libdir@
ohair@12258 587
ohair@12258 588 # Executables that other programs run.
ohair@12258 589 INSTALL_LIBEXECDIR=@libexecdir@
ohair@12258 590
ihse@20363 591 # Locale-dependent but architecture-independent data, such as message catalogs.
ohair@12258 592 INSTALL_LOCALEDIR=@localedir@
ohair@12258 593
ohair@12258 594 # Modifiable single-machine data
ohair@12258 595 INSTALL_LOCALSTATEDIR=@localstatedir@
ohair@12258 596
ohair@12258 597 # Man pages
ohair@12258 598 INSTALL_MANDIR=@mandir@
ohair@12258 599
ohair@12258 600 # Modifiable architecture-independent data.
ohair@12258 601 INSTALL_SHAREDSTATEDIR=@sharedstatedir@
ohair@12258 602
ohair@12258 603 # Read-only single-machine data
ohair@12258 604 INSTALL_SYSCONFDIR=@sysconfdir@
ohair@12258 605
omajid@23163 606 ####################################################
omajid@23163 607 #
omajid@23163 608 # Libraries
omajid@23163 609 #
omajid@23163 610
omajid@24413 611 USE_EXTERNAL_LCMS:=@USE_EXTERNAL_LCMS@
omajid@24413 612 LCMS_CFLAGS:=@LCMS_CFLAGS@
omajid@24413 613 LCMS_LIBS:=@LCMS_LIBS@
omajid@24413 614
omajid@23163 615 USE_EXTERNAL_LIBPNG:=@USE_EXTERNAL_LIBPNG@
omajid@23163 616 PNG_LIBS:=@PNG_LIBS@
omajid@23163 617 PNG_CFLAGS:=@PNG_CFLAGS@
omajid@23163 618
ohair@12258 619
ohair@12258 620 ####################################################
ohair@12258 621 #
ohair@12258 622 # Misc
ohair@12258 623 #
ohair@12258 624
erikj@12801 625 # Name of Service Agent library
erikj@12801 626 SALIB_NAME=@SALIB_NAME@
erikj@12801 627
omajid@16581 628 INCLUDE_SA=@INCLUDE_SA@
omajid@16581 629
erikj@12801 630 OS_VERSION_MAJOR:=@OS_VERSION_MAJOR@
erikj@12801 631 OS_VERSION_MINOR:=@OS_VERSION_MINOR@
erikj@12801 632 OS_VERSION_MICRO:=@OS_VERSION_MICRO@
erikj@12801 633
erikj@15058 634 # Images directory definitions
chegar@27560 635 JDK_IMAGE_SUBDIR:=jdk
chegar@27560 636 JRE_IMAGE_SUBDIR:=jre
ihse@28285 637
erikj@16578 638 # Colon left out to be able to override output dir for bootcycle-images
erikj@16578 639 JDK_IMAGE_DIR=$(IMAGES_OUTPUTDIR)/$(JDK_IMAGE_SUBDIR)
erikj@16578 640 JRE_IMAGE_DIR=$(IMAGES_OUTPUTDIR)/$(JRE_IMAGE_SUBDIR)
erikj@15058 641
ihse@28285 642 # Test image, as above
ihse@28285 643 TEST_IMAGE_SUBDIR:=test
ihse@28285 644 TEST_IMAGE_DIR=$(IMAGES_OUTPUTDIR)/$(TEST_IMAGE_SUBDIR)
ihse@28285 645
erikj@29305 646 # Symbols image
erikj@29305 647 SYMBOLS_IMAGE_SUBDIR:=symbols
erikj@29305 648 SYMBOLS_IMAGE_DIR=$(IMAGES_OUTPUTDIR)/$(SYMBOLS_IMAGE_SUBDIR)
erikj@29305 649
erikj@15058 650 # Macosx bundles directory definitions
ihse@30094 651 JDK_MACOSX_BUNDLE_SUBDIR=jdk-bundle/jdk$(JDK_VERSION).jdk/Contents
ihse@30094 652 JRE_MACOSX_BUNDLE_SUBDIR=jre-bundle/jre$(JDK_VERSION).jre/Contents
ihse@30094 653 JDK_MACOSX_BUNDLE_DIR=$(IMAGES_OUTPUTDIR)/$(JDK_MACOSX_BUNDLE_SUBDIR)
ihse@30094 654 JRE_MACOSX_BUNDLE_DIR=$(IMAGES_OUTPUTDIR)/$(JRE_MACOSX_BUNDLE_SUBDIR)
erikj@15058 655
ihse@22714 656 # This macro is called to allow inclusion of closed source counterparts.
ihse@22714 657 # Unless overridden in closed sources, it expands to nothing.
ihse@27595 658 # Usage: This function is called in an open makefile, with the following
ihse@22714 659 # arguments:
ihse@22714 660 # $1 the name of the repo, or empty if the top-level repo.
ihse@22714 661 # $2 the name of the makefile
ihse@22714 662 define IncludeCustomExtension
ihse@22714 663 endef
ihse@22714 664
ohair@13697 665 # Include the custom-spec.gmk file if it exists
ohair@13697 666 -include $(dir @SPEC@)/custom-spec.gmk