annotate common/autoconf/spec.gmk.in @ 890:13ddc5c3ebfc

Merge
author jlaskey
date Sat, 02 Mar 2013 10:28:16 -0400
parents e877cb3eb4d6 5b0b6ef58dbf
children 1d38d30196be
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@
ohair@476 228 LANGTOOLS_OUTPUTDIR=$(BUILD_OUTPUT)/langtools
ohair@476 229 CORBA_OUTPUTDIR=$(BUILD_OUTPUT)/corba
ohair@476 230 JAXP_OUTPUTDIR=$(BUILD_OUTPUT)/jaxp
ohair@476 231 JAXWS_OUTPUTDIR=$(BUILD_OUTPUT)/jaxws
ohair@476 232 HOTSPOT_OUTPUTDIR=$(BUILD_OUTPUT)/hotspot
ohair@476 233 JDK_OUTPUTDIR=$(BUILD_OUTPUT)/jdk
jjg@643 234 NASHORN_OUTPUTDIR=$(BUILD_OUTPUT)/nashorn
ohair@476 235 IMAGES_OUTPUTDIR=$(BUILD_OUTPUT)/images
erikj@561 236 JCE_OUTPUTDIR=$(BUILD_OUTPUT)/jce-release
erikj@456 237
ohair@476 238 LANGTOOLS_DIST=$(LANGTOOLS_OUTPUTDIR)/dist
ohair@476 239 CORBA_DIST=$(CORBA_OUTPUTDIR)/dist
ohair@476 240 JAXP_DIST=$(JAXP_OUTPUTDIR)/dist
ohair@476 241 JAXWS_DIST=$(JAXWS_OUTPUTDIR)/dist
tbell@504 242 HOTSPOT_DIST=@HOTSPOT_DIST@
jjg@643 243 NASHORN_DIST=$(NASHORN_OUTPUTDIR)/dist
tbell@504 244
tbell@504 245 BUILD_HOTSPOT=@BUILD_HOTSPOT@
ohair@423 246
ohair@423 247 # The boot jdk to use
ohair@423 248 BOOT_JDK:=@BOOT_JDK@
ohair@423 249 BOOT_JDK_JVMARGS:=@BOOT_JDK_JVMARGS@
ohair@423 250 BOOT_RTJAR:=@BOOT_RTJAR@
ohair@476 251 BOOT_TOOLSJAR=$(BOOT_JDK)/lib/tools.jar
ohair@423 252
ohair@423 253 # When compiling Java source to be run by the boot jdk
ohair@423 254 # use these extra flags, eg -source 6 -target 6
ohair@423 255 BOOT_JDK_SOURCETARGET:=@BOOT_JDK_SOURCETARGET@
ohair@423 256
ohair@423 257 # Information about the build system
ohair@423 258 NUM_CORES:=@NUM_CORES@
ohair@476 259 # Enable sjavac support = use a javac server,
ohair@476 260 # multi core javac compilation and dependency tracking.
ohair@476 261 ENABLE_SJAVAC:=@ENABLE_SJAVAC@
ohair@476 262 # Store sjavac server synchronization files here, and
ohair@476 263 # the sjavac server log files.
ohair@476 264 SJAVAC_SERVER_DIR:=@SJAVAC_SERVER_DIR@
ohair@423 265
ohair@423 266 # The OpenJDK makefiles should be changed to using the standard
ohair@423 267 # configure output ..._CFLAGS and ..._LIBS. In the meantime we
ohair@423 268 # extract the information here.
ohair@423 269 FREETYPE2_LIB_PATH:=@FREETYPE2_LIB_PATH@
ohair@423 270 FREETYPE2_LIBS:=@FREETYPE2_LIBS@
ohair@423 271 FREETYPE2_CFLAGS:=@FREETYPE2_CFLAGS@
ohair@423 272 USING_SYSTEM_FT_LIB=@USING_SYSTEM_FT_LIB@
ohair@423 273 CUPS_CFLAGS:=@CUPS_CFLAGS@
ohair@423 274
ohair@423 275 PACKAGE_PATH=@PACKAGE_PATH@
ohair@423 276
erikj@443 277 # Source file for cacerts
erikj@443 278 CACERTS_FILE=@CACERTS_FILE@
ohair@423 279
ihse@493 280 # Enable unlimited crypto policy
ihse@493 281 UNLIMITED_CRYPTO=@UNLIMITED_CRYPTO@
ihse@493 282
ohair@423 283 # Necessary additional compiler flags to compile X11
ohair@423 284 X_CFLAGS:=@X_CFLAGS@
ohair@423 285 X_LIBS:=@X_LIBS@
ohair@423 286 OPENWIN_HOME:=@OPENWIN_HOME@
ohair@423 287
erikj@619 288 # The lowest required version of macosx to enforce compatiblity for
erikj@619 289 MACOSX_REQUIRED_VERSION=@MACOSX_REQUIRED_VERSION@
erikj@619 290
ohair@423 291 # There are two types: CC or CL
ohair@423 292 # CC is gcc and others behaving reasonably similar.
ohair@423 293 # CL is cl.exe only.
ohair@423 294 COMPILER_TYPE:=@COMPILER_TYPE@
ohair@423 295
ohair@423 296 CC_OUT_OPTION:=@CC_OUT_OPTION@
ohair@423 297 EXE_OUT_OPTION:=@EXE_OUT_OPTION@
ohair@423 298 LD_OUT_OPTION:=@LD_OUT_OPTION@
ohair@423 299 AR_OUT_OPTION:=@AR_OUT_OPTION@
ohair@423 300
ohair@423 301 # Flags used for overriding the default opt setting for a C/C++ source file.
erikj@443 302 C_O_FLAG_HIGHEST:=@C_O_FLAG_HIGHEST@
ohair@423 303 C_O_FLAG_HI:=@C_O_FLAG_HI@
ohair@423 304 C_O_FLAG_NORM:=@C_O_FLAG_NORM@
ohair@423 305 C_O_FLAG_NONE:=@C_O_FLAG_NONE@
erikj@443 306 CXX_O_FLAG_HIGHEST:=@CXX_O_FLAG_HIGHEST@
ohair@423 307 CXX_O_FLAG_HI:=@CXX_O_FLAG_HI@
ohair@423 308 CXX_O_FLAG_NORM:=@CXX_O_FLAG_NORM@
ohair@423 309 CXX_O_FLAG_NONE:=@CXX_O_FLAG_NONE@
ohair@423 310
erikj@443 311 C_FLAG_DEPS:=@C_FLAG_DEPS@
erikj@443 312 CXX_FLAG_DEPS:=@CXX_FLAG_DEPS@
erikj@443 313
ohair@423 314 # Tools that potentially need to be cross compilation aware.
ohair@492 315 CC:=@FIXPATH@ @CCACHE@ @CC@
ohair@423 316
ohair@423 317 # CFLAGS used to compile the jdk native libraries (C-code)
ohair@423 318 CFLAGS_JDKLIB:=@CFLAGS_JDKLIB@
ohair@423 319 CXXFLAGS_JDKLIB:=@CXXFLAGS_JDKLIB@
ohair@423 320
ohair@423 321 # CFLAGS used to compile the jdk native launchers (C-code)
ohair@423 322 CFLAGS_JDKEXE:=@CFLAGS_JDKEXE@
ohair@423 323 CXXFLAGS_JDKEXE:=@CXXFLAGS_JDKEXE@
ohair@423 324
ohair@492 325 CXX:=@FIXPATH@ @CCACHE@ @CXX@
ohair@423 326 #CXXFLAGS:=@CXXFLAGS@
ohair@423 327
ohair@423 328 OBJC:=@CCACHE@ @OBJC@
ohair@423 329 #OBJCFLAGS:=@OBJCFLAGS@
ohair@423 330
ohair@492 331 CPP:=@FIXPATH@ @CPP@
ohair@423 332 #CPPFLAGS:=@CPPFLAGS@
ohair@423 333
ohair@476 334 # The linker can be gcc or ld on posix systems, or link.exe on windows systems.
ohair@492 335 LD:=@FIXPATH@ @LD@
ohair@423 336
ohair@423 337 # LDFLAGS used to link the jdk native libraries (C-code)
ohair@423 338 LDFLAGS_JDKLIB:=@LDFLAGS_JDKLIB@
ohair@423 339 LDFLAGS_JDKLIB_SUFFIX:=@LDFLAGS_JDKLIB_SUFFIX@
ohair@423 340
ohair@423 341 # On some platforms the linker cannot be used to create executables, thus
ohair@423 342 # the need for a separate LDEXE command.
ohair@492 343 LDEXE:=@FIXPATH@ @LDEXE@
ohair@423 344
ohair@423 345 # LDFLAGS used to link the jdk native launchers (C-code)
ohair@423 346 LDFLAGS_JDKEXE:=@LDFLAGS_JDKEXE@
ohair@423 347 LDFLAGS_JDKEXE_SUFFIX:=@LDFLAGS_JDKEXE_SUFFIX@
ohair@423 348
ohair@476 349 # LDFLAGS specific to C++ linking.
ohair@476 350 LDFLAGS_CXX_JDK:=@LDFLAGS_CXX_JDK@
ohair@476 351
ohair@423 352 # Sometimes a different linker is needed for c++ libs
ohair@492 353 LDCXX:=@FIXPATH@ @LDCXX@
ohair@423 354 # The flags for linking libstdc++ linker.
ohair@423 355 LIBCXX:=@LIBCXX@
ohair@423 356
ohair@423 357 # Sometimes a different linker is needed for c++ executables
ohair@492 358 LDEXECXX:=@FIXPATH@ @LDEXECXX@
ohair@423 359
ohair@476 360 # BUILD_CC/BUILD_LD is a compiler/linker that generates code that is runnable on the
ohair@476 361 # build platform.
ohair@492 362 BUILD_CC:=@FIXPATH@ @BUILD_CC@
ohair@492 363 BUILD_LD:=@FIXPATH@ @BUILD_LD@
erikj@456 364
ohair@492 365 AS:=@FIXPATH@ @AS@
ohair@423 366
ohair@476 367 # AR is used to create a static library (is ar in posix, lib.exe in windows)
ohair@492 368 AR:=@FIXPATH@ @AR@
ohair@423 369 ARFLAGS:=@ARFLAGS@
ohair@423 370
ohair@476 371 NM:=@NM@
ohair@476 372 STRIP:=@STRIP@
ohair@476 373 MCS:=@MCS@
ohair@476 374
ohair@476 375 LIPO:=@LIPO@
ohair@423 376
ohair@423 377 # Command to create a shared library
ohair@423 378 SHARED_LIBRARY_FLAGS:=@SHARED_LIBRARY_FLAGS@
ohair@423 379
ohair@423 380 # Options to linker to specify a mapfile.
ohair@423 381 # (Note absence of := assignment, because we do not want to evaluate the macro body here)
ohair@423 382 SET_SHARED_LIBRARY_MAPFILE=@SET_SHARED_LIBRARY_MAPFILE@
ohair@423 383
erikj@443 384 # Options for C/CXX compiler to be used if linking is performed
erikj@443 385 # using reorder file
erikj@443 386 C_FLAG_REORDER:=@C_FLAG_REORDER@
erikj@443 387 CXX_FLAG_REORDER:=@CXX_FLAG_REORDER@
erikj@443 388
erikj@456 389 #
erikj@456 390 # Options for generating debug symbols
erikj@456 391 ENABLE_DEBUG_SYMBOLS:=@ENABLE_DEBUG_SYMBOLS@
erikj@456 392 CFLAGS_DEBUG_SYMBOLS:=@CFLAGS_DEBUG_SYMBOLS@
erikj@456 393 CXXFLAGS_DEBUG_SYMBOLS:=@CXXFLAGS_DEBUG_SYMBOLS@
erikj@456 394 ZIP_DEBUGINFO_FILES:=@ZIP_DEBUGINFO_FILES@
erikj@456 395
erikj@456 396 #
erikj@456 397 # Compress (or not) jars
erikj@456 398 COMPRESS_JARS=@COMPRESS_JARS@
erikj@456 399
ohair@423 400 # Options to linker to specify the library name.
ohair@423 401 # (Note absence of := assignment, because we do not want to evaluate the macro body here)
ohair@423 402 SET_SHARED_LIBRARY_NAME=@SET_SHARED_LIBRARY_NAME@
ohair@423 403
ohair@423 404 # Set origin using the linker, ie use the relative path to the dependent library to find the dependees.
ohair@423 405 # (Note absence of := assignment, because we do not want to evaluate the macro body here)
ohair@423 406 SET_SHARED_LIBRARY_ORIGIN=@SET_SHARED_LIBRARY_ORIGIN@
ohair@476 407 SET_EXECUTABLE_ORIGIN=@SET_EXECUTABLE_ORIGIN@
ohair@423 408
ohair@423 409 # Different OS:es have different ways of naming shared libraries.
ohair@423 410 # The SHARED_LIBRARY macro takes "verify" as and argument and returns:
ohair@423 411 # "libverify.so" or "libverify.dylib" or "verify.dll" depending on platform.
ohair@423 412 # (Note absence of := assignment, because we do not want to evaluate the macro body here)
ohair@423 413 SHARED_LIBRARY=@SHARED_LIBRARY@
ohair@423 414 STATIC_LIBRARY=@STATIC_LIBRARY@
ohair@423 415 LIBRARY_PREFIX:=@LIBRARY_PREFIX@
ohair@423 416 SHARED_LIBRARY_SUFFIX:=@SHARED_LIBRARY_SUFFIX@
ohair@423 417 STATIC_LIBRARY_SUFFIX:=@STATIC_LIBRARY_SUFFIX@
ohair@423 418 EXE_SUFFIX:=@EXE_SUFFIX@
ohair@423 419 OBJ_SUFFIX:=@OBJ_SUFFIX@
ohair@423 420
erikj@443 421 POST_STRIP_CMD:=@POST_STRIP_CMD@
erikj@443 422 POST_MCS_CMD:=@POST_MCS_CMD@
erikj@443 423
ohair@423 424 JAVA_FLAGS:=@BOOT_JDK_JVMARGS@
ohair@423 425
ohair@492 426 JAVA=@FIXPATH@ $(BOOT_JDK)/bin/java $(JAVA_FLAGS)
ohair@423 427
ohair@492 428 JAVAC=@FIXPATH@ $(BOOT_JDK)/bin/javac
ohair@476 429 # Hotspot sets this variable before reading the SPEC when compiling sa-jdi.jar. Avoid
ohair@476 430 # overriding that value by using ?=.
ohair@476 431 JAVAC_FLAGS?=@JAVAC_FLAGS@
ohair@423 432
ohair@492 433 JAVAH=@FIXPATH@ $(BOOT_JDK)/bin/javah
ohair@423 434
ohair@492 435 JAR=@FIXPATH@ $(BOOT_JDK)/bin/jar
ohair@423 436
ohair@492 437 RMIC=@FIXPATH@ $(BOOT_JDK)/bin/rmic
ohair@423 438
ohair@492 439 NATIVE2ASCII=@FIXPATH@ $(BOOT_JDK)/bin/native2ascii
ohair@423 440
erikj@561 441 JARSIGNER=@FIXPATH@ $(BOOT_JDK)/bin/jarsigner
erikj@561 442
ohrstrom@605 443 # You run the new javac using the boot jdk with $(BOOT_JDK)/bin/java $(NEW_JAVAC) ...
ohrstrom@605 444 BOOTSTRAP_JAVAC_JAR:=$(LANGTOOLS_OUTPUTDIR)/dist/bootstrap/lib/javac.jar
ohrstrom@605 445 BOOTSTRAP_JAVAC_ARGS:="-Xbootclasspath/p:$(BOOTSTRAP_JAVAC_JAR)" -cp $(BOOTSTRAP_JAVAC_JAR)
ohrstrom@605 446 NEW_JAVAC = $(BOOTSTRAP_JAVAC_ARGS) com.sun.tools.javac.Main
ohrstrom@605 447 NEW_JAVADOC = $(BOOTSTRAP_JAVAC_ARGS) com.sun.tools.javadoc.Main
ohrstrom@605 448
ohair@423 449 # Base flags for RC
ohair@423 450 # Guarding this against resetting value. Legacy make files include spec multiple
ohair@423 451 # times.
ohair@423 452 ifndef RC_FLAGS
ohair@423 453 RC_FLAGS:=@RC_FLAGS@
ohair@423 454 endif
ohair@423 455
ohair@423 456 # A specific java binary with specific options can be used to run
ohair@476 457 # the long running background sjavac servers and other long running tasks.
ohair@492 458 SJAVAC_SERVER_JAVA:=@FIXPATH@ @SJAVAC_SERVER_JAVA@
ohair@423 459
ohair@423 460 # Tools adhering to a minimal and common standard of posix compliance.
ohair@423 461 AWK:=@AWK@
ohair@476 462 BASENAME:=@BASENAME@
ohair@492 463 BASH:=@BASH@
ohair@423 464 CAT:=@CAT@
ohair@423 465 CCACHE:=@CCACHE@
ohair@423 466 # CD is going away, but remains to cater for legacy makefiles.
ohair@423 467 CD:=cd
ohair@423 468 CHMOD:=@CHMOD@
erikj@560 469 COMM:=@COMM@
ohair@423 470 CP:=@CP@
erikj@560 471 CPIO:=@CPIO@
ohair@423 472 CUT:=@CUT@
ohair@423 473 DATE:=@DATE@
ohair@423 474 DIFF:=@DIFF@
erikj@560 475 DIRNAME:=@DIRNAME@
ohair@423 476 FIND:=@FIND@
ohair@423 477 FIND_DELETE:=@FIND_DELETE@
ohair@423 478 ECHO:=@ECHO@
ohair@423 479 EGREP:=@EGREP@
ohair@423 480 FGREP:=@FGREP@
ohair@423 481 GREP:=@GREP@
ohair@423 482 HEAD:=@HEAD@
ohair@423 483 LS:=@LS@
ohair@423 484 LN:=@LN@
ohair@423 485 MKDIR:=@MKDIR@
ohair@423 486 MV:=@MV@
ohair@423 487 NAWK:=@NAWK@
ohair@423 488 PRINTF:=@PRINTF@
ohair@423 489 PWD:=@THEPWDCMD@
ohair@423 490 RM:=@RM@
ohair@423 491 SED:=@SED@
ohair@423 492 SH:=@SH@
ohair@423 493 SORT:=@SORT@
ohair@423 494 TAR:=@TAR@
ohair@423 495 TAIL:=@TAIL@
ohair@423 496 TEE:=@TEE@
ohair@492 497 TIME:=@TIME@
ohair@423 498 TR:=@TR@
ohair@423 499 TOUCH:=@TOUCH@
erikj@560 500 UNIQ:=@UNIQ@
ohair@423 501 WC:=@WC@
ohair@423 502 XARGS:=@XARGS@
ohair@423 503 ZIPEXE:=@ZIP@
ohair@423 504 ZIP:=@ZIP@
ohair@423 505 UNZIP:=@UNZIP@
ohair@492 506 MT:=@FIXPATH@ @MT@
ohair@492 507 RC:=@FIXPATH@ @RC@
ohair@492 508 DUMPBIN:=@FIXPATH@ @DUMPBIN@
ohair@423 509 CYGPATH:=@CYGPATH@
ohair@423 510 LDD:=@LDD@
ohair@423 511 OTOOL:=@OTOOL@
ohair@423 512 READELF:=@READELF@
ohair@423 513 EXPR:=@EXPR@
ohair@423 514 FILE:=@FILE@
erikj@443 515 HG:=@HG@
erikj@456 516 OBJCOPY:=@OBJCOPY@
ohair@492 517 SETFILE:=@SETFILE@
ohair@423 518
ohair@492 519 FIXPATH:=@FIXPATH@
ohair@423 520
ohair@423 521 # Where the build output is stored for your convenience.
ohair@423 522 BUILD_LOG:=@BUILD_LOG@
erikj@456 523 BUILD_LOG_PREVIOUS:=@BUILD_LOG_PREVIOUS@
tbell@505 524 # Disable the build log wrapper on sjavac+winapi until
tbell@505 525 # we have solved how to prevent the log wrapper to wait
tbell@505 526 # for the background sjavac server process.
tbell@505 527 ifeq (@ENABLE_SJAVAC@X@OPENJDK_BUILD_OS_API@,yesXwinapi)
tbell@505 528 BUILD_LOG_WRAPPER:=
tbell@505 529 else
tbell@505 530 BUILD_LOG_WRAPPER:=@BUILD_LOG_WRAPPER@
tbell@505 531 endif
ohair@423 532
ohair@423 533 # Build setup
erikj@456 534 ENABLE_JFR=@ENABLE_JFR@
ohair@423 535 USE_EXTERNAL_LIBJPEG:=@USE_EXTERNAL_LIBJPEG@
ohair@423 536 USE_EXTERNAL_LIBGIF:=@USE_EXTERNAL_LIBGIF@
ohair@423 537 USE_EXTERNAL_LIBZ:=@USE_EXTERNAL_LIBZ@
erikj@456 538 LIBZIP_CAN_USE_MMAP:=@LIBZIP_CAN_USE_MMAP@
ohair@492 539 MSVCR_DLL:=@MSVCR_DLL@
ohair@423 540
erikj@456 541
ohair@423 542 # ADD_SRCS takes a single argument with source roots
ohair@423 543 # and appends any corresponding source roots found
ohair@423 544 # below --with-add-source-root and below
ohair@423 545 # --with-override-source-root. It is the responsibility
ohair@423 546 # of the next macro to get rid of superfluous files.
ohair@423 547 ADD_SRCS=$1
ohair@423 548 ifneq (,$(ADD_SRC_ROOT))
ohair@423 549 # Append wildcard rule to pickup any matching source roots found below ADD_SRC_ROOT
ohair@423 550 ADD_SRCS+=$(wildcard $(subst $(SRC_ROOT),$(ADD_SRC_ROOT),$1))
ohair@423 551 endif
ohair@423 552 ifneq (,$(OVERRIDE_SRC_ROOT))
ohair@423 553 # Append wildcard rule to pickup any matching source roots found below OVERRIDE_SRC_ROOT
ohair@423 554 ADD_SRCS+=$(wildcard $(subst $(SRC_ROOT),$(OVERRIDE_SRC_ROOT),$1))
ohair@423 555 endif
ohair@423 556
ohair@423 557 # OVR_SRCS creates a filter expression to filter out sources in
ohair@423 558 # the original source directory that lie inside directories below
ohair@423 559 # --with-override-source-root.
ohair@423 560 # Use := here since we want to scan for these files here. To avoid recomputation later.
ohair@423 561 # We cannot do the scan in configure, since that would force us to rerun configure when
ohair@423 562 # we add overridden sources.
ohair@423 563 ifneq (,$(OVERRIDE_SRC_ROOT))
ohair@423 564 OVR_SRCS:=$(addsuffix %,$(subst $(OVERRIDE_SRC_ROOT),$(SRC_ROOT),$(sort $(dir $(shell $(FIND) $(OVERRIDE_SRC_ROOT) -type f)))))
ohair@423 565 else
ohair@423 566 OVR_SRCS:=
ohair@423 567 endif
ohair@423 568
ohair@423 569 ####################################################
ohair@423 570 #
ohair@423 571 # INSTALLATION
ohair@423 572 #
ohair@423 573
ohair@423 574 # Common prefix for all installed files. Defaults to /usr/local,
ohair@423 575 # but /opt/myjdk is another common version.
ohair@423 576 INSTALL_PREFIX=@prefix@
ohair@423 577
ohair@423 578 # Directories containing architecture-dependent files should be relative to exec_prefix
ohair@423 579 INSTALL_EXECPREFIX=@exec_prefix@
ohair@423 580
ohair@423 581 # java,javac,javah,javap etc are installed here.
ohair@423 582 INSTALL_BINDIR=@bindir@
ohair@423 583
ohair@423 584 # Read only architecture-independent data
ohair@423 585 INSTALL_DATADIR=@datadir@
ohair@423 586
ohair@423 587 # Root of above.
ohair@423 588 INSTALL_DATAROOTDIR=@datarootdir@
ohair@423 589
ohair@423 590 # Doc files, other than info and man.
ohair@423 591 INSTALL_DOCDIR=@docdir@
ohair@423 592
ohair@423 593 # Html documentation
ohair@423 594 INSTALL_HTMLDIR=@htmldir@
ohair@423 595
ohair@423 596 # Installing C header files, JNI headers for example.
ohair@423 597 INSTALL_INCLUDEDIR=@includedir@
ohair@423 598
ohair@423 599 # Installing library files....
ohair@423 600 INSTALL_INCLUDEDIR=@libdir@
ohair@423 601
ohair@423 602 # Executables that other programs run.
ohair@423 603 INSTALL_LIBEXECDIR=@libexecdir@
ohair@423 604
ohair@423 605 # Locale-dependent but architecture-independent data, such as message catalogs.
ohair@423 606 INSTALL_LOCALEDIR=@localedir@
ohair@423 607
ohair@423 608 # Modifiable single-machine data
ohair@423 609 INSTALL_LOCALSTATEDIR=@localstatedir@
ohair@423 610
ohair@423 611 # Man pages
ohair@423 612 INSTALL_MANDIR=@mandir@
ohair@423 613
ohair@423 614 # Modifiable architecture-independent data.
ohair@423 615 INSTALL_SHAREDSTATEDIR=@sharedstatedir@
ohair@423 616
ohair@423 617 # Read-only single-machine data
ohair@423 618 INSTALL_SYSCONFDIR=@sysconfdir@
ohair@423 619
ohair@423 620
ohair@423 621 ####################################################
ohair@423 622 #
ohair@423 623 # Misc
ohair@423 624 #
ohair@423 625
erikj@443 626 # Name of Service Agent library
erikj@443 627 SALIB_NAME=@SALIB_NAME@
erikj@443 628
erikj@443 629 OS_VERSION_MAJOR:=@OS_VERSION_MAJOR@
erikj@443 630 OS_VERSION_MINOR:=@OS_VERSION_MINOR@
erikj@443 631 OS_VERSION_MICRO:=@OS_VERSION_MICRO@
erikj@443 632
erikj@562 633 # Images directory definitions
erikj@562 634 JDK_IMAGE_SUBDIR:=j2sdk-image
erikj@562 635 JRE_IMAGE_SUBDIR:=j2re-image
erikj@562 636 JDK_OVERLAY_IMAGE_SUBDIR:=j2sdk-overlay-image
erikj@562 637 JRE_OVERLAY_IMAGE_SUBDIR:=j2re-overlay-image
erikj@562 638 JDK_IMAGE_DIR:=$(IMAGES_OUTPUTDIR)/$(JDK_IMAGE_SUBDIR)
erikj@562 639 JRE_IMAGE_DIR:=$(IMAGES_OUTPUTDIR)/$(JRE_IMAGE_SUBDIR)
erikj@562 640 JDK_OVERLAY_IMAGE_DIR:=$(IMAGES_OUTPUTDIR)/$(JDK_OVERLAY_IMAGE_SUBDIR)
erikj@562 641 JRE_OVERLAY_IMAGE_DIR:=$(IMAGES_OUTPUTDIR)/$(JRE_OVERLAY_IMAGE_SUBDIR)
erikj@562 642
erikj@562 643 # Macosx bundles directory definitions
erikj@562 644 JDK_BUNDLE_SUBDIR:=j2sdk-bundle/jdk$(JDK_VERSION).jdk/Contents
erikj@562 645 JRE_BUNDLE_SUBDIR:=j2re-bundle/jre$(JDK_VERSION).jre/Contents
erikj@562 646 JDK_BUNDLE_DIR:=$(IMAGES_OUTPUTDIR)/$(JDK_BUNDLE_SUBDIR)
erikj@562 647 JRE_BUNDLE_DIR:=$(IMAGES_OUTPUTDIR)/$(JRE_BUNDLE_SUBDIR)
erikj@562 648
ohair@476 649 # Include the custom-spec.gmk file if it exists
ohair@476 650 -include $(dir @SPEC@)/custom-spec.gmk