common/autoconf/spec.gmk.in

Wed, 27 Apr 2016 01:39:08 +0800

author
aoqi
date
Wed, 27 Apr 2016 01:39:08 +0800
changeset 0
75a576e87639
child 1133
50aaf272884f
permissions
-rw-r--r--

Initial load
http://hg.openjdk.java.net/jdk8u/jdk8u/
changeset: 1170:d117f01bfb4f
tag: jdk8u25-b17

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

mercurial