annotate common/autoconf/spec.gmk.in @ 25034:d9ca34c227b8

8043340: [macosx] Fix hard-wired paths to JavaVM.framework Summary: Build system tweaks to allow building with Xcode 5 and on OS X 10.9 and later Reviewed-by: erikj, henryjen, dholmes
author ddehaven
date Wed, 18 Jun 2014 12:52:13 -0700
parents 2061862eb57c
children 98ce0879ab4c
rev   line source
ohair@12258 1 #
ihse@22477 2 # Copyright (c) 2011, 2014, 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@20363 33 # When calling macros, the spaces between arguments are
ihse@20363 34 # often semantically important! Sometimes we need to subst
ohair@12258 35 # spaces and commas, therefore we need the following macros.
ohair@12258 36 X:=
ohair@12258 37 SPACE:=$(X) $(X)
ohair@12258 38 COMMA:=,
ohair@12258 39 HASH:=\#
ihse@22479 40 LEFT_PAREN:=(
ihse@22479 41 RIGHT_PAREN:=)
ohair@12258 42 SQUOTE:='
ohair@12258 43 #'
ohair@12258 44 DQUOTE:="
ohair@12258 45 #"
ohair@14111 46 define NEWLINE
ohair@14111 47
ohair@14111 48
ohair@12258 49 endef
ohair@12258 50
ihse@22716 51 # The command line given to configure.
ihse@22716 52 CONFIGURE_COMMAND_LINE:=@CONFIGURE_COMMAND_LINE@
ihse@22716 53
ohair@13697 54 # A self-referential reference to this file.
ohair@13697 55 SPEC:=@SPEC@
ohair@13697 56
ohair@13697 57 # Specify where the spec file is.
ohair@13697 58 MAKE_ARGS="SPEC=$(SPEC)"
ohair@13697 59
ohair@14111 60 MAKE:=@MAKE@
ohair@12258 61
erikj@17352 62 # Pass along the verbosity and log level settings.
ohair@12258 63 ifeq (,$(findstring VERBOSE=,$(MAKE)))
ihse@20363 64 MAKE:=$(MAKE) $(VERBOSE) VERBOSE="$(VERBOSE)" LOG_LEVEL="$(LOG_LEVEL)"
ohair@12258 65 endif
ohair@12258 66
ohair@12258 67 # No implicit variables or rules!
ohair@12258 68 ifeq (,$(findstring -R,$(MAKE)))
ihse@20363 69 MAKE:=$(MAKE) -R
ohair@12258 70 endif
ohair@12258 71
ohair@12258 72 # Specify where the common include directory for makefiles is.
ihse@22722 73 ifeq (,$(findstring -I @TOPDIR@/make/common,$(MAKE)))
ihse@22722 74 MAKE:=$(MAKE) -I @TOPDIR@/make/common
ohair@12258 75 endif
ohair@12258 76
erikj@12801 77 # The "human readable" name of this configuration
erikj@12801 78 CONF_NAME:=@CONF_NAME@
erikj@12801 79
erikj@13132 80 # The built jdk will run in this target system.
erikj@13132 81 OPENJDK_TARGET_OS:=@OPENJDK_TARGET_OS@
erikj@13132 82 OPENJDK_TARGET_OS_API:=@OPENJDK_TARGET_OS_API@
ohair@14111 83 OPENJDK_TARGET_OS_ENV:=@OPENJDK_TARGET_OS_ENV@
erikj@13132 84
erikj@13132 85 OPENJDK_TARGET_CPU:=@OPENJDK_TARGET_CPU@
erikj@13132 86 OPENJDK_TARGET_CPU_ARCH:=@OPENJDK_TARGET_CPU_ARCH@
erikj@13132 87 OPENJDK_TARGET_CPU_BITS:=@OPENJDK_TARGET_CPU_BITS@
erikj@13132 88 OPENJDK_TARGET_CPU_ENDIAN:=@OPENJDK_TARGET_CPU_ENDIAN@
ohair@12258 89
ohair@13697 90 COMPILE_TYPE:=@COMPILE_TYPE@
ohair@13697 91
ohair@13697 92 # Legacy support
ohair@13697 93 OPENJDK_TARGET_CPU_ISADIR:=@OPENJDK_TARGET_CPU_ISADIR@
ohair@13697 94 OPENJDK_TARGET_CPU_LIBDIR:=@OPENJDK_TARGET_CPU_LIBDIR@
ohair@13697 95 OPENJDK_TARGET_CPU_LEGACY:=@OPENJDK_TARGET_CPU_LEGACY@
ohair@13697 96 OPENJDK_TARGET_CPU_LEGACY_LIB:=@OPENJDK_TARGET_CPU_LEGACY_LIB@
ohair@13697 97 OPENJDK_TARGET_CPU_OSARCH:=@OPENJDK_TARGET_CPU_OSARCH@
ohair@13697 98 OPENJDK_TARGET_CPU_JLI_CFLAGS:=@OPENJDK_TARGET_CPU_JLI_CFLAGS@
ohair@13697 99 OPENJDK_TARGET_OS_API_DIR:=@OPENJDK_TARGET_OS_API_DIR@
dholmes@21055 100 OPENJDK_TARGET_OS_EXPORT_DIR:=@OPENJDK_TARGET_OS_EXPORT_DIR@
ohair@13697 101
ohair@12258 102 # We are building on this build system.
erikj@13132 103 # When not cross-compiling, it is the same as the target.
erikj@13132 104 OPENJDK_BUILD_OS:=@OPENJDK_BUILD_OS@
erikj@13132 105 OPENJDK_BUILD_OS_API:=@OPENJDK_BUILD_OS_API@
erikj@13132 106
erikj@13132 107 OPENJDK_BUILD_CPU:=@OPENJDK_BUILD_CPU@
erikj@13132 108 OPENJDK_BUILD_CPU_ARCH:=@OPENJDK_BUILD_CPU_ARCH@
erikj@13132 109 OPENJDK_BUILD_CPU_BITS:=@OPENJDK_BUILD_CPU_BITS@
erikj@13132 110 OPENJDK_BUILD_CPU_ENDIAN:=@OPENJDK_BUILD_CPU_ENDIAN@
ohair@12258 111
erikj@12801 112 # Legacy OS values for use in release file.
erikj@12801 113 REQUIRED_OS_NAME:=@REQUIRED_OS_NAME@
erikj@12801 114 REQUIRED_OS_VERSION:=@REQUIRED_OS_VERSION@
erikj@12801 115
ohair@12258 116 @SET_OPENJDK@
ohair@12258 117 LIBM:=-lm
erikj@12801 118 LIBDL:=@LIBDL@
ohair@12258 119
ohair@12258 120 # colon or semicolon
ohair@12258 121 PATH_SEP:=@PATH_SEP@
ohair@12258 122
ohair@14111 123 ifeq ($(OPENJDK_TARGET_OS), windows)
ohair@14111 124 # On Windows, the Visual Studio toolchain needs the LIB and INCLUDE
ohair@14111 125 # environment variables (in Windows path style), and the PATH needs to
ohair@14111 126 # be adjusted to include Visual Studio tools (but this needs to be in
ohair@14111 127 # cygwin/msys style).
ohair@14111 128 export PATH:=@VS_PATH@
ohair@14111 129 export INCLUDE:=@VS_INCLUDE@
ohair@14111 130 export LIB:=@VS_LIB@
ohair@14111 131 endif
ohair@12258 132
erikj@23428 133 SYSROOT_CFLAGS := @SYSROOT_CFLAGS@
erikj@23428 134 SYSROOT_LDFLAGS := @SYSROOT_LDFLAGS@
ohair@12258 135
ohair@12258 136 # Paths to the source code
ohair@12258 137 ADD_SRC_ROOT:=@ADD_SRC_ROOT@
ohair@12258 138 OVERRIDE_SRC_ROOT:=@OVERRIDE_SRC_ROOT@
ihse@22722 139
ihse@22722 140 # The top-level directory of the forest (SRC_ROOT is a traditional alias)
ihse@22722 141 TOPDIR:=@TOPDIR@
ihse@22722 142 SRC_ROOT:=@TOPDIR@
ihse@22722 143
ohair@12258 144 OUTPUT_ROOT:=@OUTPUT_ROOT@
ohair@12258 145 JDK_TOPDIR:=@JDK_TOPDIR@
ohair@12258 146 LANGTOOLS_TOPDIR:=@LANGTOOLS_TOPDIR@
ohair@12258 147 CORBA_TOPDIR:=@CORBA_TOPDIR@
ohair@12258 148 JAXP_TOPDIR:=@JAXP_TOPDIR@
ohair@12258 149 JAXWS_TOPDIR:=@JAXWS_TOPDIR@
ohair@12258 150 HOTSPOT_TOPDIR:=@HOTSPOT_TOPDIR@
jjg@15903 151 NASHORN_TOPDIR:=@NASHORN_TOPDIR@
ohair@12258 152 COPYRIGHT_YEAR:=@COPYRIGHT_YEAR@
ohair@12258 153
ohair@12258 154 # Information gathered from the version.numbers file.
ohair@12258 155 JDK_MAJOR_VERSION:=@JDK_MAJOR_VERSION@
ohair@12258 156 JDK_MINOR_VERSION:=@JDK_MINOR_VERSION@
ohair@12258 157 JDK_MICRO_VERSION:=@JDK_MICRO_VERSION@
ohair@12258 158 JDK_UPDATE_VERSION:=@JDK_UPDATE_VERSION@
ohair@12258 159 JDK_BUILD_NUMBER:=@JDK_BUILD_NUMBER@
ohair@12258 160 MILESTONE:=@MILESTONE@
ohair@12258 161 LAUNCHER_NAME:=@LAUNCHER_NAME@
ohair@12258 162 PRODUCT_NAME:=@PRODUCT_NAME@
ohair@12258 163 PRODUCT_SUFFIX:=@PRODUCT_SUFFIX@
ohair@12258 164 JDK_RC_PLATFORM_NAME:=@JDK_RC_PLATFORM_NAME@
ohair@12258 165 COMPANY_NAME:=@COMPANY_NAME@
ohair@14111 166 MACOSX_BUNDLE_NAME_BASE=@MACOSX_BUNDLE_NAME_BASE@
ohair@14111 167 MACOSX_BUNDLE_ID_BASE=@MACOSX_BUNDLE_ID_BASE@
erikj@20275 168 USER_RELEASE_SUFFIX=@USER_RELEASE_SUFFIX@
ohair@12258 169
ohair@12258 170 # Different version strings generated from the above information.
ohair@12258 171 JDK_VERSION:=@JDK_VERSION@
erikj@15056 172 RUNTIME_NAME=$(PRODUCT_NAME) $(PRODUCT_SUFFIX)
ohair@12258 173 COOKED_BUILD_NUMBER:=@COOKED_BUILD_NUMBER@
erikj@15055 174 # These variables need to be generated here so that MILESTONE and
erikj@15055 175 # JDK_BUILD_NUMBER can be overridden on the make command line.
erikj@22711 176 ifeq ($(MILESTONE), fcs)
erikj@15055 177 RELEASE=$(JDK_VERSION)$(BUILD_VARIANT_RELEASE)
erikj@15055 178 else
erikj@15055 179 RELEASE=$(JDK_VERSION)-$(MILESTONE)$(BUILD_VARIANT_RELEASE)
erikj@15055 180 endif
erikj@20275 181
ihse@20363 182 ifneq ($(USER_RELEASE_SUFFIX), )
erikj@15055 183 FULL_VERSION=$(RELEASE)-$(USER_RELEASE_SUFFIX)-$(JDK_BUILD_NUMBER)
erikj@15055 184 else
erikj@15055 185 FULL_VERSION=$(RELEASE)-$(JDK_BUILD_NUMBER)
erikj@15055 186 endif
erikj@15056 187 JRE_RELEASE_VERSION:=$(FULL_VERSION)
ohair@12258 188
ohair@12258 189 # How to compile the code: release, fastdebug or slowdebug
ohair@12258 190 DEBUG_LEVEL:=@DEBUG_LEVEL@
ohair@12258 191
ohair@12258 192 # This is the JDK variant to build.
ohair@12258 193 # The JDK variant is a name for a specific set of modules to be compiled for the JDK.
ohair@12258 194 JDK_VARIANT:=@JDK_VARIANT@
ohair@12258 195
ohair@12258 196 # Should we compile support for running with a graphical UI? (ie headful)
ohair@12258 197 # Should we compile support for running without? (ie headless)
ohair@12258 198 SUPPORT_HEADFUL:=@SUPPORT_HEADFUL@
ohair@12258 199 SUPPORT_HEADLESS:=@SUPPORT_HEADLESS@
ohair@12258 200 # Legacy defines controlled by the SUPPORT_HEADLESS and SUPPORT_HEADFUL options.
ohair@12258 201 @BUILD_HEADLESS@
ohair@12258 202
ohair@12258 203 # These are the libjvms that we want to build.
ohair@12258 204 # The java launcher uses the default.
dholmes@14810 205 # The others can be selected by specifying -client -server -minimal1 -kernel -zero or -zeroshark
ohair@12258 206 # on the java launcher command line.
ohair@12258 207 JVM_VARIANTS:=@JVM_VARIANTS@
ohair@12258 208 JVM_VARIANT_SERVER:=@JVM_VARIANT_SERVER@
ohair@12258 209 JVM_VARIANT_CLIENT:=@JVM_VARIANT_CLIENT@
dholmes@14810 210 JVM_VARIANT_MINIMAL1:=@JVM_VARIANT_MINIMAL1@
ohair@12258 211 JVM_VARIANT_KERNEL:=@JVM_VARIANT_KERNEL@
ohair@12258 212 JVM_VARIANT_ZERO:=@JVM_VARIANT_ZERO@
ohair@12258 213 JVM_VARIANT_ZEROSHARK:=@JVM_VARIANT_ZEROSHARK@
simonis@22460 214 JVM_VARIANT_CORE:=@JVM_VARIANT_CORE@
ohair@12258 215
ohair@13697 216 # Universal binaries on macosx
ohair@13697 217 MACOSX_UNIVERSAL=@MACOSX_UNIVERSAL@
ohair@13697 218
ohair@12258 219 # Legacy setting: -debug or -fastdebug
ohair@13697 220 # Still used in version string...
ohair@12258 221 BUILD_VARIANT_RELEASE:=@BUILD_VARIANT_RELEASE@
ohair@12258 222
ohair@13697 223 # JDK_OUTPUTDIR specifies where a working jvm is built.
ohair@12258 224 # You can run $(JDK_OUTPUTDIR)/bin/java
ohair@12258 225 # Though the layout of the contents of $(JDK_OUTPUTDIR) is not
ohair@12258 226 # yet the same as a default installation.
ohair@13697 227 #
ohair@12258 228 # When you run "make install" it will create the standardized
ohair@13697 229 # layout for the jdk and the jre inside the IMAGES_OUTPUTDIR subdir.
ohair@12258 230 # Then it will copy the contents of the jdk into the installation
ohair@12258 231 # directory.
erikj@13132 232
ohair@13697 233 BUILD_OUTPUT:=@BUILD_OUTPUT@
erikj@16578 234 # Colon left out to be able to override IMAGES_OUTPUTDIR for bootcycle-images
ohair@13697 235 LANGTOOLS_OUTPUTDIR=$(BUILD_OUTPUT)/langtools
ohair@13697 236 CORBA_OUTPUTDIR=$(BUILD_OUTPUT)/corba
ohair@13697 237 JAXP_OUTPUTDIR=$(BUILD_OUTPUT)/jaxp
ohair@13697 238 JAXWS_OUTPUTDIR=$(BUILD_OUTPUT)/jaxws
ohair@13697 239 HOTSPOT_OUTPUTDIR=$(BUILD_OUTPUT)/hotspot
ohair@13697 240 JDK_OUTPUTDIR=$(BUILD_OUTPUT)/jdk
jjg@15903 241 NASHORN_OUTPUTDIR=$(BUILD_OUTPUT)/nashorn
ohair@13697 242 IMAGES_OUTPUTDIR=$(BUILD_OUTPUT)/images
erikj@13132 243
ohair@13697 244 LANGTOOLS_DIST=$(LANGTOOLS_OUTPUTDIR)/dist
ohair@13697 245 CORBA_DIST=$(CORBA_OUTPUTDIR)/dist
ohair@13697 246 JAXP_DIST=$(JAXP_OUTPUTDIR)/dist
ohair@13697 247 JAXWS_DIST=$(JAXWS_OUTPUTDIR)/dist
tbell@14378 248 HOTSPOT_DIST=@HOTSPOT_DIST@
jjg@15903 249 NASHORN_DIST=$(NASHORN_OUTPUTDIR)/dist
tbell@14378 250
tbell@14378 251 BUILD_HOTSPOT=@BUILD_HOTSPOT@
ohair@12258 252
ohair@12258 253 # The boot jdk to use
ohair@12258 254 BOOT_JDK:=@BOOT_JDK@
ohair@12258 255 BOOT_RTJAR:=@BOOT_RTJAR@
ohair@13697 256 BOOT_TOOLSJAR=$(BOOT_JDK)/lib/tools.jar
ohair@12258 257
ohair@12258 258 # When compiling Java source to be run by the boot jdk
ohair@12258 259 # use these extra flags, eg -source 6 -target 6
ohair@12258 260 BOOT_JDK_SOURCETARGET:=@BOOT_JDK_SOURCETARGET@
ohair@12258 261
ohair@12258 262 # Information about the build system
ohair@12258 263 NUM_CORES:=@NUM_CORES@
mduigou@23985 264 MEMORY_SIZE:=@MEMORY_SIZE@
ohair@13697 265 # Enable sjavac support = use a javac server,
ohair@13697 266 # multi core javac compilation and dependency tracking.
ohair@13697 267 ENABLE_SJAVAC:=@ENABLE_SJAVAC@
ohair@13697 268 # Store sjavac server synchronization files here, and
ohair@13697 269 # the sjavac server log files.
ohair@13697 270 SJAVAC_SERVER_DIR:=@SJAVAC_SERVER_DIR@
ohair@12258 271
erikj@15790 272 # Number of parallel jobs to use for compilation
erikj@15790 273 JOBS?=@JOBS@
erikj@15790 274
ihse@20654 275 FREETYPE_LIBS:=@FREETYPE_LIBS@
ihse@20654 276 FREETYPE_CFLAGS:=@FREETYPE_CFLAGS@
ihse@20654 277 FREETYPE_BUNDLE_LIB_PATH=@FREETYPE_BUNDLE_LIB_PATH@
ohair@12258 278 CUPS_CFLAGS:=@CUPS_CFLAGS@
erikj@18018 279 ALSA_LIBS:=@ALSA_LIBS@
erikj@18018 280 ALSA_CFLAGS:=@ALSA_CFLAGS@
ohair@12258 281
ohair@12258 282 PACKAGE_PATH=@PACKAGE_PATH@
ohair@12258 283
erikj@12801 284 # Source file for cacerts
erikj@12801 285 CACERTS_FILE=@CACERTS_FILE@
ohair@12258 286
ihse@14112 287 # Enable unlimited crypto policy
ihse@14112 288 UNLIMITED_CRYPTO=@UNLIMITED_CRYPTO@
ihse@14112 289
alanb@22709 290 # Enable RMIConnector IIOP transport
alanb@22709 291 RMICONNECTOR_IIOP=@RMICONNECTOR_IIOP@
alanb@22709 292
ihse@20363 293 # Necessary additional compiler flags to compile X11
ohair@12258 294 X_CFLAGS:=@X_CFLAGS@
ohair@12258 295 X_LIBS:=@X_LIBS@
ohair@12258 296
erikj@15581 297 # The lowest required version of macosx to enforce compatiblity for
erikj@15786 298 MACOSX_VERSION_MIN=@MACOSX_VERSION_MIN@
erikj@15581 299
ihse@22721 300 # Toolchain type: gcc, clang, solstudio, lxc, microsoft...
ihse@22721 301 TOOLCHAIN_TYPE:=@TOOLCHAIN_TYPE@
ohair@12258 302
simonis@22466 303 # Option used to tell the compiler whether to create 32- or 64-bit executables
simonis@22466 304 COMPILER_TARGET_BITS_FLAG:=@COMPILER_TARGET_BITS_FLAG@
omajid@16984 305 COMPILER_SUPPORTS_TARGET_BITS_FLAG=@COMPILER_SUPPORTS_TARGET_BITS_FLAG@
omajid@16984 306
ohair@12258 307 CC_OUT_OPTION:=@CC_OUT_OPTION@
ohair@12258 308 EXE_OUT_OPTION:=@EXE_OUT_OPTION@
ohair@12258 309 LD_OUT_OPTION:=@LD_OUT_OPTION@
ohair@12258 310 AR_OUT_OPTION:=@AR_OUT_OPTION@
ohair@12258 311
ohair@12258 312 # Flags used for overriding the default opt setting for a C/C++ source file.
erikj@12801 313 C_O_FLAG_HIGHEST:=@C_O_FLAG_HIGHEST@
ohair@12258 314 C_O_FLAG_HI:=@C_O_FLAG_HI@
ohair@12258 315 C_O_FLAG_NORM:=@C_O_FLAG_NORM@
ohair@12258 316 C_O_FLAG_NONE:=@C_O_FLAG_NONE@
erikj@12801 317 CXX_O_FLAG_HIGHEST:=@CXX_O_FLAG_HIGHEST@
ohair@12258 318 CXX_O_FLAG_HI:=@CXX_O_FLAG_HI@
ohair@12258 319 CXX_O_FLAG_NORM:=@CXX_O_FLAG_NORM@
ohair@12258 320 CXX_O_FLAG_NONE:=@CXX_O_FLAG_NONE@
ohair@12258 321
erikj@12801 322 C_FLAG_DEPS:=@C_FLAG_DEPS@
erikj@12801 323 CXX_FLAG_DEPS:=@CXX_FLAG_DEPS@
erikj@12801 324
sla@23423 325 CFLAGS_WARNINGS_ARE_ERRORS:=@CFLAGS_WARNINGS_ARE_ERRORS@
sla@23423 326
ohair@12258 327 # Tools that potentially need to be cross compilation aware.
ohair@14111 328 CC:=@FIXPATH@ @CCACHE@ @CC@
ohair@12258 329
ohair@12258 330 # CFLAGS used to compile the jdk native libraries (C-code)
ohair@12258 331 CFLAGS_JDKLIB:=@CFLAGS_JDKLIB@
ohair@12258 332 CXXFLAGS_JDKLIB:=@CXXFLAGS_JDKLIB@
ohair@12258 333
ohair@12258 334 # CFLAGS used to compile the jdk native launchers (C-code)
ohair@12258 335 CFLAGS_JDKEXE:=@CFLAGS_JDKEXE@
ohair@12258 336 CXXFLAGS_JDKEXE:=@CXXFLAGS_JDKEXE@
ohair@12258 337
ohair@14111 338 CXX:=@FIXPATH@ @CCACHE@ @CXX@
ohair@12258 339 #CXXFLAGS:=@CXXFLAGS@
ohair@12258 340
ohair@12258 341 OBJC:=@CCACHE@ @OBJC@
ohair@12258 342 #OBJCFLAGS:=@OBJCFLAGS@
ohair@12258 343
ohair@14111 344 CPP:=@FIXPATH@ @CPP@
ohair@12258 345 #CPPFLAGS:=@CPPFLAGS@
ohair@12258 346
ohair@13697 347 # The linker can be gcc or ld on posix systems, or link.exe on windows systems.
ohair@14111 348 LD:=@FIXPATH@ @LD@
ohair@12258 349
ddehaven@25034 350 # Xcode SDK path
ddehaven@25034 351 SDKROOT:=@SDKROOT@
ddehaven@25034 352
simonis@22460 353 # The linker on older SuSE distros (e.g. on SLES 10) complains with:
simonis@22460 354 # "Invalid version tag `SUNWprivate_1.1'. Only anonymous version tag is allowed in executable."
simonis@22460 355 # if feeded with a version script which contains named tags.
simonis@22460 356 USING_BROKEN_SUSE_LD:=@USING_BROKEN_SUSE_LD@
simonis@22460 357
ohair@12258 358 # LDFLAGS used to link the jdk native libraries (C-code)
ohair@12258 359 LDFLAGS_JDKLIB:=@LDFLAGS_JDKLIB@
ohair@12258 360 LDFLAGS_JDKLIB_SUFFIX:=@LDFLAGS_JDKLIB_SUFFIX@
ohair@12258 361
ohair@12258 362 # On some platforms the linker cannot be used to create executables, thus
ohair@12258 363 # the need for a separate LDEXE command.
ohair@14111 364 LDEXE:=@FIXPATH@ @LDEXE@
ohair@12258 365
ohair@12258 366 # LDFLAGS used to link the jdk native launchers (C-code)
ohair@12258 367 LDFLAGS_JDKEXE:=@LDFLAGS_JDKEXE@
ohair@12258 368 LDFLAGS_JDKEXE_SUFFIX:=@LDFLAGS_JDKEXE_SUFFIX@
ohair@12258 369
ohair@13697 370 # LDFLAGS specific to C++ linking.
ohair@13697 371 LDFLAGS_CXX_JDK:=@LDFLAGS_CXX_JDK@
ohair@13697 372
ohair@12258 373 # Sometimes a different linker is needed for c++ libs
ohair@14111 374 LDCXX:=@FIXPATH@ @LDCXX@
ohair@12258 375 # The flags for linking libstdc++ linker.
ohair@12258 376 LIBCXX:=@LIBCXX@
ohair@12258 377
ohair@12258 378 # Sometimes a different linker is needed for c++ executables
ohair@14111 379 LDEXECXX:=@FIXPATH@ @LDEXECXX@
ohair@12258 380
ohair@13697 381 # BUILD_CC/BUILD_LD is a compiler/linker that generates code that is runnable on the
ohair@13697 382 # build platform.
ohair@14111 383 BUILD_CC:=@FIXPATH@ @BUILD_CC@
ohair@14111 384 BUILD_LD:=@FIXPATH@ @BUILD_LD@
erikj@13132 385
ohair@14111 386 AS:=@FIXPATH@ @AS@
ohair@12258 387
ohair@13697 388 # AR is used to create a static library (is ar in posix, lib.exe in windows)
ohair@14111 389 AR:=@FIXPATH@ @AR@
ohair@12258 390 ARFLAGS:=@ARFLAGS@
ohair@12258 391
ohair@13697 392 NM:=@NM@
erikj@16582 393 GNM:=@GNM@
ohair@13697 394 STRIP:=@STRIP@
ohair@13697 395 MCS:=@MCS@
ohair@13697 396
ohair@13697 397 LIPO:=@LIPO@
ohair@12258 398
ohair@12258 399 # Command to create a shared library
ohair@12258 400 SHARED_LIBRARY_FLAGS:=@SHARED_LIBRARY_FLAGS@
ohair@12258 401
ihse@20363 402 # Options to linker to specify a mapfile.
ohair@12258 403 # (Note absence of := assignment, because we do not want to evaluate the macro body here)
ohair@12258 404 SET_SHARED_LIBRARY_MAPFILE=@SET_SHARED_LIBRARY_MAPFILE@
ohair@12258 405
erikj@12801 406 # Options for C/CXX compiler to be used if linking is performed
erikj@12801 407 # using reorder file
erikj@12801 408 C_FLAG_REORDER:=@C_FLAG_REORDER@
erikj@12801 409 CXX_FLAG_REORDER:=@CXX_FLAG_REORDER@
erikj@12801 410
erikj@13132 411 #
erikj@13132 412 # Options for generating debug symbols
erikj@13132 413 ENABLE_DEBUG_SYMBOLS:=@ENABLE_DEBUG_SYMBOLS@
erikj@13132 414 CFLAGS_DEBUG_SYMBOLS:=@CFLAGS_DEBUG_SYMBOLS@
erikj@13132 415 CXXFLAGS_DEBUG_SYMBOLS:=@CXXFLAGS_DEBUG_SYMBOLS@
erikj@13132 416 ZIP_DEBUGINFO_FILES:=@ZIP_DEBUGINFO_FILES@
erikj@13132 417
erikj@13132 418 #
erikj@13132 419 # Compress (or not) jars
erikj@13132 420 COMPRESS_JARS=@COMPRESS_JARS@
erikj@13132 421
ohair@12258 422 # Options to linker to specify the library name.
ohair@12258 423 # (Note absence of := assignment, because we do not want to evaluate the macro body here)
ohair@12258 424 SET_SHARED_LIBRARY_NAME=@SET_SHARED_LIBRARY_NAME@
ohair@12258 425
ohair@12258 426 # Set origin using the linker, ie use the relative path to the dependent library to find the dependees.
ohair@12258 427 # (Note absence of := assignment, because we do not want to evaluate the macro body here)
ohair@12258 428 SET_SHARED_LIBRARY_ORIGIN=@SET_SHARED_LIBRARY_ORIGIN@
ohair@13697 429 SET_EXECUTABLE_ORIGIN=@SET_EXECUTABLE_ORIGIN@
ohair@12258 430
ohair@12258 431 # Different OS:es have different ways of naming shared libraries.
ohair@12258 432 # The SHARED_LIBRARY macro takes "verify" as and argument and returns:
ohair@12258 433 # "libverify.so" or "libverify.dylib" or "verify.dll" depending on platform.
ohair@12258 434 # (Note absence of := assignment, because we do not want to evaluate the macro body here)
ohair@12258 435 SHARED_LIBRARY=@SHARED_LIBRARY@
ohair@12258 436 STATIC_LIBRARY=@STATIC_LIBRARY@
ohair@12258 437 LIBRARY_PREFIX:=@LIBRARY_PREFIX@
ohair@12258 438 SHARED_LIBRARY_SUFFIX:=@SHARED_LIBRARY_SUFFIX@
ohair@12258 439 STATIC_LIBRARY_SUFFIX:=@STATIC_LIBRARY_SUFFIX@
ohair@12258 440 EXE_SUFFIX:=@EXE_SUFFIX@
ohair@12258 441 OBJ_SUFFIX:=@OBJ_SUFFIX@
ohair@12258 442
erikj@12801 443 POST_STRIP_CMD:=@POST_STRIP_CMD@
erikj@12801 444 POST_MCS_CMD:=@POST_MCS_CMD@
erikj@12801 445
mduigou@22728 446 JAVA_FLAGS:=@JAVA_FLAGS@
erikj@23171 447 JAVA_FLAGS_BIG:=@JAVA_FLAGS_BIG@
erikj@23171 448 JAVA_FLAGS_SMALL:=@JAVA_FLAGS_SMALL@
ohair@12258 449
erikj@23171 450 JAVA=@FIXPATH@ @JAVA@ $(JAVA_FLAGS_BIG) $(JAVA_FLAGS)
erikj@23171 451 JAVA_SMALL=@FIXPATH@ @JAVA@ $(JAVA_FLAGS_SMALL) $(JAVA_FLAGS)
ohair@12258 452
ihse@22477 453 JAVAC:=@FIXPATH@ @JAVAC@
ohair@13697 454 # Hotspot sets this variable before reading the SPEC when compiling sa-jdi.jar. Avoid
ohair@13697 455 # overriding that value by using ?=.
ohair@13697 456 JAVAC_FLAGS?=@JAVAC_FLAGS@
ohair@12258 457
ihse@22477 458 JAVAH:=@FIXPATH@ @JAVAH@
ohair@12258 459
ihse@22477 460 JAR:=@FIXPATH@ @JAR@
ohair@12258 461
erikj@23171 462 NATIVE2ASCII:=@FIXPATH@ @NATIVE2ASCII@ $(addprefix -J, $(JAVA_FLAGS_SMALL))
ohair@12258 463
ihse@22477 464 JARSIGNER:=@FIXPATH@ @JARSIGNER@
erikj@15057 465
ohrstrom@15393 466 # You run the new javac using the boot jdk with $(BOOT_JDK)/bin/java $(NEW_JAVAC) ...
erikj@22480 467 INTERIM_LANGTOOLS_JAR := $(LANGTOOLS_OUTPUTDIR)/dist/interim_langtools.jar
erikj@22480 468 INTERIM_LANGTOOLS_ARGS := "-Xbootclasspath/p:$(INTERIM_LANGTOOLS_JAR)" -cp $(INTERIM_LANGTOOLS_JAR)
erikj@22480 469 NEW_JAVAC = $(INTERIM_LANGTOOLS_ARGS) com.sun.tools.javac.Main
erikj@22480 470 NEW_JAVADOC = $(INTERIM_LANGTOOLS_ARGS) com.sun.tools.javadoc.Main
erikj@22480 471
erikj@22480 472 # The interim corba jar is needed for running rmic
erikj@22480 473 INTERIM_CORBA_JAR := $(CORBA_OUTPUTDIR)/dist/interim_corba.jar
ohrstrom@15393 474
ohair@12258 475 # Base flags for RC
ohair@12258 476 # Guarding this against resetting value. Legacy make files include spec multiple
ohair@12258 477 # times.
ohair@12258 478 ifndef RC_FLAGS
ihse@20363 479 RC_FLAGS:=@RC_FLAGS@
ohair@12258 480 endif
ohair@12258 481
ohair@12258 482 # A specific java binary with specific options can be used to run
ohair@13697 483 # the long running background sjavac servers and other long running tasks.
ohair@14111 484 SJAVAC_SERVER_JAVA:=@FIXPATH@ @SJAVAC_SERVER_JAVA@
ohair@12258 485
ohair@12258 486 # Tools adhering to a minimal and common standard of posix compliance.
ohair@12258 487 AWK:=@AWK@
ohair@13697 488 BASENAME:=@BASENAME@
ohair@14111 489 BASH:=@BASH@
ohair@12258 490 CAT:=@CAT@
ohair@12258 491 CCACHE:=@CCACHE@
ohair@12258 492 # CD is going away, but remains to cater for legacy makefiles.
ohair@12258 493 CD:=cd
ohair@12258 494 CHMOD:=@CHMOD@
erikj@17661 495 CODESIGN:=@CODESIGN@
erikj@15056 496 COMM:=@COMM@
ohair@12258 497 CP:=@CP@
erikj@15056 498 CPIO:=@CPIO@
ohair@12258 499 CUT:=@CUT@
ohair@12258 500 DATE:=@DATE@
ohair@12258 501 DIFF:=@DIFF@
erikj@15056 502 DIRNAME:=@DIRNAME@
dcubed@20640 503 DSYMUTIL:=@DSYMUTIL@
ohair@12258 504 FIND:=@FIND@
ohair@12258 505 FIND_DELETE:=@FIND_DELETE@
ohair@12258 506 ECHO:=@ECHO@
ohair@12258 507 EGREP:=@EGREP@
ohair@12258 508 FGREP:=@FGREP@
ohair@12258 509 GREP:=@GREP@
ohair@12258 510 HEAD:=@HEAD@
ohair@12258 511 LS:=@LS@
ohair@12258 512 LN:=@LN@
ohair@12258 513 MKDIR:=@MKDIR@
ohair@12258 514 MV:=@MV@
ohair@12258 515 NAWK:=@NAWK@
ohair@12258 516 PRINTF:=@PRINTF@
ohair@12258 517 PWD:=@THEPWDCMD@
ohair@12258 518 RM:=@RM@
ohair@12258 519 SED:=@SED@
ohair@12258 520 SH:=@SH@
ohair@12258 521 SORT:=@SORT@
ohair@12258 522 TAR:=@TAR@
ohair@12258 523 TAIL:=@TAIL@
ohair@12258 524 TEE:=@TEE@
ohair@14111 525 TIME:=@TIME@
erikj@18425 526 IS_GNU_TIME:=@IS_GNU_TIME@
ohair@12258 527 TR:=@TR@
ohair@12258 528 TOUCH:=@TOUCH@
erikj@15056 529 UNIQ:=@UNIQ@
ohair@12258 530 WC:=@WC@
ohair@12258 531 XARGS:=@XARGS@
ohair@12258 532 ZIPEXE:=@ZIP@
ohair@12258 533 ZIP:=@ZIP@
ohair@12258 534 UNZIP:=@UNZIP@
ohair@14111 535 MT:=@FIXPATH@ @MT@
ohair@14111 536 RC:=@FIXPATH@ @RC@
ohair@14111 537 DUMPBIN:=@FIXPATH@ @DUMPBIN@
ohair@12258 538 CYGPATH:=@CYGPATH@
ohair@12258 539 LDD:=@LDD@
ohair@12258 540 OTOOL:=@OTOOL@
ohair@12258 541 READELF:=@READELF@
ohair@12258 542 EXPR:=@EXPR@
ohair@12258 543 FILE:=@FILE@
erikj@12801 544 HG:=@HG@
erikj@13132 545 OBJCOPY:=@OBJCOPY@
ohair@14111 546 SETFILE:=@SETFILE@
erikj@16580 547 XATTR:=@XATTR@
erikj@17593 548 JT_HOME:=@JT_HOME@
erikj@17593 549 JTREGEXE:=@JTREGEXE@
ddehaven@25034 550 XCODEBUILD=@XCODEBUILD@
ohair@14111 551 FIXPATH:=@FIXPATH@
ohair@12258 552
ohair@12258 553 # Where the build output is stored for your convenience.
ohair@12258 554 BUILD_LOG:=@BUILD_LOG@
erikj@13132 555 BUILD_LOG_PREVIOUS:=@BUILD_LOG_PREVIOUS@
tbell@14379 556 # Disable the build log wrapper on sjavac+winapi until
tbell@14379 557 # we have solved how to prevent the log wrapper to wait
tbell@14379 558 # for the background sjavac server process.
tbell@14379 559 ifeq (@ENABLE_SJAVAC@X@OPENJDK_BUILD_OS_API@,yesXwinapi)
ihse@20363 560 BUILD_LOG_WRAPPER:=
tbell@14379 561 else
ihse@20363 562 BUILD_LOG_WRAPPER:=@BUILD_LOG_WRAPPER@
tbell@14379 563 endif
ohair@12258 564
ohair@12258 565 # Build setup
erikj@13132 566 ENABLE_JFR=@ENABLE_JFR@
omajid@15914 567 ENABLE_INTREE_EC=@ENABLE_INTREE_EC@
ohair@12258 568 USE_EXTERNAL_LIBJPEG:=@USE_EXTERNAL_LIBJPEG@
ohair@12258 569 USE_EXTERNAL_LIBGIF:=@USE_EXTERNAL_LIBGIF@
ohair@12258 570 USE_EXTERNAL_LIBZ:=@USE_EXTERNAL_LIBZ@
erikj@13132 571 LIBZIP_CAN_USE_MMAP:=@LIBZIP_CAN_USE_MMAP@
ohair@14111 572 MSVCR_DLL:=@MSVCR_DLL@
ohair@12258 573
erikj@13132 574
ohair@12258 575 # ADD_SRCS takes a single argument with source roots
ohair@12258 576 # and appends any corresponding source roots found
ohair@12258 577 # below --with-add-source-root and below
ohair@12258 578 # --with-override-source-root. It is the responsibility
ohair@12258 579 # of the next macro to get rid of superfluous files.
ohair@12258 580 ADD_SRCS=$1
ohair@12258 581 ifneq (,$(ADD_SRC_ROOT))
ihse@20363 582 # Append wildcard rule to pickup any matching source roots found below ADD_SRC_ROOT
ihse@20363 583 ADD_SRCS+=$(wildcard $(subst $(SRC_ROOT),$(ADD_SRC_ROOT),$1))
ohair@12258 584 endif
ohair@12258 585 ifneq (,$(OVERRIDE_SRC_ROOT))
ihse@20363 586 # Append wildcard rule to pickup any matching source roots found below OVERRIDE_SRC_ROOT
ihse@20363 587 ADD_SRCS+=$(wildcard $(subst $(SRC_ROOT),$(OVERRIDE_SRC_ROOT),$1))
ohair@12258 588 endif
ohair@12258 589
ohair@12258 590 # OVR_SRCS creates a filter expression to filter out sources in
ohair@12258 591 # the original source directory that lie inside directories below
ohair@12258 592 # --with-override-source-root.
ohair@12258 593 # Use := here since we want to scan for these files here. To avoid recomputation later.
ohair@12258 594 # We cannot do the scan in configure, since that would force us to rerun configure when
ohair@12258 595 # we add overridden sources.
ohair@12258 596 ifneq (,$(OVERRIDE_SRC_ROOT))
ihse@20363 597 OVR_SRCS:=$(addsuffix %,$(subst $(OVERRIDE_SRC_ROOT),$(SRC_ROOT),$(sort $(dir $(shell $(FIND) $(OVERRIDE_SRC_ROOT) -type f)))))
ohair@12258 598 else
ihse@20363 599 OVR_SRCS:=
ohair@12258 600 endif
ohair@12258 601
ohair@12258 602 ####################################################
ohair@12258 603 #
ohair@12258 604 # INSTALLATION
ohair@12258 605 #
ohair@12258 606
ohair@12258 607 # Common prefix for all installed files. Defaults to /usr/local,
ihse@20363 608 # but /opt/myjdk is another common version.
ohair@12258 609 INSTALL_PREFIX=@prefix@
ohair@12258 610
ohair@12258 611 # Directories containing architecture-dependent files should be relative to exec_prefix
ohair@12258 612 INSTALL_EXECPREFIX=@exec_prefix@
ohair@12258 613
ohair@12258 614 # java,javac,javah,javap etc are installed here.
ohair@12258 615 INSTALL_BINDIR=@bindir@
ohair@12258 616
ohair@12258 617 # Read only architecture-independent data
ohair@12258 618 INSTALL_DATADIR=@datadir@
ohair@12258 619
ohair@12258 620 # Root of above.
ohair@12258 621 INSTALL_DATAROOTDIR=@datarootdir@
ohair@12258 622
ohair@12258 623 # Doc files, other than info and man.
ohair@12258 624 INSTALL_DOCDIR=@docdir@
ohair@12258 625
ohair@12258 626 # Html documentation
ohair@12258 627 INSTALL_HTMLDIR=@htmldir@
ohair@12258 628
ohair@12258 629 # Installing C header files, JNI headers for example.
ohair@12258 630 INSTALL_INCLUDEDIR=@includedir@
ohair@12258 631
ohair@12258 632 # Installing library files....
ohair@12258 633 INSTALL_INCLUDEDIR=@libdir@
ohair@12258 634
ohair@12258 635 # Executables that other programs run.
ohair@12258 636 INSTALL_LIBEXECDIR=@libexecdir@
ohair@12258 637
ihse@20363 638 # Locale-dependent but architecture-independent data, such as message catalogs.
ohair@12258 639 INSTALL_LOCALEDIR=@localedir@
ohair@12258 640
ohair@12258 641 # Modifiable single-machine data
ohair@12258 642 INSTALL_LOCALSTATEDIR=@localstatedir@
ohair@12258 643
ohair@12258 644 # Man pages
ohair@12258 645 INSTALL_MANDIR=@mandir@
ohair@12258 646
ohair@12258 647 # Modifiable architecture-independent data.
ohair@12258 648 INSTALL_SHAREDSTATEDIR=@sharedstatedir@
ohair@12258 649
ohair@12258 650 # Read-only single-machine data
ohair@12258 651 INSTALL_SYSCONFDIR=@sysconfdir@
ohair@12258 652
omajid@23163 653 ####################################################
omajid@23163 654 #
omajid@23163 655 # Libraries
omajid@23163 656 #
omajid@23163 657
omajid@24413 658 USE_EXTERNAL_LCMS:=@USE_EXTERNAL_LCMS@
omajid@24413 659 LCMS_CFLAGS:=@LCMS_CFLAGS@
omajid@24413 660 LCMS_LIBS:=@LCMS_LIBS@
omajid@24413 661
omajid@23163 662 USE_EXTERNAL_LIBPNG:=@USE_EXTERNAL_LIBPNG@
omajid@23163 663 PNG_LIBS:=@PNG_LIBS@
omajid@23163 664 PNG_CFLAGS:=@PNG_CFLAGS@
omajid@23163 665
ohair@12258 666
ohair@12258 667 ####################################################
ohair@12258 668 #
ohair@12258 669 # Misc
ohair@12258 670 #
ohair@12258 671
erikj@12801 672 # Name of Service Agent library
erikj@12801 673 SALIB_NAME=@SALIB_NAME@
erikj@12801 674
omajid@16581 675 INCLUDE_SA=@INCLUDE_SA@
omajid@16581 676
erikj@12801 677 OS_VERSION_MAJOR:=@OS_VERSION_MAJOR@
erikj@12801 678 OS_VERSION_MINOR:=@OS_VERSION_MINOR@
erikj@12801 679 OS_VERSION_MICRO:=@OS_VERSION_MICRO@
erikj@12801 680
erikj@15058 681 # Images directory definitions
erikj@15058 682 JDK_IMAGE_SUBDIR:=j2sdk-image
erikj@15058 683 JRE_IMAGE_SUBDIR:=j2re-image
erikj@15058 684 JDK_OVERLAY_IMAGE_SUBDIR:=j2sdk-overlay-image
erikj@15058 685 JRE_OVERLAY_IMAGE_SUBDIR:=j2re-overlay-image
erikj@16578 686 # Colon left out to be able to override output dir for bootcycle-images
erikj@16578 687 JDK_IMAGE_DIR=$(IMAGES_OUTPUTDIR)/$(JDK_IMAGE_SUBDIR)
erikj@16578 688 JRE_IMAGE_DIR=$(IMAGES_OUTPUTDIR)/$(JRE_IMAGE_SUBDIR)
erikj@16578 689 JDK_OVERLAY_IMAGE_DIR=$(IMAGES_OUTPUTDIR)/$(JDK_OVERLAY_IMAGE_SUBDIR)
erikj@16578 690 JRE_OVERLAY_IMAGE_DIR=$(IMAGES_OUTPUTDIR)/$(JRE_OVERLAY_IMAGE_SUBDIR)
erikj@15058 691
erikj@15058 692 # Macosx bundles directory definitions
erikj@16578 693 JDK_BUNDLE_SUBDIR=j2sdk-bundle/jdk$(JDK_VERSION).jdk/Contents
erikj@16578 694 JRE_BUNDLE_SUBDIR=j2re-bundle/jre$(JDK_VERSION).jre/Contents
erikj@16578 695 JDK_BUNDLE_DIR=$(IMAGES_OUTPUTDIR)/$(JDK_BUNDLE_SUBDIR)
erikj@16578 696 JRE_BUNDLE_DIR=$(IMAGES_OUTPUTDIR)/$(JRE_BUNDLE_SUBDIR)
erikj@15058 697
ihse@22714 698 # This macro is called to allow inclusion of closed source counterparts.
ihse@22714 699 # Unless overridden in closed sources, it expands to nothing.
ihse@22714 700 # Usage: This function is called in an open makefile, with the following
ihse@22714 701 # arguments:
ihse@22714 702 # $1 the name of the repo, or empty if the top-level repo.
ihse@22714 703 # $2 the name of the makefile
ihse@22714 704 define IncludeCustomExtension
ihse@22714 705 endef
ihse@22714 706
ohair@13697 707 # Include the custom-spec.gmk file if it exists
ohair@13697 708 -include $(dir @SPEC@)/custom-spec.gmk