annotate common/autoconf/spec.gmk.in @ 36506:17612cee3530

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