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