annotate common/autoconf/spec.gmk.in @ 1915:1090777d4103

8035473: [javadoc] Revamp the existing Doclet APIs 8146529: Update the new Doclet API 8146427: "-nohelp" option issue 8146475: "-helpfile" option issue Reviewed-by: alanb, bpatel, ihse, jjg, jlahoda, mchung, ogb, vromero
author ksrini
date Thu, 12 Nov 2015 13:26:07 -0800
parents f382e4228537
children c2696ab4abae
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@
ohair@423 187
ihse@1774 188 # Different naming strings generated from the above information.
erikj@560 189 RUNTIME_NAME=$(PRODUCT_NAME) $(PRODUCT_SUFFIX)
ohair@423 190
ohair@423 191 # How to compile the code: release, fastdebug or slowdebug
ohair@423 192 DEBUG_LEVEL:=@DEBUG_LEVEL@
ohair@423 193
ohair@423 194 # This is the JDK variant to build.
ohair@423 195 # The JDK variant is a name for a specific set of modules to be compiled for the JDK.
ohair@423 196 JDK_VARIANT:=@JDK_VARIANT@
ohair@423 197
ohair@423 198 # Should we compile support for running with a graphical UI? (ie headful)
ohair@423 199 # Should we compile support for running without? (ie headless)
ohair@423 200 SUPPORT_HEADFUL:=@SUPPORT_HEADFUL@
ohair@423 201 SUPPORT_HEADLESS:=@SUPPORT_HEADLESS@
ohair@423 202 # Legacy defines controlled by the SUPPORT_HEADLESS and SUPPORT_HEADFUL options.
ohair@423 203 @BUILD_HEADLESS@
ohair@423 204
ohair@423 205 # These are the libjvms that we want to build.
ohair@423 206 # The java launcher uses the default.
ihse@1847 207 # The others can be selected by specifying -client -server -minimal1 -zero or -zeroshark
ohair@423 208 # on the java launcher command line.
ohair@423 209 JVM_VARIANTS:=@JVM_VARIANTS@
ohair@423 210 JVM_VARIANT_SERVER:=@JVM_VARIANT_SERVER@
ohair@423 211 JVM_VARIANT_CLIENT:=@JVM_VARIANT_CLIENT@
dholmes@540 212 JVM_VARIANT_MINIMAL1:=@JVM_VARIANT_MINIMAL1@
ohair@423 213 JVM_VARIANT_ZERO:=@JVM_VARIANT_ZERO@
ohair@423 214 JVM_VARIANT_ZEROSHARK:=@JVM_VARIANT_ZEROSHARK@
simonis@939 215 JVM_VARIANT_CORE:=@JVM_VARIANT_CORE@
ohair@423 216
ohair@476 217 # Universal binaries on macosx
ohair@476 218 MACOSX_UNIVERSAL=@MACOSX_UNIVERSAL@
ohair@476 219
ohair@423 220 # Legacy setting: -debug or -fastdebug
ohair@476 221 # Still used in version string...
ohair@423 222 BUILD_VARIANT_RELEASE:=@BUILD_VARIANT_RELEASE@
ohair@423 223
ohair@476 224 # JDK_OUTPUTDIR specifies where a working jvm is built.
ohair@423 225 # You can run $(JDK_OUTPUTDIR)/bin/java
ohair@423 226 # Though the layout of the contents of $(JDK_OUTPUTDIR) is not
ohair@423 227 # yet the same as a default installation.
ohair@476 228 #
ohair@423 229 # When you run "make install" it will create the standardized
ohair@476 230 # layout for the jdk and the jre inside the IMAGES_OUTPUTDIR subdir.
ohair@423 231 # Then it will copy the contents of the jdk into the installation
ohair@423 232 # directory.
erikj@456 233
ohair@476 234 BUILD_OUTPUT:=@BUILD_OUTPUT@
erikj@666 235 # Colon left out to be able to override IMAGES_OUTPUTDIR for bootcycle-images
chegar@1227 236 SUPPORT_OUTPUTDIR=$(BUILD_OUTPUT)/support
chegar@1227 237 BUILDTOOLS_OUTPUTDIR=$(BUILD_OUTPUT)/buildtools
chegar@1227 238
ohair@476 239 HOTSPOT_OUTPUTDIR=$(BUILD_OUTPUT)/hotspot
ohair@476 240 JDK_OUTPUTDIR=$(BUILD_OUTPUT)/jdk
ohair@476 241 IMAGES_OUTPUTDIR=$(BUILD_OUTPUT)/images
erikj@1303 242 TESTMAKE_OUTPUTDIR=$(BUILD_OUTPUT)/test-make
erikj@1171 243 MAKESUPPORT_OUTPUTDIR=$(BUILD_OUTPUT)/make-support
erikj@1432 244 # This does not get overridden in a bootcycle build
erikj@1432 245 CONFIGURESUPPORT_OUTPUTDIR:=@CONFIGURESUPPORT_OUTPUTDIR@
erikj@456 246
tbell@504 247 HOTSPOT_DIST=@HOTSPOT_DIST@
tbell@504 248
tbell@504 249 BUILD_HOTSPOT=@BUILD_HOTSPOT@
ohair@423 250
chegar@1227 251 # The boot jdk to use. This is overridden in bootcycle-spec.gmk. Make sure to keep
chegar@1227 252 # it in sync.
ohair@423 253 BOOT_JDK:=@BOOT_JDK@
ohair@423 254
ohair@423 255 # When compiling Java source to be run by the boot jdk
ohair@423 256 # use these extra flags, eg -source 6 -target 6
ohair@423 257 BOOT_JDK_SOURCETARGET:=@BOOT_JDK_SOURCETARGET@
ohair@423 258
ohair@423 259 # Information about the build system
ohair@423 260 NUM_CORES:=@NUM_CORES@
mduigou@1030 261 MEMORY_SIZE:=@MEMORY_SIZE@
ohair@476 262 # Enable sjavac support = use a javac server,
ohair@476 263 # multi core javac compilation and dependency tracking.
ohair@476 264 ENABLE_SJAVAC:=@ENABLE_SJAVAC@
erikj@1720 265 ENABLE_JAVAC_SERVER:=@ENABLE_JAVAC_SERVER@
ohair@476 266 # Store sjavac server synchronization files here, and
ohair@476 267 # the sjavac server log files.
erikj@1432 268 SJAVAC_SERVER_DIR=$(MAKESUPPORT_OUTPUTDIR)/javacservers
ohair@423 269
erikj@633 270 # Number of parallel jobs to use for compilation
erikj@633 271 JOBS?=@JOBS@
ehelin@1845 272 TEST_JOBS?=@TEST_JOBS@
erikj@633 273
erikj@1835 274 # Default make target
erikj@1835 275 DEFAULT_MAKE_TARGET:=@DEFAULT_MAKE_TARGET@
erikj@1835 276
ihse@866 277 FREETYPE_LIBS:=@FREETYPE_LIBS@
ihse@866 278 FREETYPE_CFLAGS:=@FREETYPE_CFLAGS@
ihse@866 279 FREETYPE_BUNDLE_LIB_PATH=@FREETYPE_BUNDLE_LIB_PATH@
ohair@423 280 CUPS_CFLAGS:=@CUPS_CFLAGS@
erikj@735 281 ALSA_LIBS:=@ALSA_LIBS@
erikj@735 282 ALSA_CFLAGS:=@ALSA_CFLAGS@
ihse@1847 283 LIBFFI_LIBS:=@LIBFFI_LIBS@
ihse@1847 284 LIBFFI_CFLAGS:=@LIBFFI_CFLAGS@
ohair@423 285
ohair@423 286 PACKAGE_PATH=@PACKAGE_PATH@
ohair@423 287
erikj@443 288 # Source file for cacerts
erikj@443 289 CACERTS_FILE=@CACERTS_FILE@
ohair@423 290
ihse@493 291 # Enable unlimited crypto policy
ihse@493 292 UNLIMITED_CRYPTO=@UNLIMITED_CRYPTO@
ihse@493 293
erikj@1376 294 GCOV_ENABLED=@GCOV_ENABLED@
erikj@1376 295
ihse@837 296 # Necessary additional compiler flags to compile X11
ohair@423 297 X_CFLAGS:=@X_CFLAGS@
ohair@423 298 X_LIBS:=@X_LIBS@
ohair@423 299
erikj@619 300 # The lowest required version of macosx to enforce compatiblity for
erikj@629 301 MACOSX_VERSION_MIN=@MACOSX_VERSION_MIN@
erikj@619 302
ihse@975 303 # Toolchain type: gcc, clang, solstudio, lxc, microsoft...
ihse@975 304 TOOLCHAIN_TYPE:=@TOOLCHAIN_TYPE@
ihse@1847 305 TOOLCHAIN_VERSION := @TOOLCHAIN_VERSION@
ohair@423 306
simonis@945 307 # Option used to tell the compiler whether to create 32- or 64-bit executables
simonis@945 308 COMPILER_TARGET_BITS_FLAG:=@COMPILER_TARGET_BITS_FLAG@
omajid@693 309 COMPILER_SUPPORTS_TARGET_BITS_FLAG=@COMPILER_SUPPORTS_TARGET_BITS_FLAG@
omajid@693 310
ihse@1847 311 # Option used to pass a command file to the compiler
ihse@1847 312 COMPILER_COMMAND_FILE_FLAG:=@COMPILER_COMMAND_FILE_FLAG@
ihse@1847 313
ohair@423 314 CC_OUT_OPTION:=@CC_OUT_OPTION@
ohair@423 315 EXE_OUT_OPTION:=@EXE_OUT_OPTION@
ohair@423 316 LD_OUT_OPTION:=@LD_OUT_OPTION@
ohair@423 317 AR_OUT_OPTION:=@AR_OUT_OPTION@
ohair@423 318
ohair@423 319 # Flags used for overriding the default opt setting for a C/C++ source file.
erikj@443 320 C_O_FLAG_HIGHEST:=@C_O_FLAG_HIGHEST@
ohair@423 321 C_O_FLAG_HI:=@C_O_FLAG_HI@
ohair@423 322 C_O_FLAG_NORM:=@C_O_FLAG_NORM@
ohair@423 323 C_O_FLAG_NONE:=@C_O_FLAG_NONE@
erikj@443 324 CXX_O_FLAG_HIGHEST:=@CXX_O_FLAG_HIGHEST@
ohair@423 325 CXX_O_FLAG_HI:=@CXX_O_FLAG_HI@
ohair@423 326 CXX_O_FLAG_NORM:=@CXX_O_FLAG_NORM@
ohair@423 327 CXX_O_FLAG_NONE:=@CXX_O_FLAG_NONE@
ohair@423 328
erikj@443 329 C_FLAG_DEPS:=@C_FLAG_DEPS@
erikj@443 330 CXX_FLAG_DEPS:=@CXX_FLAG_DEPS@
erikj@443 331
ihse@1375 332 DISABLE_WARNING_PREFIX := @DISABLE_WARNING_PREFIX@
sla@1003 333 CFLAGS_WARNINGS_ARE_ERRORS:=@CFLAGS_WARNINGS_ARE_ERRORS@
sla@1003 334
ihse@1490 335 # A global flag (true or false) determining if native warnings are considered errors.
ihse@1490 336 WARNINGS_AS_ERRORS := @WARNINGS_AS_ERRORS@
ihse@1490 337
erikj@1322 338 CFLAGS_CCACHE:=@CFLAGS_CCACHE@
erikj@1322 339
ohair@423 340 # Tools that potentially need to be cross compilation aware.
erikj@1809 341 CC:=@FIXPATH@ @CCACHE@ @ICECC@ @CC@
ohair@423 342
ohair@423 343 # CFLAGS used to compile the jdk native libraries (C-code)
ohair@423 344 CFLAGS_JDKLIB:=@CFLAGS_JDKLIB@
ohair@423 345 CXXFLAGS_JDKLIB:=@CXXFLAGS_JDKLIB@
ohair@423 346
ohair@423 347 # CFLAGS used to compile the jdk native launchers (C-code)
ohair@423 348 CFLAGS_JDKEXE:=@CFLAGS_JDKEXE@
ohair@423 349 CXXFLAGS_JDKEXE:=@CXXFLAGS_JDKEXE@
ohair@423 350
erikj@1809 351 CXX:=@FIXPATH@ @CCACHE@ @ICECC@ @CXX@
ohair@423 352 #CXXFLAGS:=@CXXFLAGS@
ohair@423 353
ohair@492 354 CPP:=@FIXPATH@ @CPP@
ohair@423 355 #CPPFLAGS:=@CPPFLAGS@
ohair@423 356
ihse@1231 357 # The linker can be gcc or ld on unix systems, or link.exe on windows systems.
ohair@492 358 LD:=@FIXPATH@ @LD@
ohair@423 359
ddehaven@1076 360 # Xcode SDK path
ddehaven@1076 361 SDKROOT:=@SDKROOT@
ddehaven@1076 362
simonis@939 363 # The linker on older SuSE distros (e.g. on SLES 10) complains with:
simonis@939 364 # "Invalid version tag `SUNWprivate_1.1'. Only anonymous version tag is allowed in executable."
simonis@939 365 # if feeded with a version script which contains named tags.
simonis@939 366 USING_BROKEN_SUSE_LD:=@USING_BROKEN_SUSE_LD@
simonis@939 367
ohair@423 368 # LDFLAGS used to link the jdk native libraries (C-code)
ohair@423 369 LDFLAGS_JDKLIB:=@LDFLAGS_JDKLIB@
ihse@1728 370 JDKLIB_LIBS:=@JDKLIB_LIBS@
ohair@423 371
ohair@423 372 # LDFLAGS used to link the jdk native launchers (C-code)
ohair@423 373 LDFLAGS_JDKEXE:=@LDFLAGS_JDKEXE@
ihse@1728 374 JDKEXE_LIBS:=@JDKEXE_LIBS@
ohair@423 375
ohair@476 376 # LDFLAGS specific to C++ linking.
ohair@476 377 LDFLAGS_CXX_JDK:=@LDFLAGS_CXX_JDK@
ohair@476 378
ohair@423 379 # Sometimes a different linker is needed for c++ libs
ohair@492 380 LDCXX:=@FIXPATH@ @LDCXX@
ohair@423 381 # The flags for linking libstdc++ linker.
ohair@423 382 LIBCXX:=@LIBCXX@
ohair@423 383
erikj@1376 384 # Compiler and linker flags used when building native tests
erikj@1376 385 CFLAGS_TESTLIB:=@CFLAGS_TESTLIB@
erikj@1376 386 CXXFLAGS_TESTLIB:=@CXXFLAGS_TESTLIB@
erikj@1376 387 CFLAGS_TESTEXE:=@CFLAGS_TESTEXE@
erikj@1376 388 CXXFLAGS_TESTEXE:=@CXXFLAGS_TESTEXE@
erikj@1376 389 LDFLAGS_TESTLIB:=@LDFLAGS_TESTLIB@
erikj@1376 390 LDFLAGS_TESTEXE:=@LDFLAGS_TESTEXE@
erikj@1376 391
ohair@476 392 # BUILD_CC/BUILD_LD is a compiler/linker that generates code that is runnable on the
ohair@476 393 # build platform.
erikj@1809 394 BUILD_CC:=@FIXPATH@ @BUILD_ICECC@ @BUILD_CC@
erikj@1809 395 BUILD_CXX:=@FIXPATH@ @BUILD_ICECC@ @BUILD_CXX@
ohair@492 396 BUILD_LD:=@FIXPATH@ @BUILD_LD@
ihse@1847 397 BUILD_LDCXX:=@FIXPATH@ @BUILD_LDCXX@
erikj@1808 398 BUILD_AS:=@FIXPATH@ @BUILD_AS@
erikj@1808 399 BUILD_AR:=@FIXPATH@ @BUILD_AR@
erikj@1808 400 BUILD_NM:=@FIXPATH@ @BUILD_NM@
erikj@1673 401 BUILD_SYSROOT_CFLAGS:=@BUILD_SYSROOT_CFLAGS@
erikj@1673 402 BUILD_SYSROOT_LDFLAGS:=@BUILD_SYSROOT_LDFLAGS@
erikj@456 403
ohair@492 404 AS:=@FIXPATH@ @AS@
ohair@423 405
ihse@1231 406 # AR is used to create a static library (is ar in unix, lib.exe in windows)
ohair@492 407 AR:=@FIXPATH@ @AR@
ohair@423 408 ARFLAGS:=@ARFLAGS@
ohair@423 409
ohair@476 410 NM:=@NM@
erikj@670 411 GNM:=@GNM@
ohair@476 412 STRIP:=@STRIP@
ohair@476 413
ohair@476 414 LIPO:=@LIPO@
ohair@423 415
ihse@837 416 # Options to linker to specify a mapfile.
ohair@423 417 # (Note absence of := assignment, because we do not want to evaluate the macro body here)
ohair@423 418 SET_SHARED_LIBRARY_MAPFILE=@SET_SHARED_LIBRARY_MAPFILE@
ohair@423 419
erikj@443 420 # Options for C/CXX compiler to be used if linking is performed
erikj@443 421 # using reorder file
erikj@443 422 C_FLAG_REORDER:=@C_FLAG_REORDER@
erikj@443 423 CXX_FLAG_REORDER:=@CXX_FLAG_REORDER@
erikj@443 424
erikj@456 425 #
erikj@456 426 # Options for generating debug symbols
ihse@1904 427 COMPILE_WITH_DEBUG_SYMBOLS := @COMPILE_WITH_DEBUG_SYMBOLS@
ihse@1904 428 COPY_DEBUG_SYMBOLS := @COPY_DEBUG_SYMBOLS@
ihse@1904 429 ZIP_EXTERNAL_DEBUG_SYMBOLS := @ZIP_EXTERNAL_DEBUG_SYMBOLS@
ihse@1904 430
erikj@456 431 CFLAGS_DEBUG_SYMBOLS:=@CFLAGS_DEBUG_SYMBOLS@
erikj@456 432 CXXFLAGS_DEBUG_SYMBOLS:=@CXXFLAGS_DEBUG_SYMBOLS@
erikj@456 433
erikj@456 434 #
erikj@456 435 # Compress (or not) jars
erikj@456 436 COMPRESS_JARS=@COMPRESS_JARS@
erikj@456 437
ohair@423 438 # Options to linker to specify the library name.
ohair@423 439 # (Note absence of := assignment, because we do not want to evaluate the macro body here)
ohair@423 440 SET_SHARED_LIBRARY_NAME=@SET_SHARED_LIBRARY_NAME@
ohair@423 441
ihse@1847 442 SHARED_LIBRARY_FLAGS=@SHARED_LIBRARY_FLAGS@
ihse@1847 443
ohair@423 444 # Set origin using the linker, ie use the relative path to the dependent library to find the dependees.
ohair@423 445 # (Note absence of := assignment, because we do not want to evaluate the macro body here)
ohair@423 446 SET_SHARED_LIBRARY_ORIGIN=@SET_SHARED_LIBRARY_ORIGIN@
ohair@476 447 SET_EXECUTABLE_ORIGIN=@SET_EXECUTABLE_ORIGIN@
ohair@423 448
ohair@423 449 # Different OS:es have different ways of naming shared libraries.
ohair@423 450 # The SHARED_LIBRARY macro takes "verify" as and argument and returns:
ohair@423 451 # "libverify.so" or "libverify.dylib" or "verify.dll" depending on platform.
ohair@423 452 # (Note absence of := assignment, because we do not want to evaluate the macro body here)
ohair@423 453 SHARED_LIBRARY=@SHARED_LIBRARY@
ohair@423 454 STATIC_LIBRARY=@STATIC_LIBRARY@
ohair@423 455 LIBRARY_PREFIX:=@LIBRARY_PREFIX@
ohair@423 456 SHARED_LIBRARY_SUFFIX:=@SHARED_LIBRARY_SUFFIX@
ohair@423 457 STATIC_LIBRARY_SUFFIX:=@STATIC_LIBRARY_SUFFIX@
ohair@423 458 EXE_SUFFIX:=@EXE_SUFFIX@
ohair@423 459 OBJ_SUFFIX:=@OBJ_SUFFIX@
bobv@1750 460 STATIC_BUILD:=@STATIC_BUILD@
ohair@423 461
erikj@1674 462 STRIPFLAGS:=@STRIPFLAGS@
erikj@443 463
mduigou@982 464 JAVA_FLAGS:=@JAVA_FLAGS@
erikj@998 465 JAVA_FLAGS_BIG:=@JAVA_FLAGS_BIG@
erikj@998 466 JAVA_FLAGS_SMALL:=@JAVA_FLAGS_SMALL@
erikj@1807 467 JAVA_FLAGS_JAVAC:=@JAVA_FLAGS_JAVAC@
chegar@1120 468 JAVA_TOOL_FLAGS_SMALL:=@JAVA_TOOL_FLAGS_SMALL@
erikj@1196 469 SJAVAC_SERVER_JAVA_FLAGS:=@SJAVAC_SERVER_JAVA_FLAGS@
ohair@423 470
ihse@1240 471 # The *_CMD variables are defined separately to be easily overridden in bootcycle-spec.gmk
erikj@1196 472 # for bootcycle-images build. Make sure to keep them in sync. Do not use the *_CMD
erikj@1196 473 # versions of the variables directly.
erikj@1196 474 JAVA_CMD:=@JAVA@
erikj@1196 475 JAVAC_CMD:=@JAVAC@
erikj@1196 476 JAVAH_CMD:=@JAVAH@
erikj@1196 477 JAR_CMD:=@JAR@
erikj@1196 478 JARSIGNER_CMD:=@JARSIGNER@
erikj@1196 479 SJAVAC_SERVER_JAVA_CMD:=@SJAVAC_SERVER_JAVA@
erikj@1196 480 # These variables are meant to be used. They are defined with = instead of := to make
erikj@1196 481 # it possible to override only the *_CMD variables.
erikj@1196 482 JAVA=@FIXPATH@ $(JAVA_CMD) $(JAVA_FLAGS_BIG) $(JAVA_FLAGS)
erikj@1196 483 JAVA_SMALL=@FIXPATH@ $(JAVA_CMD) $(JAVA_FLAGS_SMALL) $(JAVA_FLAGS)
erikj@1807 484 JAVA_JAVAC=@FIXPATH@ $(JAVA_CMD) $(JAVA_FLAGS_JAVAC) $(JAVA_FLAGS)
erikj@1196 485 JAVAC=@FIXPATH@ $(JAVAC_CMD)
erikj@1196 486 JAVAH=@FIXPATH@ $(JAVAH_CMD)
erikj@1196 487 JAR=@FIXPATH@ $(JAR_CMD)
erikj@1196 488 JARSIGNER=@FIXPATH@ $(JARSIGNER_CMD)
erikj@1196 489 # A specific java binary with specific options can be used to run
erikj@1196 490 # the long running background sjavac servers and other long running tasks.
erikj@1807 491 SJAVAC_SERVER_JAVA=@FIXPATH@ @FIXPATH_DETACH_FLAG@ $(SJAVAC_SERVER_JAVA_CMD) \
erikj@1807 492 $(SJAVAC_SERVER_JAVA_FLAGS)
ohair@423 493
ohair@476 494 # Hotspot sets this variable before reading the SPEC when compiling sa-jdi.jar. Avoid
ohair@476 495 # overriding that value by using ?=.
ohair@476 496 JAVAC_FLAGS?=@JAVAC_FLAGS@
ohair@423 497
ohrstrom@605 498 # You run the new javac using the boot jdk with $(BOOT_JDK)/bin/java $(NEW_JAVAC) ...
chegar@1227 499 # Use = assignment to be able to override in bootcycle-spec.gmk
chegar@1227 500 INTERIM_LANGTOOLS_JAR = $(BUILDTOOLS_OUTPUTDIR)/interim_langtools.jar
chegar@1227 501 INTERIM_LANGTOOLS_ARGS = "-Xbootclasspath/p:$(INTERIM_LANGTOOLS_JAR)" -cp $(INTERIM_LANGTOOLS_JAR)
erikj@959 502 NEW_JAVAC = $(INTERIM_LANGTOOLS_ARGS) com.sun.tools.javac.Main
ksrini@1915 503 NEW_JAVADOC = $(INTERIM_LANGTOOLS_ARGS) jdk.javadoc.internal.tool.Main
erikj@959 504
ohair@423 505 # Base flags for RC
ohair@423 506 # Guarding this against resetting value. Legacy make files include spec multiple
ohair@423 507 # times.
ohair@423 508 ifndef RC_FLAGS
ihse@837 509 RC_FLAGS:=@RC_FLAGS@
ohair@423 510 endif
ohair@423 511
ohair@423 512 # Tools adhering to a minimal and common standard of posix compliance.
ohair@423 513 AWK:=@AWK@
ohair@476 514 BASENAME:=@BASENAME@
ohair@423 515 CAT:=@CAT@
ohair@423 516 CCACHE:=@CCACHE@
ohair@423 517 # CD is going away, but remains to cater for legacy makefiles.
ohair@423 518 CD:=cd
ohair@423 519 CHMOD:=@CHMOD@
erikj@723 520 CODESIGN:=@CODESIGN@
erikj@560 521 COMM:=@COMM@
ohair@423 522 CP:=@CP@
erikj@560 523 CPIO:=@CPIO@
ohair@423 524 CUT:=@CUT@
ohair@423 525 DATE:=@DATE@
ohair@423 526 DIFF:=@DIFF@
erikj@560 527 DIRNAME:=@DIRNAME@
dcubed@852 528 DSYMUTIL:=@DSYMUTIL@
ohair@423 529 FIND:=@FIND@
ohair@423 530 FIND_DELETE:=@FIND_DELETE@
ohair@423 531 ECHO:=@ECHO@
ohair@423 532 EGREP:=@EGREP@
ohair@423 533 FGREP:=@FGREP@
ohair@423 534 GREP:=@GREP@
ohair@423 535 HEAD:=@HEAD@
ohair@423 536 LS:=@LS@
ohair@423 537 LN:=@LN@
ohair@423 538 MKDIR:=@MKDIR@
ohair@423 539 MV:=@MV@
ohair@423 540 NAWK:=@NAWK@
ihse@1679 541 NICE:=@NICE@
ihse@1661 542 PATCH:=@PATCH@
ohair@423 543 PRINTF:=@PRINTF@
ohair@423 544 PWD:=@THEPWDCMD@
ohair@423 545 RM:=@RM@
ihse@1717 546 RMDIR:=@RMDIR@
ohair@423 547 SED:=@SED@
ohair@423 548 SH:=@SH@
ohair@423 549 SORT:=@SORT@
ohair@423 550 TAR:=@TAR@
ohair@423 551 TAIL:=@TAIL@
ohair@423 552 TEE:=@TEE@
ohair@492 553 TIME:=@TIME@
erikj@752 554 IS_GNU_TIME:=@IS_GNU_TIME@
ohair@423 555 TR:=@TR@
ohair@423 556 TOUCH:=@TOUCH@
erikj@560 557 UNIQ:=@UNIQ@
ohair@423 558 WC:=@WC@
ohair@423 559 XARGS:=@XARGS@
ohair@423 560 ZIPEXE:=@ZIP@
ohair@423 561 ZIP:=@ZIP@
ohair@423 562 UNZIP:=@UNZIP@
ohair@492 563 MT:=@FIXPATH@ @MT@
ohair@492 564 RC:=@FIXPATH@ @RC@
ohair@492 565 DUMPBIN:=@FIXPATH@ @DUMPBIN@
ohair@423 566 CYGPATH:=@CYGPATH@
ohair@423 567 LDD:=@LDD@
ohair@423 568 OTOOL:=@OTOOL@
ohair@423 569 READELF:=@READELF@
ohair@423 570 EXPR:=@EXPR@
ohair@423 571 FILE:=@FILE@
erikj@443 572 HG:=@HG@
erikj@456 573 OBJCOPY:=@OBJCOPY@
ohair@492 574 SETFILE:=@SETFILE@
erikj@668 575 XATTR:=@XATTR@
erikj@716 576 JT_HOME:=@JT_HOME@
erikj@716 577 JTREGEXE:=@JTREGEXE@
ddehaven@1076 578 XCODEBUILD=@XCODEBUILD@
ohair@492 579 FIXPATH:=@FIXPATH@
ohair@423 580
ohair@423 581 # Build setup
erikj@456 582 ENABLE_JFR=@ENABLE_JFR@
omajid@654 583 ENABLE_INTREE_EC=@ENABLE_INTREE_EC@
ohair@423 584 USE_EXTERNAL_LIBJPEG:=@USE_EXTERNAL_LIBJPEG@
ohair@423 585 USE_EXTERNAL_LIBGIF:=@USE_EXTERNAL_LIBGIF@
ohair@423 586 USE_EXTERNAL_LIBZ:=@USE_EXTERNAL_LIBZ@
erikj@456 587 LIBZIP_CAN_USE_MMAP:=@LIBZIP_CAN_USE_MMAP@
ohair@492 588 MSVCR_DLL:=@MSVCR_DLL@
erikj@1330 589 MSVCP_DLL:=@MSVCP_DLL@
ohair@423 590
ohair@423 591 ####################################################
ohair@423 592 #
ohair@423 593 # INSTALLATION
ohair@423 594 #
ohair@423 595
ohair@423 596 # Common prefix for all installed files. Defaults to /usr/local,
ihse@837 597 # but /opt/myjdk is another common version.
ohair@423 598 INSTALL_PREFIX=@prefix@
ohair@423 599
ohair@423 600 # Directories containing architecture-dependent files should be relative to exec_prefix
ohair@423 601 INSTALL_EXECPREFIX=@exec_prefix@
ohair@423 602
ohair@423 603 # java,javac,javah,javap etc are installed here.
ohair@423 604 INSTALL_BINDIR=@bindir@
ohair@423 605
ohair@423 606 # Read only architecture-independent data
ohair@423 607 INSTALL_DATADIR=@datadir@
ohair@423 608
ohair@423 609 # Root of above.
ohair@423 610 INSTALL_DATAROOTDIR=@datarootdir@
ohair@423 611
ohair@423 612 # Doc files, other than info and man.
ohair@423 613 INSTALL_DOCDIR=@docdir@
ohair@423 614
ohair@423 615 # Html documentation
ohair@423 616 INSTALL_HTMLDIR=@htmldir@
ohair@423 617
ohair@423 618 # Installing C header files, JNI headers for example.
ohair@423 619 INSTALL_INCLUDEDIR=@includedir@
ohair@423 620
ohair@423 621 # Installing library files....
ohair@423 622 INSTALL_INCLUDEDIR=@libdir@
ohair@423 623
ohair@423 624 # Executables that other programs run.
ohair@423 625 INSTALL_LIBEXECDIR=@libexecdir@
ohair@423 626
ihse@837 627 # Locale-dependent but architecture-independent data, such as message catalogs.
ohair@423 628 INSTALL_LOCALEDIR=@localedir@
ohair@423 629
ohair@423 630 # Modifiable single-machine data
ohair@423 631 INSTALL_LOCALSTATEDIR=@localstatedir@
ohair@423 632
ohair@423 633 # Man pages
ohair@423 634 INSTALL_MANDIR=@mandir@
ohair@423 635
ohair@423 636 # Modifiable architecture-independent data.
ohair@423 637 INSTALL_SHAREDSTATEDIR=@sharedstatedir@
ohair@423 638
ohair@423 639 # Read-only single-machine data
ohair@423 640 INSTALL_SYSCONFDIR=@sysconfdir@
ohair@423 641
omajid@990 642 ####################################################
omajid@990 643 #
omajid@990 644 # Libraries
omajid@990 645 #
omajid@990 646
omajid@1051 647 USE_EXTERNAL_LCMS:=@USE_EXTERNAL_LCMS@
omajid@1051 648 LCMS_CFLAGS:=@LCMS_CFLAGS@
omajid@1051 649 LCMS_LIBS:=@LCMS_LIBS@
omajid@1051 650
omajid@990 651 USE_EXTERNAL_LIBPNG:=@USE_EXTERNAL_LIBPNG@
omajid@990 652 PNG_LIBS:=@PNG_LIBS@
omajid@990 653 PNG_CFLAGS:=@PNG_CFLAGS@
omajid@990 654
ohair@423 655
ohair@423 656 ####################################################
ohair@423 657 #
ohair@423 658 # Misc
ohair@423 659 #
ohair@423 660
omajid@669 661 INCLUDE_SA=@INCLUDE_SA@
omajid@669 662
erikj@443 663 OS_VERSION_MAJOR:=@OS_VERSION_MAJOR@
erikj@443 664 OS_VERSION_MINOR:=@OS_VERSION_MINOR@
erikj@443 665 OS_VERSION_MICRO:=@OS_VERSION_MICRO@
erikj@443 666
erikj@562 667 # Images directory definitions
chegar@1227 668 JDK_IMAGE_SUBDIR:=jdk
chegar@1227 669 JRE_IMAGE_SUBDIR:=jre
ihse@1279 670
erikj@666 671 # Colon left out to be able to override output dir for bootcycle-images
erikj@666 672 JDK_IMAGE_DIR=$(IMAGES_OUTPUTDIR)/$(JDK_IMAGE_SUBDIR)
erikj@666 673 JRE_IMAGE_DIR=$(IMAGES_OUTPUTDIR)/$(JRE_IMAGE_SUBDIR)
erikj@562 674
ihse@1279 675 # Test image, as above
ihse@1279 676 TEST_IMAGE_SUBDIR:=test
ihse@1279 677 TEST_IMAGE_DIR=$(IMAGES_OUTPUTDIR)/$(TEST_IMAGE_SUBDIR)
ihse@1279 678
erikj@1376 679 # Symbols image
erikj@1376 680 SYMBOLS_IMAGE_SUBDIR:=symbols
erikj@1376 681 SYMBOLS_IMAGE_DIR=$(IMAGES_OUTPUTDIR)/$(SYMBOLS_IMAGE_SUBDIR)
erikj@1376 682
erikj@562 683 # Macosx bundles directory definitions
dmalav@1795 684 JDK_MACOSX_BUNDLE_SUBDIR=jdk-bundle/jdk-$(VERSION_NUMBER).jdk/Contents
dmalav@1795 685 JRE_MACOSX_BUNDLE_SUBDIR=jre-bundle/jre-$(VERSION_NUMBER).jre/Contents
ihse@1485 686 JDK_MACOSX_BUNDLE_DIR=$(IMAGES_OUTPUTDIR)/$(JDK_MACOSX_BUNDLE_SUBDIR)
ihse@1485 687 JRE_MACOSX_BUNDLE_DIR=$(IMAGES_OUTPUTDIR)/$(JRE_MACOSX_BUNDLE_SUBDIR)
erikj@562 688
ihse@968 689 # This macro is called to allow inclusion of closed source counterparts.
ihse@968 690 # Unless overridden in closed sources, it expands to nothing.
ihse@1240 691 # Usage: This function is called in an open makefile, with the following
ihse@968 692 # arguments:
ihse@968 693 # $1 the name of the repo, or empty if the top-level repo.
ihse@968 694 # $2 the name of the makefile
ihse@968 695 define IncludeCustomExtension
ihse@968 696 endef
ihse@968 697
ohair@476 698 # Include the custom-spec.gmk file if it exists
ohair@476 699 -include $(dir @SPEC@)/custom-spec.gmk