annotate common/autoconf/spec.gmk.in @ 507:0e1b5886b06c

Added tag jdk8-b65 for changeset b772de306dc2
author katleman
date Thu, 15 Nov 2012 15:38:33 -0800
parents 78bb27faf889
children 6b93e7a4401d
rev   line source
ohair@423 1 #
ohair@423 2 # Copyright (c) 2011, 2012, 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@
ohair@423 144 COPYRIGHT_YEAR:=@COPYRIGHT_YEAR@
ohair@423 145
ohair@476 146 # Location where build customization files may be found
ohair@476 147 CUSTOM_MAKE_DIR:=@CUSTOM_MAKE_DIR@
ohair@476 148
ohair@423 149 # Information gathered from the version.numbers file.
ohair@423 150 JDK_MAJOR_VERSION:=@JDK_MAJOR_VERSION@
ohair@423 151 JDK_MINOR_VERSION:=@JDK_MINOR_VERSION@
ohair@423 152 JDK_MICRO_VERSION:=@JDK_MICRO_VERSION@
ohair@423 153 JDK_UPDATE_VERSION:=@JDK_UPDATE_VERSION@
ohair@423 154 JDK_BUILD_NUMBER:=@JDK_BUILD_NUMBER@
ohair@423 155 MILESTONE:=@MILESTONE@
ohair@423 156 LAUNCHER_NAME:=@LAUNCHER_NAME@
ohair@423 157 PRODUCT_NAME:=@PRODUCT_NAME@
ohair@423 158 PRODUCT_SUFFIX:=@PRODUCT_SUFFIX@
ohair@423 159 JDK_RC_PLATFORM_NAME:=@JDK_RC_PLATFORM_NAME@
ohair@423 160 COMPANY_NAME:=@COMPANY_NAME@
ohair@492 161 MACOSX_BUNDLE_NAME_BASE=@MACOSX_BUNDLE_NAME_BASE@
ohair@492 162 MACOSX_BUNDLE_ID_BASE=@MACOSX_BUNDLE_ID_BASE@
ohair@423 163
ohair@423 164 # Different version strings generated from the above information.
ohair@423 165 JDK_VERSION:=@JDK_VERSION@
ohair@423 166 RUNTIME_NAME:=@RUNTIME_NAME@
ohair@423 167 FULL_VERSION:=@FULL_VERSION@
ohair@423 168 JRE_RELEASE_VERSION:=@FULL_VERSION@
ohair@423 169 RELEASE:=@RELEASE@
ohair@423 170 COOKED_BUILD_NUMBER:=@COOKED_BUILD_NUMBER@
ohair@423 171
ohair@423 172 # How to compile the code: release, fastdebug or slowdebug
ohair@423 173 DEBUG_LEVEL:=@DEBUG_LEVEL@
ohair@423 174
ohair@423 175 # This is the JDK variant to build.
ohair@423 176 # The JDK variant is a name for a specific set of modules to be compiled for the JDK.
ohair@423 177 JDK_VARIANT:=@JDK_VARIANT@
ohair@423 178
ohair@423 179 # Should we compile support for running with a graphical UI? (ie headful)
ohair@423 180 # Should we compile support for running without? (ie headless)
ohair@423 181 SUPPORT_HEADFUL:=@SUPPORT_HEADFUL@
ohair@423 182 SUPPORT_HEADLESS:=@SUPPORT_HEADLESS@
ohair@423 183 # Legacy defines controlled by the SUPPORT_HEADLESS and SUPPORT_HEADFUL options.
ohair@423 184 @BUILD_HEADLESS@
ohair@423 185
ohair@423 186 # These are the libjvms that we want to build.
ohair@423 187 # The java launcher uses the default.
ohair@423 188 # The other can be selected by specifying -client -server -kernel -zero or -zeroshark
ohair@423 189 # on the java launcher command line.
ohair@423 190 JVM_VARIANTS:=@JVM_VARIANTS@
ohair@423 191 JVM_VARIANT_SERVER:=@JVM_VARIANT_SERVER@
ohair@423 192 JVM_VARIANT_CLIENT:=@JVM_VARIANT_CLIENT@
ohair@423 193 JVM_VARIANT_KERNEL:=@JVM_VARIANT_KERNEL@
ohair@423 194 JVM_VARIANT_ZERO:=@JVM_VARIANT_ZERO@
ohair@423 195 JVM_VARIANT_ZEROSHARK:=@JVM_VARIANT_ZEROSHARK@
ohair@423 196
ohair@476 197 # Universal binaries on macosx
ohair@476 198 MACOSX_UNIVERSAL=@MACOSX_UNIVERSAL@
ohair@476 199
ohair@423 200 # Legacy setting: -debug or -fastdebug
ohair@476 201 # Still used in version string...
ohair@423 202 BUILD_VARIANT_RELEASE:=@BUILD_VARIANT_RELEASE@
ohair@423 203
ohair@476 204 # JDK_OUTPUTDIR specifies where a working jvm is built.
ohair@423 205 # You can run $(JDK_OUTPUTDIR)/bin/java
ohair@423 206 # Though the layout of the contents of $(JDK_OUTPUTDIR) is not
ohair@423 207 # yet the same as a default installation.
ohair@476 208 #
ohair@423 209 # When you run "make install" it will create the standardized
ohair@476 210 # layout for the jdk and the jre inside the IMAGES_OUTPUTDIR subdir.
ohair@423 211 # Then it will copy the contents of the jdk into the installation
ohair@423 212 # directory.
erikj@456 213
ohair@476 214 BUILD_OUTPUT:=@BUILD_OUTPUT@
ohair@476 215 LANGTOOLS_OUTPUTDIR=$(BUILD_OUTPUT)/langtools
ohair@476 216 CORBA_OUTPUTDIR=$(BUILD_OUTPUT)/corba
ohair@476 217 JAXP_OUTPUTDIR=$(BUILD_OUTPUT)/jaxp
ohair@476 218 JAXWS_OUTPUTDIR=$(BUILD_OUTPUT)/jaxws
ohair@476 219 HOTSPOT_OUTPUTDIR=$(BUILD_OUTPUT)/hotspot
ohair@476 220 JDK_OUTPUTDIR=$(BUILD_OUTPUT)/jdk
ohair@476 221 IMAGES_OUTPUTDIR=$(BUILD_OUTPUT)/images
erikj@456 222
ohair@476 223 LANGTOOLS_DIST=$(LANGTOOLS_OUTPUTDIR)/dist
ohair@476 224 CORBA_DIST=$(CORBA_OUTPUTDIR)/dist
ohair@476 225 JAXP_DIST=$(JAXP_OUTPUTDIR)/dist
ohair@476 226 JAXWS_DIST=$(JAXWS_OUTPUTDIR)/dist
tbell@504 227 HOTSPOT_DIST=@HOTSPOT_DIST@
tbell@504 228
tbell@504 229 BUILD_HOTSPOT=@BUILD_HOTSPOT@
ohair@423 230
ohair@423 231 # The boot jdk to use
ohair@423 232 BOOT_JDK:=@BOOT_JDK@
ohair@423 233 BOOT_JDK_JVMARGS:=@BOOT_JDK_JVMARGS@
ohair@423 234 BOOT_RTJAR:=@BOOT_RTJAR@
ohair@476 235 BOOT_TOOLSJAR=$(BOOT_JDK)/lib/tools.jar
ohair@423 236
ohair@423 237 # When compiling Java source to be run by the boot jdk
ohair@423 238 # use these extra flags, eg -source 6 -target 6
ohair@423 239 BOOT_JDK_SOURCETARGET:=@BOOT_JDK_SOURCETARGET@
ohair@423 240
ohair@423 241 # Information about the build system
ohair@423 242 NUM_CORES:=@NUM_CORES@
ohair@476 243 # Enable sjavac support = use a javac server,
ohair@476 244 # multi core javac compilation and dependency tracking.
ohair@476 245 ENABLE_SJAVAC:=@ENABLE_SJAVAC@
ohair@476 246 # Store sjavac server synchronization files here, and
ohair@476 247 # the sjavac server log files.
ohair@476 248 SJAVAC_SERVER_DIR:=@SJAVAC_SERVER_DIR@
ohair@423 249
ohair@423 250 # The OpenJDK makefiles should be changed to using the standard
ohair@423 251 # configure output ..._CFLAGS and ..._LIBS. In the meantime we
ohair@423 252 # extract the information here.
ohair@423 253 FREETYPE2_LIB_PATH:=@FREETYPE2_LIB_PATH@
ohair@423 254 FREETYPE2_LIBS:=@FREETYPE2_LIBS@
ohair@423 255 FREETYPE2_CFLAGS:=@FREETYPE2_CFLAGS@
ohair@423 256 USING_SYSTEM_FT_LIB=@USING_SYSTEM_FT_LIB@
ohair@423 257 CUPS_CFLAGS:=@CUPS_CFLAGS@
ohair@423 258
ohair@423 259 PACKAGE_PATH=@PACKAGE_PATH@
ohair@423 260
erikj@443 261 # Source file for cacerts
erikj@443 262 CACERTS_FILE=@CACERTS_FILE@
ohair@423 263
ihse@493 264 # Enable unlimited crypto policy
ihse@493 265 UNLIMITED_CRYPTO=@UNLIMITED_CRYPTO@
ihse@493 266
ohair@423 267 # Necessary additional compiler flags to compile X11
ohair@423 268 X_CFLAGS:=@X_CFLAGS@
ohair@423 269 X_LIBS:=@X_LIBS@
ohair@423 270 OPENWIN_HOME:=@OPENWIN_HOME@
ohair@423 271
ohair@423 272 # There are two types: CC or CL
ohair@423 273 # CC is gcc and others behaving reasonably similar.
ohair@423 274 # CL is cl.exe only.
ohair@423 275 COMPILER_TYPE:=@COMPILER_TYPE@
ohair@423 276
ohair@423 277 CC_OUT_OPTION:=@CC_OUT_OPTION@
ohair@423 278 EXE_OUT_OPTION:=@EXE_OUT_OPTION@
ohair@423 279 LD_OUT_OPTION:=@LD_OUT_OPTION@
ohair@423 280 AR_OUT_OPTION:=@AR_OUT_OPTION@
ohair@423 281
ohair@423 282 # Flags used for overriding the default opt setting for a C/C++ source file.
erikj@443 283 C_O_FLAG_HIGHEST:=@C_O_FLAG_HIGHEST@
ohair@423 284 C_O_FLAG_HI:=@C_O_FLAG_HI@
ohair@423 285 C_O_FLAG_NORM:=@C_O_FLAG_NORM@
ohair@423 286 C_O_FLAG_NONE:=@C_O_FLAG_NONE@
erikj@443 287 CXX_O_FLAG_HIGHEST:=@CXX_O_FLAG_HIGHEST@
ohair@423 288 CXX_O_FLAG_HI:=@CXX_O_FLAG_HI@
ohair@423 289 CXX_O_FLAG_NORM:=@CXX_O_FLAG_NORM@
ohair@423 290 CXX_O_FLAG_NONE:=@CXX_O_FLAG_NONE@
ohair@423 291
erikj@443 292 C_FLAG_DEPS:=@C_FLAG_DEPS@
erikj@443 293 CXX_FLAG_DEPS:=@CXX_FLAG_DEPS@
erikj@443 294
ohair@423 295 # Tools that potentially need to be cross compilation aware.
ohair@492 296 CC:=@FIXPATH@ @CCACHE@ @CC@
ohair@423 297
ohair@423 298 # CFLAGS used to compile the jdk native libraries (C-code)
ohair@423 299 CFLAGS_JDKLIB:=@CFLAGS_JDKLIB@
ohair@423 300 CXXFLAGS_JDKLIB:=@CXXFLAGS_JDKLIB@
ohair@423 301
ohair@423 302 # CFLAGS used to compile the jdk native launchers (C-code)
ohair@423 303 CFLAGS_JDKEXE:=@CFLAGS_JDKEXE@
ohair@423 304 CXXFLAGS_JDKEXE:=@CXXFLAGS_JDKEXE@
ohair@423 305
ohair@492 306 CXX:=@FIXPATH@ @CCACHE@ @CXX@
ohair@423 307 #CXXFLAGS:=@CXXFLAGS@
ohair@423 308
ohair@423 309 OBJC:=@CCACHE@ @OBJC@
ohair@423 310 #OBJCFLAGS:=@OBJCFLAGS@
ohair@423 311
ohair@492 312 CPP:=@FIXPATH@ @CPP@
ohair@423 313 #CPPFLAGS:=@CPPFLAGS@
ohair@423 314
ohair@476 315 # The linker can be gcc or ld on posix systems, or link.exe on windows systems.
ohair@492 316 LD:=@FIXPATH@ @LD@
ohair@423 317
ohair@423 318 # LDFLAGS used to link the jdk native libraries (C-code)
ohair@423 319 LDFLAGS_JDKLIB:=@LDFLAGS_JDKLIB@
ohair@423 320 LDFLAGS_JDKLIB_SUFFIX:=@LDFLAGS_JDKLIB_SUFFIX@
ohair@423 321
ohair@423 322 # On some platforms the linker cannot be used to create executables, thus
ohair@423 323 # the need for a separate LDEXE command.
ohair@492 324 LDEXE:=@FIXPATH@ @LDEXE@
ohair@423 325
ohair@423 326 # LDFLAGS used to link the jdk native launchers (C-code)
ohair@423 327 LDFLAGS_JDKEXE:=@LDFLAGS_JDKEXE@
ohair@423 328 LDFLAGS_JDKEXE_SUFFIX:=@LDFLAGS_JDKEXE_SUFFIX@
ohair@423 329
ohair@476 330 # LDFLAGS specific to C++ linking.
ohair@476 331 LDFLAGS_CXX_JDK:=@LDFLAGS_CXX_JDK@
ohair@476 332
ohair@423 333 # Sometimes a different linker is needed for c++ libs
ohair@492 334 LDCXX:=@FIXPATH@ @LDCXX@
ohair@423 335 # The flags for linking libstdc++ linker.
ohair@423 336 LIBCXX:=@LIBCXX@
ohair@423 337
ohair@423 338 # Sometimes a different linker is needed for c++ executables
ohair@492 339 LDEXECXX:=@FIXPATH@ @LDEXECXX@
ohair@423 340
ohair@476 341 # BUILD_CC/BUILD_LD is a compiler/linker that generates code that is runnable on the
ohair@476 342 # build platform.
ohair@492 343 BUILD_CC:=@FIXPATH@ @BUILD_CC@
ohair@492 344 BUILD_LD:=@FIXPATH@ @BUILD_LD@
erikj@456 345
ohair@492 346 AS:=@FIXPATH@ @AS@
ohair@423 347
ohair@476 348 # AR is used to create a static library (is ar in posix, lib.exe in windows)
ohair@492 349 AR:=@FIXPATH@ @AR@
ohair@423 350 ARFLAGS:=@ARFLAGS@
ohair@423 351
ohair@476 352 NM:=@NM@
ohair@476 353 STRIP:=@STRIP@
ohair@476 354 MCS:=@MCS@
ohair@476 355
ohair@476 356 LIPO:=@LIPO@
ohair@423 357
ohair@423 358 # Command to create a shared library
ohair@423 359 SHARED_LIBRARY_FLAGS:=@SHARED_LIBRARY_FLAGS@
ohair@423 360
ohair@423 361 # Options to linker to specify a mapfile.
ohair@423 362 # (Note absence of := assignment, because we do not want to evaluate the macro body here)
ohair@423 363 SET_SHARED_LIBRARY_MAPFILE=@SET_SHARED_LIBRARY_MAPFILE@
ohair@423 364
erikj@443 365 # Options for C/CXX compiler to be used if linking is performed
erikj@443 366 # using reorder file
erikj@443 367 C_FLAG_REORDER:=@C_FLAG_REORDER@
erikj@443 368 CXX_FLAG_REORDER:=@CXX_FLAG_REORDER@
erikj@443 369
erikj@456 370 #
erikj@456 371 # Options for generating debug symbols
erikj@456 372 ENABLE_DEBUG_SYMBOLS:=@ENABLE_DEBUG_SYMBOLS@
erikj@456 373 CFLAGS_DEBUG_SYMBOLS:=@CFLAGS_DEBUG_SYMBOLS@
erikj@456 374 CXXFLAGS_DEBUG_SYMBOLS:=@CXXFLAGS_DEBUG_SYMBOLS@
erikj@456 375 ZIP_DEBUGINFO_FILES:=@ZIP_DEBUGINFO_FILES@
erikj@456 376
erikj@456 377 #
erikj@456 378 # Compress (or not) jars
erikj@456 379 COMPRESS_JARS=@COMPRESS_JARS@
erikj@456 380
ohair@423 381 # Options to linker to specify the library name.
ohair@423 382 # (Note absence of := assignment, because we do not want to evaluate the macro body here)
ohair@423 383 SET_SHARED_LIBRARY_NAME=@SET_SHARED_LIBRARY_NAME@
ohair@423 384
ohair@423 385 # Set origin using the linker, ie use the relative path to the dependent library to find the dependees.
ohair@423 386 # (Note absence of := assignment, because we do not want to evaluate the macro body here)
ohair@423 387 SET_SHARED_LIBRARY_ORIGIN=@SET_SHARED_LIBRARY_ORIGIN@
ohair@476 388 SET_EXECUTABLE_ORIGIN=@SET_EXECUTABLE_ORIGIN@
ohair@423 389
ohair@423 390 # Different OS:es have different ways of naming shared libraries.
ohair@423 391 # The SHARED_LIBRARY macro takes "verify" as and argument and returns:
ohair@423 392 # "libverify.so" or "libverify.dylib" or "verify.dll" depending on platform.
ohair@423 393 # (Note absence of := assignment, because we do not want to evaluate the macro body here)
ohair@423 394 SHARED_LIBRARY=@SHARED_LIBRARY@
ohair@423 395 STATIC_LIBRARY=@STATIC_LIBRARY@
ohair@423 396 LIBRARY_PREFIX:=@LIBRARY_PREFIX@
ohair@423 397 SHARED_LIBRARY_SUFFIX:=@SHARED_LIBRARY_SUFFIX@
ohair@423 398 STATIC_LIBRARY_SUFFIX:=@STATIC_LIBRARY_SUFFIX@
ohair@423 399 EXE_SUFFIX:=@EXE_SUFFIX@
ohair@423 400 OBJ_SUFFIX:=@OBJ_SUFFIX@
ohair@423 401
erikj@443 402 POST_STRIP_CMD:=@POST_STRIP_CMD@
erikj@443 403 POST_MCS_CMD:=@POST_MCS_CMD@
erikj@443 404
ohair@423 405 JAVA_FLAGS:=@BOOT_JDK_JVMARGS@
ohair@423 406
ohair@492 407 JAVA=@FIXPATH@ $(BOOT_JDK)/bin/java $(JAVA_FLAGS)
ohair@423 408
ohair@492 409 JAVAC=@FIXPATH@ $(BOOT_JDK)/bin/javac
ohair@476 410 # Hotspot sets this variable before reading the SPEC when compiling sa-jdi.jar. Avoid
ohair@476 411 # overriding that value by using ?=.
ohair@476 412 JAVAC_FLAGS?=@JAVAC_FLAGS@
ohair@423 413
ohair@492 414 JAVAH=@FIXPATH@ $(BOOT_JDK)/bin/javah
ohair@423 415
ohair@492 416 JAR=@FIXPATH@ $(BOOT_JDK)/bin/jar
ohair@423 417
ohair@492 418 RMIC=@FIXPATH@ $(BOOT_JDK)/bin/rmic
ohair@423 419
ohair@492 420 NATIVE2ASCII=@FIXPATH@ $(BOOT_JDK)/bin/native2ascii
ohair@423 421
ohair@423 422 # Base flags for RC
ohair@423 423 # Guarding this against resetting value. Legacy make files include spec multiple
ohair@423 424 # times.
ohair@423 425 ifndef RC_FLAGS
ohair@423 426 RC_FLAGS:=@RC_FLAGS@
ohair@423 427 endif
ohair@423 428
ohair@423 429 # A specific java binary with specific options can be used to run
ohair@476 430 # the long running background sjavac servers and other long running tasks.
ohair@492 431 SJAVAC_SERVER_JAVA:=@FIXPATH@ @SJAVAC_SERVER_JAVA@
ohair@423 432
ohair@423 433 # Tools adhering to a minimal and common standard of posix compliance.
ohair@423 434 AWK:=@AWK@
ohair@476 435 BASENAME:=@BASENAME@
ohair@492 436 BASH:=@BASH@
ohair@423 437 CAT:=@CAT@
ohair@423 438 CCACHE:=@CCACHE@
ohair@423 439 # CD is going away, but remains to cater for legacy makefiles.
ohair@423 440 CD:=cd
ohair@423 441 CHMOD:=@CHMOD@
ohair@423 442 CP:=@CP@
ohair@423 443 CUT:=@CUT@
ohair@423 444 DATE:=@DATE@
ohair@423 445 DIFF:=@DIFF@
ohair@423 446 FIND:=@FIND@
ohair@423 447 FIND_DELETE:=@FIND_DELETE@
ohair@423 448 ECHO:=@ECHO@
ohair@423 449 EGREP:=@EGREP@
ohair@423 450 FGREP:=@FGREP@
ohair@423 451 GREP:=@GREP@
ohair@423 452 HEAD:=@HEAD@
ohair@423 453 LS:=@LS@
ohair@423 454 LN:=@LN@
ohair@423 455 MKDIR:=@MKDIR@
ohair@423 456 MV:=@MV@
ohair@423 457 NAWK:=@NAWK@
ohair@423 458 PRINTF:=@PRINTF@
ohair@423 459 PWD:=@THEPWDCMD@
ohair@423 460 RM:=@RM@
ohair@423 461 SED:=@SED@
ohair@423 462 SH:=@SH@
ohair@423 463 SORT:=@SORT@
ohair@423 464 TAR:=@TAR@
ohair@423 465 TAIL:=@TAIL@
ohair@423 466 TEE:=@TEE@
ohair@492 467 TIME:=@TIME@
ohair@423 468 TR:=@TR@
ohair@423 469 TOUCH:=@TOUCH@
ohair@423 470 WC:=@WC@
ohair@423 471 XARGS:=@XARGS@
ohair@423 472 ZIPEXE:=@ZIP@
ohair@423 473 ZIP:=@ZIP@
ohair@423 474 UNZIP:=@UNZIP@
ohair@492 475 MT:=@FIXPATH@ @MT@
ohair@492 476 RC:=@FIXPATH@ @RC@
ohair@492 477 DUMPBIN:=@FIXPATH@ @DUMPBIN@
ohair@423 478 CYGPATH:=@CYGPATH@
ohair@423 479 LDD:=@LDD@
ohair@423 480 OTOOL:=@OTOOL@
ohair@423 481 READELF:=@READELF@
ohair@423 482 EXPR:=@EXPR@
ohair@423 483 FILE:=@FILE@
erikj@443 484 HG:=@HG@
erikj@456 485 OBJCOPY:=@OBJCOPY@
ohair@492 486 SETFILE:=@SETFILE@
ohair@423 487
ohair@492 488 FIXPATH:=@FIXPATH@
ohair@423 489
ohair@423 490 # Where the build output is stored for your convenience.
ohair@423 491 BUILD_LOG:=@BUILD_LOG@
erikj@456 492 BUILD_LOG_PREVIOUS:=@BUILD_LOG_PREVIOUS@
tbell@505 493 # Disable the build log wrapper on sjavac+winapi until
tbell@505 494 # we have solved how to prevent the log wrapper to wait
tbell@505 495 # for the background sjavac server process.
tbell@505 496 ifeq (@ENABLE_SJAVAC@X@OPENJDK_BUILD_OS_API@,yesXwinapi)
tbell@505 497 BUILD_LOG_WRAPPER:=
tbell@505 498 else
tbell@505 499 BUILD_LOG_WRAPPER:=@BUILD_LOG_WRAPPER@
tbell@505 500 endif
ohair@423 501
ohair@423 502 # Build setup
erikj@456 503 ENABLE_JFR=@ENABLE_JFR@
ohair@423 504 USE_EXTERNAL_LIBJPEG:=@USE_EXTERNAL_LIBJPEG@
ohair@423 505 USE_EXTERNAL_LIBGIF:=@USE_EXTERNAL_LIBGIF@
ohair@423 506 USE_EXTERNAL_LIBZ:=@USE_EXTERNAL_LIBZ@
erikj@456 507 LIBZIP_CAN_USE_MMAP:=@LIBZIP_CAN_USE_MMAP@
ohair@492 508 MSVCR_DLL:=@MSVCR_DLL@
ohair@423 509
erikj@456 510
ohair@423 511 # ADD_SRCS takes a single argument with source roots
ohair@423 512 # and appends any corresponding source roots found
ohair@423 513 # below --with-add-source-root and below
ohair@423 514 # --with-override-source-root. It is the responsibility
ohair@423 515 # of the next macro to get rid of superfluous files.
ohair@423 516 ADD_SRCS=$1
ohair@423 517 ifneq (,$(ADD_SRC_ROOT))
ohair@423 518 # Append wildcard rule to pickup any matching source roots found below ADD_SRC_ROOT
ohair@423 519 ADD_SRCS+=$(wildcard $(subst $(SRC_ROOT),$(ADD_SRC_ROOT),$1))
ohair@423 520 endif
ohair@423 521 ifneq (,$(OVERRIDE_SRC_ROOT))
ohair@423 522 # Append wildcard rule to pickup any matching source roots found below OVERRIDE_SRC_ROOT
ohair@423 523 ADD_SRCS+=$(wildcard $(subst $(SRC_ROOT),$(OVERRIDE_SRC_ROOT),$1))
ohair@423 524 endif
ohair@423 525
ohair@423 526 # OVR_SRCS creates a filter expression to filter out sources in
ohair@423 527 # the original source directory that lie inside directories below
ohair@423 528 # --with-override-source-root.
ohair@423 529 # Use := here since we want to scan for these files here. To avoid recomputation later.
ohair@423 530 # We cannot do the scan in configure, since that would force us to rerun configure when
ohair@423 531 # we add overridden sources.
ohair@423 532 ifneq (,$(OVERRIDE_SRC_ROOT))
ohair@423 533 OVR_SRCS:=$(addsuffix %,$(subst $(OVERRIDE_SRC_ROOT),$(SRC_ROOT),$(sort $(dir $(shell $(FIND) $(OVERRIDE_SRC_ROOT) -type f)))))
ohair@423 534 else
ohair@423 535 OVR_SRCS:=
ohair@423 536 endif
ohair@423 537
ohair@423 538 ####################################################
ohair@423 539 #
ohair@423 540 # INSTALLATION
ohair@423 541 #
ohair@423 542
ohair@423 543 # Common prefix for all installed files. Defaults to /usr/local,
ohair@423 544 # but /opt/myjdk is another common version.
ohair@423 545 INSTALL_PREFIX=@prefix@
ohair@423 546
ohair@423 547 # Directories containing architecture-dependent files should be relative to exec_prefix
ohair@423 548 INSTALL_EXECPREFIX=@exec_prefix@
ohair@423 549
ohair@423 550 # java,javac,javah,javap etc are installed here.
ohair@423 551 INSTALL_BINDIR=@bindir@
ohair@423 552
ohair@423 553 # Read only architecture-independent data
ohair@423 554 INSTALL_DATADIR=@datadir@
ohair@423 555
ohair@423 556 # Root of above.
ohair@423 557 INSTALL_DATAROOTDIR=@datarootdir@
ohair@423 558
ohair@423 559 # Doc files, other than info and man.
ohair@423 560 INSTALL_DOCDIR=@docdir@
ohair@423 561
ohair@423 562 # Html documentation
ohair@423 563 INSTALL_HTMLDIR=@htmldir@
ohair@423 564
ohair@423 565 # Installing C header files, JNI headers for example.
ohair@423 566 INSTALL_INCLUDEDIR=@includedir@
ohair@423 567
ohair@423 568 # Installing library files....
ohair@423 569 INSTALL_INCLUDEDIR=@libdir@
ohair@423 570
ohair@423 571 # Executables that other programs run.
ohair@423 572 INSTALL_LIBEXECDIR=@libexecdir@
ohair@423 573
ohair@423 574 # Locale-dependent but architecture-independent data, such as message catalogs.
ohair@423 575 INSTALL_LOCALEDIR=@localedir@
ohair@423 576
ohair@423 577 # Modifiable single-machine data
ohair@423 578 INSTALL_LOCALSTATEDIR=@localstatedir@
ohair@423 579
ohair@423 580 # Man pages
ohair@423 581 INSTALL_MANDIR=@mandir@
ohair@423 582
ohair@423 583 # Modifiable architecture-independent data.
ohair@423 584 INSTALL_SHAREDSTATEDIR=@sharedstatedir@
ohair@423 585
ohair@423 586 # Read-only single-machine data
ohair@423 587 INSTALL_SYSCONFDIR=@sysconfdir@
ohair@423 588
ohair@423 589
ohair@423 590 ####################################################
ohair@423 591 #
ohair@423 592 # Misc
ohair@423 593 #
ohair@423 594
erikj@443 595 # Name of Service Agent library
erikj@443 596 SALIB_NAME=@SALIB_NAME@
erikj@443 597
erikj@443 598 OS_VERSION_MAJOR:=@OS_VERSION_MAJOR@
erikj@443 599 OS_VERSION_MINOR:=@OS_VERSION_MINOR@
erikj@443 600 OS_VERSION_MICRO:=@OS_VERSION_MICRO@
erikj@443 601
ohair@476 602 # Include the custom-spec.gmk file if it exists
ohair@476 603 -include $(dir @SPEC@)/custom-spec.gmk