annotate make/Makefile @ 4364:1c8db54ee9f3

Added tag hs25-b24 for changeset e3a41fc02348
author amurillo
date Sat, 23 Mar 2013 01:47:25 -0700
parents 1b0dc9f87e75
children f36e073d56a4
rev   line source
duke@0 1 #
zgu@4057 2 # Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved.
duke@0 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
duke@0 4 #
duke@0 5 # This code is free software; you can redistribute it and/or modify it
duke@0 6 # under the terms of the GNU General Public License version 2 only, as
duke@0 7 # published by the Free Software Foundation.
duke@0 8 #
duke@0 9 # This code is distributed in the hope that it will be useful, but WITHOUT
duke@0 10 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
duke@0 11 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
duke@0 12 # version 2 for more details (a copy is included in the LICENSE file that
duke@0 13 # accompanied this code).
duke@0 14 #
duke@0 15 # You should have received a copy of the GNU General Public License version
duke@0 16 # 2 along with this work; if not, write to the Free Software Foundation,
duke@0 17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
duke@0 18 #
trims@1472 19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
trims@1472 20 # or visit www.oracle.com if you need additional information or have any
trims@1472 21 # questions.
duke@0 22 #
duke@0 23 #
duke@0 24
duke@0 25 # Top level gnumake file for hotspot builds
duke@0 26 #
duke@0 27 # Default is to build the both product images and construct an export dir.
duke@0 28 # The default export directory name is `pwd`/export-$(PLATFORM).
duke@0 29 #
duke@0 30 # Use: 'gnumake help' for more information.
duke@0 31 #
duke@0 32 # This makefile uses the default settings for where to find compilers and
duke@0 33 # tools, and obeys the ALT_* variable settings used by the other JDK
duke@0 34 # workspaces.
duke@0 35 #
duke@0 36
duke@0 37 # Expected/optional make variables defined on make command line:
duke@0 38 # LP64=1 or ARCH_DATA_MODEL=64 for 64bit build
duke@0 39 #
duke@0 40 # Expected/optional make variables or environment variables:
duke@0 41 # ALT_SLASH_JAVA Location of /java or J:
duke@0 42 # ALT_BOOTDIR Previous JDK home directory for javac compiler
duke@0 43 # ALT_OUTPUTDIR Output directory to use for hotspot build
duke@0 44 # ALT_EXPORT_PATH Directory to export hotspot build to
duke@0 45 # ALT_JDK_IMPORT_PATH Current JDK build (only for create_jdk rules)
dholmes@2109 46 # ALT_JDK_TARGET_IMPORT_PATH Current JDK build when cross-compiling
duke@0 47 # ALT_BUILD_WIN_SA Building SA on Windows is disabled by default.
duke@0 48 # Set ALT_BUILD_WIN_SA=1 to enable building SA on
duke@0 49 # Windows.
duke@0 50 # Version strings and numbers:
duke@0 51 # JDK_VERSION Current JDK version (e.g. 1.6.0)
duke@0 52 # PREVIOUS_JDK_VERSION Previous (bootdir) JDK version (e.g. 1.5.0)
duke@0 53 # FULL_VERSION Full version string to use (e.g. "1.6.0-ea-b42")
duke@0 54 #
duke@0 55 # Version strings and numbers especially needed on Windows:
duke@0 56 # COOKED_JDK_UPDATE_VERSION Just the update release number (e.g. 02)
duke@0 57 # COOKED_BUILD_NUMBER Just the build number (e.g. 42)
duke@0 58 # JDK_MKTG_VERSION Marketing JDK version (e.g. 6.0)
duke@0 59 # JDK_MAJOR_VERSION Major number for version (e.g. 1) always 1?
duke@0 60 # JDK_MINOR_VERSION Minor number for version (e.g. 6)
duke@0 61 # JDK_MICRO_VERSION Micro number for version (e.g. 0)
duke@0 62 #
duke@0 63
duke@0 64 # Default is build both product fastdebug and create export area
duke@0 65
duke@0 66 # Allow to build HotSpot in local directory from sources specified by GAMMADIR.
duke@0 67 # After make/defs.make GAMMADIR is defined.
duke@0 68 ifdef GAMMADIR
duke@0 69 ifndef ALT_OUTPUTDIR
duke@0 70 ALT_OUTPUTDIR := $(shell pwd)
duke@0 71 endif
duke@0 72 include $(GAMMADIR)/make/defs.make
duke@0 73 else
duke@0 74 include defs.make
duke@0 75 endif
duke@0 76
kamg@2080 77 include $(GAMMADIR)/make/altsrc.make
duke@0 78
jprovino@3730 79 -include $(HS_ALT_MAKE)/Makefile.make
jprovino@3730 80
duke@0 81 ifneq ($(ALT_OUTPUTDIR),)
duke@0 82 ALT_OUT=ALT_OUTPUTDIR=$(ALT_OUTPUTDIR)
duke@0 83 else
duke@0 84 ALT_OUT=
duke@0 85 endif
duke@0 86
duke@0 87 # Typical C1/C2 targets made available with this Makefile
duke@0 88 C1_VM_TARGETS=product1 fastdebug1 optimized1 jvmg1
duke@0 89 C2_VM_TARGETS=product fastdebug optimized jvmg
never@1010 90 ZERO_VM_TARGETS=productzero fastdebugzero optimizedzero jvmgzero
twisti@1612 91 SHARK_VM_TARGETS=productshark fastdebugshark optimizedshark jvmgshark
jprovino@3730 92 MINIMAL1_VM_TARGETS=productminimal1 fastdebugminimal1 jvmgminimal1
duke@0 93
jprovino@3730 94 COMMON_VM_PRODUCT_TARGETS=product product1 docs export_product
jprovino@3730 95 COMMON_VM_FASTDEBUG_TARGETS=fastdebug fastdebug1 docs export_fastdebug
jprovino@3730 96 COMMON_VM_DEBUG_TARGETS=jvmg jvmg1 docs export_debug
phh@3057 97
coleenp@113 98 # JDK directory list
coleenp@113 99 JDK_DIRS=bin include jre lib demo
coleenp@113 100
duke@0 101 all: all_product all_fastdebug
phh@3057 102
jprovino@3730 103 ifeq ($(JVM_VARIANT_MINIMAL1),true)
jprovino@3730 104 all_product: productminimal1
jprovino@3730 105 all_fastdebug: fastdebugminimal1
jprovino@3730 106 all_debug: jvmgminimal1
jprovino@3730 107 endif
jprovino@3730 108
phh@3057 109 ifdef BUILD_CLIENT_ONLY
bobv@1601 110 all_product: product1 docs export_product
bobv@1601 111 all_fastdebug: fastdebug1 docs export_fastdebug
bobv@1601 112 all_debug: jvmg1 docs export_debug
phh@3057 113 else
phh@3057 114 ifeq ($(MACOSX_UNIVERSAL),true)
phh@3057 115 all_product: universal_product
phh@3057 116 all_fastdebug: universal_fastdebug
phh@3057 117 all_debug: universal_debug
phh@3057 118 else
phh@3057 119 all_product: $(COMMON_VM_PRODUCT_TARGETS)
phh@3057 120 all_fastdebug: $(COMMON_VM_FASTDEBUG_TARGETS)
phh@3057 121 all_debug: $(COMMON_VM_DEBUG_TARGETS)
bobv@1601 122 endif
phh@3057 123 endif
phh@3057 124
jprovino@3730 125 all_optimized: optimized optimized1 docs export_optimized
duke@0 126
never@1010 127 allzero: all_productzero all_fastdebugzero
never@1010 128 all_productzero: productzero docs export_product
never@1010 129 all_fastdebugzero: fastdebugzero docs export_fastdebug
never@1010 130 all_debugzero: jvmgzero docs export_debug
never@1010 131 all_optimizedzero: optimizedzero docs export_optimized
never@1010 132
twisti@1612 133 allshark: all_productshark all_fastdebugshark
twisti@1612 134 all_productshark: productshark docs export_product
twisti@1612 135 all_fastdebugshark: fastdebugshark docs export_fastdebug
twisti@1612 136 all_debugshark: jvmgshark docs export_debug
twisti@1612 137 all_optimizedshark: optimizedshark docs export_optimized
twisti@1612 138
duke@0 139 # Do everything
duke@0 140 world: all create_jdk
duke@0 141
duke@0 142 # Build or export docs
duke@0 143 docs:
duke@0 144 ifeq ($(OSNAME),windows)
duke@0 145 @$(ECHO) "No docs ($(VM_TARGET)) for windows"
duke@0 146 else
dcubed@3290 147 # We specify 'BUILD_FLAVOR=product' so that the proper
dcubed@3290 148 # ENABLE_FULL_DEBUG_SYMBOLS value is used.
duke@0 149 $(CD) $(OUTPUTDIR); \
duke@0 150 $(MAKE) -f $(ABS_OS_MAKEFILE) \
dcubed@3290 151 $(MAKE_ARGS) BUILD_FLAVOR=product docs
duke@0 152 endif
duke@0 153
duke@0 154 # Build variation of hotspot
duke@0 155 $(C1_VM_TARGETS):
duke@0 156 $(CD) $(GAMMADIR)/make; \
dcubed@3290 157 $(MAKE) BUILD_FLAVOR=$(@:%1=%) VM_TARGET=$@ generic_build1 $(ALT_OUT)
duke@0 158
duke@0 159 $(C2_VM_TARGETS):
duke@0 160 $(CD) $(GAMMADIR)/make; \
dcubed@3290 161 $(MAKE) BUILD_FLAVOR=$@ VM_TARGET=$@ generic_build2 $(ALT_OUT)
duke@0 162
never@1010 163 $(ZERO_VM_TARGETS):
never@1010 164 $(CD) $(GAMMADIR)/make; \
dcubed@3290 165 $(MAKE) BUILD_FLAVOR=$(@:%zero=%) VM_TARGET=$@ \
dcubed@3290 166 generic_buildzero $(ALT_OUT)
never@1010 167
twisti@1612 168 $(SHARK_VM_TARGETS):
twisti@1612 169 $(CD) $(GAMMADIR)/make; \
dcubed@3290 170 $(MAKE) BUILD_FLAVOR=$(@:%shark=%) VM_TARGET=$@ \
dcubed@3290 171 generic_buildshark $(ALT_OUT)
twisti@1612 172
jprovino@3730 173 $(MINIMAL1_VM_TARGETS):
jprovino@3730 174 $(CD) $(GAMMADIR)/make; \
jprovino@3730 175 $(MAKE) BUILD_FLAVOR=$(@:%minimal1=%) VM_TARGET=$@ \
jprovino@3730 176 generic_buildminimal1 $(ALT_OUT)
jprovino@3730 177
duke@0 178 # Build compiler1 (client) rule, different for platforms
duke@0 179 generic_build1:
duke@0 180 $(MKDIR) -p $(OUTPUTDIR)
duke@0 181 ifeq ($(OSNAME),windows)
duke@0 182 ifeq ($(ARCH_DATA_MODEL), 32)
duke@0 183 $(CD) $(OUTPUTDIR); \
duke@0 184 $(NMAKE) -f $(ABS_OS_MAKEFILE) \
duke@0 185 Variant=compiler1 \
duke@0 186 WorkSpace=$(ABS_GAMMADIR) \
duke@0 187 BootStrapDir=$(ABS_BOOTDIR) \
duke@0 188 BuildUser=$(USERNAME) \
duke@0 189 $(MAKE_ARGS) $(VM_TARGET:%1=%)
duke@0 190 else
duke@0 191 @$(ECHO) "No compiler1 ($(VM_TARGET)) for ARCH_DATA_MODEL=$(ARCH_DATA_MODEL)"
duke@0 192 endif
duke@0 193 else
duke@0 194 ifeq ($(ARCH_DATA_MODEL), 32)
duke@0 195 $(CD) $(OUTPUTDIR); \
duke@0 196 $(MAKE) -f $(ABS_OS_MAKEFILE) \
duke@0 197 $(MAKE_ARGS) $(VM_TARGET)
duke@0 198 else
duke@0 199 @$(ECHO) "No compiler1 ($(VM_TARGET)) for ARCH_DATA_MODEL=$(ARCH_DATA_MODEL)"
duke@0 200 endif
duke@0 201 endif
duke@0 202
duke@0 203 # Build compiler2 (server) rule, different for platforms
duke@0 204 generic_build2:
duke@0 205 $(MKDIR) -p $(OUTPUTDIR)
duke@0 206 ifeq ($(OSNAME),windows)
duke@0 207 $(CD) $(OUTPUTDIR); \
duke@0 208 $(NMAKE) -f $(ABS_OS_MAKEFILE) \
duke@0 209 Variant=compiler2 \
duke@0 210 WorkSpace=$(ABS_GAMMADIR) \
duke@0 211 BootStrapDir=$(ABS_BOOTDIR) \
duke@0 212 BuildUser=$(USERNAME) \
duke@0 213 $(MAKE_ARGS) $(VM_TARGET)
duke@0 214 else
duke@0 215 $(CD) $(OUTPUTDIR); \
duke@0 216 $(MAKE) -f $(ABS_OS_MAKEFILE) \
duke@0 217 $(MAKE_ARGS) $(VM_TARGET)
duke@0 218 endif
duke@0 219
never@1010 220 generic_buildzero:
never@1010 221 $(MKDIR) -p $(OUTPUTDIR)
never@1010 222 $(CD) $(OUTPUTDIR); \
never@1010 223 $(MAKE) -f $(ABS_OS_MAKEFILE) \
never@1010 224 $(MAKE_ARGS) $(VM_TARGET)
never@1010 225
twisti@1612 226 generic_buildshark:
twisti@1612 227 $(MKDIR) -p $(OUTPUTDIR)
twisti@1612 228 $(CD) $(OUTPUTDIR); \
twisti@1612 229 $(MAKE) -f $(ABS_OS_MAKEFILE) \
twisti@1612 230 $(MAKE_ARGS) $(VM_TARGET)
twisti@1612 231
jprovino@3730 232 generic_buildminimal1:
jprovino@3730 233 ifeq ($(JVM_VARIANT_MINIMAL1),true)
jprovino@3730 234 $(MKDIR) -p $(OUTPUTDIR)
jprovino@3730 235 ifeq ($(ARCH_DATA_MODEL), 32)
jprovino@3730 236 ifeq ($(OSNAME),windows)
jprovino@3730 237 $(ECHO) "No ($(VM_TARGET)) for $(OSNAME) ARCH_DATA_MODEL=$(ARCH_DATA_MODEL)" ;
jprovino@3730 238 else
jprovino@3730 239 ifeq ($(OSNAME),solaris)
jprovino@3730 240 $(ECHO) "No ($(VM_TARGET)) for $(OSNAME) ARCH_DATA_MODEL=$(ARCH_DATA_MODEL)" ;
jprovino@3730 241 else
jprovino@3730 242 $(CD) $(OUTPUTDIR); \
jprovino@3730 243 $(MAKE) -f $(ABS_OS_MAKEFILE) $(MAKE_ARGS) $(VM_TARGET) ;
jprovino@3730 244 endif
jprovino@3730 245 endif
jprovino@3730 246 else
jprovino@3730 247 @$(ECHO) "No ($(VM_TARGET)) for $(OSNAME) ARCH_DATA_MODEL=$(ARCH_DATA_MODEL)"
jprovino@3730 248 endif
jprovino@3730 249 else
jprovino@3730 250 @$(ECHO) "Error: trying to build a minimal target but JVM_VARIANT_MINIMAL1 is not true."
jprovino@3730 251 endif
jprovino@3730 252
duke@0 253 # Export file rule
duke@0 254 generic_export: $(EXPORT_LIST)
duke@0 255 export_product:
dcubed@3290 256 $(MAKE) BUILD_FLAVOR=$(@:export_%=%) VM_SUBDIR=$(@:export_%=%) \
dcubed@3290 257 generic_export
duke@0 258 export_fastdebug:
dcubed@3290 259 $(MAKE) BUILD_FLAVOR=$(@:export_%=%) VM_SUBDIR=$(@:export_%=%) \
dcubed@3290 260 EXPORT_SUBDIR=/$(@:export_%=%) \
dcubed@3290 261 generic_export
duke@0 262 export_debug:
dcubed@3290 263 $(MAKE) BUILD_FLAVOR=$(@:export_%=%) VM_SUBDIR=${VM_DEBUG} \
dcubed@3290 264 EXPORT_SUBDIR=/$(@:export_%=%) \
dcubed@3290 265 generic_export
duke@0 266 export_optimized:
dcubed@3290 267 $(MAKE) BUILD_FLAVOR=$(@:export_%=%) VM_SUBDIR=$(@:export_%=%) \
dcubed@3290 268 EXPORT_SUBDIR=/$(@:export_%=%) \
dcubed@3290 269 generic_export
phh@3057 270 export_product_jdk::
dcubed@3290 271 $(MAKE) BUILD_FLAVOR=$(@:export_%_jdk=%) \
dcubed@3290 272 VM_SUBDIR=$(@:export_%_jdk=%) ALT_EXPORT_PATH=$(JDK_IMAGE_DIR) \
dcubed@3290 273 generic_export
phh@3057 274 export_optimized_jdk::
dcubed@3290 275 $(MAKE) BUILD_FLAVOR=$(@:export_%_jdk=%) \
dcubed@3290 276 VM_SUBDIR=$(@:export_%_jdk=%) ALT_EXPORT_PATH=$(JDK_IMAGE_DIR) \
dcubed@3290 277 generic_export
phh@3057 278 export_fastdebug_jdk::
dcubed@3290 279 $(MAKE) BUILD_FLAVOR=$(@:export_%_jdk=%) \
dcubed@3290 280 VM_SUBDIR=$(@:export_%_jdk=%) \
dcubed@3290 281 ALT_EXPORT_PATH=$(JDK_IMAGE_DIR)/$(@:export_%_jdk=%) \
dcubed@3290 282 generic_export
phh@3057 283 export_debug_jdk::
dcubed@3290 284 $(MAKE) BUILD_FLAVOR=$(@:export_%_jdk=%) VM_SUBDIR=${VM_DEBUG} \
dcubed@3290 285 ALT_EXPORT_PATH=$(JDK_IMAGE_DIR)/$(@:export_%_jdk=%) \
dcubed@3290 286 generic_export
duke@0 287
duke@0 288 # Export file copy rules
duke@0 289 XUSAGE=$(HS_SRC_DIR)/share/vm/Xusage.txt
duke@0 290 DOCS_DIR=$(OUTPUTDIR)/$(VM_PLATFORM)_docs
duke@0 291 C1_BASE_DIR=$(OUTPUTDIR)/$(VM_PLATFORM)_compiler1
duke@0 292 C2_BASE_DIR=$(OUTPUTDIR)/$(VM_PLATFORM)_compiler2
never@1010 293 ZERO_BASE_DIR=$(OUTPUTDIR)/$(VM_PLATFORM)_zero
twisti@1612 294 SHARK_BASE_DIR=$(OUTPUTDIR)/$(VM_PLATFORM)_shark
duke@0 295 C1_DIR=$(C1_BASE_DIR)/$(VM_SUBDIR)
duke@0 296 C2_DIR=$(C2_BASE_DIR)/$(VM_SUBDIR)
never@1010 297 ZERO_DIR=$(ZERO_BASE_DIR)/$(VM_SUBDIR)
twisti@1612 298 SHARK_DIR=$(SHARK_BASE_DIR)/$(VM_SUBDIR)
jprovino@3730 299 MINIMAL1_BASE_DIR=$(OUTPUTDIR)/$(VM_PLATFORM)_minimal1
jprovino@3730 300 MINIMAL1_DIR=$(MINIMAL1_BASE_DIR)/$(VM_SUBDIR)
duke@0 301
erikj@3214 302 ifeq ($(JVM_VARIANT_SERVER), true)
erikj@3214 303 MISC_DIR=$(C2_DIR)
erikj@3214 304 GEN_DIR=$(C2_BASE_DIR)/generated
twisti@1612 305 endif
erikj@3214 306 ifeq ($(JVM_VARIANT_CLIENT), true)
erikj@3214 307 MISC_DIR=$(C1_DIR)
erikj@3214 308 GEN_DIR=$(C1_BASE_DIR)/generated
duke@0 309 endif
erikj@3214 310 ifeq ($(JVM_VARIANT_ZEROSHARK), true)
erikj@3214 311 MISC_DIR=$(SHARK_DIR)
erikj@3214 312 GEN_DIR=$(SHARK_BASE_DIR)/generated
erikj@3214 313 endif
erikj@3214 314 ifeq ($(JVM_VARIANT_ZERO), true)
erikj@3214 315 MISC_DIR=$(ZERO_DIR)
erikj@3214 316 GEN_DIR=$(ZERO_BASE_DIR)/generated
never@1010 317 endif
jprovino@3730 318 ifeq ($(JVM_VARIANT_MINIMAL1), true)
jprovino@3730 319 MISC_DIR=$(MINIMAL1_DIR)
jprovino@3730 320 GEN_DIR=$(MINIMAL1_BASE_DIR)/generated
jprovino@3730 321 endif
duke@0 322
duke@0 323 # Bin files (windows)
duke@0 324 ifeq ($(OSNAME),windows)
duke@0 325
duke@0 326 # Get jvm.lib
duke@0 327 $(EXPORT_LIB_DIR)/%.lib: $(MISC_DIR)/%.lib
duke@0 328 $(install-file)
duke@0 329
duke@0 330 # Other libraries (like SA)
dcubed@3289 331 $(EXPORT_JRE_BIN_DIR)/%.diz: $(MISC_DIR)/%.diz
dcubed@3289 332 $(install-file)
duke@0 333 $(EXPORT_JRE_BIN_DIR)/%.dll: $(MISC_DIR)/%.dll
duke@0 334 $(install-file)
duke@0 335 $(EXPORT_JRE_BIN_DIR)/%.pdb: $(MISC_DIR)/%.pdb
duke@0 336 $(install-file)
duke@0 337 $(EXPORT_JRE_BIN_DIR)/%.map: $(MISC_DIR)/%.map
duke@0 338 $(install-file)
duke@0 339
duke@0 340 # Client files always come from C1 area
dcubed@3289 341 $(EXPORT_CLIENT_DIR)/%.diz: $(C1_DIR)/%.diz
dcubed@3289 342 $(install-file)
duke@0 343 $(EXPORT_CLIENT_DIR)/%.dll: $(C1_DIR)/%.dll
duke@0 344 $(install-file)
duke@0 345 $(EXPORT_CLIENT_DIR)/%.pdb: $(C1_DIR)/%.pdb
duke@0 346 $(install-file)
duke@0 347 $(EXPORT_CLIENT_DIR)/%.map: $(C1_DIR)/%.map
duke@0 348 $(install-file)
duke@0 349
duke@0 350 # Server files always come from C2 area
dcubed@3289 351 $(EXPORT_SERVER_DIR)/%.diz: $(C2_DIR)/%.diz
dcubed@3289 352 $(install-file)
duke@0 353 $(EXPORT_SERVER_DIR)/%.dll: $(C2_DIR)/%.dll
duke@0 354 $(install-file)
duke@0 355 $(EXPORT_SERVER_DIR)/%.pdb: $(C2_DIR)/%.pdb
duke@0 356 $(install-file)
duke@0 357 $(EXPORT_SERVER_DIR)/%.map: $(C2_DIR)/%.map
duke@0 358 $(install-file)
duke@0 359 endif
duke@0 360
jprovino@3730 361 # Minimal JVM files always come from minimal area
jprovino@3730 362 $(EXPORT_MINIMAL_DIR)/%.diz: $(MINIMAL1_DIR)/%.diz
jprovino@3730 363 $(install-file)
jprovino@3730 364 $(EXPORT_MINIMAL_DIR)/%.dll: $(MINIMAL1_DIR)/%.dll
jprovino@3730 365 $(install-file)
jprovino@3730 366 $(EXPORT_MINIMAL_DIR)/%.pdb: $(MINIMAL1_DIR)/%.pdb
jprovino@3730 367 $(install-file)
jprovino@3730 368 $(EXPORT_MINIMAL_DIR)/%.map: $(MINIMAL1_DIR)/%.map
jprovino@3730 369 $(install-file)
jprovino@3730 370
duke@0 371 # Shared Library
duke@0 372 ifneq ($(OSNAME),windows)
erikj@3214 373 ifeq ($(JVM_VARIANT_SERVER), true)
erikj@3214 374 $(EXPORT_JRE_LIB_ARCH_DIR)/%.$(LIBRARY_SUFFIX): $(C2_DIR)/%.$(LIBRARY_SUFFIX)
erikj@3214 375 $(install-file)
erikj@3214 376 $(EXPORT_SERVER_DIR)/%.$(LIBRARY_SUFFIX): $(C2_DIR)/%.$(LIBRARY_SUFFIX)
erikj@3214 377 $(install-file)
erikj@3214 378 $(EXPORT_SERVER_DIR)/64/%.$(LIBRARY_SUFFIX): $(C2_DIR)/%.$(LIBRARY_SUFFIX)
erikj@3214 379 $(install-file)
erikj@3214 380 $(EXPORT_JRE_LIB_ARCH_DIR)/%.debuginfo: $(C2_DIR)/%.debuginfo
erikj@3214 381 $(install-file)
erikj@3214 382 $(EXPORT_SERVER_DIR)/%.debuginfo: $(C2_DIR)/%.debuginfo
erikj@3214 383 $(install-file)
erikj@3214 384 $(EXPORT_SERVER_DIR)/64/%.debuginfo: $(C2_DIR)/%.debuginfo
erikj@3214 385 $(install-file)
dcubed@3291 386 $(EXPORT_JRE_LIB_ARCH_DIR)/%.diz: $(C2_DIR)/%.diz
dcubed@3291 387 $(install-file)
dcubed@3291 388 $(EXPORT_SERVER_DIR)/%.diz: $(C2_DIR)/%.diz
dcubed@3291 389 $(install-file)
dcubed@3291 390 $(EXPORT_SERVER_DIR)/64/%.diz: $(C2_DIR)/%.diz
dcubed@3291 391 $(install-file)
twisti@1612 392 endif
erikj@3214 393 ifeq ($(JVM_VARIANT_CLIENT), true)
erikj@3214 394 $(EXPORT_JRE_LIB_ARCH_DIR)/%.$(LIBRARY_SUFFIX): $(C1_DIR)/%.$(LIBRARY_SUFFIX)
erikj@3214 395 $(install-file)
erikj@3214 396 $(EXPORT_CLIENT_DIR)/%.$(LIBRARY_SUFFIX): $(C1_DIR)/%.$(LIBRARY_SUFFIX)
erikj@3214 397 $(install-file)
erikj@3214 398 $(EXPORT_CLIENT_DIR)/64/%.$(LIBRARY_SUFFIX): $(C1_DIR)/%.$(LIBRARY_SUFFIX)
erikj@3214 399 $(install-file)
erikj@3214 400 $(EXPORT_JRE_LIB_ARCH_DIR)/%.debuginfo: $(C1_DIR)/%.debuginfo
erikj@3214 401 $(install-file)
erikj@3214 402 $(EXPORT_CLIENT_DIR)/%.debuginfo: $(C1_DIR)/%.debuginfo
erikj@3214 403 $(install-file)
erikj@3214 404 $(EXPORT_CLIENT_DIR)/64/%.debuginfo: $(C1_DIR)/%.debuginfo
erikj@3214 405 $(install-file)
dcubed@3291 406 $(EXPORT_JRE_LIB_ARCH_DIR)/%.diz: $(C1_DIR)/%.diz
dcubed@3291 407 $(install-file)
dcubed@3291 408 $(EXPORT_CLIENT_DIR)/%.diz: $(C1_DIR)/%.diz
dcubed@3291 409 $(install-file)
dcubed@3291 410 $(EXPORT_CLIENT_DIR)/64/%.diz: $(C1_DIR)/%.diz
dcubed@3291 411 $(install-file)
erikj@3214 412 endif
erikj@3214 413 ifeq ($(JVM_VARIANT_ZEROSHARK), true)
erikj@3214 414 $(EXPORT_JRE_LIB_ARCH_DIR)/%.$(LIBRARY_SUFFIX): $(SHARK_DIR)/%.$(LIBRARY_SUFFIX)
erikj@3214 415 $(install-file)
twisti@3802 416 $(EXPORT_JRE_LIB_ARCH_DIR)/%.debuginfo): $(SHARK_DIR)/%.debuginfo
twisti@3802 417 $(install-file)
twisti@3802 418 $(EXPORT_JRE_LIB_ARCH_DIR)/%.diz: $(SHARK_DIR)/%.diz
twisti@3802 419 $(install-file)
erikj@3214 420 $(EXPORT_SERVER_DIR)/%.$(LIBRARY_SUFFIX): $(SHARK_DIR)/%.$(LIBRARY_SUFFIX)
erikj@3214 421 $(install-file)
twisti@3802 422 $(EXPORT_SERVER_DIR)/%.debuginfo: $(SHARK_DIR)/%.debuginfo
twisti@3802 423 $(install-file)
twisti@3802 424 $(EXPORT_SERVER_DIR)/%.diz: $(SHARK_DIR)/%.diz
twisti@3802 425 $(install-file)
erikj@3214 426 endif
erikj@3214 427 ifeq ($(JVM_VARIANT_ZERO), true)
erikj@3214 428 $(EXPORT_JRE_LIB_ARCH_DIR)/%.$(LIBRARY_SUFFIX): $(ZERO_DIR)/%.$(LIBRARY_SUFFIX)
erikj@3214 429 $(install-file)
twisti@3802 430 $(EXPORT_JRE_LIB_ARCH_DIR)/%.debuginfo: $(ZERO_DIR)/%.debuginfo
twisti@3802 431 $(install-file)
twisti@3802 432 $(EXPORT_JRE_LIB_ARCH_DIR)/%.diz: $(ZERO_DIR)/%.diz
twisti@3802 433 $(install-file)
erikj@3214 434 $(EXPORT_SERVER_DIR)/%.$(LIBRARY_SUFFIX): $(ZERO_DIR)/%.$(LIBRARY_SUFFIX)
erikj@3214 435 $(install-file)
twisti@3802 436 $(EXPORT_SERVER_DIR)/%.debuginfo: $(ZERO_DIR)/%.debuginfo
twisti@3802 437 $(install-file)
twisti@3802 438 $(EXPORT_SERVER_DIR)/%.diz: $(ZERO_DIR)/%.diz
twisti@3802 439 $(install-file)
erikj@3214 440 endif
jprovino@3730 441 ifeq ($(JVM_VARIANT_MINIMAL1), true)
jprovino@3730 442 $(EXPORT_JRE_LIB_ARCH_DIR)/%.$(LIBRARY_SUFFIX): $(MINIMAL1_DIR)/%.$(LIBRARY_SUFFIX)
jprovino@3730 443 $(install-file)
jprovino@3730 444 $(EXPORT_MINIMAL_DIR)/%.$(LIBRARY_SUFFIX): $(MINIMAL1_DIR)/%.$(LIBRARY_SUFFIX)
jprovino@3730 445 $(install-file)
jprovino@3730 446 $(EXPORT_MINIMAL_DIR)/64/%.$(LIBRARY_SUFFIX): $(MINIMAL1_DIR)/%.$(LIBRARY_SUFFIX)
jprovino@3730 447 $(install-file)
jprovino@3730 448 $(EXPORT_JRE_LIB_ARCH_DIR)/%.debuginfo: $(MINIMAL1_DIR)/%.debuginfo
jprovino@3730 449 $(install-file)
jprovino@3730 450 $(EXPORT_MINIMAL_DIR)/%.debuginfo: $(MINIMAL1_DIR)/%.debuginfo
jprovino@3730 451 $(install-file)
jprovino@3730 452 $(EXPORT_MINIMAL_DIR)/64/%.debuginfo: $(MINIMAL1_DIR)/%.debuginfo
jprovino@3730 453 $(install-file)
jprovino@3730 454 $(EXPORT_JRE_LIB_ARCH_DIR)/%.diz: $(MINIMAL1_DIR)/%.diz
jprovino@3730 455 $(install-file)
jprovino@3730 456 $(EXPORT_MINIMAL_DIR)/%.diz: $(MINIMAL1_DIR)/%.diz
jprovino@3730 457 $(install-file)
jprovino@3730 458 $(EXPORT_MINIMAL_DIR)/64/%.diz: $(MINIMAL1_DIR)/%.diz
jprovino@3730 459 $(install-file)
jprovino@3730 460 endif
duke@0 461 endif
duke@0 462
duke@0 463 # Jar file (sa-jdi.jar)
duke@0 464 $(EXPORT_LIB_DIR)/%.jar: $(GEN_DIR)/%.jar
duke@0 465 $(install-file)
duke@0 466
phh@2992 467 # Include files (jvmti.h, jvmticmlr.h, jni.h, $(JDK_INCLUDE_SUBDIR)/jni_md.h, jmm.h, jfr.h)
duke@0 468 $(EXPORT_INCLUDE_DIR)/%: $(GEN_DIR)/jvmtifiles/%
duke@0 469 $(install-file)
duke@0 470
dcubed@1184 471 $(EXPORT_INCLUDE_DIR)/%: $(HS_SRC_DIR)/share/vm/code/%
dcubed@1184 472 $(install-file)
dcubed@1184 473
duke@0 474 $(EXPORT_INCLUDE_DIR)/%: $(HS_SRC_DIR)/share/vm/prims/%
duke@0 475 $(install-file)
duke@0 476
kamg@2080 477 HS_JNI_ARCH_SRC=$(call altsrc-replace,$(HS_COMMON_SRC)/cpu/$(HS_ARCH)/vm/jni_$(HS_ARCH).h)
kamg@2080 478 $(EXPORT_INCLUDE_DIR)/$(JDK_INCLUDE_SUBDIR)/jni_md.h: $(HS_JNI_ARCH_SRC)
duke@0 479 $(install-file)
duke@0 480
duke@0 481 $(EXPORT_INCLUDE_DIR)/%: $(HS_SRC_DIR)/share/vm/services/%
duke@0 482 $(install-file)
duke@0 483
phh@2992 484 JFR_EXISTS=$(shell if [ -d $(HS_ALT_SRC) ]; then echo 1; else echo 0; fi)
phh@2992 485 # export jfr.h
phh@2992 486 ifeq ($JFR_EXISTS,1)
phh@2992 487 $(EXPORT_INCLUDE_DIR)/%: $(HS_ALT_SRC)/share/vm/jfr/agent/%
phh@2992 488 $(install-file)
phh@2992 489 else
phh@2992 490 $(EXPORT_INCLUDE_DIR)/jfr.h:
phh@2992 491 endif
phh@2992 492
duke@0 493 # Doc files (jvmti.html)
duke@0 494 $(EXPORT_DOCS_DIR)/platform/jvmti/%: $(DOCS_DIR)/%
duke@0 495 $(install-file)
duke@0 496
duke@0 497 # Xusage file
zgu@4057 498 $(EXPORT_SERVER_DIR)/Xusage.txt $(EXPORT_CLIENT_DIR)/Xusage.txt $(EXPORT_MINIMAL_DIR)/Xusage.txt: $(XUSAGE)
duke@0 499 $(prep-target)
duke@0 500 $(RM) $@.temp
duke@0 501 $(SED) 's/\(separated by \)[;:]/\1$(PATH_SEP)/g' $< > $@.temp
duke@0 502 $(MV) $@.temp $@
duke@0 503
duke@0 504 #
duke@0 505 # Clean rules
duke@0 506 #
duke@0 507 clobber clean: clean_build clean_export clean_jdk
duke@0 508 clean_build:
duke@0 509 $(RM) -r $(C1_DIR)
duke@0 510 $(RM) -r $(C2_DIR)
never@1010 511 $(RM) -r $(ZERO_DIR)
twisti@1612 512 $(RM) -r $(SHARK_DIR)
jprovino@3730 513 $(RM) -r $(MINIMAL1_DIR)
duke@0 514 clean_export:
duke@0 515 $(RM) -r $(EXPORT_PATH)
duke@0 516 clean_jdk:
duke@0 517 $(RM) -r $(JDK_IMAGE_DIR)
duke@0 518
duke@0 519 #
duke@0 520 # Create JDK and place this build into it
duke@0 521 #
duke@0 522 create_jdk: copy_jdk update_jdk
duke@0 523
duke@0 524 update_jdk: export_product_jdk export_fastdebug_jdk test_jdk
duke@0 525
duke@0 526 copy_jdk: $(JDK_IMAGE_DIR)/jre/lib/rt.jar
duke@0 527
duke@0 528 $(JDK_IMAGE_DIR)/jre/lib/rt.jar:
duke@0 529 $(RM) -r $(JDK_IMAGE_DIR)
duke@0 530 $(MKDIR) -p $(JDK_IMAGE_DIR)
duke@0 531 ($(CD) $(JDK_IMPORT_PATH) && \
duke@0 532 $(TAR) -cf - *) | \
duke@0 533 ($(CD) $(JDK_IMAGE_DIR) && $(TAR) -xf -)
duke@0 534
twisti@4345 535
twisti@4345 536 # Testing the built JVM
twisti@4345 537 RUN_JVM=JAVA_HOME=$(JDK_IMPORT_PATH) $(JDK_IMPORT_PATH)/bin/java -d$(ARCH_DATA_MODEL) -Dsun.java.launcher=gamma
twisti@4345 538 generic_test:
twisti@4345 539 @$(ECHO) "Running with: $(ALTJVM_DIR)"
twisti@4345 540 @$(RUN_JVM) -XXaltjvm=$(ALTJVM_DIR) -Xinternalversion
twisti@4345 541 @$(RUN_JVM) -XXaltjvm=$(ALTJVM_DIR) -showversion -help
twisti@4345 542
twisti@4345 543 # C2 test targets
twisti@4345 544 test_product test_optimized test_fastdebug test_jvmg:
twisti@4345 545 @$(MAKE) generic_test ALTJVM_DIR="$(C2_DIR)/$(@:test_%=%)"
twisti@4345 546
twisti@4345 547 # C1 test targets
twisti@4345 548 test_product1 test_optimized1 test_fastdebug1 test_jvmg1:
twisti@4345 549 ifeq ($(ARCH_DATA_MODEL), 32)
twisti@4345 550 @$(MAKE) generic_test ALTJVM_DIR="$(C1_DIR)/$(@:test_%1=%)"
twisti@4345 551 else
twisti@4345 552 @$(ECHO) "No compiler1 ($(@:test_%=%)) for ARCH_DATA_MODEL=$(ARCH_DATA_MODEL)"
twisti@4345 553 endif
twisti@4345 554
twisti@4345 555 # Zero test targets
twisti@4345 556 test_productzero test_optimizedzero test_fastdebugzero test_jvmgzero:
twisti@4345 557 @$(MAKE) generic_test ALTJVM_DIR="$(ZERO_DIR)/$(@:test_%zero=%)"
twisti@4345 558
twisti@4345 559 # Shark test targets
twisti@4345 560 test_productshark test_optimizedshark test_fastdebugshark test_jvmgshark:
twisti@4345 561 @$(MAKE) generic_test ALTJVM_DIR="$(SHARK_DIR)/$(@:test_%shark=%)"
twisti@4345 562
twisti@4345 563 # Minimal1 test targets
twisti@4345 564 test_productminimal1 test_optimizedminimal1 test_fastdebugminimal1 test_jvmgminimal1:
twisti@4345 565 @$(MAKE) generic_test ALTJVM_DIR="$(MINIMAL1_DIR)/$(@:test_%minimal1=%)"
twisti@4345 566
twisti@4345 567
duke@0 568 test_jdk:
erikj@3214 569 ifeq ($(JVM_VARIANT_CLIENT), true)
erikj@3214 570 $(JDK_IMAGE_DIR)/bin/java -d$(ARCH_DATA_MODEL) -client -Xinternalversion
erikj@3214 571 $(JDK_IMAGE_DIR)/bin/java -d$(ARCH_DATA_MODEL) -client -version
erikj@3214 572 endif
erikj@3214 573 ifeq ($(findstring true, $(JVM_VARIANT_SERVER)\
erikj@3214 574 $(JVM_VARIANT_ZERO)$(JVM_VARIANT_ZEROSHARK)), true)
erikj@3214 575 $(JDK_IMAGE_DIR)/bin/java -d$(ARCH_DATA_MODEL) -server -Xinternalversion
erikj@3214 576 $(JDK_IMAGE_DIR)/bin/java -d$(ARCH_DATA_MODEL) -server -version
erikj@3214 577 endif
duke@0 578
phh@3057 579 copy_product_jdk::
duke@0 580 $(RM) -r $(JDK_IMAGE_DIR)
duke@0 581 $(MKDIR) -p $(JDK_IMAGE_DIR)
duke@0 582 ($(CD) $(JDK_IMPORT_PATH) && \
coleenp@113 583 $(TAR) -cf - $(JDK_DIRS)) | \
duke@0 584 ($(CD) $(JDK_IMAGE_DIR) && $(TAR) -xf -)
duke@0 585
phh@3057 586 copy_fastdebug_jdk::
duke@0 587 $(RM) -r $(JDK_IMAGE_DIR)/fastdebug
duke@0 588 $(MKDIR) -p $(JDK_IMAGE_DIR)/fastdebug
duke@0 589 if [ -d $(JDK_IMPORT_PATH)/fastdebug ] ; then \
duke@0 590 ($(CD) $(JDK_IMPORT_PATH)/fastdebug && \
coleenp@113 591 $(TAR) -cf - $(JDK_DIRS)) | \
duke@0 592 ($(CD) $(JDK_IMAGE_DIR)/fastdebug && $(TAR) -xf -) ; \
duke@0 593 else \
duke@0 594 ($(CD) $(JDK_IMPORT_PATH) && \
coleenp@113 595 $(TAR) -cf - $(JDK_DIRS)) | \
duke@0 596 ($(CD) $(JDK_IMAGE_DIR)/fastdebug && $(TAR) -xf -) ; \
duke@0 597 fi
duke@0 598
phh@3057 599 copy_debug_jdk::
duke@0 600 $(RM) -r $(JDK_IMAGE_DIR)/debug
duke@0 601 $(MKDIR) -p $(JDK_IMAGE_DIR)/debug
duke@0 602 if [ -d $(JDK_IMPORT_PATH)/debug ] ; then \
duke@0 603 ($(CD) $(JDK_IMPORT_PATH)/debug && \
coleenp@113 604 $(TAR) -cf - $(JDK_DIRS)) | \
duke@0 605 ($(CD) $(JDK_IMAGE_DIR)/debug && $(TAR) -xf -) ; \
duke@0 606 elif [ -d $(JDK_IMPORT_PATH)/fastdebug ] ; then \
duke@0 607 ($(CD) $(JDK_IMPORT_PATH)/fastdebug && \
coleenp@113 608 $(TAR) -cf - $(JDK_DIRS)) | \
duke@0 609 ($(CD) $(JDK_IMAGE_DIR)/debug && $(TAR) -xf -) ; \
duke@0 610 else \
duke@0 611 ($(CD) $(JDK_IMPORT_PATH) && \
coleenp@113 612 $(TAR) -cf - $(JDK_DIRS)) | \
duke@0 613 ($(CD) $(JDK_IMAGE_DIR)/debug && $(TAR) -xf -) ; \
duke@0 614 fi
duke@0 615
duke@0 616 #
duke@0 617 # Check target
duke@0 618 #
duke@0 619 check: variable_check
duke@0 620
duke@0 621 #
duke@0 622 # Help target
duke@0 623 #
duke@0 624 help: intro_help target_help variable_help notes_help examples_help
duke@0 625
duke@0 626 # Intro help message
duke@0 627 intro_help:
duke@0 628 @$(ECHO) \
duke@0 629 "Makefile for the Hotspot workspace."
duke@0 630 @$(ECHO) \
duke@0 631 "Default behavior is to build and create an export area for the j2se builds."
duke@0 632
duke@0 633 # Target help
duke@0 634 target_help:
duke@0 635 @$(ECHO) "help: This help message"
duke@0 636 @$(ECHO) "all: Same as: all_product all_fastdebug"
duke@0 637 @$(ECHO) "world: Same as: all create_jdk"
duke@0 638 @$(ECHO) "all_product: Same as: product product1 export_product"
duke@0 639 @$(ECHO) "all_fastdebug: Same as: fastdebug fastdebug1 export_fastdebug"
duke@0 640 @$(ECHO) "all_debug: Same as: jvmg jvmg1 export_debug"
duke@0 641 @$(ECHO) "all_optimized: Same as: optimized optimized1 export_optimized"
duke@0 642 @$(ECHO) "clean: Clean all areas"
duke@0 643 @$(ECHO) "export_product: Export product files to EXPORT_PATH"
duke@0 644 @$(ECHO) "export_fastdebug: Export fastdebug files to EXPORT_PATH"
duke@0 645 @$(ECHO) "export_debug: Export debug files to EXPORT_PATH"
duke@0 646 @$(ECHO) "export_optimized: Export optimized files to EXPORT_PATH"
duke@0 647 @$(ECHO) "create_jdk: Create JDK image, export all files into it"
duke@0 648 @$(ECHO) "update_jdk: Update JDK image with fresh exported files"
duke@0 649 @$(ECHO) " "
jprovino@3730 650 @$(ECHO) "Other targets are:"
duke@0 651 @$(ECHO) " $(C1_VM_TARGETS)"
duke@0 652 @$(ECHO) " $(C2_VM_TARGETS)"
jprovino@3730 653 @$(ECHO) " $(MINIMAL1_VM_TARGETS)"
duke@0 654
duke@0 655 # Variable help (only common ones used by this workspace)
duke@0 656 variable_help: variable_help_intro variable_list variable_help_end
duke@0 657 variable_help_intro:
duke@0 658 @$(ECHO) "--- Common Variables ---"
duke@0 659 variable_help_end:
duke@0 660 @$(ECHO) " "
duke@0 661 @$(ECHO) "--- Make Arguments ---"
duke@0 662 @$(ECHO) "MAKE_ARGS=$(MAKE_ARGS)"
duke@0 663
duke@0 664 # One line descriptions for the variables
duke@0 665 SLASH_JAVA.desc = Root of all build tools, e.g. /java or J:
duke@0 666 OUTPUTDIR.desc = Output directory, default is build/<osname>
duke@0 667 BOOTDIR.desc = JDK used to compile agent java source and test with
duke@0 668 JDK_IMPORT_PATH.desc = Promoted JDK to copy for 'create_jdk'
twisti@3132 669 JDK_IMAGE_DIR.desc = Directory to place JDK to copy
duke@0 670 EXPORT_PATH.desc = Directory to place files to export for JDK build
duke@0 671
duke@0 672 # Make variables to print out (description and value)
duke@0 673 VARIABLE_PRINTVAL_LIST += \
duke@0 674 SLASH_JAVA \
duke@0 675 OUTPUTDIR \
duke@0 676 BOOTDIR \
duke@0 677 JDK_IMPORT_PATH \
twisti@3132 678 JDK_IMAGE_DIR \
duke@0 679 EXPORT_PATH
duke@0 680
duke@0 681 # Make variables that should refer to directories that exist
duke@0 682 VARIABLE_CHECKDIR_LIST += \
duke@0 683 SLASH_JAVA \
duke@0 684 BOOTDIR \
duke@0 685 JDK_IMPORT_PATH
duke@0 686
duke@0 687 # For pattern rules below, so all are treated the same
duke@0 688 DO_PRINTVAL_LIST=$(VARIABLE_PRINTVAL_LIST:%=%.printval)
duke@0 689 DO_CHECKDIR_LIST=$(VARIABLE_CHECKDIR_LIST:%=%.checkdir)
duke@0 690
duke@0 691 # Complete variable check
duke@0 692 variable_check: $(DO_CHECKDIR_LIST)
duke@0 693 variable_list: $(DO_PRINTVAL_LIST) variable_check
duke@0 694
duke@0 695 # Pattern rule for printing out a variable
duke@0 696 %.printval:
duke@0 697 @$(ECHO) " ALT_$* - $($*.desc)"
duke@0 698 @$(ECHO) " $*=$($*)"
duke@0 699
duke@0 700 # Pattern rule for checking to see if a variable with a directory exists
duke@0 701 %.checkdir:
duke@0 702 @if [ ! -d $($*) ] ; then \
duke@0 703 $(ECHO) "WARNING: $* does not exist, try $(MAKE) sanity"; \
duke@0 704 fi
duke@0 705
duke@0 706 # Pattern rule for checking to see if a variable with a file exists
duke@0 707 %.checkfil:
duke@0 708 @if [ ! -f $($*) ] ; then \
duke@0 709 $(ECHO) "WARNING: $* does not exist, try $(MAKE) sanity"; \
duke@0 710 fi
duke@0 711
duke@0 712 # Misc notes on help
duke@0 713 notes_help:
duke@0 714 @$(ECHO) \
duke@0 715 "--- Notes --- "
duke@0 716 @$(ECHO) \
duke@0 717 "- JDK_IMPORT_PATH must refer to a compatible build, not all past promoted"
duke@0 718 @$(ECHO) \
duke@0 719 " builds or previous release JDK builds will work."
duke@0 720 @$(ECHO) \
duke@0 721 "- The fastest builds have been when the workspace and the BOOTDIR are on"
duke@0 722 @$(ECHO) \
duke@0 723 " local disk."
duke@0 724
duke@0 725 examples_help:
duke@0 726 @$(ECHO) \
duke@0 727 "--- Examples --- "
duke@0 728 @$(ECHO) \
duke@0 729 " $(MAKE) all"
duke@0 730 @$(ECHO) \
duke@0 731 " $(MAKE) world"
duke@0 732 @$(ECHO) \
duke@0 733 " $(MAKE) ALT_BOOTDIR=/opt/java/jdk$(PREVIOUS_JDK_VERSION)"
duke@0 734 @$(ECHO) \
duke@0 735 " $(MAKE) ALT_JDK_IMPORT_PATH=/opt/java/jdk$(JDK_VERSION)"
duke@0 736
phh@3057 737 # Universal build support
phh@3057 738 ifeq ($(OS_VENDOR), Darwin)
phh@3057 739 ifeq ($(MACOSX_UNIVERSAL),true)
phh@3057 740 include $(GAMMADIR)/make/$(OSNAME)/makefiles/universal.gmk
phh@3057 741 endif
phh@3057 742 endif
phh@3057 743
duke@0 744 # JPRT rule to build this workspace
duke@0 745 include $(GAMMADIR)/make/jprt.gmk
duke@0 746
duke@0 747 .PHONY: all world clobber clean help $(C1_VM_TARGETS) $(C2_VM_TARGETS) \
zgu@4057 748 $(MINIMAL1_VM_TARGETS) \
zgu@4057 749 generic_build1 generic_build2 generic_buildminimal1 generic_export \
duke@0 750 export_product export_fastdebug export_debug export_optimized \
duke@0 751 export_jdk_product export_jdk_fastdebug export_jdk_debug \
duke@0 752 create_jdk copy_jdk update_jdk test_jdk \
jprovino@3730 753 copy_product_jdk copy_fastdebug_jdk copy_debug_jdk \
jprovino@3730 754 $(HS_ALT_MAKE)/Makefile.make