annotate common/autoconf/spec.gmk.in @ 29305:4ddc6faf7842

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