annotate common/autoconf/spec.gmk.in @ 899:1fca390200c1

Merge
author jlaskey
date Tue, 14 May 2013 09:04:02 -0300
parents e1a929afcfc4 8a7e97848471
children de886178f8e6
rev   line source
ohair@423 1 #
erikj@560 2 # Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
ohair@423 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
ohair@423 4 #
ohair@423 5 # This code is free software; you can redistribute it and/or modify it
ohair@423 6 # under the terms of the GNU General Public License version 2 only, as
ohair@423 7 # published by the Free Software Foundation. Oracle designates this
ohair@423 8 # particular file as subject to the "Classpath" exception as provided
ohair@423 9 # by Oracle in the LICENSE file that accompanied this code.
ohair@423 10 #
ohair@423 11 # This code is distributed in the hope that it will be useful, but WITHOUT
ohair@423 12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
ohair@423 13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
ohair@423 14 # version 2 for more details (a copy is included in the LICENSE file that
ohair@423 15 # accompanied this code).
ohair@423 16 #
ohair@423 17 # You should have received a copy of the GNU General Public License version
ohair@423 18 # 2 along with this work; if not, write to the Free Software Foundation,
ohair@423 19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
ohair@423 20 #
ohair@423 21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
ohair@423 22 # or visit www.oracle.com if you need additional information or have any
ohair@423 23 # questions.
ohair@423 24 #
ohair@423 25
ohair@476 26 # Configured @DATE_WHEN_CONFIGURED@ to build
ohair@476 27 # for target system @OPENJDK_TARGET_OS@-@OPENJDK_TARGET_CPU@
ohair@476 28 # (called @OPENJDK_TARGET_AUTOCONF_NAME@ by autoconf)
ohair@476 29 # on build system @OPENJDK_BUILD_OS@-@OPENJDK_BUILD_CPU@
ohair@476 30 # (called @OPENJDK_BUILD_AUTOCONF_NAME@ by autoconf)
erikj@456 31 # using 'configure @CONFIGURE_COMMAND_LINE@'
ohair@423 32
ohair@423 33 # When calling macros, the spaces between arguments are
ohair@423 34 # often semantically important! Sometimes we need to subst
ohair@423 35 # spaces and commas, therefore we need the following macros.
ohair@423 36 X:=
ohair@423 37 SPACE:=$(X) $(X)
ohair@423 38 COMMA:=,
ohair@423 39 HASH:=\#
ohair@423 40 SQUOTE:='
ohair@423 41 #'
ohair@423 42 DQUOTE:="
ohair@423 43 #"
ohair@492 44 define NEWLINE
ohair@492 45
ohair@492 46
ohair@423 47 endef
ohair@423 48
ohair@476 49 # A self-referential reference to this file.
ohair@476 50 SPEC:=@SPEC@
ohair@476 51
ohair@476 52 # Specify where the spec file is.
ohair@476 53 MAKE_ARGS="SPEC=$(SPEC)"
ohair@476 54
ohair@492 55 MAKE:=@MAKE@
ohair@423 56
ohair@423 57 # Pass along the verbosity setting.
ohair@423 58 ifeq (,$(findstring VERBOSE=,$(MAKE)))
ohair@423 59 MAKE:=$(MAKE) $(VERBOSE) VERBOSE="$(VERBOSE)"
ohair@423 60 endif
ohair@423 61
ohair@423 62 # No implicit variables or rules!
ohair@423 63 ifeq (,$(findstring -R,$(MAKE)))
ohair@423 64 MAKE:=$(MAKE) -R
ohair@423 65 endif
ohair@423 66
ohair@423 67 # Specify where the common include directory for makefiles is.
ohair@423 68 ifeq (,$(findstring -I @SRC_ROOT@/common/makefiles,$(MAKE)))
ohair@423 69 MAKE:=$(MAKE) -I @SRC_ROOT@/common/makefiles
ohair@423 70 endif
ohair@423 71
erikj@443 72 # The "human readable" name of this configuration
erikj@443 73 CONF_NAME:=@CONF_NAME@
erikj@443 74
erikj@456 75 # The built jdk will run in this target system.
erikj@456 76 OPENJDK_TARGET_OS:=@OPENJDK_TARGET_OS@
erikj@456 77 OPENJDK_TARGET_OS_API:=@OPENJDK_TARGET_OS_API@
ohair@492 78 OPENJDK_TARGET_OS_ENV:=@OPENJDK_TARGET_OS_ENV@
erikj@456 79
erikj@456 80 OPENJDK_TARGET_CPU:=@OPENJDK_TARGET_CPU@
erikj@456 81 OPENJDK_TARGET_CPU_ARCH:=@OPENJDK_TARGET_CPU_ARCH@
erikj@456 82 OPENJDK_TARGET_CPU_BITS:=@OPENJDK_TARGET_CPU_BITS@
erikj@456 83 OPENJDK_TARGET_CPU_ENDIAN:=@OPENJDK_TARGET_CPU_ENDIAN@
ohair@423 84
ohair@476 85 COMPILE_TYPE:=@COMPILE_TYPE@
ohair@476 86
ohair@476 87 # Legacy support
ohair@476 88 OPENJDK_TARGET_CPU_ISADIR:=@OPENJDK_TARGET_CPU_ISADIR@
ohair@476 89 OPENJDK_TARGET_CPU_LIBDIR:=@OPENJDK_TARGET_CPU_LIBDIR@
ohair@476 90 OPENJDK_TARGET_CPU_LEGACY:=@OPENJDK_TARGET_CPU_LEGACY@
ohair@476 91 OPENJDK_TARGET_CPU_LEGACY_LIB:=@OPENJDK_TARGET_CPU_LEGACY_LIB@
ohair@476 92 OPENJDK_TARGET_CPU_OSARCH:=@OPENJDK_TARGET_CPU_OSARCH@
ohair@476 93 OPENJDK_TARGET_CPU_JLI_CFLAGS:=@OPENJDK_TARGET_CPU_JLI_CFLAGS@
ohair@476 94 OPENJDK_TARGET_OS_API_DIR:=@OPENJDK_TARGET_OS_API_DIR@
ohair@476 95
ohair@423 96 # We are building on this build system.
erikj@456 97 # When not cross-compiling, it is the same as the target.
erikj@456 98 OPENJDK_BUILD_OS:=@OPENJDK_BUILD_OS@
erikj@456 99 OPENJDK_BUILD_OS_API:=@OPENJDK_BUILD_OS_API@
erikj@456 100
erikj@456 101 OPENJDK_BUILD_CPU:=@OPENJDK_BUILD_CPU@
erikj@456 102 OPENJDK_BUILD_CPU_ARCH:=@OPENJDK_BUILD_CPU_ARCH@
erikj@456 103 OPENJDK_BUILD_CPU_BITS:=@OPENJDK_BUILD_CPU_BITS@
erikj@456 104 OPENJDK_BUILD_CPU_ENDIAN:=@OPENJDK_BUILD_CPU_ENDIAN@
ohair@423 105
erikj@443 106 # Legacy OS values for use in release file.
erikj@443 107 REQUIRED_OS_NAME:=@REQUIRED_OS_NAME@
erikj@443 108 REQUIRED_OS_VERSION:=@REQUIRED_OS_VERSION@
erikj@443 109
ohair@423 110 @SET_OPENJDK@
ohair@423 111 LIBM:=-lm
erikj@443 112 LIBDL:=@LIBDL@
ohair@423 113
ohair@423 114 # colon or semicolon
ohair@423 115 PATH_SEP:=@PATH_SEP@
ohair@423 116
ohair@492 117 ifeq ($(OPENJDK_TARGET_OS), windows)
ohair@492 118 # On Windows, the Visual Studio toolchain needs the LIB and INCLUDE
ohair@492 119 # environment variables (in Windows path style), and the PATH needs to
ohair@492 120 # be adjusted to include Visual Studio tools (but this needs to be in
ohair@492 121 # cygwin/msys style).
ohair@492 122 export PATH:=@VS_PATH@
ohair@492 123 export INCLUDE:=@VS_INCLUDE@
ohair@492 124 export LIB:=@VS_LIB@
ohair@492 125 endif
ohair@423 126
ohair@423 127 # The sys root where standard headers and libraries are found.
ohair@423 128 # Usually not needed since the configure script should have
ohair@423 129 # taken it into account already when setting CFLAGS et al.
ohair@423 130 SYS_ROOT:=@SYS_ROOT@
ohair@423 131
ohair@423 132 # Paths to the source code
ohair@423 133 SRC_ROOT:=@SRC_ROOT@
ohair@423 134 ADD_SRC_ROOT:=@ADD_SRC_ROOT@
ohair@423 135 OVERRIDE_SRC_ROOT:=@OVERRIDE_SRC_ROOT@
ohair@423 136 TOPDIR:=@SRC_ROOT@
ohair@423 137 OUTPUT_ROOT:=@OUTPUT_ROOT@
ohair@423 138 JDK_TOPDIR:=@JDK_TOPDIR@
ohair@423 139 LANGTOOLS_TOPDIR:=@LANGTOOLS_TOPDIR@
ohair@423 140 CORBA_TOPDIR:=@CORBA_TOPDIR@
ohair@423 141 JAXP_TOPDIR:=@JAXP_TOPDIR@
ohair@423 142 JAXWS_TOPDIR:=@JAXWS_TOPDIR@
ohair@423 143 HOTSPOT_TOPDIR:=@HOTSPOT_TOPDIR@
jjg@643 144 NASHORN_TOPDIR:=@NASHORN_TOPDIR@
ohair@423 145 COPYRIGHT_YEAR:=@COPYRIGHT_YEAR@
ohair@423 146
ohair@476 147 # Location where build customization files may be found
ohair@476 148 CUSTOM_MAKE_DIR:=@CUSTOM_MAKE_DIR@
ohair@476 149
ohair@423 150 # Information gathered from the version.numbers file.
ohair@423 151 JDK_MAJOR_VERSION:=@JDK_MAJOR_VERSION@
ohair@423 152 JDK_MINOR_VERSION:=@JDK_MINOR_VERSION@
ohair@423 153 JDK_MICRO_VERSION:=@JDK_MICRO_VERSION@
ohair@423 154 JDK_UPDATE_VERSION:=@JDK_UPDATE_VERSION@
ohair@423 155 JDK_BUILD_NUMBER:=@JDK_BUILD_NUMBER@
ohair@423 156 MILESTONE:=@MILESTONE@
ohair@423 157 LAUNCHER_NAME:=@LAUNCHER_NAME@
ohair@423 158 PRODUCT_NAME:=@PRODUCT_NAME@
ohair@423 159 PRODUCT_SUFFIX:=@PRODUCT_SUFFIX@
ohair@423 160 JDK_RC_PLATFORM_NAME:=@JDK_RC_PLATFORM_NAME@
ohair@423 161 COMPANY_NAME:=@COMPANY_NAME@
ohair@492 162 MACOSX_BUNDLE_NAME_BASE=@MACOSX_BUNDLE_NAME_BASE@
ohair@492 163 MACOSX_BUNDLE_ID_BASE=@MACOSX_BUNDLE_ID_BASE@
ohair@423 164
ohair@423 165 # Different version strings generated from the above information.
ohair@423 166 JDK_VERSION:=@JDK_VERSION@
erikj@560 167 RUNTIME_NAME=$(PRODUCT_NAME) $(PRODUCT_SUFFIX)
ohair@423 168 COOKED_BUILD_NUMBER:=@COOKED_BUILD_NUMBER@
erikj@559 169 # These variables need to be generated here so that MILESTONE and
erikj@559 170 # JDK_BUILD_NUMBER can be overridden on the make command line.
erikj@559 171 ifeq ($(MILESTONE),)
erikj@559 172 RELEASE=$(JDK_VERSION)$(BUILD_VARIANT_RELEASE)
erikj@559 173 else
erikj@559 174 RELEASE=$(JDK_VERSION)-$(MILESTONE)$(BUILD_VARIANT_RELEASE)
erikj@559 175 endif
erikj@559 176 ifeq ($(JDK_BUILD_NUMBER),b00)
erikj@559 177 USER_RELEASE_SUFFIX=@USER_RELEASE_SUFFIX@
erikj@559 178 FULL_VERSION=$(RELEASE)-$(USER_RELEASE_SUFFIX)-$(JDK_BUILD_NUMBER)
erikj@559 179 else
erikj@559 180 FULL_VERSION=$(RELEASE)-$(JDK_BUILD_NUMBER)
erikj@559 181 endif
erikj@560 182 JRE_RELEASE_VERSION:=$(FULL_VERSION)
ohair@423 183
ohair@423 184 # How to compile the code: release, fastdebug or slowdebug
ohair@423 185 DEBUG_LEVEL:=@DEBUG_LEVEL@
ohair@423 186
ohair@423 187 # This is the JDK variant to build.
ohair@423 188 # The JDK variant is a name for a specific set of modules to be compiled for the JDK.
ohair@423 189 JDK_VARIANT:=@JDK_VARIANT@
ohair@423 190
ohair@423 191 # Should we compile support for running with a graphical UI? (ie headful)
ohair@423 192 # Should we compile support for running without? (ie headless)
ohair@423 193 SUPPORT_HEADFUL:=@SUPPORT_HEADFUL@
ohair@423 194 SUPPORT_HEADLESS:=@SUPPORT_HEADLESS@
ohair@423 195 # Legacy defines controlled by the SUPPORT_HEADLESS and SUPPORT_HEADFUL options.
ohair@423 196 @BUILD_HEADLESS@
ohair@423 197
ohair@423 198 # These are the libjvms that we want to build.
ohair@423 199 # The java launcher uses the default.
dholmes@540 200 # The others can be selected by specifying -client -server -minimal1 -kernel -zero or -zeroshark
ohair@423 201 # on the java launcher command line.
ohair@423 202 JVM_VARIANTS:=@JVM_VARIANTS@
ohair@423 203 JVM_VARIANT_SERVER:=@JVM_VARIANT_SERVER@
ohair@423 204 JVM_VARIANT_CLIENT:=@JVM_VARIANT_CLIENT@
dholmes@540 205 JVM_VARIANT_MINIMAL1:=@JVM_VARIANT_MINIMAL1@
ohair@423 206 JVM_VARIANT_KERNEL:=@JVM_VARIANT_KERNEL@
ohair@423 207 JVM_VARIANT_ZERO:=@JVM_VARIANT_ZERO@
ohair@423 208 JVM_VARIANT_ZEROSHARK:=@JVM_VARIANT_ZEROSHARK@
ohair@423 209
ohair@476 210 # Universal binaries on macosx
ohair@476 211 MACOSX_UNIVERSAL=@MACOSX_UNIVERSAL@
ohair@476 212
ohair@423 213 # Legacy setting: -debug or -fastdebug
ohair@476 214 # Still used in version string...
ohair@423 215 BUILD_VARIANT_RELEASE:=@BUILD_VARIANT_RELEASE@
ohair@423 216
ohair@476 217 # JDK_OUTPUTDIR specifies where a working jvm is built.
ohair@423 218 # You can run $(JDK_OUTPUTDIR)/bin/java
ohair@423 219 # Though the layout of the contents of $(JDK_OUTPUTDIR) is not
ohair@423 220 # yet the same as a default installation.
ohair@476 221 #
ohair@423 222 # When you run "make install" it will create the standardized
ohair@476 223 # layout for the jdk and the jre inside the IMAGES_OUTPUTDIR subdir.
ohair@423 224 # Then it will copy the contents of the jdk into the installation
ohair@423 225 # directory.
erikj@456 226
ohair@476 227 BUILD_OUTPUT:=@BUILD_OUTPUT@
erikj@666 228 # Colon left out to be able to override IMAGES_OUTPUTDIR for bootcycle-images
ohair@476 229 LANGTOOLS_OUTPUTDIR=$(BUILD_OUTPUT)/langtools
ohair@476 230 CORBA_OUTPUTDIR=$(BUILD_OUTPUT)/corba
ohair@476 231 JAXP_OUTPUTDIR=$(BUILD_OUTPUT)/jaxp
ohair@476 232 JAXWS_OUTPUTDIR=$(BUILD_OUTPUT)/jaxws
ohair@476 233 HOTSPOT_OUTPUTDIR=$(BUILD_OUTPUT)/hotspot
ohair@476 234 JDK_OUTPUTDIR=$(BUILD_OUTPUT)/jdk
jjg@643 235 NASHORN_OUTPUTDIR=$(BUILD_OUTPUT)/nashorn
ohair@476 236 IMAGES_OUTPUTDIR=$(BUILD_OUTPUT)/images
erikj@561 237 JCE_OUTPUTDIR=$(BUILD_OUTPUT)/jce-release
erikj@456 238
ohair@476 239 LANGTOOLS_DIST=$(LANGTOOLS_OUTPUTDIR)/dist
ohair@476 240 CORBA_DIST=$(CORBA_OUTPUTDIR)/dist
ohair@476 241 JAXP_DIST=$(JAXP_OUTPUTDIR)/dist
ohair@476 242 JAXWS_DIST=$(JAXWS_OUTPUTDIR)/dist
tbell@504 243 HOTSPOT_DIST=@HOTSPOT_DIST@
jjg@643 244 NASHORN_DIST=$(NASHORN_OUTPUTDIR)/dist
tbell@504 245
tbell@504 246 BUILD_HOTSPOT=@BUILD_HOTSPOT@
ohair@423 247
ohair@423 248 # The boot jdk to use
ohair@423 249 BOOT_JDK:=@BOOT_JDK@
ohair@423 250 BOOT_JDK_JVMARGS:=@BOOT_JDK_JVMARGS@
ohair@423 251 BOOT_RTJAR:=@BOOT_RTJAR@
ohair@476 252 BOOT_TOOLSJAR=$(BOOT_JDK)/lib/tools.jar
ohair@423 253
ohair@423 254 # When compiling Java source to be run by the boot jdk
ohair@423 255 # use these extra flags, eg -source 6 -target 6
ohair@423 256 BOOT_JDK_SOURCETARGET:=@BOOT_JDK_SOURCETARGET@
ohair@423 257
ohair@423 258 # Information about the build system
ohair@423 259 NUM_CORES:=@NUM_CORES@
ohair@476 260 # Enable sjavac support = use a javac server,
ohair@476 261 # multi core javac compilation and dependency tracking.
ohair@476 262 ENABLE_SJAVAC:=@ENABLE_SJAVAC@
ohair@476 263 # Store sjavac server synchronization files here, and
ohair@476 264 # the sjavac server log files.
ohair@476 265 SJAVAC_SERVER_DIR:=@SJAVAC_SERVER_DIR@
ohair@423 266
erikj@633 267 # Number of parallel jobs to use for compilation
erikj@633 268 JOBS?=@JOBS@
erikj@633 269
ohair@423 270 # The OpenJDK makefiles should be changed to using the standard
ohair@423 271 # configure output ..._CFLAGS and ..._LIBS. In the meantime we
ohair@423 272 # extract the information here.
ohair@423 273 FREETYPE2_LIB_PATH:=@FREETYPE2_LIB_PATH@
ohair@423 274 FREETYPE2_LIBS:=@FREETYPE2_LIBS@
ohair@423 275 FREETYPE2_CFLAGS:=@FREETYPE2_CFLAGS@
ohair@423 276 USING_SYSTEM_FT_LIB=@USING_SYSTEM_FT_LIB@
ohair@423 277 CUPS_CFLAGS:=@CUPS_CFLAGS@
ohair@423 278
ohair@423 279 PACKAGE_PATH=@PACKAGE_PATH@
ohair@423 280
erikj@443 281 # Source file for cacerts
erikj@443 282 CACERTS_FILE=@CACERTS_FILE@
ohair@423 283
ihse@493 284 # Enable unlimited crypto policy
ihse@493 285 UNLIMITED_CRYPTO=@UNLIMITED_CRYPTO@
ihse@493 286
ohair@423 287 # Necessary additional compiler flags to compile X11
ohair@423 288 X_CFLAGS:=@X_CFLAGS@
ohair@423 289 X_LIBS:=@X_LIBS@
ohair@423 290 OPENWIN_HOME:=@OPENWIN_HOME@
ohair@423 291
erikj@635 292 # DirectX SDK
erikj@635 293 DXSDK_LIB_PATH=@DXSDK_LIB_PATH@
erikj@635 294 DXSDK_INCLUDE_PATH=@DXSDK_INCLUDE_PATH@
erikj@635 295
erikj@619 296 # The lowest required version of macosx to enforce compatiblity for
erikj@629 297 MACOSX_VERSION_MIN=@MACOSX_VERSION_MIN@
erikj@619 298
ohair@423 299 # There are two types: CC or CL
ohair@423 300 # CC is gcc and others behaving reasonably similar.
ohair@423 301 # CL is cl.exe only.
ohair@423 302 COMPILER_TYPE:=@COMPILER_TYPE@
erikj@697 303 COMPILER_NAME:=@COMPILER_NAME@
erikj@670 304
omajid@693 305 COMPILER_SUPPORTS_TARGET_BITS_FLAG=@COMPILER_SUPPORTS_TARGET_BITS_FLAG@
ohair@423 306
ohair@423 307 CC_OUT_OPTION:=@CC_OUT_OPTION@
ohair@423 308 EXE_OUT_OPTION:=@EXE_OUT_OPTION@
ohair@423 309 LD_OUT_OPTION:=@LD_OUT_OPTION@
ohair@423 310 AR_OUT_OPTION:=@AR_OUT_OPTION@
ohair@423 311
ohair@423 312 # Flags used for overriding the default opt setting for a C/C++ source file.
erikj@443 313 C_O_FLAG_HIGHEST:=@C_O_FLAG_HIGHEST@
ohair@423 314 C_O_FLAG_HI:=@C_O_FLAG_HI@
ohair@423 315 C_O_FLAG_NORM:=@C_O_FLAG_NORM@
ohair@423 316 C_O_FLAG_NONE:=@C_O_FLAG_NONE@
erikj@443 317 CXX_O_FLAG_HIGHEST:=@CXX_O_FLAG_HIGHEST@
ohair@423 318 CXX_O_FLAG_HI:=@CXX_O_FLAG_HI@
ohair@423 319 CXX_O_FLAG_NORM:=@CXX_O_FLAG_NORM@
ohair@423 320 CXX_O_FLAG_NONE:=@CXX_O_FLAG_NONE@
ohair@423 321
erikj@443 322 C_FLAG_DEPS:=@C_FLAG_DEPS@
erikj@443 323 CXX_FLAG_DEPS:=@CXX_FLAG_DEPS@
erikj@443 324
ohair@423 325 # Tools that potentially need to be cross compilation aware.
ohair@492 326 CC:=@FIXPATH@ @CCACHE@ @CC@
ohair@423 327
ohair@423 328 # CFLAGS used to compile the jdk native libraries (C-code)
ohair@423 329 CFLAGS_JDKLIB:=@CFLAGS_JDKLIB@
ohair@423 330 CXXFLAGS_JDKLIB:=@CXXFLAGS_JDKLIB@
ohair@423 331
ohair@423 332 # CFLAGS used to compile the jdk native launchers (C-code)
ohair@423 333 CFLAGS_JDKEXE:=@CFLAGS_JDKEXE@
ohair@423 334 CXXFLAGS_JDKEXE:=@CXXFLAGS_JDKEXE@
ohair@423 335
ohair@492 336 CXX:=@FIXPATH@ @CCACHE@ @CXX@
ohair@423 337 #CXXFLAGS:=@CXXFLAGS@
ohair@423 338
ohair@423 339 OBJC:=@CCACHE@ @OBJC@
ohair@423 340 #OBJCFLAGS:=@OBJCFLAGS@
ohair@423 341
ohair@492 342 CPP:=@FIXPATH@ @CPP@
ohair@423 343 #CPPFLAGS:=@CPPFLAGS@
ohair@423 344
ohair@476 345 # The linker can be gcc or ld on posix systems, or link.exe on windows systems.
ohair@492 346 LD:=@FIXPATH@ @LD@
ohair@423 347
ohair@423 348 # LDFLAGS used to link the jdk native libraries (C-code)
ohair@423 349 LDFLAGS_JDKLIB:=@LDFLAGS_JDKLIB@
ohair@423 350 LDFLAGS_JDKLIB_SUFFIX:=@LDFLAGS_JDKLIB_SUFFIX@
ohair@423 351
ohair@423 352 # On some platforms the linker cannot be used to create executables, thus
ohair@423 353 # the need for a separate LDEXE command.
ohair@492 354 LDEXE:=@FIXPATH@ @LDEXE@
ohair@423 355
ohair@423 356 # LDFLAGS used to link the jdk native launchers (C-code)
ohair@423 357 LDFLAGS_JDKEXE:=@LDFLAGS_JDKEXE@
ohair@423 358 LDFLAGS_JDKEXE_SUFFIX:=@LDFLAGS_JDKEXE_SUFFIX@
ohair@423 359
ohair@476 360 # LDFLAGS specific to C++ linking.
ohair@476 361 LDFLAGS_CXX_JDK:=@LDFLAGS_CXX_JDK@
ohair@476 362
ohair@423 363 # Sometimes a different linker is needed for c++ libs
ohair@492 364 LDCXX:=@FIXPATH@ @LDCXX@
ohair@423 365 # The flags for linking libstdc++ linker.
ohair@423 366 LIBCXX:=@LIBCXX@
ohair@423 367
ohair@423 368 # Sometimes a different linker is needed for c++ executables
ohair@492 369 LDEXECXX:=@FIXPATH@ @LDEXECXX@
ohair@423 370
ohair@476 371 # BUILD_CC/BUILD_LD is a compiler/linker that generates code that is runnable on the
ohair@476 372 # build platform.
ohair@492 373 BUILD_CC:=@FIXPATH@ @BUILD_CC@
ohair@492 374 BUILD_LD:=@FIXPATH@ @BUILD_LD@
erikj@456 375
ohair@492 376 AS:=@FIXPATH@ @AS@
ohair@423 377
ohair@476 378 # AR is used to create a static library (is ar in posix, lib.exe in windows)
ohair@492 379 AR:=@FIXPATH@ @AR@
ohair@423 380 ARFLAGS:=@ARFLAGS@
ohair@423 381
ohair@476 382 NM:=@NM@
erikj@670 383 GNM:=@GNM@
ohair@476 384 STRIP:=@STRIP@
ohair@476 385 MCS:=@MCS@
ohair@476 386
ohair@476 387 LIPO:=@LIPO@
ohair@423 388
ohair@423 389 # Command to create a shared library
ohair@423 390 SHARED_LIBRARY_FLAGS:=@SHARED_LIBRARY_FLAGS@
ohair@423 391
ohair@423 392 # Options to linker to specify a mapfile.
ohair@423 393 # (Note absence of := assignment, because we do not want to evaluate the macro body here)
ohair@423 394 SET_SHARED_LIBRARY_MAPFILE=@SET_SHARED_LIBRARY_MAPFILE@
ohair@423 395
erikj@443 396 # Options for C/CXX compiler to be used if linking is performed
erikj@443 397 # using reorder file
erikj@443 398 C_FLAG_REORDER:=@C_FLAG_REORDER@
erikj@443 399 CXX_FLAG_REORDER:=@CXX_FLAG_REORDER@
erikj@443 400
erikj@456 401 #
erikj@456 402 # Options for generating debug symbols
erikj@456 403 ENABLE_DEBUG_SYMBOLS:=@ENABLE_DEBUG_SYMBOLS@
erikj@456 404 CFLAGS_DEBUG_SYMBOLS:=@CFLAGS_DEBUG_SYMBOLS@
erikj@456 405 CXXFLAGS_DEBUG_SYMBOLS:=@CXXFLAGS_DEBUG_SYMBOLS@
erikj@456 406 ZIP_DEBUGINFO_FILES:=@ZIP_DEBUGINFO_FILES@
erikj@456 407
erikj@456 408 #
erikj@456 409 # Compress (or not) jars
erikj@456 410 COMPRESS_JARS=@COMPRESS_JARS@
erikj@456 411
ohair@423 412 # Options to linker to specify the library name.
ohair@423 413 # (Note absence of := assignment, because we do not want to evaluate the macro body here)
ohair@423 414 SET_SHARED_LIBRARY_NAME=@SET_SHARED_LIBRARY_NAME@
ohair@423 415
ohair@423 416 # Set origin using the linker, ie use the relative path to the dependent library to find the dependees.
ohair@423 417 # (Note absence of := assignment, because we do not want to evaluate the macro body here)
ohair@423 418 SET_SHARED_LIBRARY_ORIGIN=@SET_SHARED_LIBRARY_ORIGIN@
ohair@476 419 SET_EXECUTABLE_ORIGIN=@SET_EXECUTABLE_ORIGIN@
ohair@423 420
ohair@423 421 # Different OS:es have different ways of naming shared libraries.
ohair@423 422 # The SHARED_LIBRARY macro takes "verify" as and argument and returns:
ohair@423 423 # "libverify.so" or "libverify.dylib" or "verify.dll" depending on platform.
ohair@423 424 # (Note absence of := assignment, because we do not want to evaluate the macro body here)
ohair@423 425 SHARED_LIBRARY=@SHARED_LIBRARY@
ohair@423 426 STATIC_LIBRARY=@STATIC_LIBRARY@
ohair@423 427 LIBRARY_PREFIX:=@LIBRARY_PREFIX@
ohair@423 428 SHARED_LIBRARY_SUFFIX:=@SHARED_LIBRARY_SUFFIX@
ohair@423 429 STATIC_LIBRARY_SUFFIX:=@STATIC_LIBRARY_SUFFIX@
ohair@423 430 EXE_SUFFIX:=@EXE_SUFFIX@
ohair@423 431 OBJ_SUFFIX:=@OBJ_SUFFIX@
ohair@423 432
erikj@443 433 POST_STRIP_CMD:=@POST_STRIP_CMD@
erikj@443 434 POST_MCS_CMD:=@POST_MCS_CMD@
erikj@443 435
ohair@423 436 JAVA_FLAGS:=@BOOT_JDK_JVMARGS@
ohair@423 437
ohair@492 438 JAVA=@FIXPATH@ $(BOOT_JDK)/bin/java $(JAVA_FLAGS)
ohair@423 439
ohair@492 440 JAVAC=@FIXPATH@ $(BOOT_JDK)/bin/javac
ohair@476 441 # Hotspot sets this variable before reading the SPEC when compiling sa-jdi.jar. Avoid
ohair@476 442 # overriding that value by using ?=.
ohair@476 443 JAVAC_FLAGS?=@JAVAC_FLAGS@
ohair@423 444
ohair@492 445 JAVAH=@FIXPATH@ $(BOOT_JDK)/bin/javah
ohair@423 446
ohair@492 447 JAR=@FIXPATH@ $(BOOT_JDK)/bin/jar
ohair@423 448
ohair@492 449 RMIC=@FIXPATH@ $(BOOT_JDK)/bin/rmic
ohair@423 450
ohair@492 451 NATIVE2ASCII=@FIXPATH@ $(BOOT_JDK)/bin/native2ascii
ohair@423 452
erikj@561 453 JARSIGNER=@FIXPATH@ $(BOOT_JDK)/bin/jarsigner
erikj@561 454
ohrstrom@605 455 # You run the new javac using the boot jdk with $(BOOT_JDK)/bin/java $(NEW_JAVAC) ...
ohrstrom@605 456 BOOTSTRAP_JAVAC_JAR:=$(LANGTOOLS_OUTPUTDIR)/dist/bootstrap/lib/javac.jar
ohrstrom@605 457 BOOTSTRAP_JAVAC_ARGS:="-Xbootclasspath/p:$(BOOTSTRAP_JAVAC_JAR)" -cp $(BOOTSTRAP_JAVAC_JAR)
ohrstrom@605 458 NEW_JAVAC = $(BOOTSTRAP_JAVAC_ARGS) com.sun.tools.javac.Main
ohrstrom@605 459 NEW_JAVADOC = $(BOOTSTRAP_JAVAC_ARGS) com.sun.tools.javadoc.Main
ohrstrom@605 460
ohair@423 461 # Base flags for RC
ohair@423 462 # Guarding this against resetting value. Legacy make files include spec multiple
ohair@423 463 # times.
ohair@423 464 ifndef RC_FLAGS
ohair@423 465 RC_FLAGS:=@RC_FLAGS@
ohair@423 466 endif
ohair@423 467
ohair@423 468 # A specific java binary with specific options can be used to run
ohair@476 469 # the long running background sjavac servers and other long running tasks.
ohair@492 470 SJAVAC_SERVER_JAVA:=@FIXPATH@ @SJAVAC_SERVER_JAVA@
ohair@423 471
ohair@423 472 # Tools adhering to a minimal and common standard of posix compliance.
ohair@423 473 AWK:=@AWK@
ohair@476 474 BASENAME:=@BASENAME@
ohair@492 475 BASH:=@BASH@
ohair@423 476 CAT:=@CAT@
ohair@423 477 CCACHE:=@CCACHE@
ohair@423 478 # CD is going away, but remains to cater for legacy makefiles.
ohair@423 479 CD:=cd
ohair@423 480 CHMOD:=@CHMOD@
erikj@560 481 COMM:=@COMM@
ohair@423 482 CP:=@CP@
erikj@560 483 CPIO:=@CPIO@
ohair@423 484 CUT:=@CUT@
ohair@423 485 DATE:=@DATE@
ohair@423 486 DIFF:=@DIFF@
erikj@560 487 DIRNAME:=@DIRNAME@
ohair@423 488 FIND:=@FIND@
ohair@423 489 FIND_DELETE:=@FIND_DELETE@
ohair@423 490 ECHO:=@ECHO@
ohair@423 491 EGREP:=@EGREP@
ohair@423 492 FGREP:=@FGREP@
ohair@423 493 GREP:=@GREP@
ohair@423 494 HEAD:=@HEAD@
ohair@423 495 LS:=@LS@
ohair@423 496 LN:=@LN@
ohair@423 497 MKDIR:=@MKDIR@
ohair@423 498 MV:=@MV@
ohair@423 499 NAWK:=@NAWK@
ohair@423 500 PRINTF:=@PRINTF@
ohair@423 501 PWD:=@THEPWDCMD@
ohair@423 502 RM:=@RM@
ohair@423 503 SED:=@SED@
ohair@423 504 SH:=@SH@
ohair@423 505 SORT:=@SORT@
ohair@423 506 TAR:=@TAR@
ohair@423 507 TAIL:=@TAIL@
ohair@423 508 TEE:=@TEE@
ohair@492 509 TIME:=@TIME@
ohair@423 510 TR:=@TR@
ohair@423 511 TOUCH:=@TOUCH@
erikj@560 512 UNIQ:=@UNIQ@
ohair@423 513 WC:=@WC@
ohair@423 514 XARGS:=@XARGS@
ohair@423 515 ZIPEXE:=@ZIP@
ohair@423 516 ZIP:=@ZIP@
ohair@423 517 UNZIP:=@UNZIP@
ohair@492 518 MT:=@FIXPATH@ @MT@
ohair@492 519 RC:=@FIXPATH@ @RC@
ohair@492 520 DUMPBIN:=@FIXPATH@ @DUMPBIN@
ohair@423 521 CYGPATH:=@CYGPATH@
ohair@423 522 LDD:=@LDD@
ohair@423 523 OTOOL:=@OTOOL@
ohair@423 524 READELF:=@READELF@
ohair@423 525 EXPR:=@EXPR@
ohair@423 526 FILE:=@FILE@
erikj@443 527 HG:=@HG@
erikj@456 528 OBJCOPY:=@OBJCOPY@
ohair@492 529 SETFILE:=@SETFILE@
erikj@668 530 XATTR:=@XATTR@
ohair@423 531
ohair@492 532 FIXPATH:=@FIXPATH@
ohair@423 533
ohair@423 534 # Where the build output is stored for your convenience.
ohair@423 535 BUILD_LOG:=@BUILD_LOG@
erikj@456 536 BUILD_LOG_PREVIOUS:=@BUILD_LOG_PREVIOUS@
tbell@505 537 # Disable the build log wrapper on sjavac+winapi until
tbell@505 538 # we have solved how to prevent the log wrapper to wait
tbell@505 539 # for the background sjavac server process.
tbell@505 540 ifeq (@ENABLE_SJAVAC@X@OPENJDK_BUILD_OS_API@,yesXwinapi)
tbell@505 541 BUILD_LOG_WRAPPER:=
tbell@505 542 else
tbell@505 543 BUILD_LOG_WRAPPER:=@BUILD_LOG_WRAPPER@
tbell@505 544 endif
ohair@423 545
ohair@423 546 # Build setup
erikj@456 547 ENABLE_JFR=@ENABLE_JFR@
omajid@654 548 ENABLE_INTREE_EC=@ENABLE_INTREE_EC@
ohair@423 549 USE_EXTERNAL_LIBJPEG:=@USE_EXTERNAL_LIBJPEG@
ohair@423 550 USE_EXTERNAL_LIBGIF:=@USE_EXTERNAL_LIBGIF@
ohair@423 551 USE_EXTERNAL_LIBZ:=@USE_EXTERNAL_LIBZ@
erikj@456 552 LIBZIP_CAN_USE_MMAP:=@LIBZIP_CAN_USE_MMAP@
ohair@492 553 MSVCR_DLL:=@MSVCR_DLL@
ohair@423 554
erikj@456 555
ohair@423 556 # ADD_SRCS takes a single argument with source roots
ohair@423 557 # and appends any corresponding source roots found
ohair@423 558 # below --with-add-source-root and below
ohair@423 559 # --with-override-source-root. It is the responsibility
ohair@423 560 # of the next macro to get rid of superfluous files.
ohair@423 561 ADD_SRCS=$1
ohair@423 562 ifneq (,$(ADD_SRC_ROOT))
ohair@423 563 # Append wildcard rule to pickup any matching source roots found below ADD_SRC_ROOT
ohair@423 564 ADD_SRCS+=$(wildcard $(subst $(SRC_ROOT),$(ADD_SRC_ROOT),$1))
ohair@423 565 endif
ohair@423 566 ifneq (,$(OVERRIDE_SRC_ROOT))
ohair@423 567 # Append wildcard rule to pickup any matching source roots found below OVERRIDE_SRC_ROOT
ohair@423 568 ADD_SRCS+=$(wildcard $(subst $(SRC_ROOT),$(OVERRIDE_SRC_ROOT),$1))
ohair@423 569 endif
ohair@423 570
ohair@423 571 # OVR_SRCS creates a filter expression to filter out sources in
ohair@423 572 # the original source directory that lie inside directories below
ohair@423 573 # --with-override-source-root.
ohair@423 574 # Use := here since we want to scan for these files here. To avoid recomputation later.
ohair@423 575 # We cannot do the scan in configure, since that would force us to rerun configure when
ohair@423 576 # we add overridden sources.
ohair@423 577 ifneq (,$(OVERRIDE_SRC_ROOT))
ohair@423 578 OVR_SRCS:=$(addsuffix %,$(subst $(OVERRIDE_SRC_ROOT),$(SRC_ROOT),$(sort $(dir $(shell $(FIND) $(OVERRIDE_SRC_ROOT) -type f)))))
ohair@423 579 else
ohair@423 580 OVR_SRCS:=
ohair@423 581 endif
ohair@423 582
ohair@423 583 ####################################################
ohair@423 584 #
ohair@423 585 # INSTALLATION
ohair@423 586 #
ohair@423 587
ohair@423 588 # Common prefix for all installed files. Defaults to /usr/local,
ohair@423 589 # but /opt/myjdk is another common version.
ohair@423 590 INSTALL_PREFIX=@prefix@
ohair@423 591
ohair@423 592 # Directories containing architecture-dependent files should be relative to exec_prefix
ohair@423 593 INSTALL_EXECPREFIX=@exec_prefix@
ohair@423 594
ohair@423 595 # java,javac,javah,javap etc are installed here.
ohair@423 596 INSTALL_BINDIR=@bindir@
ohair@423 597
ohair@423 598 # Read only architecture-independent data
ohair@423 599 INSTALL_DATADIR=@datadir@
ohair@423 600
ohair@423 601 # Root of above.
ohair@423 602 INSTALL_DATAROOTDIR=@datarootdir@
ohair@423 603
ohair@423 604 # Doc files, other than info and man.
ohair@423 605 INSTALL_DOCDIR=@docdir@
ohair@423 606
ohair@423 607 # Html documentation
ohair@423 608 INSTALL_HTMLDIR=@htmldir@
ohair@423 609
ohair@423 610 # Installing C header files, JNI headers for example.
ohair@423 611 INSTALL_INCLUDEDIR=@includedir@
ohair@423 612
ohair@423 613 # Installing library files....
ohair@423 614 INSTALL_INCLUDEDIR=@libdir@
ohair@423 615
ohair@423 616 # Executables that other programs run.
ohair@423 617 INSTALL_LIBEXECDIR=@libexecdir@
ohair@423 618
ohair@423 619 # Locale-dependent but architecture-independent data, such as message catalogs.
ohair@423 620 INSTALL_LOCALEDIR=@localedir@
ohair@423 621
ohair@423 622 # Modifiable single-machine data
ohair@423 623 INSTALL_LOCALSTATEDIR=@localstatedir@
ohair@423 624
ohair@423 625 # Man pages
ohair@423 626 INSTALL_MANDIR=@mandir@
ohair@423 627
ohair@423 628 # Modifiable architecture-independent data.
ohair@423 629 INSTALL_SHAREDSTATEDIR=@sharedstatedir@
ohair@423 630
ohair@423 631 # Read-only single-machine data
ohair@423 632 INSTALL_SYSCONFDIR=@sysconfdir@
ohair@423 633
ohair@423 634
ohair@423 635 ####################################################
ohair@423 636 #
ohair@423 637 # Misc
ohair@423 638 #
ohair@423 639
erikj@443 640 # Name of Service Agent library
erikj@443 641 SALIB_NAME=@SALIB_NAME@
erikj@443 642
omajid@669 643 INCLUDE_SA=@INCLUDE_SA@
omajid@669 644
erikj@443 645 OS_VERSION_MAJOR:=@OS_VERSION_MAJOR@
erikj@443 646 OS_VERSION_MINOR:=@OS_VERSION_MINOR@
erikj@443 647 OS_VERSION_MICRO:=@OS_VERSION_MICRO@
erikj@443 648
erikj@562 649 # Images directory definitions
erikj@562 650 JDK_IMAGE_SUBDIR:=j2sdk-image
erikj@562 651 JRE_IMAGE_SUBDIR:=j2re-image
erikj@562 652 JDK_OVERLAY_IMAGE_SUBDIR:=j2sdk-overlay-image
erikj@562 653 JRE_OVERLAY_IMAGE_SUBDIR:=j2re-overlay-image
erikj@666 654 # Colon left out to be able to override output dir for bootcycle-images
erikj@666 655 JDK_IMAGE_DIR=$(IMAGES_OUTPUTDIR)/$(JDK_IMAGE_SUBDIR)
erikj@666 656 JRE_IMAGE_DIR=$(IMAGES_OUTPUTDIR)/$(JRE_IMAGE_SUBDIR)
erikj@666 657 JDK_OVERLAY_IMAGE_DIR=$(IMAGES_OUTPUTDIR)/$(JDK_OVERLAY_IMAGE_SUBDIR)
erikj@666 658 JRE_OVERLAY_IMAGE_DIR=$(IMAGES_OUTPUTDIR)/$(JRE_OVERLAY_IMAGE_SUBDIR)
erikj@562 659
erikj@562 660 # Macosx bundles directory definitions
erikj@666 661 JDK_BUNDLE_SUBDIR=j2sdk-bundle/jdk$(JDK_VERSION).jdk/Contents
erikj@666 662 JRE_BUNDLE_SUBDIR=j2re-bundle/jre$(JDK_VERSION).jre/Contents
erikj@666 663 JDK_BUNDLE_DIR=$(IMAGES_OUTPUTDIR)/$(JDK_BUNDLE_SUBDIR)
erikj@666 664 JRE_BUNDLE_DIR=$(IMAGES_OUTPUTDIR)/$(JRE_BUNDLE_SUBDIR)
erikj@562 665
ohair@476 666 # Include the custom-spec.gmk file if it exists
ohair@476 667 -include $(dir @SPEC@)/custom-spec.gmk