annotate common/autoconf/spec.gmk.in @ 12258:6ec26f6cc53e

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