annotate common/autoconf/spec.gmk.in @ 1933:c2696ab4abae

8148655: LOG=cmdlines and other build-infra fixes Reviewed-by: erikj
author ihse
date Tue, 02 Feb 2016 15:02:55 +0100
parents 1090777d4103
children a2a3930ed7c3
rev   line source
ohair@423 1 #
ihse@1366 2 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
ohair@423 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
ohair@423 4 #
ohair@423 5 # This code is free software; you can redistribute it and/or modify it
ohair@423 6 # under the terms of the GNU General Public License version 2 only, as
ohair@423 7 # published by the Free Software Foundation. Oracle designates this
ohair@423 8 # particular file as subject to the "Classpath" exception as provided
ohair@423 9 # by Oracle in the LICENSE file that accompanied this code.
ohair@423 10 #
ohair@423 11 # This code is distributed in the hope that it will be useful, but WITHOUT
ohair@423 12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
ohair@423 13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
ohair@423 14 # version 2 for more details (a copy is included in the LICENSE file that
ohair@423 15 # accompanied this code).
ohair@423 16 #
ohair@423 17 # You should have received a copy of the GNU General Public License version
ohair@423 18 # 2 along with this work; if not, write to the Free Software Foundation,
ohair@423 19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
ohair@423 20 #
ohair@423 21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
ohair@423 22 # or visit www.oracle.com if you need additional information or have any
ohair@423 23 # questions.
ohair@423 24 #
ohair@423 25
ohair@476 26 # Configured @DATE_WHEN_CONFIGURED@ to build
ohair@476 27 # for target system @OPENJDK_TARGET_OS@-@OPENJDK_TARGET_CPU@
ohair@476 28 # (called @OPENJDK_TARGET_AUTOCONF_NAME@ by autoconf)
ohair@476 29 # on build system @OPENJDK_BUILD_OS@-@OPENJDK_BUILD_CPU@
ohair@476 30 # (called @OPENJDK_BUILD_AUTOCONF_NAME@ by autoconf)
erikj@456 31 # using 'configure @CONFIGURE_COMMAND_LINE@'
ohair@423 32
ihse@970 33 # The command line given to configure.
ihse@970 34 CONFIGURE_COMMAND_LINE:=@CONFIGURE_COMMAND_LINE@
ihse@970 35
ohair@476 36 # A self-referential reference to this file.
ohair@476 37 SPEC:=@SPEC@
ohair@476 38
ihse@1665 39 # SPACE is defined in MakeBase.gmk, but it is also used in := rules here for some
ihse@1665 40 # toolchains, and is needed if MakeBase.gmk is not included before this file.
ihse@1665 41 X:=
ihse@1665 42 SPACE:=$(X) $(X)
ihse@1665 43
ihse@1414 44 # What make to use for main processing, after bootstrapping top-level Makefile.
ihse@1414 45 MAKE := @MAKE@
ohair@476 46
ihse@1414 47 # The default make arguments
ihse@1430 48 MAKE_ARGS = $(MAKE_LOG_FLAGS) -r -R -I $(TOPDIR)/make/common SPEC=$(SPEC) \
ihse@1414 49 MAKE_LOG_FLAGS="$(MAKE_LOG_FLAGS)" LOG_LEVEL=$(LOG_LEVEL)
ohair@423 50
chegar@1120 51 OUTPUT_SYNC_SUPPORTED:=@OUTPUT_SYNC_SUPPORTED@
chegar@1120 52 OUTPUT_SYNC:=@OUTPUT_SYNC@
chegar@1120 53
erikj@1305 54 # Override the shell with bash
erikj@1305 55 BASH:=@BASH@
erikj@1305 56 BASH_ARGS:=@BASH_ARGS@
erikj@1305 57 SHELL:=$(BASH) $(BASH_ARGS)
erikj@1305 58
erikj@443 59 # The "human readable" name of this configuration
erikj@443 60 CONF_NAME:=@CONF_NAME@
erikj@443 61
erikj@456 62 # The built jdk will run in this target system.
erikj@456 63 OPENJDK_TARGET_OS:=@OPENJDK_TARGET_OS@
ihse@1231 64 OPENJDK_TARGET_OS_TYPE:=@OPENJDK_TARGET_OS_TYPE@
ohair@492 65 OPENJDK_TARGET_OS_ENV:=@OPENJDK_TARGET_OS_ENV@
erikj@456 66
erikj@456 67 OPENJDK_TARGET_CPU:=@OPENJDK_TARGET_CPU@
erikj@456 68 OPENJDK_TARGET_CPU_ARCH:=@OPENJDK_TARGET_CPU_ARCH@
erikj@456 69 OPENJDK_TARGET_CPU_BITS:=@OPENJDK_TARGET_CPU_BITS@
erikj@456 70 OPENJDK_TARGET_CPU_ENDIAN:=@OPENJDK_TARGET_CPU_ENDIAN@
ohair@423 71
ohair@476 72 COMPILE_TYPE:=@COMPILE_TYPE@
ohair@476 73
ohair@476 74 # Legacy support
ohair@476 75 OPENJDK_TARGET_CPU_ISADIR:=@OPENJDK_TARGET_CPU_ISADIR@
ohair@476 76 OPENJDK_TARGET_CPU_LIBDIR:=@OPENJDK_TARGET_CPU_LIBDIR@
ohair@476 77 OPENJDK_TARGET_CPU_LEGACY:=@OPENJDK_TARGET_CPU_LEGACY@
ohair@476 78 OPENJDK_TARGET_CPU_LEGACY_LIB:=@OPENJDK_TARGET_CPU_LEGACY_LIB@
ohair@476 79 OPENJDK_TARGET_CPU_OSARCH:=@OPENJDK_TARGET_CPU_OSARCH@
ohair@476 80 OPENJDK_TARGET_CPU_JLI_CFLAGS:=@OPENJDK_TARGET_CPU_JLI_CFLAGS@
dholmes@870 81 OPENJDK_TARGET_OS_EXPORT_DIR:=@OPENJDK_TARGET_OS_EXPORT_DIR@
ohair@476 82
ohair@423 83 # We are building on this build system.
erikj@456 84 # When not cross-compiling, it is the same as the target.
erikj@456 85 OPENJDK_BUILD_OS:=@OPENJDK_BUILD_OS@
ihse@1231 86 OPENJDK_BUILD_OS_TYPE:=@OPENJDK_BUILD_OS_TYPE@
erikj@1127 87 OPENJDK_BUILD_OS_ENV:=@OPENJDK_BUILD_OS_ENV@
erikj@456 88
erikj@456 89 OPENJDK_BUILD_CPU:=@OPENJDK_BUILD_CPU@
erikj@456 90 OPENJDK_BUILD_CPU_ARCH:=@OPENJDK_BUILD_CPU_ARCH@
erikj@456 91 OPENJDK_BUILD_CPU_BITS:=@OPENJDK_BUILD_CPU_BITS@
erikj@456 92 OPENJDK_BUILD_CPU_ENDIAN:=@OPENJDK_BUILD_CPU_ENDIAN@
ohair@423 93
erikj@443 94 # Legacy OS values for use in release file.
erikj@443 95 REQUIRED_OS_NAME:=@REQUIRED_OS_NAME@
erikj@443 96 REQUIRED_OS_VERSION:=@REQUIRED_OS_VERSION@
erikj@443 97
ohair@423 98 @SET_OPENJDK@
ihse@1680 99 LIBM:=@LIBM@
erikj@443 100 LIBDL:=@LIBDL@
ohair@423 101
ohair@423 102 # colon or semicolon
ohair@423 103 PATH_SEP:=@PATH_SEP@
ohair@423 104
erikj@1319 105 # Save the original path before replacing it with the Visual Studio tools
erikj@1319 106 ORIGINAL_PATH:=@ORIGINAL_PATH@
ohair@492 107 ifeq ($(OPENJDK_TARGET_OS), windows)
erikj@1319 108 # On Windows, the Visual Studio toolchain needs the PATH to be adjusted
erikj@1319 109 # to include Visual Studio tools (this needs to be in cygwin/msys style).
ohair@492 110 export PATH:=@VS_PATH@
ohair@492 111 endif
ohair@423 112
erikj@1008 113 SYSROOT_CFLAGS := @SYSROOT_CFLAGS@
erikj@1008 114 SYSROOT_LDFLAGS := @SYSROOT_LDFLAGS@
ohair@423 115
ihse@976 116 # The top-level directory of the forest (SRC_ROOT is a traditional alias)
ihse@976 117 TOPDIR:=@TOPDIR@
erikj@1415 118 # These two versions of TOPDIR are used in string comparisons
erikj@1415 119 ORIGINAL_TOPDIR:=@ORIGINAL_TOPDIR@
erikj@1415 120 CANONICAL_TOPDIR:=@CANONICAL_TOPDIR@
ihse@976 121 SRC_ROOT:=@TOPDIR@
ihse@976 122
ohair@423 123 OUTPUT_ROOT:=@OUTPUT_ROOT@
ohair@423 124 JDK_TOPDIR:=@JDK_TOPDIR@
ohair@423 125 LANGTOOLS_TOPDIR:=@LANGTOOLS_TOPDIR@
ohair@423 126 CORBA_TOPDIR:=@CORBA_TOPDIR@
ohair@423 127 JAXP_TOPDIR:=@JAXP_TOPDIR@
ohair@423 128 JAXWS_TOPDIR:=@JAXWS_TOPDIR@
ohair@423 129 HOTSPOT_TOPDIR:=@HOTSPOT_TOPDIR@
jjg@643 130 NASHORN_TOPDIR:=@NASHORN_TOPDIR@
ohair@423 131 COPYRIGHT_YEAR:=@COPYRIGHT_YEAR@
ohair@423 132
ihse@1774 133 # New (JEP-223) version information
ihse@1774 134
ihse@1774 135 ## Building blocks of the version string
ihse@1774 136 # First three version numbers, with well-specified meanings (numerical)
ihse@1774 137 VERSION_MAJOR := @VERSION_MAJOR@
ihse@1774 138 VERSION_MINOR := @VERSION_MINOR@
ihse@1774 139 VERSION_SECURITY := @VERSION_SECURITY@
ihse@1774 140 # Optional fourth element for use by OpenJDK consumers (numerical)
ihse@1774 141 VERSION_PATCH := @VERSION_PATCH@
ihse@1774 142 # The pre-release identifier (string)
ihse@1774 143 VERSION_PRE := @VERSION_PRE@
ihse@1774 144 # The build number (numerical)
ihse@1774 145 VERSION_BUILD := @VERSION_BUILD@
ihse@1774 146 # Optional build information (string)
ihse@1774 147 VERSION_OPT := @VERSION_OPT@
ihse@1774 148
ihse@1774 149 ## Composite variables
ihse@1774 150 # The version number as a dot separated sequence of numbers, e.g. 9.0.1
ihse@1774 151 VERSION_NUMBER := @VERSION_NUMBER@
ihse@1774 152 # VERSION_NUMBER but always with exactly 4 positions, with 0 for empty positions.
ihse@1774 153 VERSION_NUMBER_FOUR_POSITIONS := @VERSION_NUMBER_FOUR_POSITIONS@
ihse@1774 154 # The complete version string, with additional build information
ihse@1774 155 VERSION_STRING := @VERSION_STRING@
ihse@1774 156 # The short version string, without trailing zeroes and just PRE, if present.
ihse@1774 157 VERSION_SHORT := @VERSION_SHORT@
ihse@1774 158 # The Java specification version. It should be equal to version number.
ihse@1774 159 VERSION_SPECIFICATION := @VERSION_NUMBER@
erikj@1777 160 # A GA version is defined by the PRE string being empty. Rather than testing for
erikj@1777 161 # that, this variable defines it with true/false.
erikj@1777 162 VERSION_IS_GA := @VERSION_IS_GA@
ihse@1774 163
ihse@1774 164 # Convenience CFLAGS settings for passing version information into native programs.
ihse@1774 165 VERSION_CFLAGS := \
ihse@1774 166 -DVERSION_MAJOR=$(VERSION_MAJOR) \
ihse@1774 167 -DVERSION_MINOR=$(VERSION_MINOR) \
ihse@1774 168 -DVERSION_SECURITY=$(VERSION_SECURITY) \
ihse@1774 169 -DVERSION_PATCH=$(VERSION_PATCH) \
ihse@1774 170 -DVERSION_PRE='"$(VERSION_PRE)"' \
ihse@1774 171 -DVERSION_BUILD=$(VERSION_BUILD) \
ihse@1774 172 -DVERSION_OPT='"$(VERSION_OPT)"' \
ihse@1774 173 -DVERSION_NUMBER='"$(VERSION_NUMBER)"' \
ihse@1774 174 -DVERSION_STRING='"$(VERSION_STRING)"' \
ihse@1774 175 -DVERSION_SHORT='"$(VERSION_SHORT)"' \
ihse@1774 176 -DVERSION_SPECIFICATION='"$(VERSION_SPECIFICATION)"' \
ihse@1774 177 #
ihse@1774 178
ihse@1774 179 # Platform naming variables
ohair@423 180 LAUNCHER_NAME:=@LAUNCHER_NAME@
ohair@423 181 PRODUCT_NAME:=@PRODUCT_NAME@
ohair@423 182 PRODUCT_SUFFIX:=@PRODUCT_SUFFIX@
ohair@423 183 JDK_RC_PLATFORM_NAME:=@JDK_RC_PLATFORM_NAME@
ohair@423 184 COMPANY_NAME:=@COMPANY_NAME@
ohair@492 185 MACOSX_BUNDLE_NAME_BASE=@MACOSX_BUNDLE_NAME_BASE@
ohair@492 186 MACOSX_BUNDLE_ID_BASE=@MACOSX_BUNDLE_ID_BASE@
ihse@1933 187 USERNAME:=@USERNAME@
ohair@423 188
ihse@1774 189 # Different naming strings generated from the above information.
erikj@560 190 RUNTIME_NAME=$(PRODUCT_NAME) $(PRODUCT_SUFFIX)
ohair@423 191
ohair@423 192 # How to compile the code: release, fastdebug or slowdebug
ohair@423 193 DEBUG_LEVEL:=@DEBUG_LEVEL@
ohair@423 194
ohair@423 195 # This is the JDK variant to build.
ohair@423 196 # The JDK variant is a name for a specific set of modules to be compiled for the JDK.
ohair@423 197 JDK_VARIANT:=@JDK_VARIANT@
ohair@423 198
ohair@423 199 # Should we compile support for running with a graphical UI? (ie headful)
ohair@423 200 # Should we compile support for running without? (ie headless)
ohair@423 201 SUPPORT_HEADFUL:=@SUPPORT_HEADFUL@
ohair@423 202 SUPPORT_HEADLESS:=@SUPPORT_HEADLESS@
ohair@423 203 # Legacy defines controlled by the SUPPORT_HEADLESS and SUPPORT_HEADFUL options.
ohair@423 204 @BUILD_HEADLESS@
ohair@423 205
ohair@423 206 # These are the libjvms that we want to build.
ohair@423 207 # The java launcher uses the default.
ihse@1847 208 # The others can be selected by specifying -client -server -minimal1 -zero or -zeroshark
ohair@423 209 # on the java launcher command line.
ohair@423 210 JVM_VARIANTS:=@JVM_VARIANTS@
ohair@423 211 JVM_VARIANT_SERVER:=@JVM_VARIANT_SERVER@
ohair@423 212 JVM_VARIANT_CLIENT:=@JVM_VARIANT_CLIENT@
dholmes@540 213 JVM_VARIANT_MINIMAL1:=@JVM_VARIANT_MINIMAL1@
ohair@423 214 JVM_VARIANT_ZERO:=@JVM_VARIANT_ZERO@
ohair@423 215 JVM_VARIANT_ZEROSHARK:=@JVM_VARIANT_ZEROSHARK@
simonis@939 216 JVM_VARIANT_CORE:=@JVM_VARIANT_CORE@
ohair@423 217
ohair@476 218 # Universal binaries on macosx
ohair@476 219 MACOSX_UNIVERSAL=@MACOSX_UNIVERSAL@
ohair@476 220
ohair@423 221 # Legacy setting: -debug or -fastdebug
ohair@476 222 # Still used in version string...
ohair@423 223 BUILD_VARIANT_RELEASE:=@BUILD_VARIANT_RELEASE@
ohair@423 224
ohair@476 225 # JDK_OUTPUTDIR specifies where a working jvm is built.
ohair@423 226 # You can run $(JDK_OUTPUTDIR)/bin/java
ohair@423 227 # Though the layout of the contents of $(JDK_OUTPUTDIR) is not
ohair@423 228 # yet the same as a default installation.
ohair@476 229 #
ohair@423 230 # When you run "make install" it will create the standardized
ohair@476 231 # layout for the jdk and the jre inside the IMAGES_OUTPUTDIR subdir.
ohair@423 232 # Then it will copy the contents of the jdk into the installation
ohair@423 233 # directory.
erikj@456 234
ohair@476 235 BUILD_OUTPUT:=@BUILD_OUTPUT@
erikj@666 236 # Colon left out to be able to override IMAGES_OUTPUTDIR for bootcycle-images
chegar@1227 237 SUPPORT_OUTPUTDIR=$(BUILD_OUTPUT)/support
chegar@1227 238 BUILDTOOLS_OUTPUTDIR=$(BUILD_OUTPUT)/buildtools
chegar@1227 239
ohair@476 240 HOTSPOT_OUTPUTDIR=$(BUILD_OUTPUT)/hotspot
ohair@476 241 JDK_OUTPUTDIR=$(BUILD_OUTPUT)/jdk
ohair@476 242 IMAGES_OUTPUTDIR=$(BUILD_OUTPUT)/images
erikj@1303 243 TESTMAKE_OUTPUTDIR=$(BUILD_OUTPUT)/test-make
erikj@1171 244 MAKESUPPORT_OUTPUTDIR=$(BUILD_OUTPUT)/make-support
erikj@1432 245 # This does not get overridden in a bootcycle build
erikj@1432 246 CONFIGURESUPPORT_OUTPUTDIR:=@CONFIGURESUPPORT_OUTPUTDIR@
erikj@456 247
tbell@504 248 HOTSPOT_DIST=@HOTSPOT_DIST@
tbell@504 249
tbell@504 250 BUILD_HOTSPOT=@BUILD_HOTSPOT@
ohair@423 251
chegar@1227 252 # The boot jdk to use. This is overridden in bootcycle-spec.gmk. Make sure to keep
chegar@1227 253 # it in sync.
ohair@423 254 BOOT_JDK:=@BOOT_JDK@
ohair@423 255
ohair@423 256 # When compiling Java source to be run by the boot jdk
ohair@423 257 # use these extra flags, eg -source 6 -target 6
ohair@423 258 BOOT_JDK_SOURCETARGET:=@BOOT_JDK_SOURCETARGET@
ohair@423 259
ohair@423 260 # Information about the build system
ohair@423 261 NUM_CORES:=@NUM_CORES@
mduigou@1030 262 MEMORY_SIZE:=@MEMORY_SIZE@
ohair@476 263 # Enable sjavac support = use a javac server,
ohair@476 264 # multi core javac compilation and dependency tracking.
ohair@476 265 ENABLE_SJAVAC:=@ENABLE_SJAVAC@
erikj@1720 266 ENABLE_JAVAC_SERVER:=@ENABLE_JAVAC_SERVER@
ohair@476 267 # Store sjavac server synchronization files here, and
ohair@476 268 # the sjavac server log files.
erikj@1432 269 SJAVAC_SERVER_DIR=$(MAKESUPPORT_OUTPUTDIR)/javacservers
ohair@423 270
erikj@633 271 # Number of parallel jobs to use for compilation
erikj@633 272 JOBS?=@JOBS@
ehelin@1845 273 TEST_JOBS?=@TEST_JOBS@
erikj@633 274
erikj@1835 275 # Default make target
erikj@1835 276 DEFAULT_MAKE_TARGET:=@DEFAULT_MAKE_TARGET@
erikj@1835 277
ihse@866 278 FREETYPE_LIBS:=@FREETYPE_LIBS@
ihse@866 279 FREETYPE_CFLAGS:=@FREETYPE_CFLAGS@
ihse@866 280 FREETYPE_BUNDLE_LIB_PATH=@FREETYPE_BUNDLE_LIB_PATH@
ohair@423 281 CUPS_CFLAGS:=@CUPS_CFLAGS@
erikj@735 282 ALSA_LIBS:=@ALSA_LIBS@
erikj@735 283 ALSA_CFLAGS:=@ALSA_CFLAGS@
ihse@1847 284 LIBFFI_LIBS:=@LIBFFI_LIBS@
ihse@1847 285 LIBFFI_CFLAGS:=@LIBFFI_CFLAGS@
ohair@423 286
ohair@423 287 PACKAGE_PATH=@PACKAGE_PATH@
ohair@423 288
erikj@443 289 # Source file for cacerts
erikj@443 290 CACERTS_FILE=@CACERTS_FILE@
ohair@423 291
ihse@493 292 # Enable unlimited crypto policy
ihse@493 293 UNLIMITED_CRYPTO=@UNLIMITED_CRYPTO@
ihse@493 294
erikj@1376 295 GCOV_ENABLED=@GCOV_ENABLED@
erikj@1376 296
ihse@837 297 # Necessary additional compiler flags to compile X11
ohair@423 298 X_CFLAGS:=@X_CFLAGS@
ohair@423 299 X_LIBS:=@X_LIBS@
ohair@423 300
erikj@619 301 # The lowest required version of macosx to enforce compatiblity for
erikj@629 302 MACOSX_VERSION_MIN=@MACOSX_VERSION_MIN@
erikj@619 303
ihse@975 304 # Toolchain type: gcc, clang, solstudio, lxc, microsoft...
ihse@975 305 TOOLCHAIN_TYPE:=@TOOLCHAIN_TYPE@
ihse@1847 306 TOOLCHAIN_VERSION := @TOOLCHAIN_VERSION@
ohair@423 307
simonis@945 308 # Option used to tell the compiler whether to create 32- or 64-bit executables
simonis@945 309 COMPILER_TARGET_BITS_FLAG:=@COMPILER_TARGET_BITS_FLAG@
omajid@693 310 COMPILER_SUPPORTS_TARGET_BITS_FLAG=@COMPILER_SUPPORTS_TARGET_BITS_FLAG@
omajid@693 311
ihse@1847 312 # Option used to pass a command file to the compiler
ihse@1847 313 COMPILER_COMMAND_FILE_FLAG:=@COMPILER_COMMAND_FILE_FLAG@
ihse@1847 314
ohair@423 315 CC_OUT_OPTION:=@CC_OUT_OPTION@
ohair@423 316 EXE_OUT_OPTION:=@EXE_OUT_OPTION@
ohair@423 317 LD_OUT_OPTION:=@LD_OUT_OPTION@
ohair@423 318 AR_OUT_OPTION:=@AR_OUT_OPTION@
ohair@423 319
ohair@423 320 # Flags used for overriding the default opt setting for a C/C++ source file.
erikj@443 321 C_O_FLAG_HIGHEST:=@C_O_FLAG_HIGHEST@
ohair@423 322 C_O_FLAG_HI:=@C_O_FLAG_HI@
ohair@423 323 C_O_FLAG_NORM:=@C_O_FLAG_NORM@
ohair@423 324 C_O_FLAG_NONE:=@C_O_FLAG_NONE@
erikj@443 325 CXX_O_FLAG_HIGHEST:=@CXX_O_FLAG_HIGHEST@
ohair@423 326 CXX_O_FLAG_HI:=@CXX_O_FLAG_HI@
ohair@423 327 CXX_O_FLAG_NORM:=@CXX_O_FLAG_NORM@
ohair@423 328 CXX_O_FLAG_NONE:=@CXX_O_FLAG_NONE@
ohair@423 329
erikj@443 330 C_FLAG_DEPS:=@C_FLAG_DEPS@
erikj@443 331 CXX_FLAG_DEPS:=@CXX_FLAG_DEPS@
erikj@443 332
ihse@1375 333 DISABLE_WARNING_PREFIX := @DISABLE_WARNING_PREFIX@
sla@1003 334 CFLAGS_WARNINGS_ARE_ERRORS:=@CFLAGS_WARNINGS_ARE_ERRORS@
sla@1003 335
ihse@1490 336 # A global flag (true or false) determining if native warnings are considered errors.
ihse@1490 337 WARNINGS_AS_ERRORS := @WARNINGS_AS_ERRORS@
ihse@1490 338
erikj@1322 339 CFLAGS_CCACHE:=@CFLAGS_CCACHE@
erikj@1322 340
ohair@423 341 # Tools that potentially need to be cross compilation aware.
erikj@1809 342 CC:=@FIXPATH@ @CCACHE@ @ICECC@ @CC@
ohair@423 343
ohair@423 344 # CFLAGS used to compile the jdk native libraries (C-code)
ohair@423 345 CFLAGS_JDKLIB:=@CFLAGS_JDKLIB@
ohair@423 346 CXXFLAGS_JDKLIB:=@CXXFLAGS_JDKLIB@
ohair@423 347
ohair@423 348 # CFLAGS used to compile the jdk native launchers (C-code)
ohair@423 349 CFLAGS_JDKEXE:=@CFLAGS_JDKEXE@
ohair@423 350 CXXFLAGS_JDKEXE:=@CXXFLAGS_JDKEXE@
ohair@423 351
erikj@1809 352 CXX:=@FIXPATH@ @CCACHE@ @ICECC@ @CXX@
ohair@423 353 #CXXFLAGS:=@CXXFLAGS@
ohair@423 354
ohair@492 355 CPP:=@FIXPATH@ @CPP@
ohair@423 356 #CPPFLAGS:=@CPPFLAGS@
ohair@423 357
ihse@1231 358 # The linker can be gcc or ld on unix systems, or link.exe on windows systems.
ohair@492 359 LD:=@FIXPATH@ @LD@
ohair@423 360
ddehaven@1076 361 # Xcode SDK path
ddehaven@1076 362 SDKROOT:=@SDKROOT@
ddehaven@1076 363
simonis@939 364 # The linker on older SuSE distros (e.g. on SLES 10) complains with:
simonis@939 365 # "Invalid version tag `SUNWprivate_1.1'. Only anonymous version tag is allowed in executable."
simonis@939 366 # if feeded with a version script which contains named tags.
simonis@939 367 USING_BROKEN_SUSE_LD:=@USING_BROKEN_SUSE_LD@
simonis@939 368
ohair@423 369 # LDFLAGS used to link the jdk native libraries (C-code)
ohair@423 370 LDFLAGS_JDKLIB:=@LDFLAGS_JDKLIB@
ihse@1728 371 JDKLIB_LIBS:=@JDKLIB_LIBS@
ohair@423 372
ohair@423 373 # LDFLAGS used to link the jdk native launchers (C-code)
ohair@423 374 LDFLAGS_JDKEXE:=@LDFLAGS_JDKEXE@
ihse@1728 375 JDKEXE_LIBS:=@JDKEXE_LIBS@
ohair@423 376
ohair@476 377 # LDFLAGS specific to C++ linking.
ohair@476 378 LDFLAGS_CXX_JDK:=@LDFLAGS_CXX_JDK@
ohair@476 379
ohair@423 380 # Sometimes a different linker is needed for c++ libs
ohair@492 381 LDCXX:=@FIXPATH@ @LDCXX@
ohair@423 382 # The flags for linking libstdc++ linker.
ohair@423 383 LIBCXX:=@LIBCXX@
ohair@423 384
erikj@1376 385 # Compiler and linker flags used when building native tests
erikj@1376 386 CFLAGS_TESTLIB:=@CFLAGS_TESTLIB@
erikj@1376 387 CXXFLAGS_TESTLIB:=@CXXFLAGS_TESTLIB@
erikj@1376 388 CFLAGS_TESTEXE:=@CFLAGS_TESTEXE@
erikj@1376 389 CXXFLAGS_TESTEXE:=@CXXFLAGS_TESTEXE@
erikj@1376 390 LDFLAGS_TESTLIB:=@LDFLAGS_TESTLIB@
erikj@1376 391 LDFLAGS_TESTEXE:=@LDFLAGS_TESTEXE@
erikj@1376 392
ohair@476 393 # BUILD_CC/BUILD_LD is a compiler/linker that generates code that is runnable on the
ohair@476 394 # build platform.
erikj@1809 395 BUILD_CC:=@FIXPATH@ @BUILD_ICECC@ @BUILD_CC@
erikj@1809 396 BUILD_CXX:=@FIXPATH@ @BUILD_ICECC@ @BUILD_CXX@
ohair@492 397 BUILD_LD:=@FIXPATH@ @BUILD_LD@
ihse@1847 398 BUILD_LDCXX:=@FIXPATH@ @BUILD_LDCXX@
erikj@1808 399 BUILD_AS:=@FIXPATH@ @BUILD_AS@
erikj@1808 400 BUILD_AR:=@FIXPATH@ @BUILD_AR@
erikj@1808 401 BUILD_NM:=@FIXPATH@ @BUILD_NM@
erikj@1673 402 BUILD_SYSROOT_CFLAGS:=@BUILD_SYSROOT_CFLAGS@
erikj@1673 403 BUILD_SYSROOT_LDFLAGS:=@BUILD_SYSROOT_LDFLAGS@
erikj@456 404
ohair@492 405 AS:=@FIXPATH@ @AS@
ohair@423 406
ihse@1231 407 # AR is used to create a static library (is ar in unix, lib.exe in windows)
ohair@492 408 AR:=@FIXPATH@ @AR@
ohair@423 409 ARFLAGS:=@ARFLAGS@
ohair@423 410
ohair@476 411 NM:=@NM@
erikj@670 412 GNM:=@GNM@
ohair@476 413 STRIP:=@STRIP@
ohair@476 414
ohair@476 415 LIPO:=@LIPO@
ohair@423 416
ihse@837 417 # Options to linker to specify a mapfile.
ohair@423 418 # (Note absence of := assignment, because we do not want to evaluate the macro body here)
ohair@423 419 SET_SHARED_LIBRARY_MAPFILE=@SET_SHARED_LIBRARY_MAPFILE@
ohair@423 420
erikj@443 421 # Options for C/CXX compiler to be used if linking is performed
erikj@443 422 # using reorder file
erikj@443 423 C_FLAG_REORDER:=@C_FLAG_REORDER@
erikj@443 424 CXX_FLAG_REORDER:=@CXX_FLAG_REORDER@
erikj@443 425
erikj@456 426 #
erikj@456 427 # Options for generating debug symbols
ihse@1904 428 COMPILE_WITH_DEBUG_SYMBOLS := @COMPILE_WITH_DEBUG_SYMBOLS@
ihse@1904 429 COPY_DEBUG_SYMBOLS := @COPY_DEBUG_SYMBOLS@
ihse@1904 430 ZIP_EXTERNAL_DEBUG_SYMBOLS := @ZIP_EXTERNAL_DEBUG_SYMBOLS@
ihse@1904 431
erikj@456 432 CFLAGS_DEBUG_SYMBOLS:=@CFLAGS_DEBUG_SYMBOLS@
erikj@456 433 CXXFLAGS_DEBUG_SYMBOLS:=@CXXFLAGS_DEBUG_SYMBOLS@
erikj@456 434
erikj@456 435 #
erikj@456 436 # Compress (or not) jars
erikj@456 437 COMPRESS_JARS=@COMPRESS_JARS@
erikj@456 438
ohair@423 439 # Options to linker to specify the library name.
ohair@423 440 # (Note absence of := assignment, because we do not want to evaluate the macro body here)
ohair@423 441 SET_SHARED_LIBRARY_NAME=@SET_SHARED_LIBRARY_NAME@
ohair@423 442
ihse@1847 443 SHARED_LIBRARY_FLAGS=@SHARED_LIBRARY_FLAGS@
ihse@1847 444
ohair@423 445 # Set origin using the linker, ie use the relative path to the dependent library to find the dependees.
ohair@423 446 # (Note absence of := assignment, because we do not want to evaluate the macro body here)
ohair@423 447 SET_SHARED_LIBRARY_ORIGIN=@SET_SHARED_LIBRARY_ORIGIN@
ohair@476 448 SET_EXECUTABLE_ORIGIN=@SET_EXECUTABLE_ORIGIN@
ohair@423 449
ohair@423 450 # Different OS:es have different ways of naming shared libraries.
ohair@423 451 # The SHARED_LIBRARY macro takes "verify" as and argument and returns:
ohair@423 452 # "libverify.so" or "libverify.dylib" or "verify.dll" depending on platform.
ohair@423 453 # (Note absence of := assignment, because we do not want to evaluate the macro body here)
ohair@423 454 SHARED_LIBRARY=@SHARED_LIBRARY@
ohair@423 455 STATIC_LIBRARY=@STATIC_LIBRARY@
ohair@423 456 LIBRARY_PREFIX:=@LIBRARY_PREFIX@
ohair@423 457 SHARED_LIBRARY_SUFFIX:=@SHARED_LIBRARY_SUFFIX@
ohair@423 458 STATIC_LIBRARY_SUFFIX:=@STATIC_LIBRARY_SUFFIX@
ohair@423 459 EXE_SUFFIX:=@EXE_SUFFIX@
ohair@423 460 OBJ_SUFFIX:=@OBJ_SUFFIX@
bobv@1750 461 STATIC_BUILD:=@STATIC_BUILD@
ohair@423 462
erikj@1674 463 STRIPFLAGS:=@STRIPFLAGS@
erikj@443 464
mduigou@982 465 JAVA_FLAGS:=@JAVA_FLAGS@
erikj@998 466 JAVA_FLAGS_BIG:=@JAVA_FLAGS_BIG@
erikj@998 467 JAVA_FLAGS_SMALL:=@JAVA_FLAGS_SMALL@
erikj@1807 468 JAVA_FLAGS_JAVAC:=@JAVA_FLAGS_JAVAC@
chegar@1120 469 JAVA_TOOL_FLAGS_SMALL:=@JAVA_TOOL_FLAGS_SMALL@
erikj@1196 470 SJAVAC_SERVER_JAVA_FLAGS:=@SJAVAC_SERVER_JAVA_FLAGS@
ohair@423 471
ihse@1240 472 # The *_CMD variables are defined separately to be easily overridden in bootcycle-spec.gmk
erikj@1196 473 # for bootcycle-images build. Make sure to keep them in sync. Do not use the *_CMD
erikj@1196 474 # versions of the variables directly.
erikj@1196 475 JAVA_CMD:=@JAVA@
erikj@1196 476 JAVAC_CMD:=@JAVAC@
erikj@1196 477 JAVAH_CMD:=@JAVAH@
erikj@1196 478 JAR_CMD:=@JAR@
erikj@1196 479 JARSIGNER_CMD:=@JARSIGNER@
erikj@1196 480 SJAVAC_SERVER_JAVA_CMD:=@SJAVAC_SERVER_JAVA@
erikj@1196 481 # These variables are meant to be used. They are defined with = instead of := to make
erikj@1196 482 # it possible to override only the *_CMD variables.
erikj@1196 483 JAVA=@FIXPATH@ $(JAVA_CMD) $(JAVA_FLAGS_BIG) $(JAVA_FLAGS)
erikj@1196 484 JAVA_SMALL=@FIXPATH@ $(JAVA_CMD) $(JAVA_FLAGS_SMALL) $(JAVA_FLAGS)
erikj@1807 485 JAVA_JAVAC=@FIXPATH@ $(JAVA_CMD) $(JAVA_FLAGS_JAVAC) $(JAVA_FLAGS)
erikj@1196 486 JAVAC=@FIXPATH@ $(JAVAC_CMD)
erikj@1196 487 JAVAH=@FIXPATH@ $(JAVAH_CMD)
erikj@1196 488 JAR=@FIXPATH@ $(JAR_CMD)
erikj@1196 489 JARSIGNER=@FIXPATH@ $(JARSIGNER_CMD)
erikj@1196 490 # A specific java binary with specific options can be used to run
erikj@1196 491 # the long running background sjavac servers and other long running tasks.
erikj@1807 492 SJAVAC_SERVER_JAVA=@FIXPATH@ @FIXPATH_DETACH_FLAG@ $(SJAVAC_SERVER_JAVA_CMD) \
erikj@1807 493 $(SJAVAC_SERVER_JAVA_FLAGS)
ohair@423 494
ohair@476 495 # Hotspot sets this variable before reading the SPEC when compiling sa-jdi.jar. Avoid
ohair@476 496 # overriding that value by using ?=.
ohair@476 497 JAVAC_FLAGS?=@JAVAC_FLAGS@
ohair@423 498
ohrstrom@605 499 # You run the new javac using the boot jdk with $(BOOT_JDK)/bin/java $(NEW_JAVAC) ...
chegar@1227 500 # Use = assignment to be able to override in bootcycle-spec.gmk
chegar@1227 501 INTERIM_LANGTOOLS_JAR = $(BUILDTOOLS_OUTPUTDIR)/interim_langtools.jar
chegar@1227 502 INTERIM_LANGTOOLS_ARGS = "-Xbootclasspath/p:$(INTERIM_LANGTOOLS_JAR)" -cp $(INTERIM_LANGTOOLS_JAR)
erikj@959 503 NEW_JAVAC = $(INTERIM_LANGTOOLS_ARGS) com.sun.tools.javac.Main
ksrini@1915 504 NEW_JAVADOC = $(INTERIM_LANGTOOLS_ARGS) jdk.javadoc.internal.tool.Main
erikj@959 505
ohair@423 506 # Base flags for RC
ohair@423 507 # Guarding this against resetting value. Legacy make files include spec multiple
ohair@423 508 # times.
ohair@423 509 ifndef RC_FLAGS
ihse@837 510 RC_FLAGS:=@RC_FLAGS@
ohair@423 511 endif
ohair@423 512
ohair@423 513 # Tools adhering to a minimal and common standard of posix compliance.
ohair@423 514 AWK:=@AWK@
ohair@476 515 BASENAME:=@BASENAME@
ohair@423 516 CAT:=@CAT@
ohair@423 517 CCACHE:=@CCACHE@
ohair@423 518 # CD is going away, but remains to cater for legacy makefiles.
ohair@423 519 CD:=cd
ohair@423 520 CHMOD:=@CHMOD@
erikj@723 521 CODESIGN:=@CODESIGN@
erikj@560 522 COMM:=@COMM@
ohair@423 523 CP:=@CP@
erikj@560 524 CPIO:=@CPIO@
ohair@423 525 CUT:=@CUT@
ohair@423 526 DATE:=@DATE@
ohair@423 527 DIFF:=@DIFF@
erikj@560 528 DIRNAME:=@DIRNAME@
dcubed@852 529 DSYMUTIL:=@DSYMUTIL@
ohair@423 530 FIND:=@FIND@
ohair@423 531 FIND_DELETE:=@FIND_DELETE@
ohair@423 532 ECHO:=@ECHO@
ohair@423 533 EGREP:=@EGREP@
ohair@423 534 FGREP:=@FGREP@
ohair@423 535 GREP:=@GREP@
ohair@423 536 HEAD:=@HEAD@
ohair@423 537 LS:=@LS@
ohair@423 538 LN:=@LN@
ohair@423 539 MKDIR:=@MKDIR@
ohair@423 540 MV:=@MV@
ohair@423 541 NAWK:=@NAWK@
ihse@1679 542 NICE:=@NICE@
ihse@1661 543 PATCH:=@PATCH@
ohair@423 544 PRINTF:=@PRINTF@
ohair@423 545 PWD:=@THEPWDCMD@
ohair@423 546 RM:=@RM@
ihse@1717 547 RMDIR:=@RMDIR@
ohair@423 548 SED:=@SED@
ohair@423 549 SH:=@SH@
ohair@423 550 SORT:=@SORT@
ohair@423 551 TAR:=@TAR@
ohair@423 552 TAIL:=@TAIL@
ohair@423 553 TEE:=@TEE@
ohair@492 554 TIME:=@TIME@
erikj@752 555 IS_GNU_TIME:=@IS_GNU_TIME@
ohair@423 556 TR:=@TR@
ohair@423 557 TOUCH:=@TOUCH@
erikj@560 558 UNIQ:=@UNIQ@
ohair@423 559 WC:=@WC@
ohair@423 560 XARGS:=@XARGS@
ohair@423 561 ZIPEXE:=@ZIP@
ohair@423 562 ZIP:=@ZIP@
ohair@423 563 UNZIP:=@UNZIP@
ohair@492 564 MT:=@FIXPATH@ @MT@
ohair@492 565 RC:=@FIXPATH@ @RC@
ohair@492 566 DUMPBIN:=@FIXPATH@ @DUMPBIN@
ohair@423 567 CYGPATH:=@CYGPATH@
ohair@423 568 LDD:=@LDD@
ohair@423 569 OTOOL:=@OTOOL@
ohair@423 570 READELF:=@READELF@
ohair@423 571 EXPR:=@EXPR@
ohair@423 572 FILE:=@FILE@
erikj@443 573 HG:=@HG@
erikj@456 574 OBJCOPY:=@OBJCOPY@
ohair@492 575 SETFILE:=@SETFILE@
erikj@668 576 XATTR:=@XATTR@
erikj@716 577 JT_HOME:=@JT_HOME@
erikj@716 578 JTREGEXE:=@JTREGEXE@
ddehaven@1076 579 XCODEBUILD=@XCODEBUILD@
ohair@492 580 FIXPATH:=@FIXPATH@
ohair@423 581
ohair@423 582 # Build setup
erikj@456 583 ENABLE_JFR=@ENABLE_JFR@
omajid@654 584 ENABLE_INTREE_EC=@ENABLE_INTREE_EC@
ohair@423 585 USE_EXTERNAL_LIBJPEG:=@USE_EXTERNAL_LIBJPEG@
ohair@423 586 USE_EXTERNAL_LIBGIF:=@USE_EXTERNAL_LIBGIF@
ohair@423 587 USE_EXTERNAL_LIBZ:=@USE_EXTERNAL_LIBZ@
erikj@456 588 LIBZIP_CAN_USE_MMAP:=@LIBZIP_CAN_USE_MMAP@
ohair@492 589 MSVCR_DLL:=@MSVCR_DLL@
erikj@1330 590 MSVCP_DLL:=@MSVCP_DLL@
ohair@423 591
ohair@423 592 ####################################################
ohair@423 593 #
ohair@423 594 # INSTALLATION
ohair@423 595 #
ohair@423 596
ohair@423 597 # Common prefix for all installed files. Defaults to /usr/local,
ihse@837 598 # but /opt/myjdk is another common version.
ohair@423 599 INSTALL_PREFIX=@prefix@
ohair@423 600
ohair@423 601 # Directories containing architecture-dependent files should be relative to exec_prefix
ohair@423 602 INSTALL_EXECPREFIX=@exec_prefix@
ohair@423 603
ohair@423 604 # java,javac,javah,javap etc are installed here.
ohair@423 605 INSTALL_BINDIR=@bindir@
ohair@423 606
ohair@423 607 # Read only architecture-independent data
ohair@423 608 INSTALL_DATADIR=@datadir@
ohair@423 609
ohair@423 610 # Root of above.
ohair@423 611 INSTALL_DATAROOTDIR=@datarootdir@
ohair@423 612
ohair@423 613 # Doc files, other than info and man.
ohair@423 614 INSTALL_DOCDIR=@docdir@
ohair@423 615
ohair@423 616 # Html documentation
ohair@423 617 INSTALL_HTMLDIR=@htmldir@
ohair@423 618
ohair@423 619 # Installing C header files, JNI headers for example.
ohair@423 620 INSTALL_INCLUDEDIR=@includedir@
ohair@423 621
ohair@423 622 # Installing library files....
ohair@423 623 INSTALL_INCLUDEDIR=@libdir@
ohair@423 624
ohair@423 625 # Executables that other programs run.
ohair@423 626 INSTALL_LIBEXECDIR=@libexecdir@
ohair@423 627
ihse@837 628 # Locale-dependent but architecture-independent data, such as message catalogs.
ohair@423 629 INSTALL_LOCALEDIR=@localedir@
ohair@423 630
ohair@423 631 # Modifiable single-machine data
ohair@423 632 INSTALL_LOCALSTATEDIR=@localstatedir@
ohair@423 633
ohair@423 634 # Man pages
ohair@423 635 INSTALL_MANDIR=@mandir@
ohair@423 636
ohair@423 637 # Modifiable architecture-independent data.
ohair@423 638 INSTALL_SHAREDSTATEDIR=@sharedstatedir@
ohair@423 639
ohair@423 640 # Read-only single-machine data
ohair@423 641 INSTALL_SYSCONFDIR=@sysconfdir@
ohair@423 642
omajid@990 643 ####################################################
omajid@990 644 #
omajid@990 645 # Libraries
omajid@990 646 #
omajid@990 647
omajid@1051 648 USE_EXTERNAL_LCMS:=@USE_EXTERNAL_LCMS@
omajid@1051 649 LCMS_CFLAGS:=@LCMS_CFLAGS@
omajid@1051 650 LCMS_LIBS:=@LCMS_LIBS@
omajid@1051 651
omajid@990 652 USE_EXTERNAL_LIBPNG:=@USE_EXTERNAL_LIBPNG@
omajid@990 653 PNG_LIBS:=@PNG_LIBS@
omajid@990 654 PNG_CFLAGS:=@PNG_CFLAGS@
omajid@990 655
ohair@423 656
ohair@423 657 ####################################################
ohair@423 658 #
ohair@423 659 # Misc
ohair@423 660 #
ohair@423 661
omajid@669 662 INCLUDE_SA=@INCLUDE_SA@
omajid@669 663
erikj@443 664 OS_VERSION_MAJOR:=@OS_VERSION_MAJOR@
erikj@443 665 OS_VERSION_MINOR:=@OS_VERSION_MINOR@
erikj@443 666 OS_VERSION_MICRO:=@OS_VERSION_MICRO@
erikj@443 667
erikj@562 668 # Images directory definitions
chegar@1227 669 JDK_IMAGE_SUBDIR:=jdk
chegar@1227 670 JRE_IMAGE_SUBDIR:=jre
ihse@1279 671
erikj@666 672 # Colon left out to be able to override output dir for bootcycle-images
erikj@666 673 JDK_IMAGE_DIR=$(IMAGES_OUTPUTDIR)/$(JDK_IMAGE_SUBDIR)
erikj@666 674 JRE_IMAGE_DIR=$(IMAGES_OUTPUTDIR)/$(JRE_IMAGE_SUBDIR)
erikj@562 675
ihse@1279 676 # Test image, as above
ihse@1279 677 TEST_IMAGE_SUBDIR:=test
ihse@1279 678 TEST_IMAGE_DIR=$(IMAGES_OUTPUTDIR)/$(TEST_IMAGE_SUBDIR)
ihse@1279 679
erikj@1376 680 # Symbols image
erikj@1376 681 SYMBOLS_IMAGE_SUBDIR:=symbols
erikj@1376 682 SYMBOLS_IMAGE_DIR=$(IMAGES_OUTPUTDIR)/$(SYMBOLS_IMAGE_SUBDIR)
erikj@1376 683
erikj@562 684 # Macosx bundles directory definitions
dmalav@1795 685 JDK_MACOSX_BUNDLE_SUBDIR=jdk-bundle/jdk-$(VERSION_NUMBER).jdk/Contents
dmalav@1795 686 JRE_MACOSX_BUNDLE_SUBDIR=jre-bundle/jre-$(VERSION_NUMBER).jre/Contents
ihse@1485 687 JDK_MACOSX_BUNDLE_DIR=$(IMAGES_OUTPUTDIR)/$(JDK_MACOSX_BUNDLE_SUBDIR)
ihse@1485 688 JRE_MACOSX_BUNDLE_DIR=$(IMAGES_OUTPUTDIR)/$(JRE_MACOSX_BUNDLE_SUBDIR)
erikj@562 689
ihse@968 690 # This macro is called to allow inclusion of closed source counterparts.
ihse@968 691 # Unless overridden in closed sources, it expands to nothing.
ihse@1240 692 # Usage: This function is called in an open makefile, with the following
ihse@968 693 # arguments:
ihse@968 694 # $1 the name of the repo, or empty if the top-level repo.
ihse@968 695 # $2 the name of the makefile
ihse@968 696 define IncludeCustomExtension
ihse@968 697 endef
ihse@968 698
ohair@476 699 # Include the custom-spec.gmk file if it exists
ohair@476 700 -include $(dir @SPEC@)/custom-spec.gmk