1 # 2 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 # 5 # This code is free software; you can redistribute it and/or modify it 6 # under the terms of the GNU General Public License version 2 only, as 7 # published by the Free Software Foundation. Oracle designates this 8 # particular file as subject to the "Classpath" exception as provided 9 # by Oracle in the LICENSE file that accompanied this code. 10 # 11 # This code is distributed in the hope that it will be useful, but WITHOUT 12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 # version 2 for more details (a copy is included in the LICENSE file that 15 # accompanied this code). 16 # 17 # You should have received a copy of the GNU General Public License version 18 # 2 along with this work; if not, write to the Free Software Foundation, 19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 # 21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 # or visit www.oracle.com if you need additional information or have any 23 # questions. 24 # 25 26 # Configured @DATE_WHEN_CONFIGURED@ to build for a @HOST@ system, 27 # using ./configure @CONFIGURE_COMMAND_LINE@ 28 29 # When calling macros, the spaces between arguments are 30 # often semantically important! Sometimes we need to subst 31 # spaces and commas, therefore we need the following macros. 32 X:= 33 SPACE:=$(X) $(X) 34 COMMA:=, 35 HASH:=\# 36 SQUOTE:=' 37 #' 38 DQUOTE:=" 39 #" 40 define NEWLINE:= 41 endef 42 43 44 # Pass along the verbosity setting. 45 ifeq (,$(findstring VERBOSE=,$(MAKE))) 46 MAKE:=$(MAKE) $(VERBOSE) VERBOSE="$(VERBOSE)" 47 endif 48 49 # No implicit variables or rules! 50 ifeq (,$(findstring -R,$(MAKE))) 51 MAKE:=$(MAKE) -R 52 endif 53 54 # Specify where the spec file is. 55 ifeq (,$(findstring SPEC=,$(MAKE))) 56 MAKE:=$(MAKE) SPEC=@SPEC@ 57 endif 58 59 # Specify where the common include directory for makefiles is. 60 ifeq (,$(findstring -I @SRC_ROOT@/common/makefiles,$(MAKE))) 61 MAKE:=$(MAKE) -I @SRC_ROOT@/common/makefiles 62 endif 63 64 # A self-referential reference to this file. 65 SPEC:=@SPEC@ 66 67 # The "human readable" name of this configuration 68 CONF_NAME:=@CONF_NAME@ 69 70 # The built jdk will run in this host system. 71 HOST:=@HOST@ 72 HOST_OS:=@HOST_OS@ 73 HOST_OS_FAMILY:=@HOST_OS_FAMILY@ 74 HOST_OS_API:=@HOST_OS_API@ 75 76 HOST_CPU:=@HOST_CPU@ 77 HOST_CPU_ARCH:=@HOST_CPU_ARCH@ 78 HOST_CPU_BITS:=@HOST_CPU_BITS@ 79 HOST_CPU_ENDIAN:=@HOST_CPU_ENDIAN@ 80 81 # We are building on this build system. 82 # When not cross-compiling, it is the same as the host. 83 BUILD:=@BUILD@ 84 BUILD_OS:=@BUILD_OS@ 85 BUILD_OS_FAMILY:=@BUILD_OS_FAMILY@ 86 BUILD_OS_API:=@BUILD_OS_API@ 87 88 BUILD_CPU:=@BUILD_CPU@ 89 BUILD_CPU_ARCH:=@BUILD_CPU_ARCH@ 90 BUILD_CPU_BITS:=@BUILD_CPU_BITS@ 91 BUILD_CPU_ENDIAN:=@BUILD_CPU_ENDIAN@ 92 93 # Legacy OS values for use in release file. 94 REQUIRED_OS_NAME:=@REQUIRED_OS_NAME@ 95 REQUIRED_OS_VERSION:=@REQUIRED_OS_VERSION@ 96 97 # Old name for HOST_OS (aix,bsd,hpux,linux,macosx,solaris,windows etc) 98 PLATFORM:=@HOST_OS@ 99 # Old name for HOST_CPU, uses i586 and amd64, instead of ia32 and x64. 100 ARCH:=@LEGACY_HOST_CPU1@ 101 # Yet another name for arch used for an extra subdir below the jvm lib. 102 # Uses i386 and amd64, instead of ia32 and x64. 103 LIBARCH:=@LEGACY_HOST_CPU2@ 104 # Use to switch between solaris and windows subdirs in the jdk. 105 LEGACY_HOST_OS_API:=@LEGACY_HOST_OS_API@ 106 # 32 or 64 bit 107 ARCH_DATA_MODEL:=@HOST_CPU_BITS@ 108 # Legacy setting for building for a 64 bit machine. 109 # If yes then this expands to _LP64:=1 110 @LP64@ 111 ENDIAN:=@HOST_CPU_ENDIAN@ 112 @SET_OPENJDK@ 113 JIGSAW:=@JIGSAW@ 114 LIBM:=-lm 115 LIBDL:=@LIBDL@ 116 117 # colon or semicolon 118 PATH_SEP:=@PATH_SEP@ 119 120 # Set special env variables, to be passed to external tools. 121 # Used for cygwin setups. 122 @SETUPDEVENV@ 123 124 # The sys root where standard headers and libraries are found. 125 # Usually not needed since the configure script should have 126 # taken it into account already when setting CFLAGS et al. 127 SYS_ROOT:=@SYS_ROOT@ 128 129 # Paths to the source code 130 SRC_ROOT:=@SRC_ROOT@ 131 ADD_SRC_ROOT:=@ADD_SRC_ROOT@ 132 OVERRIDE_SRC_ROOT:=@OVERRIDE_SRC_ROOT@ 133 TOPDIR:=@SRC_ROOT@ 134 OUTPUT_ROOT:=@OUTPUT_ROOT@ 135 JDK_MAKE_SHARED_DIR:=@JDK_TOPDIR@/makefiles/common/shared 136 JDK_TOPDIR:=@JDK_TOPDIR@ 137 LANGTOOLS_TOPDIR:=@LANGTOOLS_TOPDIR@ 138 CORBA_TOPDIR:=@CORBA_TOPDIR@ 139 JAXP_TOPDIR:=@JAXP_TOPDIR@ 140 JAXWS_TOPDIR:=@JAXWS_TOPDIR@ 141 HOTSPOT_TOPDIR:=@HOTSPOT_TOPDIR@ 142 COPYRIGHT_YEAR:=@COPYRIGHT_YEAR@ 143 144 # Information gathered from the version.numbers file. 145 JDK_MAJOR_VERSION:=@JDK_MAJOR_VERSION@ 146 JDK_MINOR_VERSION:=@JDK_MINOR_VERSION@ 147 JDK_MICRO_VERSION:=@JDK_MICRO_VERSION@ 148 JDK_UPDATE_VERSION:=@JDK_UPDATE_VERSION@ 149 JDK_BUILD_NUMBER:=@JDK_BUILD_NUMBER@ 150 MILESTONE:=@MILESTONE@ 151 LAUNCHER_NAME:=@LAUNCHER_NAME@ 152 PRODUCT_NAME:=@PRODUCT_NAME@ 153 PRODUCT_SUFFIX:=@PRODUCT_SUFFIX@ 154 JDK_RC_PLATFORM_NAME:=@JDK_RC_PLATFORM_NAME@ 155 COMPANY_NAME:=@COMPANY_NAME@ 156 157 # Different version strings generated from the above information. 158 JDK_VERSION:=@JDK_VERSION@ 159 RUNTIME_NAME:=@RUNTIME_NAME@ 160 FULL_VERSION:=@FULL_VERSION@ 161 JRE_RELEASE_VERSION:=@FULL_VERSION@ 162 RELEASE:=@RELEASE@ 163 COOKED_BUILD_NUMBER:=@COOKED_BUILD_NUMBER@ 164 165 # How to compile the code: release, fastdebug or slowdebug 166 DEBUG_LEVEL:=@DEBUG_LEVEL@ 167 168 # This is the JDK variant to build. 169 # The JDK variant is a name for a specific set of modules to be compiled for the JDK. 170 JDK_VARIANT:=@JDK_VARIANT@ 171 172 # Legacy defines controlling the JDK variant embedded. 173 @JAVASE_EMBEDDED@ 174 @MINIMIZE_RAM_USAGE@ 175 176 # Should we compile support for running with a graphical UI? (ie headful) 177 # Should we compile support for running without? (ie headless) 178 SUPPORT_HEADFUL:=@SUPPORT_HEADFUL@ 179 SUPPORT_HEADLESS:=@SUPPORT_HEADLESS@ 180 # Legacy defines controlled by the SUPPORT_HEADLESS and SUPPORT_HEADFUL options. 181 @BUILD_HEADLESS@ 182 @BUILD_HEADLESS_ONLY@ 183 184 # These are the libjvms that we want to build. 185 # The java launcher uses the default. 186 # The other can be selected by specifying -client -server -kernel -zero or -zeroshark 187 # on the java launcher command line. 188 DEFAULT_JVM_VARIANT:=@DEFAULT_JVM_VARIANT@ 189 JVM_VARIANTS:=@JVM_VARIANTS@ 190 JVM_VARIANT_SERVER:=@JVM_VARIANT_SERVER@ 191 JVM_VARIANT_CLIENT:=@JVM_VARIANT_CLIENT@ 192 JVM_VARIANT_KERNEL:=@JVM_VARIANT_KERNEL@ 193 JVM_VARIANT_ZERO:=@JVM_VARIANT_ZERO@ 194 JVM_VARIANT_ZEROSHARK:=@JVM_VARIANT_ZEROSHARK@ 195 196 # Legacy setting: OPT or DBG 197 VARIANT:=@VARIANT@ 198 # Legacy setting: true or false 199 FASTDEBUG:=@FASTDEBUG@ 200 # Legacy setting: debugging the class files? 201 DEBUG_CLASSFILES:=@DEBUG_CLASSFILES@ 202 # Legacy setting: -debug or -fastdebug 203 BUILD_VARIANT_RELEASE:=@BUILD_VARIANT_RELEASE@ 204 205 LANGTOOLS_OUTPUTDIR:=@OUTPUT_ROOT@/langtools 206 LANGTOOLS_DIST:=@OUTPUT_ROOT@/langtools/dist 207 LANGTOOLS_MAKE_ARGS:=@LANGTOOLS_MAKE_ARGS@ 208 209 CORBA_OUTPUTDIR:=@OUTPUT_ROOT@/corba 210 CORBA_DIST:=@OUTPUT_ROOT@/corba/dist 211 CORBA_MAKE_ARGS:=@CORBA_MAKE_ARGS@ 212 213 JAXP_OUTPUTDIR:=@OUTPUT_ROOT@/jaxp 214 JAXP_DIST:=@OUTPUT_ROOT@/jaxp/dist 215 JAXP_MAKE_ARGS:=@JAXP_MAKE_ARGS@ 216 217 JAXWS_OUTPUTDIR:=@OUTPUT_ROOT@/jaxws 218 JAXWS_DIST:=@OUTPUT_ROOT@/jaxws/dist 219 JAXWS_MAKE_ARGS:=@JAXWS_MAKE_ARGS@ 220 221 HOTSPOT_OUTPUTDIR:=@OUTPUT_ROOT@/hotspot 222 HOTSPOT_DIST:=@OUTPUT_ROOT@/hotspot/dist 223 HOTSPOT_MAKE_ARGS:=@HOTSPOT_MAKE_ARGS@ 224 225 # This where a working jvm is built. 226 # You can run $(JDK_OUTPUTDIR)/bin/java 227 # Though the layout of the contents of $(JDK_OUTPUTDIR) is not 228 # yet the same as a default installation. 229 HOTSPOT_IMPORT_PATH:=@OUTPUT_ROOT@/hotspot/dist 230 JDK_OUTPUTDIR:=@OUTPUT_ROOT@/jdk 231 JDK_MAKE_ARGS:=@JDK_MAKE_ARGS@ 232 233 # When you run "make install" it will create the standardized 234 # layout for the jdk and the jre inside the images subdir. 235 # Then it will copy the contents of the jdk into the installation 236 # directory. 237 IMAGES_OUTPUTDIR:=@OUTPUT_ROOT@/images 238 IMAGES_MAKE_ARGS:=@IMAGES_MAKE_ARGS@ 239 # Legacy variables used by Release.gmk 240 JDK_IMAGE_DIR:=$(IMAGES_OUTPUTDIR)/j2sdk-image 241 JRE_IMAGE_DIR:=$(IMAGES_OUTPUTDIR)/j2re-image 242 243 # Can be /sparcv9 or /amd64 on Solaris 244 ISA_DIR:=@LEGACY_HOST_CPU3@ 245 BINDIR:=$(JDK_OUTPUTDIR)/bin$(ISA_DIR) 246 247 # The boot jdk to use 248 ALT_BOOTDIR:=@BOOT_JDK@ 249 BOOT_JDK:=@BOOT_JDK@ 250 BOOT_JDK_JVMARGS:=@BOOT_JDK_JVMARGS@ 251 BOOT_JAVAC_ARGS:=@BOOT_JAVAC_ARGS@ 252 BOOT_RTJAR:=@BOOT_RTJAR@ 253 BOOT_TOOLSJAR:=@BOOT_TOOLSJAR@ 254 255 # When compiling Java source to be run by the boot jdk 256 # use these extra flags, eg -source 6 -target 6 257 BOOT_JDK_SOURCETARGET:=@BOOT_JDK_SOURCETARGET@ 258 259 # Information about the build system 260 NUM_CORES:=@NUM_CORES@ 261 # This is used from the libjvm build for C/C++ code. 262 HOTSPOT_BUILD_JOBS:=@CONCURRENT_BUILD_JOBS@ 263 # This is used from the jdk build for C/C++ code. 264 PARALLEL_COMPILE_JOBS:=@CONCURRENT_BUILD_JOBS@ 265 # Store javac server synchronization files here, and 266 # the javac server log files. 267 JAVAC_SERVERS:=@JAVAC_SERVERS@ 268 # Should we use a javac server or not? The javac server gives 269 # an enormous performance improvement since it reduces the 270 # startup costs of javac and reuses as much as possible of intermediate 271 # compilation work. But if we want to compile with a non-Java 272 # javac compiler, like gcj. Then we cannot use javac server and 273 # this variable is set to false. 274 JAVAC_USE_REMOTE:=@JAVAC_USE_REMOTE@ 275 # We can block the Javac server to never use more cores than this. 276 # This is not for performance reasons, but for memory usage, since each 277 # core requires its own JavaCompiler. We might have 64 cores and 4GB 278 # of memory, 64 JavaCompilers will currently not fit in a 3GB heap. 279 # Since there is no sharing of data between the JavaCompilers. 280 JAVAC_SERVER_CORES:=@JAVAC_SERVER_CORES@ 281 # Should we use dependency tracking between Java packages? true or false. 282 JAVAC_USE_DEPS:=@JAVAC_USE_DEPS@ 283 # We can invoke javac: SINGLE_THREADED_BATCH or MULTI_CORE_CONCURRENT 284 JAVAC_USE_MODE:=@JAVAC_USE_MODE@ 285 286 # The OpenJDK makefiles should be changed to using the standard 287 # configure output ..._CFLAGS and ..._LIBS. In the meantime we 288 # extract the information here. 289 FREETYPE2_LIB_PATH:=@FREETYPE2_LIB_PATH@ 290 FREETYPE2_LIBS:=@FREETYPE2_LIBS@ 291 FREETYPE2_CFLAGS:=@FREETYPE2_CFLAGS@ 292 USING_SYSTEM_FT_LIB=@USING_SYSTEM_FT_LIB@ 293 ALT_CUPS_HEADERS_PATH:=$(patsubst -I%,%,$(filter -I%,@CUPS_CFLAGS@)) 294 CUPS_CFLAGS:=@CUPS_CFLAGS@ 295 296 PACKAGE_PATH=@PACKAGE_PATH@ 297 298 # Source file for cacerts 299 CACERTS_FILE=@CACERTS_FILE@ 300 301 #MOZILLA_HEADERS_PATH:= 302 303 # Necessary additional compiler flags to compile X11 304 X_CFLAGS:=@X_CFLAGS@ 305 X_LIBS:=@X_LIBS@ 306 OPENWIN_HOME:=@OPENWIN_HOME@ 307 308 # There are two types: CC or CL 309 # CC is gcc and others behaving reasonably similar. 310 # CL is cl.exe only. 311 COMPILER_TYPE:=@COMPILER_TYPE@ 312 313 CC_OUT_OPTION:=@CC_OUT_OPTION@ 314 EXE_OUT_OPTION:=@EXE_OUT_OPTION@ 315 LD_OUT_OPTION:=@LD_OUT_OPTION@ 316 AR_OUT_OPTION:=@AR_OUT_OPTION@ 317 318 # Flags used for overriding the default opt setting for a C/C++ source file. 319 C_O_FLAG_HIGHEST:=@C_O_FLAG_HIGHEST@ 320 C_O_FLAG_HI:=@C_O_FLAG_HI@ 321 C_O_FLAG_NORM:=@C_O_FLAG_NORM@ 322 C_O_FLAG_NONE:=@C_O_FLAG_NONE@ 323 CXX_O_FLAG_HIGHEST:=@CXX_O_FLAG_HIGHEST@ 324 CXX_O_FLAG_HI:=@CXX_O_FLAG_HI@ 325 CXX_O_FLAG_NORM:=@CXX_O_FLAG_NORM@ 326 CXX_O_FLAG_NONE:=@CXX_O_FLAG_NONE@ 327 328 C_FLAG_DEPS:=@C_FLAG_DEPS@ 329 CXX_FLAG_DEPS:=@CXX_FLAG_DEPS@ 330 331 # Tools that potentially need to be cross compilation aware. 332 CC:=@UNCYGDRIVE@ @CCACHE@ @CC@ 333 334 # CFLAGS used to compile the jdk native libraries (C-code) 335 CFLAGS_JDKLIB:=@CFLAGS_JDKLIB@ 336 CXXFLAGS_JDKLIB:=@CXXFLAGS_JDKLIB@ 337 338 # CFLAGS used to compile the jdk native launchers (C-code) 339 CFLAGS_JDKEXE:=@CFLAGS_JDKEXE@ 340 CXXFLAGS_JDKEXE:=@CXXFLAGS_JDKEXE@ 341 342 CXX:=@UNCYGDRIVE@ @CCACHE@ @CXX@ 343 #CXXFLAGS:=@CXXFLAGS@ 344 345 OBJC:=@CCACHE@ @OBJC@ 346 #OBJCFLAGS:=@OBJCFLAGS@ 347 348 CPP:=@UNCYGDRIVE@ @CPP@ 349 #CPPFLAGS:=@CPPFLAGS@ 350 351 # The linker can be gcc or ld on posix systems, or link.exe on winapi systems. 352 LD:=@UNCYGDRIVE@ @LD@ 353 354 # LDFLAGS used to link the jdk native libraries (C-code) 355 LDFLAGS_JDKLIB:=@LDFLAGS_JDKLIB@ 356 LDFLAGS_JDKLIB_SUFFIX:=@LDFLAGS_JDKLIB_SUFFIX@ 357 358 # On some platforms the linker cannot be used to create executables, thus 359 # the need for a separate LDEXE command. 360 LDEXE:=@UNCYGDRIVE@ @LDEXE@ 361 362 # LDFLAGS used to link the jdk native launchers (C-code) 363 LDFLAGS_JDKEXE:=@LDFLAGS_JDKEXE@ 364 LDFLAGS_JDKEXE_SUFFIX:=@LDFLAGS_JDKEXE_SUFFIX@ 365 366 # Sometimes a different linker is needed for c++ libs 367 LDCXX:=@UNCYGDRIVE@ @LDCXX@ 368 # The flags for linking libstdc++ linker. 369 LIBCXX:=@LIBCXX@ 370 371 # Sometimes a different linker is needed for c++ executables 372 LDEXECXX:=@UNCYGDRIVE@ @LDEXECXX@ 373 374 # If cross compiling, then define CROSS_COMPILE_ARCH:=cpu_name here. 375 @DEFINE_CROSS_COMPILE_ARCH@ 376 # The HOSTCC should really be named BUILDCC, ie build executable for 377 # the build platform. Same as CC when not cross compiling. 378 HOSTCC:=@HOSTCC@ 379 HOSTCXX:=@HOSTCXX@ 380 # And of course, the jdk spells HOSTCC as NIO_CC/HOST_CC 381 HOST_CC:=@HOSTCC@ 382 NIO_CC:=@HOSTCC@ 383 384 AS:=@AS@ 385 ASFLAGS:=@ASFLAGS@ 386 387 # AR is used to create a static library (is ar in posix, lib.exe in winapi) 388 AR:=@UNCYGDRIVE@ @AR@ 389 ARFLAGS:=@ARFLAGS@ 390 391 NM:=@NM@ 392 STRIP:=@STRIP@ 393 MCS:=@MCS@ 394 395 # Command to create a shared library 396 SHARED_LIBRARY_FLAGS:=@SHARED_LIBRARY_FLAGS@ 397 398 # Options to linker to specify a mapfile. 399 # (Note absence of := assignment, because we do not want to evaluate the macro body here) 400 SET_SHARED_LIBRARY_MAPFILE=@SET_SHARED_LIBRARY_MAPFILE@ 401 402 # Options for C/CXX compiler to be used if linking is performed 403 # using reorder file 404 C_FLAG_REORDER:=@C_FLAG_REORDER@ 405 CXX_FLAG_REORDER:=@CXX_FLAG_REORDER@ 406 407 # Options to linker to specify the library name. 408 # (Note absence of := assignment, because we do not want to evaluate the macro body here) 409 SET_SHARED_LIBRARY_NAME=@SET_SHARED_LIBRARY_NAME@ 410 411 # Set origin using the linker, ie use the relative path to the dependent library to find the dependees. 412 # (Note absence of := assignment, because we do not want to evaluate the macro body here) 413 SET_SHARED_LIBRARY_ORIGIN=@SET_SHARED_LIBRARY_ORIGIN@ 414 415 # Different OS:es have different ways of naming shared libraries. 416 # The SHARED_LIBRARY macro takes "verify" as and argument and returns: 417 # "libverify.so" or "libverify.dylib" or "verify.dll" depending on platform. 418 # (Note absence of := assignment, because we do not want to evaluate the macro body here) 419 SHARED_LIBRARY=@SHARED_LIBRARY@ 420 STATIC_LIBRARY=@STATIC_LIBRARY@ 421 LIBRARY_PREFIX:=@LIBRARY_PREFIX@ 422 SHARED_LIBRARY_SUFFIX:=@SHARED_LIBRARY_SUFFIX@ 423 STATIC_LIBRARY_SUFFIX:=@STATIC_LIBRARY_SUFFIX@ 424 EXE_SUFFIX:=@EXE_SUFFIX@ 425 OBJ_SUFFIX:=@OBJ_SUFFIX@ 426 427 POST_STRIP_CMD:=@POST_STRIP_CMD@ 428 POST_MCS_CMD:=@POST_MCS_CMD@ 429 430 JAVA_FLAGS:=@BOOT_JDK_JVMARGS@ 431 432 JAVA=@UNCYGDRIVE@ @JAVA@ $(JAVA_FLAGS) 433 434 JAVAC:=@UNCYGDRIVE@ @JAVAC@ 435 JAVAC_FLAGS:=@JAVAC_FLAGS@ 436 437 JAVAH:=@UNCYGDRIVE@ @JAVAH@ 438 439 JAR:=@UNCYGDRIVE@ @JAR@ 440 441 RMIC:=@UNCYGDRIVE@ @RMIC@ 442 443 NATIVE2ASCII:=@UNCYGDRIVE@ @NATIVE2ASCII@ 444 445 BOOT_JAR_CMD:=@UNCYGDRIVE@ @JAR@ 446 BOOT_JAR_JFLAGS:= 447 448 # Base flags for RC 449 # Guarding this against resetting value. Legacy make files include spec multiple 450 # times. 451 ifndef RC_FLAGS 452 RC_FLAGS:=@RC_FLAGS@ 453 endif 454 455 # A specific java binary with specific options can be used to run 456 # the long running background javac server and other long running tasks. 457 SERVER_JAVA:=@UNCYGDRIVE@ @SERVER_JAVA@ 458 459 # Tools adhering to a minimal and common standard of posix compliance. 460 AWK:=@AWK@ 461 CAT:=@CAT@ 462 CCACHE:=@CCACHE@ 463 # CD is going away, but remains to cater for legacy makefiles. 464 CD:=cd 465 CHMOD:=@CHMOD@ 466 CP:=@CP@ 467 CPIO:=@CPIO@ 468 CUT:=@CUT@ 469 DATE:=@DATE@ 470 DF:=@DF@ 471 DIFF:=@DIFF@ 472 FIND:=@FIND@ 473 FIND_DELETE:=@FIND_DELETE@ 474 ECHO:=@ECHO@ 475 EGREP:=@EGREP@ 476 FGREP:=@FGREP@ 477 GREP:=@GREP@ 478 HEAD:=@HEAD@ 479 LS:=@LS@ 480 LN:=@LN@ 481 MKDIR:=@MKDIR@ 482 MV:=@MV@ 483 NAWK:=@NAWK@ 484 PRINTF:=@PRINTF@ 485 PWD:=@THEPWDCMD@ 486 RM:=@RM@ 487 SED:=@SED@ 488 SH:=@SH@ 489 SORT:=@SORT@ 490 TAR:=@TAR@ 491 TAIL:=@TAIL@ 492 TEE:=@TEE@ 493 TR:=@TR@ 494 TOUCH:=@TOUCH@ 495 WC:=@WC@ 496 XARGS:=@XARGS@ 497 ZIPEXE:=@ZIP@ 498 ZIP:=@ZIP@ 499 UNZIP:=@UNZIP@ 500 MT:=@UNCYGDRIVE@ @MT@ 501 RC:=@UNCYGDRIVE@ @RC@ 502 DUMPBIN:=@UNCYGDRIVE@ @DUMPBIN@ 503 CYGPATH:=@CYGPATH@ 504 LDD:=@LDD@ 505 OTOOL:=@OTOOL@ 506 READELF:=@READELF@ 507 EXPR:=@EXPR@ 508 FILE:=@FILE@ 509 HG:=@HG@ 510 511 UNCYGDRIVE:=@UNCYGDRIVE@ 512 513 # Where the build output is stored for your convenience. 514 BUILD_LOG:=@BUILD_LOG@ 515 BUILD_LOG_WRAPPER:=@BUILD_LOG_WRAPPER@ 516 517 # Build setup 518 ENABLE_DOCS:=@ENABLE_DOCS@ 519 GENERATE_DOCS:=@ENABLE_DOCS@ 520 DISABLE_NIMBUS:=@DISABLE_NIMBUS@ 521 USE_EXTERNAL_LIBJPEG:=@USE_EXTERNAL_LIBJPEG@ 522 USE_EXTERNAL_LIBGIF:=@USE_EXTERNAL_LIBGIF@ 523 USE_EXTERNAL_LIBZ:=@USE_EXTERNAL_LIBZ@ 524 CHECK_FOR_VCINSTALLDIR=@CHECK_FOR_VCINSTALLDIR@ 525 MSVCRNN_DLL:=@MSVCR100DLL@ 526 527 # ADD_SRCS takes a single argument with source roots 528 # and appends any corresponding source roots found 529 # below --with-add-source-root and below 530 # --with-override-source-root. It is the responsibility 531 # of the next macro to get rid of superfluous files. 532 ADD_SRCS=$1 533 ifneq (,$(ADD_SRC_ROOT)) 534 # Append wildcard rule to pickup any matching source roots found below ADD_SRC_ROOT 535 ADD_SRCS+=$(wildcard $(subst $(SRC_ROOT),$(ADD_SRC_ROOT),$1)) 536 endif 537 ifneq (,$(OVERRIDE_SRC_ROOT)) 538 # Append wildcard rule to pickup any matching source roots found below OVERRIDE_SRC_ROOT 539 ADD_SRCS+=$(wildcard $(subst $(SRC_ROOT),$(OVERRIDE_SRC_ROOT),$1)) 540 endif 541 542 # OVR_SRCS creates a filter expression to filter out sources in 543 # the original source directory that lie inside directories below 544 # --with-override-source-root. 545 # Use := here since we want to scan for these files here. To avoid recomputation later. 546 # We cannot do the scan in configure, since that would force us to rerun configure when 547 # we add overridden sources. 548 ifneq (,$(OVERRIDE_SRC_ROOT)) 549 OVR_SRCS:=$(addsuffix %,$(subst $(OVERRIDE_SRC_ROOT),$(SRC_ROOT),$(sort $(dir $(shell $(FIND) $(OVERRIDE_SRC_ROOT) -type f))))) 550 else 551 OVR_SRCS:= 552 endif 553 554 #################################################### 555 # 556 # INSTALLATION 557 # 558 559 # Common prefix for all installed files. Defaults to /usr/local, 560 # but /opt/myjdk is another common version. 561 INSTALL_PREFIX=@prefix@ 562 563 # Directories containing architecture-dependent files should be relative to exec_prefix 564 INSTALL_EXECPREFIX=@exec_prefix@ 565 566 # java,javac,javah,javap etc are installed here. 567 INSTALL_BINDIR=@bindir@ 568 569 # Read only architecture-independent data 570 INSTALL_DATADIR=@datadir@ 571 572 # Root of above. 573 INSTALL_DATAROOTDIR=@datarootdir@ 574 575 # Doc files, other than info and man. 576 INSTALL_DOCDIR=@docdir@ 577 578 # Html documentation 579 INSTALL_HTMLDIR=@htmldir@ 580 581 # Installing C header files, JNI headers for example. 582 INSTALL_INCLUDEDIR=@includedir@ 583 584 # Installing library files.... 585 INSTALL_INCLUDEDIR=@libdir@ 586 587 # Executables that other programs run. 588 INSTALL_LIBEXECDIR=@libexecdir@ 589 590 # Locale-dependent but architecture-independent data, such as message catalogs. 591 INSTALL_LOCALEDIR=@localedir@ 592 593 # Modifiable single-machine data 594 INSTALL_LOCALSTATEDIR=@localstatedir@ 595 596 # Man pages 597 INSTALL_MANDIR=@mandir@ 598 599 # Modifiable architecture-independent data. 600 INSTALL_SHAREDSTATEDIR=@sharedstatedir@ 601 602 # Read-only single-machine data 603 INSTALL_SYSCONFDIR=@sysconfdir@ 604 605 606 #################################################### 607 # 608 # Misc 609 # 610 611 # Name of Service Agent library 612 SALIB_NAME=@SALIB_NAME@ 613 614 # Control wether Hotspot runs Queens test after building 615 TEST_IN_BUILD=@TEST_IN_BUILD@ 616 617 OS_VERSION_MAJOR:=@OS_VERSION_MAJOR@ 618 OS_VERSION_MINOR:=@OS_VERSION_MINOR@ 619 OS_VERSION_MICRO:=@OS_VERSION_MICRO@ 620