1 #
   2 # Copyright (c) 2005, 2015, Oracle and/or its affiliates. All rights reserved.
   3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4 #
   5 # This code is free software; you can redistribute it and/or modify it
   6 # under the terms of the GNU General Public License version 2 only, as
   7 # published by the Free Software Foundation.
   8 #
   9 # This code is distributed in the hope that it will be useful, but WITHOUT
  10 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12 # version 2 for more details (a copy is included in the LICENSE file that
  13 # accompanied this code).
  14 #
  15 # You should have received a copy of the GNU General Public License version
  16 # 2 along with this work; if not, write to the Free Software Foundation,
  17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18 #
  19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20 # or visit www.oracle.com if you need additional information or have any
  21 # questions.
  22 #
  23 #
  24 
  25 # Top level gnumake file for hotspot builds
  26 #
  27 # Default is to build the both product images and construct an export dir.
  28 #  The default export directory name is `pwd`/export-$(PLATFORM).
  29 #
  30 #   Use: 'gnumake help' for more information.
  31 #
  32 # This makefile uses the default settings for where to find compilers and
  33 #    tools, and obeys the ALT_* variable settings used by the other JDK
  34 #    workspaces.
  35 #
  36 
  37 # Expected/optional make variables defined on make command line:
  38 #  LP64=1 or ARCH_DATA_MODEL=64 for 64bit build
  39 #
  40 # Expected/optional make variables or environment variables:
  41 #  ALT_SLASH_JAVA             Location of /java or J:
  42 #  ALT_BOOTDIR                Previous JDK home directory for javac compiler
  43 #  ALT_OUTPUTDIR              Output directory to use for hotspot build
  44 #  ALT_EXPORT_PATH            Directory to export hotspot build to
  45 #  ALT_JDK_IMPORT_PATH        Current JDK build (only for create_jdk rules)
  46 #  ALT_JDK_TARGET_IMPORT_PATH Current JDK build when cross-compiling
  47 #  ALT_BUILD_WIN_SA           Building SA on Windows is disabled by default.
  48 #                             Set ALT_BUILD_WIN_SA=1 to enable building SA on
  49 #                             Windows.
  50 # Version strings and numbers:
  51 #  VERSION_SHORT      Current JDK version (e.g. 9.0.0)
  52 #  JDK_PREVIOUS_VERSION Previous (bootdir) JDK version (e.g. 1.5.0) (Only needed
  53 #  to facilitate standalone build.)
  54 #  VERSION_STRING     Full version string to use (e.g. "9.0.0-ea-b42")
  55 #  VERSION_MAJOR Major number for version (e.g. 9)
  56 #  VERSION_MINOR Minor number for version (e.g. 0)
  57 #  VERSION_SECURITY Security number for version (e.g. 0)




  58 #
  59 
  60 # Default is build both product fastdebug and create export area
  61 
  62 # Allow to build HotSpot in local directory from sources specified by GAMMADIR.
  63 # After make/defs.make GAMMADIR is defined.
  64 ifdef GAMMADIR
  65   ifndef ALT_OUTPUTDIR
  66     ALT_OUTPUTDIR := $(shell pwd)
  67   endif
  68   include $(GAMMADIR)/make/defs.make
  69 else
  70   include defs.make
  71 endif
  72 
  73 include $(GAMMADIR)/make/altsrc.make
  74 
  75 -include $(HS_ALT_MAKE)/Makefile.make
  76 
  77 ifneq ($(ALT_OUTPUTDIR),)
  78   ALT_OUT=ALT_OUTPUTDIR=$(ALT_OUTPUTDIR)
  79 else
  80   ALT_OUT=
  81 endif
  82 
  83 # Typical C1/C2 targets made available with this Makefile
  84 C1_VM_TARGETS=product1 fastdebug1 optimized1 debug1
  85 C2_VM_TARGETS=product  fastdebug  optimized  debug
  86 CORE_VM_TARGETS=productcore fastdebugcore optimizedcore debugcore
  87 ZERO_VM_TARGETS=productzero fastdebugzero optimizedzero debugzero
  88 SHARK_VM_TARGETS=productshark fastdebugshark optimizedshark debugshark
  89 MINIMAL1_VM_TARGETS=productminimal1 fastdebugminimal1 debugminimal1
  90 
  91 COMMON_VM_PRODUCT_TARGETS=product product1 docs export_product
  92 COMMON_VM_FASTDEBUG_TARGETS=fastdebug fastdebug1 docs export_fastdebug
  93 COMMON_VM_DEBUG_TARGETS=debug debug1 docs export_debug
  94 COMMON_VM_OPTIMIZED_TARGETS=optimized optimized1 docs export_optimized
  95 
  96 # JDK directory list
  97 JDK_DIRS=bin include lib demo
  98 
  99 all:           all_product all_fastdebug
 100 
 101 ifeq ($(JVM_VARIANT_MINIMAL1),true)
 102 all_product:    productminimal1
 103 all_fastdebug:  fastdebugminimal1
 104 all_debug:      debugminimal1
 105 endif
 106 
 107 ifdef BUILD_CLIENT_ONLY
 108 all_product:   product1 docs export_product
 109 all_fastdebug: fastdebug1 docs export_fastdebug
 110 all_debug:     debug1 docs export_debug
 111 all_optimized: optimized1 docs export_optimized
 112 else
 113 ifeq ($(MACOSX_UNIVERSAL),true)
 114 all_product:   universal_product
 115 all_fastdebug: universal_fastdebug
 116 all_debug:     universal_debug
 117 all_optimized: universal_optimized
 118 else
 119 all_product:   $(COMMON_VM_PRODUCT_TARGETS)
 120 all_fastdebug: $(COMMON_VM_FASTDEBUG_TARGETS)
 121 all_debug:     $(COMMON_VM_DEBUG_TARGETS)
 122 all_optimized: $(COMMON_VM_OPTIMIZED_TARGETS)
 123 endif
 124 endif
 125 
 126 allzero:           all_productzero all_fastdebugzero
 127 all_productzero:   productzero docs export_product
 128 all_fastdebugzero: fastdebugzero docs export_fastdebug
 129 all_debugzero:     debugzero docs export_debug
 130 all_optimizedzero: optimizedzero docs export_optimized
 131 
 132 allshark:           all_productshark all_fastdebugshark
 133 all_productshark:   productshark docs export_product
 134 all_fastdebugshark: fastdebugshark docs export_fastdebug
 135 all_debugshark:     debugshark docs export_debug
 136 all_optimizedshark: optimizedshark docs export_optimized
 137 
 138 allcore:           all_productcore all_fastdebugcore
 139 all_productcore:   productcore docs export_product
 140 all_fastdebugcore: fastdebugcore docs export_fastdebug
 141 all_debugcore:     debugcore docs export_debug
 142 all_optimizedcore: optimizedcore docs export_optimized
 143 
 144 # Do everything
 145 world:         all create_jdk
 146 
 147 # Build or export docs
 148 docs:
 149 ifeq ($(OSNAME),windows)
 150         @$(ECHO) "No docs ($(VM_TARGET)) for windows"
 151 else
 152 # We specify 'BUILD_FLAVOR=product' so that the proper
 153 # ENABLE_FULL_DEBUG_SYMBOLS value is used.
 154         $(CD) $(OUTPUTDIR); \
 155             $(MAKE) -f $(ABS_OS_MAKEFILE) \
 156                       $(MAKE_ARGS) BUILD_FLAVOR=product docs
 157 endif
 158 
 159 # Output directories
 160 C1_DIR      =$(OUTPUTDIR)/$(VM_PLATFORM)_compiler1
 161 C2_DIR      =$(OUTPUTDIR)/$(VM_PLATFORM)_compiler2
 162 CORE_DIR    =$(OUTPUTDIR)/$(VM_PLATFORM)_core
 163 MINIMAL1_DIR=$(OUTPUTDIR)/$(VM_PLATFORM)_minimal1
 164 ZERO_DIR    =$(OUTPUTDIR)/$(VM_PLATFORM)_zero
 165 SHARK_DIR   =$(OUTPUTDIR)/$(VM_PLATFORM)_shark
 166 
 167 # Build variation of hotspot
 168 $(C1_VM_TARGETS):
 169         $(CD) $(GAMMADIR)/make; \
 170         $(MAKE) BUILD_DIR=$(C1_DIR) BUILD_FLAVOR=$(@:%1=%) VM_TARGET=$@ generic_build1 $(ALT_OUT)
 171 
 172 $(C2_VM_TARGETS):
 173         $(CD) $(GAMMADIR)/make; \
 174         $(MAKE) BUILD_DIR=$(C2_DIR) BUILD_FLAVOR=$@ VM_TARGET=$@ generic_build2 $(ALT_OUT)
 175 
 176 $(CORE_VM_TARGETS):
 177         $(CD) $(GAMMADIR)/make; \
 178         $(MAKE) BUILD_DIR=$(CORE_DIR) BUILD_FLAVOR=$(@:%core=%) VM_TARGET=$@ generic_buildcore $(ALT_OUT)
 179 
 180 $(ZERO_VM_TARGETS):
 181         $(CD) $(GAMMADIR)/make; \
 182         $(MAKE) BUILD_DIR=$(ZERO_DIR) BUILD_FLAVOR=$(@:%zero=%) VM_TARGET=$@ generic_buildzero $(ALT_OUT)
 183 
 184 $(SHARK_VM_TARGETS):
 185         $(CD) $(GAMMADIR)/make; \
 186         $(MAKE) BUILD_DIR=$(SHARK_DIR) BUILD_FLAVOR=$(@:%shark=%) VM_TARGET=$@ generic_buildshark $(ALT_OUT)
 187 
 188 $(MINIMAL1_VM_TARGETS):
 189         $(CD) $(GAMMADIR)/make; \
 190         $(MAKE) BUILD_DIR=$(MINIMAL1_DIR) BUILD_FLAVOR=$(@:%minimal1=%) VM_TARGET=$@ generic_buildminimal1 $(ALT_OUT)
 191 
 192 # Install hotspot script in build directory
 193 HOTSPOT_SCRIPT=$(BUILD_DIR)/$(BUILD_FLAVOR)/hotspot
 194 $(HOTSPOT_SCRIPT): $(GAMMADIR)/make/hotspot.script
 195         $(QUIETLY) $(MKDIR) -p $(BUILD_DIR)/$(BUILD_FLAVOR)
 196         $(QUIETLY) cat $< | sed -e 's|@@LIBARCH@@|$(LIBARCH)|g' | sed -e 's|@@JDK_IMPORT_PATH@@|$(JDK_IMPORT_PATH)|g' > $@
 197         $(QUIETLY) chmod +x $@
 198 
 199 # Build compiler1 (client) rule, different for platforms
 200 generic_build1: $(HOTSPOT_SCRIPT)
 201         $(MKDIR) -p $(OUTPUTDIR)
 202 ifeq ($(OSNAME),windows)
 203   ifeq ($(ARCH_DATA_MODEL), 32)
 204         $(CD) $(OUTPUTDIR); \
 205             $(NMAKE) -f $(ABS_OS_MAKEFILE) \
 206                       Variant=compiler1 \
 207                       WorkSpace=$(ABS_GAMMADIR) \
 208                       BootStrapDir=$(ABS_BOOTDIR) \
 209                       BuildUser=$(USERNAME) \
 210                       $(MAKE_ARGS) $(VM_TARGET:%1=%)
 211   else
 212         @$(ECHO) "No compiler1 ($(VM_TARGET)) for ARCH_DATA_MODEL=$(ARCH_DATA_MODEL)"
 213   endif
 214 else
 215   ifeq ($(ARCH_DATA_MODEL), 32)
 216         $(CD) $(OUTPUTDIR); \
 217             $(MAKE) -f $(ABS_OS_MAKEFILE) \
 218                       $(MAKE_ARGS) $(VM_TARGET)
 219   else
 220         @$(ECHO) "No compiler1 ($(VM_TARGET)) for ARCH_DATA_MODEL=$(ARCH_DATA_MODEL)"
 221   endif
 222 endif
 223 
 224 # Build compiler2 (server) rule, different for platforms
 225 generic_build2: $(HOTSPOT_SCRIPT)
 226         $(MKDIR) -p $(OUTPUTDIR)
 227 ifeq ($(OSNAME),windows)
 228         $(CD) $(OUTPUTDIR); \
 229             $(NMAKE) -f $(ABS_OS_MAKEFILE) \
 230                       Variant=compiler2 \
 231                       WorkSpace=$(ABS_GAMMADIR) \
 232                       BootStrapDir=$(ABS_BOOTDIR) \
 233                       BuildUser=$(USERNAME) \
 234                       $(MAKE_ARGS) $(VM_TARGET)
 235 else
 236         $(CD) $(OUTPUTDIR); \
 237             $(MAKE) -f $(ABS_OS_MAKEFILE) \
 238                       $(MAKE_ARGS) $(VM_TARGET)
 239 endif
 240 
 241 generic_buildcore: $(HOTSPOT_SCRIPT)
 242 ifeq ($(HS_ARCH),ppc)
 243   ifeq ($(ARCH_DATA_MODEL),64)
 244         $(MKDIR) -p $(OUTPUTDIR)
 245         $(CD) $(OUTPUTDIR); \
 246                 $(MAKE) -f $(ABS_OS_MAKEFILE) \
 247                         $(MAKE_ARGS) $(VM_TARGET)
 248   else
 249         @$(ECHO) "No ($(VM_TARGET)) for ppc ARCH_DATA_MODEL=$(ARCH_DATA_MODEL)"
 250   endif
 251 else
 252         @$(ECHO) "No ($(VM_TARGET)) for $(HS_ARCH)"
 253 endif
 254 
 255 generic_buildzero: $(HOTSPOT_SCRIPT)
 256         $(MKDIR) -p $(OUTPUTDIR)
 257         $(CD) $(OUTPUTDIR); \
 258                 $(MAKE) -f $(ABS_OS_MAKEFILE) \
 259                         $(MAKE_ARGS) $(VM_TARGET)
 260 
 261 generic_buildshark: $(HOTSPOT_SCRIPT)
 262         $(MKDIR) -p $(OUTPUTDIR)
 263         $(CD) $(OUTPUTDIR); \
 264                 $(MAKE) -f $(ABS_OS_MAKEFILE) \
 265                         $(MAKE_ARGS) $(VM_TARGET)
 266 
 267 generic_buildminimal1: $(HOTSPOT_SCRIPT)
 268 ifeq ($(JVM_VARIANT_MINIMAL1),true)
 269         $(MKDIR) -p $(OUTPUTDIR)
 270   ifeq ($(ARCH_DATA_MODEL), 32)
 271     ifeq ($(OSNAME),windows)
 272         $(ECHO) "No ($(VM_TARGET)) for $(OSNAME) ARCH_DATA_MODEL=$(ARCH_DATA_MODEL)" ;
 273     else
 274       ifeq ($(OSNAME),solaris)
 275         $(ECHO) "No ($(VM_TARGET)) for $(OSNAME) ARCH_DATA_MODEL=$(ARCH_DATA_MODEL)" ;
 276       else
 277         $(CD) $(OUTPUTDIR); \
 278         $(MAKE) -f $(ABS_OS_MAKEFILE) $(MAKE_ARGS) $(VM_TARGET) ;
 279       endif
 280     endif
 281   else
 282             @$(ECHO) "No ($(VM_TARGET)) for $(OSNAME) ARCH_DATA_MODEL=$(ARCH_DATA_MODEL)"
 283   endif
 284 else
 285         @$(ECHO) "Error: trying to build a minimal target but JVM_VARIANT_MINIMAL1 is not true."
 286 endif
 287 
 288 remove_old_debuginfo:
 289 ifeq ($(JVM_VARIANT_CLIENT), true)
 290   ifeq ($(ZIP_DEBUGINFO_FILES),1)
 291     ifeq ($(OSNAME), windows)
 292           $(RM) -f $(EXPORT_CLIENT_DIR)/jvm.map $(EXPORT_CLIENT_DIR)/jvm.pdb
 293     else
 294           $(RM) -f $(EXPORT_CLIENT_DIR)/libjvm.debuginfo
 295     endif
 296   else
 297         $(RM) -f $(EXPORT_CLIENT_DIR)/libjvm.diz
 298   endif
 299 endif
 300 ifeq ($(findstring true, $(JVM_VARIANT_SERVER) $(JVM_VARIANT_ZERO) $(JVM_VARIANT_ZEROSHARK)), true)
 301   ifeq ($(ZIP_DEBUGINFO_FILES),1)
 302     ifeq ($(OSNAME), windows)
 303           $(RM) -f $(EXPORT_SERVER_DIR)/jvm.map $(EXPORT_SERVER_DIR)/jvm.pdb
 304     else
 305       ifeq ($(OS_VENDOR), Darwin)
 306             $(RM) -rf $(EXPORT_SERVER_DIR)/libjvm.dylib.dSYM
 307       else
 308             $(RM) -f $(EXPORT_SERVER_DIR)/libjvm.debuginfo
 309       endif
 310     endif
 311   else
 312         $(RM) -f $(EXPORT_SERVER_DIR)/libjvm.diz
 313   endif
 314 endif
 315 ifeq ($(JVM_VARIANT_MINIMAL1),true)
 316   ifeq ($(ZIP_DEBUGINFO_FILES),1)
 317         $(RM) -f $(EXPORT_MINIMAL_DIR)/libjvm.debuginfo
 318   else
 319         $(RM) -f $(EXPORT_MINIMAL_DIR)/libjvm.diz
 320   endif
 321 endif
 322 
 323 # Export file rule
 324 generic_export: $(EXPORT_LIST) remove_old_debuginfo
 325 
 326 export_product:
 327         $(MAKE) BUILD_FLAVOR=$(@:export_%=%) generic_export
 328 export_fastdebug:
 329         $(MAKE) BUILD_FLAVOR=$(@:export_%=%) EXPORT_SUBDIR=/$(@:export_%=%) generic_export
 330 export_debug:
 331         $(MAKE) BUILD_FLAVOR=$(@:export_%=%) EXPORT_SUBDIR=/$(@:export_%=%) generic_export
 332 export_optimized:
 333         $(MAKE) BUILD_FLAVOR=$(@:export_%=%) EXPORT_SUBDIR=/$(@:export_%=%) generic_export
 334 
 335 export_product_jdk::
 336         $(MAKE) BUILD_FLAVOR=$(@:export_%_jdk=%) ALT_EXPORT_PATH=$(JDK_IMAGE_DIR) generic_export
 337 export_optimized_jdk::
 338         $(MAKE) BUILD_FLAVOR=$(@:export_%_jdk=%) ALT_EXPORT_PATH=$(JDK_IMAGE_DIR)/$(@:export_%_jdk=%) generic_export
 339 export_fastdebug_jdk::
 340         $(MAKE) BUILD_FLAVOR=$(@:export_%_jdk=%) ALT_EXPORT_PATH=$(JDK_IMAGE_DIR)/$(@:export_%_jdk=%) generic_export
 341 export_debug_jdk::
 342         $(MAKE) BUILD_FLAVOR=$(@:export_%_jdk=%) ALT_EXPORT_PATH=$(JDK_IMAGE_DIR)/$(@:export_%_jdk=%) generic_export
 343 
 344 # Export file copy rules
 345 XUSAGE=$(HS_SRC_DIR)/share/vm/Xusage.txt
 346 DOCS_DIR=$(OUTPUTDIR)/$(VM_PLATFORM)_docs
 347 C1_BUILD_DIR      =$(C1_DIR)/$(BUILD_FLAVOR)
 348 C2_BUILD_DIR      =$(C2_DIR)/$(BUILD_FLAVOR)
 349 CORE_BUILD_DIR    =$(CORE_DIR)/$(BUILD_FLAVOR)
 350 MINIMAL1_BUILD_DIR=$(MINIMAL1_DIR)/$(BUILD_FLAVOR)
 351 ZERO_BUILD_DIR    =$(ZERO_DIR)/$(BUILD_FLAVOR)
 352 SHARK_BUILD_DIR   =$(SHARK_DIR)/$(BUILD_FLAVOR)
 353 
 354 # Server (C2)
 355 ifeq ($(JVM_VARIANT_SERVER), true)
 356 # Common
 357 $(EXPORT_SERVER_DIR)/%.diz:                     $(C2_BUILD_DIR)/%.diz
 358         $(install-file)
 359 $(EXPORT_LIB_DIR)/%.jar:                        $(C2_BUILD_DIR)/../generated/%.jar
 360         $(install-file)
 361 $(EXPORT_INCLUDE_DIR)/%:                        $(C2_BUILD_DIR)/../generated/jvmtifiles/%
 362         $(install-file)
 363 # Windows
 364 $(EXPORT_SERVER_DIR)/%.dll:                     $(C2_BUILD_DIR)/%.dll
 365         $(install-file)
 366 $(EXPORT_SERVER_DIR)/%.pdb:                     $(C2_BUILD_DIR)/%.pdb
 367         $(install-file)
 368 $(EXPORT_SERVER_DIR)/%.map:                     $(C2_BUILD_DIR)/%.map
 369         $(install-file)
 370 $(EXPORT_LIB_DIR)/%.lib:                        $(C2_BUILD_DIR)/%.lib
 371         $(install-file)
 372 $(EXPORT_BIN_DIR)/%.diz:                        $(C2_BUILD_DIR)/%.diz
 373         $(install-file)
 374 $(EXPORT_BIN_DIR)/%.dll:                        $(C2_BUILD_DIR)/%.dll
 375         $(install-file)
 376 $(EXPORT_BIN_DIR)/%.pdb:                        $(C2_BUILD_DIR)/%.pdb
 377         $(install-file)
 378 $(EXPORT_BIN_DIR)/%.map:                        $(C2_BUILD_DIR)/%.map
 379         $(install-file)
 380 # Unix
 381 $(EXPORT_LIB_ARCH_DIR)/%.$(LIBRARY_SUFFIX): $(C2_BUILD_DIR)/%.$(LIBRARY_SUFFIX)
 382         $(install-file)
 383 $(EXPORT_SERVER_DIR)/%.$(LIBRARY_SUFFIX):       $(C2_BUILD_DIR)/%.$(LIBRARY_SUFFIX)
 384         $(install-file)
 385 $(EXPORT_SERVER_DIR)/64/%.$(LIBRARY_SUFFIX):    $(C2_BUILD_DIR)/%.$(LIBRARY_SUFFIX)
 386         $(install-file)
 387 $(EXPORT_LIB_ARCH_DIR)/%.debuginfo:     $(C2_BUILD_DIR)/%.debuginfo
 388         $(install-file)
 389 $(EXPORT_SERVER_DIR)/%.debuginfo:               $(C2_BUILD_DIR)/%.debuginfo
 390         $(install-file)
 391 $(EXPORT_SERVER_DIR)/64/%.debuginfo:            $(C2_BUILD_DIR)/%.debuginfo
 392         $(install-file)
 393 $(EXPORT_LIB_ARCH_DIR)/%.diz:           $(C2_BUILD_DIR)/%.diz
 394         $(install-file)
 395 $(EXPORT_SERVER_DIR)/64/%.diz:                  $(C2_BUILD_DIR)/%.diz
 396         $(install-file)
 397 # MacOS X
 398 $(EXPORT_LIB_ARCH_DIR)/%.dSYM:          $(C2_BUILD_DIR)/%.dSYM
 399         $(install-dir)
 400 $(EXPORT_SERVER_DIR)/%.dSYM:                    $(C2_BUILD_DIR)/%.dSYM
 401         $(install-dir)
 402 endif
 403 
 404 # Client (C1)
 405 ifeq ($(JVM_VARIANT_CLIENT), true)
 406 # Common
 407 $(EXPORT_CLIENT_DIR)/%.diz:                     $(C1_BUILD_DIR)/%.diz
 408         $(install-file)
 409 $(EXPORT_LIB_DIR)/%.jar:                        $(C1_BUILD_DIR)/../generated/%.jar
 410         $(install-file)
 411 $(EXPORT_INCLUDE_DIR)/%:                        $(C1_BUILD_DIR)/../generated/jvmtifiles/%
 412         $(install-file)
 413 # Windows
 414 $(EXPORT_CLIENT_DIR)/%.dll:                     $(C1_BUILD_DIR)/%.dll
 415         $(install-file)
 416 $(EXPORT_CLIENT_DIR)/%.pdb:                     $(C1_BUILD_DIR)/%.pdb
 417         $(install-file)
 418 $(EXPORT_CLIENT_DIR)/%.map:                     $(C1_BUILD_DIR)/%.map
 419         $(install-file)
 420 $(EXPORT_LIB_DIR)/%.lib:                        $(C1_BUILD_DIR)/%.lib
 421         $(install-file)
 422 $(EXPORT_BIN_DIR)/%.diz:                        $(C1_BUILD_DIR)/%.diz
 423         $(install-file)
 424 $(EXPORT_BIN_DIR)/%.dll:                        $(C1_BUILD_DIR)/%.dll
 425         $(install-file)
 426 $(EXPORT_BIN_DIR)/%.pdb:                        $(C1_BUILD_DIR)/%.pdb
 427         $(install-file)
 428 $(EXPORT_BIN_DIR)/%.map:                        $(C1_BUILD_DIR)/%.map
 429         $(install-file)
 430 # Unix
 431 $(EXPORT_LIB_ARCH_DIR)/%.$(LIBRARY_SUFFIX): $(C1_BUILD_DIR)/%.$(LIBRARY_SUFFIX)
 432         $(install-file)
 433 $(EXPORT_CLIENT_DIR)/%.$(LIBRARY_SUFFIX):       $(C1_BUILD_DIR)/%.$(LIBRARY_SUFFIX)
 434         $(install-file)
 435 $(EXPORT_CLIENT_DIR)/64/%.$(LIBRARY_SUFFIX):    $(C1_BUILD_DIR)/%.$(LIBRARY_SUFFIX)
 436         $(install-file)
 437 $(EXPORT_LIB_ARCH_DIR)/%.debuginfo:     $(C1_BUILD_DIR)/%.debuginfo
 438         $(install-file)
 439 $(EXPORT_CLIENT_DIR)/%.debuginfo:               $(C1_BUILD_DIR)/%.debuginfo
 440         $(install-file)
 441 $(EXPORT_CLIENT_DIR)/64/%.debuginfo:            $(C1_BUILD_DIR)/%.debuginfo
 442         $(install-file)
 443 $(EXPORT_LIB_ARCH_DIR)/%.diz:           $(C1_BUILD_DIR)/%.diz
 444         $(install-file)
 445 $(EXPORT_CLIENT_DIR)/64/%.diz:                  $(C1_BUILD_DIR)/%.diz
 446         $(install-file)
 447 # MacOS X
 448 $(EXPORT_LIB_ARCH_DIR)/%.dSYM:          $(C1_BUILD_DIR)/%.dSYM
 449         $(install-dir)
 450 $(EXPORT_CLIENT_DIR)/%.dSYM:                    $(C1_BUILD_DIR)/%.dSYM
 451         $(install-dir)
 452 endif
 453 
 454 # Minimal1
 455 ifeq ($(JVM_VARIANT_MINIMAL1), true)
 456 # Common
 457 $(EXPORT_MINIMAL_DIR)/%.diz:                    $(MINIMAL1_BUILD_DIR)/%.diz
 458         $(install-file)
 459 $(EXPORT_LIB_DIR)/%.jar:                        $(MINIMAL1_BUILD_DIR)/../generated/%.jar
 460         $(install-file)
 461 $(EXPORT_INCLUDE_DIR)/%:                        $(MINIMAL1_BUILD_DIR)/../generated/jvmtifiles/%
 462         $(install-file)
 463 # Windows
 464 $(EXPORT_MINIMAL_DIR)/%.dll:                    $(MINIMAL1_BUILD_DIR)/%.dll
 465         $(install-file)
 466 $(EXPORT_MINIMAL_DIR)/%.pdb:                    $(MINIMAL1_BUILD_DIR)/%.pdb
 467         $(install-file)
 468 $(EXPORT_MINIMAL_DIR)/%.map:                    $(MINIMAL1_BUILD_DIR)/%.map
 469         $(install-file)
 470 $(EXPORT_LIB_DIR)/%.lib:                        $(MINIMAL1_BUILD_DIR)/%.lib
 471         $(install-file)
 472 $(EXPORT_BIN_DIR)/%.diz:                        $(MINIMAL1_BUILD_DIR)/%.diz
 473         $(install-file)
 474 $(EXPORT_BIN_DIR)/%.dll:                        $(MINIMAL1_BUILD_DIR)/%.dll
 475         $(install-file)
 476 $(EXPORT_BIN_DIR)/%.pdb:                        $(MINIMAL1_BUILD_DIR)/%.pdb
 477         $(install-file)
 478 $(EXPORT_BIN_DIR)/%.map:                        $(MINIMAL1_BUILD_DIR)/%.map
 479         $(install-file)
 480 # Unix
 481 $(EXPORT_LIB_ARCH_DIR)/%.$(LIBRARY_SUFFIX):     $(MINIMAL1_BUILD_DIR)/%.$(LIBRARY_SUFFIX)
 482         $(install-file)
 483 $(EXPORT_MINIMAL_DIR)/%.$(LIBRARY_SUFFIX):      $(MINIMAL1_BUILD_DIR)/%.$(LIBRARY_SUFFIX)
 484         $(install-file)
 485 $(EXPORT_MINIMAL_DIR)/64/%.$(LIBRARY_SUFFIX):   $(MINIMAL1_BUILD_DIR)/%.$(LIBRARY_SUFFIX)
 486         $(install-file)
 487 $(EXPORT_LIB_ARCH_DIR)/%.debuginfo:             $(MINIMAL1_BUILD_DIR)/%.debuginfo
 488         $(install-file)
 489 $(EXPORT_MINIMAL_DIR)/%.debuginfo:              $(MINIMAL1_BUILD_DIR)/%.debuginfo
 490         $(install-file)
 491 $(EXPORT_MINIMAL_DIR)/64/%.debuginfo:           $(MINIMAL1_BUILD_DIR)/%.debuginfo
 492         $(install-file)
 493 $(EXPORT_LIB_ARCH_DIR)/%.diz:           $(MINIMAL1_BUILD_DIR)/%.diz
 494         $(install-file)
 495 $(EXPORT_MINIMAL_DIR)/64/%.diz:                 $(MINIMAL1_BUILD_DIR)/%.diz
 496         $(install-file)
 497 # MacOS X does not support Minimal1 config
 498 endif
 499 
 500 # Zero
 501 ifeq ($(JVM_VARIANT_ZERO), true)
 502 # Common
 503 $(EXPORT_LIB_DIR)/%.jar:                        $(ZERO_BUILD_DIR)/../generated/%.jar
 504         $(install-file)
 505 $(EXPORT_INCLUDE_DIR)/%:                        $(ZERO_BUILD_DIR)/../generated/jvmtifiles/%
 506         $(install-file)
 507 # Unix
 508 $(EXPORT_LIB_ARCH_DIR)/%.$(LIBRARY_SUFFIX): $(ZERO_BUILD_DIR)/%.$(LIBRARY_SUFFIX)
 509         $(install-file)
 510 $(EXPORT_LIB_ARCH_DIR)/%.debuginfo:             $(ZERO_BUILD_DIR)/%.debuginfo
 511         $(install-file)
 512 $(EXPORT_LIB_ARCH_DIR)/%.diz:           $(ZERO_BUILD_DIR)/%.diz
 513         $(install-file)
 514 $(EXPORT_SERVER_DIR)/%.$(LIBRARY_SUFFIX):       $(ZERO_BUILD_DIR)/%.$(LIBRARY_SUFFIX)
 515         $(install-file)
 516 $(EXPORT_SERVER_DIR)/%.debuginfo:               $(ZERO_BUILD_DIR)/%.debuginfo
 517         $(install-file)
 518 $(EXPORT_SERVER_DIR)/%.diz:                     $(ZERO_BUILD_DIR)/%.diz
 519         $(install-file)
 520 # MacOS X
 521 $(EXPORT_LIB_ARCH_DIR)/%.dSYM:          $(ZERO_BUILD_DIR)/%.dSYM
 522         $(install-dir)
 523 $(EXPORT_SERVER_DIR)/%.dSYM:                    $(ZERO_BUILD_DIR)/%.dSYM
 524         $(install-dir)
 525 endif
 526 
 527 # Core
 528 ifeq ($(JVM_VARIANT_CORE), true)
 529 # Common
 530 $(EXPORT_LIB_DIR)/%.jar:                        $(CORE_BUILD_DIR)/../generated/%.jar
 531         $(install-file)
 532 $(EXPORT_INCLUDE_DIR)/%:                        $(CORE_BUILD_DIR)/../generated/jvmtifiles/%
 533         $(install-file)
 534 # Unix
 535 $(EXPORT_LIB_ARCH_DIR)/%.$(LIBRARY_SUFFIX):     $(CORE_BUILD_DIR)/%.$(LIBRARY_SUFFIX)
 536         $(install-file)
 537 $(EXPORT_LIB_ARCH_DIR)/%.debuginfo:             $(CORE_BUILD_DIR)/%.debuginfo
 538         $(install-file)
 539 $(EXPORT_LIB_ARCH_DIR)/%.diz:           $(CORE_BUILD_DIR)/%.diz
 540         $(install-file)
 541 $(EXPORT_SERVER_DIR)/%.$(LIBRARY_SUFFIX):       $(CORE_BUILD_DIR)/%.$(LIBRARY_SUFFIX)
 542         $(install-file)
 543 $(EXPORT_SERVER_DIR)/%.debuginfo:               $(CORE_BUILD_DIR)/%.debuginfo
 544         $(install-file)
 545 $(EXPORT_SERVER_DIR)/%.diz:                     $(CORE_BUILD_DIR)/%.diz
 546         $(install-file)
 547 endif
 548 
 549 # Shark
 550 ifeq ($(JVM_VARIANT_ZEROSHARK), true)
 551 # Common
 552 $(EXPORT_LIB_DIR)/%.jar:                        $(SHARK_BUILD_DIR)/../generated/%.jar
 553         $(install-file)
 554 $(EXPORT_INCLUDE_DIR)/%:                        $(SHARK_BUILD_DIR)/../generated/jvmtifiles/%
 555         $(install-file)
 556 # Unix
 557 $(EXPORT_LIB_ARCH_DIR)/%.$(LIBRARY_SUFFIX): $(SHARK_BUILD_DIR)/%.$(LIBRARY_SUFFIX)
 558         $(install-file)
 559 $(EXPORT_LIB_ARCH_DIR)/%.debuginfo):    $(SHARK_BUILD_DIR)/%.debuginfo
 560         $(install-file)
 561 $(EXPORT_LIB_ARCH_DIR)/%.diz:           $(SHARK_BUILD_DIR)/%.diz
 562         $(install-file)
 563 $(EXPORT_SERVER_DIR)/%.$(LIBRARY_SUFFIX):       $(SHARK_BUILD_DIR)/%.$(LIBRARY_SUFFIX)
 564         $(install-file)
 565 $(EXPORT_SERVER_DIR)/%.debuginfo:               $(SHARK_BUILD_DIR)/%.debuginfo
 566         $(install-file)
 567 $(EXPORT_SERVER_DIR)/%.diz:                     $(SHARK_BUILD_DIR)/%.diz
 568         $(install-file)
 569 # MacOS X
 570 $(EXPORT_LIB_ARCH_DIR)/%.dSYM:          $(SHARK_BUILD_DIR)/%.dSYM
 571         $(install-dir)
 572 $(EXPORT_SERVER_DIR)/%.dSYM:                    $(SHARK_BUILD_DIR)/%.dSYM
 573         $(install-dir)
 574 endif
 575 
 576 $(EXPORT_INCLUDE_DIR)/%: $(HS_SRC_DIR)/share/vm/code/%
 577         $(install-file)
 578 
 579 $(EXPORT_INCLUDE_DIR)/%: $(HS_SRC_DIR)/share/vm/prims/%
 580         $(install-file)
 581 
 582 HS_JNI_ARCH_SRC=$(call altsrc-replace,$(HS_COMMON_SRC)/cpu/$(HS_ARCH)/vm/jni_$(HS_ARCH).h)
 583 $(EXPORT_INCLUDE_DIR)/$(JDK_INCLUDE_SUBDIR)/jni_md.h: $(HS_JNI_ARCH_SRC)
 584         $(install-file)
 585 
 586 $(EXPORT_INCLUDE_DIR)/%: $(HS_SRC_DIR)/share/vm/services/%
 587         $(install-file)
 588 
 589 JFR_EXISTS=$(shell if [ -d $(HS_ALT_SRC) ]; then echo 1; else echo 0; fi)
 590 # export jfr.h
 591 ifeq ($JFR_EXISTS,1)
 592 $(EXPORT_INCLUDE_DIR)/%: $(HS_ALT_SRC)/share/vm/jfr/%
 593         $(install-file)
 594 else
 595 $(EXPORT_INCLUDE_DIR)/jfr.h:
 596 endif
 597 
 598 # Doc files (jvmti.html)
 599 $(EXPORT_DOCS_DIR)/platform/jvmti/%: $(DOCS_DIR)/%
 600         $(install-file)
 601 
 602 # Xusage file
 603 $(EXPORT_SERVER_DIR)/Xusage.txt $(EXPORT_CLIENT_DIR)/Xusage.txt $(EXPORT_MINIMAL_DIR)/Xusage.txt: $(XUSAGE)
 604         $(prep-target)
 605         $(RM) $@.temp
 606         $(SED) 's/\(separated by \)[;:]/\1$(PATH_SEP)/g' $< > $@.temp
 607         $(MV) $@.temp $@
 608 
 609 #
 610 # Clean rules
 611 #
 612 clobber clean: clean_build clean_export clean_jdk
 613 clean_build:
 614         $(RM) -r $(C1_DIR)
 615         $(RM) -r $(C2_DIR)
 616         $(RM) -r $(CORE_DIR)
 617         $(RM) -r $(ZERO_DIR)
 618         $(RM) -r $(SHARK_DIR)
 619         $(RM) -r $(MINIMAL1_DIR)
 620 clean_export:
 621         $(RM) -r $(EXPORT_PATH)
 622 clean_jdk:
 623         $(RM) -r $(JDK_IMAGE_DIR)
 624 
 625 #
 626 # Create JDK and place this build into it
 627 #
 628 create_jdk: copy_jdk update_jdk
 629 
 630 update_jdk: export_product_jdk export_fastdebug_jdk test_jdk
 631 
 632 copy_jdk: $(JDK_IMAGE_DIR)/jre/lib/rt.jar
 633 
 634 $(JDK_IMAGE_DIR)/jre/lib/rt.jar:
 635         $(RM) -r $(JDK_IMAGE_DIR)
 636         $(MKDIR) -p $(JDK_IMAGE_DIR)
 637         ($(CD) $(JDK_IMPORT_PATH) && \
 638          $(TAR) -cf - *) | \
 639          ($(CD) $(JDK_IMAGE_DIR) && $(TAR) -xf -)
 640 
 641 
 642 # Testing the built JVM
 643 RUN_JVM=JAVA_HOME=$(JDK_IMPORT_PATH) $(JDK_IMPORT_PATH)/bin/java -d$(ARCH_DATA_MODEL) -XXaltjvm=$(ALTJVM_DIR) -Dsun.java.launcher.is_altjvm=true
 644 generic_test:
 645         @$(ECHO) "Running with: $(ALTJVM_DIR)"
 646         @$(RUN_JVM) -Xinternalversion
 647         @$(RUN_JVM) -showversion -help
 648 
 649 # C2 test targets
 650 test_product test_optimized test_fastdebug test_debug:
 651         @$(MAKE) generic_test ALTJVM_DIR="$(C2_DIR)/$(@:test_%=%)"
 652 
 653 # C1 test targets
 654 test_product1 test_optimized1 test_fastdebug1 test_debug1:
 655   ifeq ($(ARCH_DATA_MODEL), 32)
 656         @$(MAKE) generic_test ALTJVM_DIR="$(C1_DIR)/$(@:test_%1=%)"
 657   else
 658         @$(ECHO) "No compiler1 ($(@:test_%=%)) for ARCH_DATA_MODEL=$(ARCH_DATA_MODEL)"
 659   endif
 660 
 661 # Zero test targets
 662 test_productzero test_optimizedzero test_fastdebugzero test_debugzero:
 663         @$(MAKE) generic_test ALTJVM_DIR="$(ZERO_DIR)/$(@:test_%zero=%)"
 664 
 665 # Shark test targets
 666 test_productshark test_optimizedshark test_fastdebugshark test_debugshark:
 667         @$(MAKE) generic_test ALTJVM_DIR="$(SHARK_DIR)/$(@:test_%shark=%)"
 668 
 669 # Minimal1 test targets
 670 test_productminimal1 test_optimizedminimal1 test_fastdebugminimal1 test_debugminimal1:
 671         @$(MAKE) generic_test ALTJVM_DIR="$(MINIMAL1_DIR)/$(@:test_%minimal1=%)"
 672 
 673 
 674 test_jdk:
 675   ifeq ($(JVM_VARIANT_CLIENT), true)
 676         $(JDK_IMAGE_DIR)/bin/java -d$(ARCH_DATA_MODEL) -client -Xinternalversion
 677         $(JDK_IMAGE_DIR)/bin/java -d$(ARCH_DATA_MODEL) -client -version
 678   endif
 679   ifeq ($(findstring true, $(JVM_VARIANT_SERVER)\
 680                 $(JVM_VARIANT_ZERO)$(JVM_VARIANT_ZEROSHARK)), true)
 681         $(JDK_IMAGE_DIR)/bin/java -d$(ARCH_DATA_MODEL) -server -Xinternalversion
 682         $(JDK_IMAGE_DIR)/bin/java -d$(ARCH_DATA_MODEL) -server -version
 683   endif
 684 
 685 copy_product_jdk::
 686         $(RM) -r $(JDK_IMAGE_DIR)
 687         $(MKDIR) -p $(JDK_IMAGE_DIR)
 688         ($(CD) $(JDK_IMPORT_PATH) && \
 689          $(TAR) -cf - $(JDK_DIRS)) | \
 690          ($(CD) $(JDK_IMAGE_DIR) && $(TAR) -xf -)
 691 
 692 copy_fastdebug_jdk::
 693         $(RM) -r $(JDK_IMAGE_DIR)/fastdebug
 694         $(MKDIR) -p $(JDK_IMAGE_DIR)/fastdebug
 695         if [ -d $(JDK_IMPORT_PATH)/fastdebug ] ; then \
 696           ($(CD) $(JDK_IMPORT_PATH)/fastdebug && \
 697            $(TAR) -cf - $(JDK_DIRS)) | \
 698            ($(CD) $(JDK_IMAGE_DIR)/fastdebug && $(TAR) -xf -) ; \
 699         else \
 700           ($(CD) $(JDK_IMPORT_PATH) && \
 701            $(TAR) -cf - $(JDK_DIRS)) | \
 702            ($(CD) $(JDK_IMAGE_DIR)/fastdebug && $(TAR) -xf -) ; \
 703         fi
 704 
 705 copy_debug_jdk::
 706         $(RM) -r $(JDK_IMAGE_DIR)/debug
 707         $(MKDIR) -p $(JDK_IMAGE_DIR)/debug
 708         if [ -d $(JDK_IMPORT_PATH)/debug ] ; then \
 709           ($(CD) $(JDK_IMPORT_PATH)/debug && \
 710            $(TAR) -cf - $(JDK_DIRS)) | \
 711            ($(CD) $(JDK_IMAGE_DIR)/debug && $(TAR) -xf -) ; \
 712         elif [ -d $(JDK_IMPORT_PATH)/fastdebug ] ; then \
 713           ($(CD) $(JDK_IMPORT_PATH)/fastdebug && \
 714            $(TAR) -cf - $(JDK_DIRS)) | \
 715            ($(CD) $(JDK_IMAGE_DIR)/debug && $(TAR) -xf -) ; \
 716         else \
 717           ($(CD) $(JDK_IMPORT_PATH) && \
 718            $(TAR) -cf - $(JDK_DIRS)) | \
 719            ($(CD) $(JDK_IMAGE_DIR)/debug && $(TAR) -xf -) ; \
 720         fi
 721 
 722 copy_optimized_jdk::
 723         $(RM) -r $(JDK_IMAGE_DIR)/optimized
 724         $(MKDIR) -p $(JDK_IMAGE_DIR)/optimized
 725         if [ -d $(JDK_IMPORT_PATH)/optimized ] ; then \
 726           ($(CD) $(JDK_IMPORT_PATH)/optimized && \
 727            $(TAR) -cf - $(JDK_DIRS)) | \
 728            ($(CD) $(JDK_IMAGE_DIR)/optimized && $(TAR) -xf -) ; \
 729         else \
 730           ($(CD) $(JDK_IMPORT_PATH) && \
 731            $(TAR) -cf - $(JDK_DIRS)) | \
 732            ($(CD) $(JDK_IMAGE_DIR)/optimized && $(TAR) -xf -) ; \
 733         fi
 734 
 735 #
 736 # Check target
 737 #
 738 check: variable_check
 739 
 740 #
 741 # Help target
 742 #
 743 help: intro_help target_help variable_help notes_help examples_help
 744 
 745 # Intro help message
 746 intro_help:
 747         @$(ECHO) \
 748 "Makefile for the Hotspot workspace."
 749         @$(ECHO) \
 750 "Default behavior is to build and create an export area for the j2se builds."
 751 
 752 # Target help
 753 target_help:
 754         @$(ECHO) "help:             This help message"
 755         @$(ECHO) "all:              Same as: all_product all_fastdebug"
 756         @$(ECHO) "world:            Same as: all create_jdk"
 757         @$(ECHO) "all_product:      Same as: product product1 export_product"
 758         @$(ECHO) "all_fastdebug:    Same as: fastdebug fastdebug1 export_fastdebug"
 759         @$(ECHO) "all_debug:        Same as: debug debug1 export_debug"
 760         @$(ECHO) "all_optimized:    Same as: optimized optimized1 export_optimized"
 761         @$(ECHO) "clean:            Clean all areas"
 762         @$(ECHO) "export_product:   Export product files to EXPORT_PATH"
 763         @$(ECHO) "export_fastdebug: Export fastdebug files to EXPORT_PATH"
 764         @$(ECHO) "export_debug:     Export debug files to EXPORT_PATH"
 765         @$(ECHO) "export_optimized: Export optimized files to EXPORT_PATH"
 766         @$(ECHO) "create_jdk:       Create JDK image, export all files into it"
 767         @$(ECHO) "update_jdk:       Update JDK image with fresh exported files"
 768         @$(ECHO) " "
 769         @$(ECHO) "Other targets are:"
 770         @$(ECHO) "   $(C1_VM_TARGETS)"
 771         @$(ECHO) "   $(C2_VM_TARGETS)"
 772         @$(ECHO) "   $(MINIMAL1_VM_TARGETS)"
 773 
 774 # Variable help (only common ones used by this workspace)
 775 variable_help: variable_help_intro variable_list variable_help_end
 776 variable_help_intro:
 777         @$(ECHO) "--- Common Variables ---"
 778 variable_help_end:
 779         @$(ECHO) " "
 780         @$(ECHO) "--- Make Arguments ---"
 781         @$(ECHO) "MAKE_ARGS=$(MAKE_ARGS)"
 782 
 783 # One line descriptions for the variables
 784 SLASH_JAVA.desc            = Root of all build tools, e.g. /java or J:
 785 OUTPUTDIR.desc             = Output directory, default is build/<osname>
 786 BOOTDIR.desc               = JDK used to compile agent java source and test with
 787 JDK_IMPORT_PATH.desc       = Promoted JDK to copy for 'create_jdk'
 788 JDK_IMAGE_DIR.desc         = Directory to place JDK to copy
 789 EXPORT_PATH.desc           = Directory to place files to export for JDK build
 790 
 791 # Make variables to print out (description and value)
 792 VARIABLE_PRINTVAL_LIST +=       \
 793     SLASH_JAVA                  \
 794     OUTPUTDIR                   \
 795     BOOTDIR                     \
 796     JDK_IMPORT_PATH             \
 797     JDK_IMAGE_DIR               \
 798     EXPORT_PATH
 799 
 800 # Make variables that should refer to directories that exist
 801 VARIABLE_CHECKDIR_LIST +=       \
 802     SLASH_JAVA                  \
 803     BOOTDIR                     \
 804     JDK_IMPORT_PATH
 805 
 806 # For pattern rules below, so all are treated the same
 807 DO_PRINTVAL_LIST=$(VARIABLE_PRINTVAL_LIST:%=%.printval)
 808 DO_CHECKDIR_LIST=$(VARIABLE_CHECKDIR_LIST:%=%.checkdir)
 809 
 810 # Complete variable check
 811 variable_check: $(DO_CHECKDIR_LIST)
 812 variable_list: $(DO_PRINTVAL_LIST) variable_check
 813 
 814 # Pattern rule for printing out a variable
 815 %.printval:
 816         @$(ECHO) "  ALT_$* - $($*.desc)"
 817         @$(ECHO) "        $*=$($*)"
 818 
 819 # Pattern rule for checking to see if a variable with a directory exists
 820 %.checkdir:
 821         @if [ ! -d $($*) ] ; then \
 822             $(ECHO) "WARNING: $* does not exist, try $(MAKE) sanity"; \
 823         fi
 824 
 825 # Pattern rule for checking to see if a variable with a file exists
 826 %.checkfil:
 827         @if [ ! -f $($*) ] ; then \
 828             $(ECHO) "WARNING: $* does not exist, try $(MAKE) sanity"; \
 829         fi
 830 
 831 # Misc notes on help
 832 notes_help:
 833         @$(ECHO) \
 834 "--- Notes --- "
 835         @$(ECHO) \
 836 "- JDK_IMPORT_PATH must refer to a compatible build, not all past promoted"
 837         @$(ECHO) \
 838 "        builds or previous release JDK builds will work."
 839         @$(ECHO) \
 840 "- The fastest builds have been when the workspace and the BOOTDIR are on"
 841         @$(ECHO) \
 842 "        local disk."
 843 
 844 examples_help:
 845         @$(ECHO) \
 846 "--- Examples --- "
 847         @$(ECHO) \
 848 "  $(MAKE) all"
 849         @$(ECHO) \
 850 "  $(MAKE) world"
 851         @$(ECHO) \
 852 "  $(MAKE) ALT_BOOTDIR=/opt/java/jdk$(JDK_PREVIOUS_VERSION)"
 853         @$(ECHO) \
 854 "  $(MAKE) ALT_JDK_IMPORT_PATH=/opt/java/jdk$(VERSION_STRING)"
 855 
 856 # Universal build support
 857 ifeq ($(OS_VENDOR), Darwin)
 858 ifeq ($(MACOSX_UNIVERSAL),true)
 859 include $(GAMMADIR)/make/$(OSNAME)/makefiles/universal.gmk
 860 endif
 861 endif
 862 
 863 # Compatibility for transition to new naming
 864 warn_jvmg_deprecated:
 865         echo "Warning: The jvmg target has been replaced with debug"
 866         echo "Warning: Please update your usage"
 867 
 868 jvmg: warn_jvmg_deprecated debug
 869 
 870 jvmg1: warn_jvmg_deprecated debug1
 871 
 872 jvmgminimal1: warn_jvmg_deprecated debugminimal1
 873 
 874 jvmgcore: warn_jvmg_deprecated debugcore
 875 
 876 jvmgzero: warn_jvmg_deprecated debugzero
 877 
 878 jvmgshark: warn_jvmg_deprecated debugshark
 879 
 880 # JPRT rule to build this workspace
 881 include $(GAMMADIR)/make/jprt.gmk
 882 
 883 .PHONY: all world clobber clean help $(C1_VM_TARGETS) $(C2_VM_TARGETS) \
 884         $(MINIMAL1_VM_TARGETS) \
 885         generic_build1 generic_build2 generic_buildminimal1 generic_export \
 886         export_product export_fastdebug export_debug export_optimized \
 887         export_jdk_product export_jdk_fastdebug export_jdk_debug \
 888         create_jdk copy_jdk update_jdk test_jdk \
 889         copy_product_jdk copy_fastdebug_jdk copy_debug_jdk  \
 890         $(HS_ALT_MAKE)/Makefile.make remove_old_debuginfo
 891 
 892 .NOTPARALLEL:
--- EOF ---