annotate common/autoconf/spec.gmk.in @ 562:befbad2e4d87

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