make/Makefile

Print this page




  68 ifdef GAMMADIR
  69   ifndef ALT_OUTPUTDIR
  70     ALT_OUTPUTDIR := $(shell pwd)
  71   endif
  72   include $(GAMMADIR)/make/defs.make
  73 else
  74   include defs.make
  75 endif
  76 
  77 include $(GAMMADIR)/make/altsrc.make
  78 
  79 -include $(HS_ALT_MAKE)/Makefile.make
  80 
  81 ifneq ($(ALT_OUTPUTDIR),)
  82   ALT_OUT=ALT_OUTPUTDIR=$(ALT_OUTPUTDIR)
  83 else
  84   ALT_OUT=
  85 endif
  86 
  87 # Typical C1/C2 targets made available with this Makefile
  88 C1_VM_TARGETS=product1 fastdebug1 optimized1 jvmg1
  89 C2_VM_TARGETS=product  fastdebug  optimized  jvmg
  90 ZERO_VM_TARGETS=productzero fastdebugzero optimizedzero jvmgzero
  91 SHARK_VM_TARGETS=productshark fastdebugshark optimizedshark jvmgshark
  92 MINIMAL1_VM_TARGETS=productminimal1 fastdebugminimal1 jvmgminimal1
  93 
  94 COMMON_VM_PRODUCT_TARGETS=product product1 docs export_product
  95 COMMON_VM_FASTDEBUG_TARGETS=fastdebug fastdebug1 docs export_fastdebug
  96 COMMON_VM_DEBUG_TARGETS=jvmg jvmg1 docs export_debug
  97 
  98 # JDK directory list
  99 JDK_DIRS=bin include jre lib demo
 100 
 101 all:           all_product all_fastdebug
 102 
 103 ifeq ($(JVM_VARIANT_MINIMAL1),true)
 104 all_product:    productminimal1
 105 all_fastdebug:  fastdebugminimal1
 106 all_debug:      jvmgminimal1
 107 endif
 108 
 109 ifdef BUILD_CLIENT_ONLY
 110 all_product:   product1 docs export_product
 111 all_fastdebug: fastdebug1 docs export_fastdebug
 112 all_debug:     jvmg1 docs export_debug
 113 else
 114 ifeq ($(MACOSX_UNIVERSAL),true)
 115 all_product:   universal_product
 116 all_fastdebug: universal_fastdebug
 117 all_debug:     universal_debug
 118 else
 119 all_product:   $(COMMON_VM_PRODUCT_TARGETS)
 120 all_fastdebug: $(COMMON_VM_FASTDEBUG_TARGETS)
 121 all_debug:     $(COMMON_VM_DEBUG_TARGETS)
 122 endif
 123 endif
 124 
 125 all_optimized: optimized optimized1 docs export_optimized
 126 
 127 allzero:           all_productzero all_fastdebugzero
 128 all_productzero:   productzero docs export_product
 129 all_fastdebugzero: fastdebugzero docs export_fastdebug
 130 all_debugzero:     jvmgzero docs export_debug
 131 all_optimizedzero: optimizedzero docs export_optimized
 132 
 133 allshark:           all_productshark all_fastdebugshark
 134 all_productshark:   productshark docs export_product
 135 all_fastdebugshark: fastdebugshark docs export_fastdebug
 136 all_debugshark:     jvmgshark docs export_debug
 137 all_optimizedshark: optimizedshark docs export_optimized
 138 
 139 # Do everything
 140 world:         all create_jdk
 141 
 142 # Build or export docs
 143 docs:
 144 ifeq ($(OSNAME),windows)
 145         @$(ECHO) "No docs ($(VM_TARGET)) for windows"
 146 else
 147 # We specify 'BUILD_FLAVOR=product' so that the proper
 148 # ENABLE_FULL_DEBUG_SYMBOLS value is used.
 149         $(CD) $(OUTPUTDIR); \
 150             $(MAKE) -f $(ABS_OS_MAKEFILE) \
 151                       $(MAKE_ARGS) BUILD_FLAVOR=product docs
 152 endif
 153 
 154 # Build variation of hotspot
 155 $(C1_VM_TARGETS):
 156         $(CD) $(GAMMADIR)/make; \


 243         $(MAKE) -f $(ABS_OS_MAKEFILE) $(MAKE_ARGS) $(VM_TARGET) ;
 244       endif
 245     endif
 246   else
 247             @$(ECHO) "No ($(VM_TARGET)) for $(OSNAME) ARCH_DATA_MODEL=$(ARCH_DATA_MODEL)"
 248   endif
 249 else
 250         @$(ECHO) "Error: trying to build a minimal target but JVM_VARIANT_MINIMAL1 is not true."
 251 endif
 252 
 253 # Export file rule
 254 generic_export: $(EXPORT_LIST)
 255 export_product:
 256         $(MAKE) BUILD_FLAVOR=$(@:export_%=%) VM_SUBDIR=$(@:export_%=%) \
 257           generic_export
 258 export_fastdebug:
 259         $(MAKE) BUILD_FLAVOR=$(@:export_%=%) VM_SUBDIR=$(@:export_%=%) \
 260           EXPORT_SUBDIR=/$(@:export_%=%) \
 261           generic_export
 262 export_debug:
 263         $(MAKE) BUILD_FLAVOR=$(@:export_%=%) VM_SUBDIR=${VM_DEBUG} \
 264           EXPORT_SUBDIR=/$(@:export_%=%) \
 265           generic_export
 266 export_optimized:
 267         $(MAKE) BUILD_FLAVOR=$(@:export_%=%) VM_SUBDIR=$(@:export_%=%) \
 268           EXPORT_SUBDIR=/$(@:export_%=%) \
 269           generic_export
 270 export_product_jdk::
 271         $(MAKE) BUILD_FLAVOR=$(@:export_%_jdk=%) \
 272           VM_SUBDIR=$(@:export_%_jdk=%) ALT_EXPORT_PATH=$(JDK_IMAGE_DIR) \
 273           generic_export
 274 export_optimized_jdk::
 275         $(MAKE) BUILD_FLAVOR=$(@:export_%_jdk=%) \
 276           VM_SUBDIR=$(@:export_%_jdk=%) ALT_EXPORT_PATH=$(JDK_IMAGE_DIR) \
 277           generic_export
 278 export_fastdebug_jdk::
 279         $(MAKE) BUILD_FLAVOR=$(@:export_%_jdk=%) \
 280           VM_SUBDIR=$(@:export_%_jdk=%)  \
 281           ALT_EXPORT_PATH=$(JDK_IMAGE_DIR)/$(@:export_%_jdk=%) \
 282           generic_export
 283 export_debug_jdk::
 284         $(MAKE) BUILD_FLAVOR=$(@:export_%_jdk=%) VM_SUBDIR=${VM_DEBUG} \
 285           ALT_EXPORT_PATH=$(JDK_IMAGE_DIR)/$(@:export_%_jdk=%) \
 286           generic_export
 287 
 288 # Export file copy rules
 289 XUSAGE=$(HS_SRC_DIR)/share/vm/Xusage.txt
 290 DOCS_DIR=$(OUTPUTDIR)/$(VM_PLATFORM)_docs
 291 C1_BASE_DIR=$(OUTPUTDIR)/$(VM_PLATFORM)_compiler1
 292 C2_BASE_DIR=$(OUTPUTDIR)/$(VM_PLATFORM)_compiler2
 293 ZERO_BASE_DIR=$(OUTPUTDIR)/$(VM_PLATFORM)_zero
 294 SHARK_BASE_DIR=$(OUTPUTDIR)/$(VM_PLATFORM)_shark
 295 C1_DIR=$(C1_BASE_DIR)/$(VM_SUBDIR)
 296 C2_DIR=$(C2_BASE_DIR)/$(VM_SUBDIR)
 297 ZERO_DIR=$(ZERO_BASE_DIR)/$(VM_SUBDIR)
 298 SHARK_DIR=$(SHARK_BASE_DIR)/$(VM_SUBDIR)
 299 MINIMAL1_BASE_DIR=$(OUTPUTDIR)/$(VM_PLATFORM)_minimal1
 300 MINIMAL1_DIR=$(MINIMAL1_BASE_DIR)/$(VM_SUBDIR)
 301 
 302 ifeq ($(JVM_VARIANT_SERVER), true)
 303     MISC_DIR=$(C2_DIR)
 304     GEN_DIR=$(C2_BASE_DIR)/generated


 524 update_jdk: export_product_jdk export_fastdebug_jdk test_jdk
 525 
 526 copy_jdk: $(JDK_IMAGE_DIR)/jre/lib/rt.jar
 527 
 528 $(JDK_IMAGE_DIR)/jre/lib/rt.jar:
 529         $(RM) -r $(JDK_IMAGE_DIR)
 530         $(MKDIR) -p $(JDK_IMAGE_DIR)
 531         ($(CD) $(JDK_IMPORT_PATH) && \
 532          $(TAR) -cf - *) | \
 533          ($(CD) $(JDK_IMAGE_DIR) && $(TAR) -xf -)
 534 
 535 
 536 # Testing the built JVM
 537 RUN_JVM=JAVA_HOME=$(JDK_IMPORT_PATH) $(JDK_IMPORT_PATH)/bin/java -d$(ARCH_DATA_MODEL) -Dsun.java.launcher=gamma
 538 generic_test:
 539         @$(ECHO) "Running with: $(ALTJVM_DIR)"
 540         @$(RUN_JVM) -XXaltjvm=$(ALTJVM_DIR) -Xinternalversion
 541         @$(RUN_JVM) -XXaltjvm=$(ALTJVM_DIR) -showversion -help
 542 
 543 # C2 test targets
 544 test_product test_optimized test_fastdebug test_jvmg:
 545         @$(MAKE) generic_test ALTJVM_DIR="$(C2_DIR)/$(@:test_%=%)"
 546 
 547 # C1 test targets
 548 test_product1 test_optimized1 test_fastdebug1 test_jvmg1:
 549   ifeq ($(ARCH_DATA_MODEL), 32)
 550         @$(MAKE) generic_test ALTJVM_DIR="$(C1_DIR)/$(@:test_%1=%)"
 551   else
 552         @$(ECHO) "No compiler1 ($(@:test_%=%)) for ARCH_DATA_MODEL=$(ARCH_DATA_MODEL)"
 553   endif
 554 
 555 # Zero test targets
 556 test_productzero test_optimizedzero test_fastdebugzero test_jvmgzero:
 557         @$(MAKE) generic_test ALTJVM_DIR="$(ZERO_DIR)/$(@:test_%zero=%)"
 558 
 559 # Shark test targets
 560 test_productshark test_optimizedshark test_fastdebugshark test_jvmgshark:
 561         @$(MAKE) generic_test ALTJVM_DIR="$(SHARK_DIR)/$(@:test_%shark=%)"
 562 
 563 # Minimal1 test targets
 564 test_productminimal1 test_optimizedminimal1 test_fastdebugminimal1 test_jvmgminimal1:
 565         @$(MAKE) generic_test ALTJVM_DIR="$(MINIMAL1_DIR)/$(@:test_%minimal1=%)"
 566 
 567 
 568 test_jdk:
 569   ifeq ($(JVM_VARIANT_CLIENT), true)
 570         $(JDK_IMAGE_DIR)/bin/java -d$(ARCH_DATA_MODEL) -client -Xinternalversion
 571         $(JDK_IMAGE_DIR)/bin/java -d$(ARCH_DATA_MODEL) -client -version
 572   endif
 573   ifeq ($(findstring true, $(JVM_VARIANT_SERVER)\
 574                 $(JVM_VARIANT_ZERO)$(JVM_VARIANT_ZEROSHARK)), true)
 575         $(JDK_IMAGE_DIR)/bin/java -d$(ARCH_DATA_MODEL) -server -Xinternalversion
 576         $(JDK_IMAGE_DIR)/bin/java -d$(ARCH_DATA_MODEL) -server -version
 577   endif
 578 
 579 copy_product_jdk::
 580         $(RM) -r $(JDK_IMAGE_DIR)
 581         $(MKDIR) -p $(JDK_IMAGE_DIR)
 582         ($(CD) $(JDK_IMPORT_PATH) && \
 583          $(TAR) -cf - $(JDK_DIRS)) | \
 584          ($(CD) $(JDK_IMAGE_DIR) && $(TAR) -xf -)


 620 
 621 #
 622 # Help target
 623 #
 624 help: intro_help target_help variable_help notes_help examples_help
 625 
 626 # Intro help message
 627 intro_help:
 628         @$(ECHO) \
 629 "Makefile for the Hotspot workspace." 
 630         @$(ECHO) \
 631 "Default behavior is to build and create an export area for the j2se builds."
 632 
 633 # Target help
 634 target_help:
 635         @$(ECHO) "help:             This help message"
 636         @$(ECHO) "all:              Same as: all_product all_fastdebug"
 637         @$(ECHO) "world:            Same as: all create_jdk"
 638         @$(ECHO) "all_product:      Same as: product product1 export_product"
 639         @$(ECHO) "all_fastdebug:    Same as: fastdebug fastdebug1 export_fastdebug"
 640         @$(ECHO) "all_debug:        Same as: jvmg jvmg1 export_debug"
 641         @$(ECHO) "all_optimized:    Same as: optimized optimized1 export_optimized"
 642         @$(ECHO) "clean:            Clean all areas"
 643         @$(ECHO) "export_product:   Export product files to EXPORT_PATH"
 644         @$(ECHO) "export_fastdebug: Export fastdebug files to EXPORT_PATH"
 645         @$(ECHO) "export_debug:     Export debug files to EXPORT_PATH"
 646         @$(ECHO) "export_optimized: Export optimized files to EXPORT_PATH"
 647         @$(ECHO) "create_jdk:       Create JDK image, export all files into it"
 648         @$(ECHO) "update_jdk:       Update JDK image with fresh exported files"
 649         @$(ECHO) " "
 650         @$(ECHO) "Other targets are:"
 651         @$(ECHO) "   $(C1_VM_TARGETS)"
 652         @$(ECHO) "   $(C2_VM_TARGETS)"
 653         @$(ECHO) "   $(MINIMAL1_VM_TARGETS)"
 654 
 655 # Variable help (only common ones used by this workspace)
 656 variable_help: variable_help_intro variable_list variable_help_end
 657 variable_help_intro:
 658         @$(ECHO) "--- Common Variables ---"
 659 variable_help_end:
 660         @$(ECHO) " "


 724 
 725 examples_help:
 726         @$(ECHO) \
 727 "--- Examples --- "
 728         @$(ECHO) \
 729 "  $(MAKE) all"
 730         @$(ECHO) \
 731 "  $(MAKE) world"
 732         @$(ECHO) \
 733 "  $(MAKE) ALT_BOOTDIR=/opt/java/jdk$(PREVIOUS_JDK_VERSION)" 
 734         @$(ECHO) \
 735 "  $(MAKE) ALT_JDK_IMPORT_PATH=/opt/java/jdk$(JDK_VERSION)"
 736 
 737 # Universal build support
 738 ifeq ($(OS_VENDOR), Darwin)
 739 ifeq ($(MACOSX_UNIVERSAL),true)
 740 include $(GAMMADIR)/make/$(OSNAME)/makefiles/universal.gmk
 741 endif
 742 endif
 743 















 744 # JPRT rule to build this workspace
 745 include $(GAMMADIR)/make/jprt.gmk
 746 
 747 .PHONY: all world clobber clean help $(C1_VM_TARGETS) $(C2_VM_TARGETS) \
 748         $(MINIMAL1_VM_TARGETS) \
 749         generic_build1 generic_build2 generic_buildminimal1 generic_export \
 750         export_product export_fastdebug export_debug export_optimized \
 751         export_jdk_product export_jdk_fastdebug export_jdk_debug \
 752         create_jdk copy_jdk update_jdk test_jdk \
 753         copy_product_jdk copy_fastdebug_jdk copy_debug_jdk  \
 754         $(HS_ALT_MAKE)/Makefile.make


  68 ifdef GAMMADIR
  69   ifndef ALT_OUTPUTDIR
  70     ALT_OUTPUTDIR := $(shell pwd)
  71   endif
  72   include $(GAMMADIR)/make/defs.make
  73 else
  74   include defs.make
  75 endif
  76 
  77 include $(GAMMADIR)/make/altsrc.make
  78 
  79 -include $(HS_ALT_MAKE)/Makefile.make
  80 
  81 ifneq ($(ALT_OUTPUTDIR),)
  82   ALT_OUT=ALT_OUTPUTDIR=$(ALT_OUTPUTDIR)
  83 else
  84   ALT_OUT=
  85 endif
  86 
  87 # Typical C1/C2 targets made available with this Makefile
  88 C1_VM_TARGETS=product1 fastdebug1 optimized1 debug1
  89 C2_VM_TARGETS=product  fastdebug  optimized  debug
  90 ZERO_VM_TARGETS=productzero fastdebugzero optimizedzero debugzero
  91 SHARK_VM_TARGETS=productshark fastdebugshark optimizedshark debugshark
  92 MINIMAL1_VM_TARGETS=productminimal1 fastdebugminimal1 debugminimal1
  93 
  94 COMMON_VM_PRODUCT_TARGETS=product product1 docs export_product
  95 COMMON_VM_FASTDEBUG_TARGETS=fastdebug fastdebug1 docs export_fastdebug
  96 COMMON_VM_DEBUG_TARGETS=debug debug1 docs export_debug
  97 
  98 # JDK directory list
  99 JDK_DIRS=bin include jre lib demo
 100 
 101 all:           all_product all_fastdebug
 102 
 103 ifeq ($(JVM_VARIANT_MINIMAL1),true)
 104 all_product:    productminimal1
 105 all_fastdebug:  fastdebugminimal1
 106 all_debug:      debugminimal1
 107 endif
 108 
 109 ifdef BUILD_CLIENT_ONLY
 110 all_product:   product1 docs export_product
 111 all_fastdebug: fastdebug1 docs export_fastdebug
 112 all_debug:     debug1 docs export_debug
 113 else
 114 ifeq ($(MACOSX_UNIVERSAL),true)
 115 all_product:   universal_product
 116 all_fastdebug: universal_fastdebug
 117 all_debug:     universal_debug
 118 else
 119 all_product:   $(COMMON_VM_PRODUCT_TARGETS)
 120 all_fastdebug: $(COMMON_VM_FASTDEBUG_TARGETS)
 121 all_debug:     $(COMMON_VM_DEBUG_TARGETS)
 122 endif
 123 endif
 124 
 125 all_optimized: optimized optimized1 docs export_optimized
 126 
 127 allzero:           all_productzero all_fastdebugzero
 128 all_productzero:   productzero docs export_product
 129 all_fastdebugzero: fastdebugzero docs export_fastdebug
 130 all_debugzero:     debugzero docs export_debug
 131 all_optimizedzero: optimizedzero docs export_optimized
 132 
 133 allshark:           all_productshark all_fastdebugshark
 134 all_productshark:   productshark docs export_product
 135 all_fastdebugshark: fastdebugshark docs export_fastdebug
 136 all_debugshark:     debugshark docs export_debug
 137 all_optimizedshark: optimizedshark docs export_optimized
 138 
 139 # Do everything
 140 world:         all create_jdk
 141 
 142 # Build or export docs
 143 docs:
 144 ifeq ($(OSNAME),windows)
 145         @$(ECHO) "No docs ($(VM_TARGET)) for windows"
 146 else
 147 # We specify 'BUILD_FLAVOR=product' so that the proper
 148 # ENABLE_FULL_DEBUG_SYMBOLS value is used.
 149         $(CD) $(OUTPUTDIR); \
 150             $(MAKE) -f $(ABS_OS_MAKEFILE) \
 151                       $(MAKE_ARGS) BUILD_FLAVOR=product docs
 152 endif
 153 
 154 # Build variation of hotspot
 155 $(C1_VM_TARGETS):
 156         $(CD) $(GAMMADIR)/make; \


 243         $(MAKE) -f $(ABS_OS_MAKEFILE) $(MAKE_ARGS) $(VM_TARGET) ;
 244       endif
 245     endif
 246   else
 247             @$(ECHO) "No ($(VM_TARGET)) for $(OSNAME) ARCH_DATA_MODEL=$(ARCH_DATA_MODEL)"
 248   endif
 249 else
 250         @$(ECHO) "Error: trying to build a minimal target but JVM_VARIANT_MINIMAL1 is not true."
 251 endif
 252 
 253 # Export file rule
 254 generic_export: $(EXPORT_LIST)
 255 export_product:
 256         $(MAKE) BUILD_FLAVOR=$(@:export_%=%) VM_SUBDIR=$(@:export_%=%) \
 257           generic_export
 258 export_fastdebug:
 259         $(MAKE) BUILD_FLAVOR=$(@:export_%=%) VM_SUBDIR=$(@:export_%=%) \
 260           EXPORT_SUBDIR=/$(@:export_%=%) \
 261           generic_export
 262 export_debug:
 263         $(MAKE) BUILD_FLAVOR=$(@:export_%=%) VM_SUBDIR=debug \
 264           EXPORT_SUBDIR=/$(@:export_%=%) \
 265           generic_export
 266 export_optimized:
 267         $(MAKE) BUILD_FLAVOR=$(@:export_%=%) VM_SUBDIR=$(@:export_%=%) \
 268           EXPORT_SUBDIR=/$(@:export_%=%) \
 269           generic_export
 270 export_product_jdk::
 271         $(MAKE) BUILD_FLAVOR=$(@:export_%_jdk=%) \
 272           VM_SUBDIR=$(@:export_%_jdk=%) ALT_EXPORT_PATH=$(JDK_IMAGE_DIR) \
 273           generic_export
 274 export_optimized_jdk::
 275         $(MAKE) BUILD_FLAVOR=$(@:export_%_jdk=%) \
 276           VM_SUBDIR=$(@:export_%_jdk=%) ALT_EXPORT_PATH=$(JDK_IMAGE_DIR) \
 277           generic_export
 278 export_fastdebug_jdk::
 279         $(MAKE) BUILD_FLAVOR=$(@:export_%_jdk=%) \
 280           VM_SUBDIR=$(@:export_%_jdk=%)  \
 281           ALT_EXPORT_PATH=$(JDK_IMAGE_DIR)/$(@:export_%_jdk=%) \
 282           generic_export
 283 export_debug_jdk::
 284         $(MAKE) BUILD_FLAVOR=$(@:export_%_jdk=%) VM_SUBDIR=debug \
 285           ALT_EXPORT_PATH=$(JDK_IMAGE_DIR)/$(@:export_%_jdk=%) \
 286           generic_export
 287 
 288 # Export file copy rules
 289 XUSAGE=$(HS_SRC_DIR)/share/vm/Xusage.txt
 290 DOCS_DIR=$(OUTPUTDIR)/$(VM_PLATFORM)_docs
 291 C1_BASE_DIR=$(OUTPUTDIR)/$(VM_PLATFORM)_compiler1
 292 C2_BASE_DIR=$(OUTPUTDIR)/$(VM_PLATFORM)_compiler2
 293 ZERO_BASE_DIR=$(OUTPUTDIR)/$(VM_PLATFORM)_zero
 294 SHARK_BASE_DIR=$(OUTPUTDIR)/$(VM_PLATFORM)_shark
 295 C1_DIR=$(C1_BASE_DIR)/$(VM_SUBDIR)
 296 C2_DIR=$(C2_BASE_DIR)/$(VM_SUBDIR)
 297 ZERO_DIR=$(ZERO_BASE_DIR)/$(VM_SUBDIR)
 298 SHARK_DIR=$(SHARK_BASE_DIR)/$(VM_SUBDIR)
 299 MINIMAL1_BASE_DIR=$(OUTPUTDIR)/$(VM_PLATFORM)_minimal1
 300 MINIMAL1_DIR=$(MINIMAL1_BASE_DIR)/$(VM_SUBDIR)
 301 
 302 ifeq ($(JVM_VARIANT_SERVER), true)
 303     MISC_DIR=$(C2_DIR)
 304     GEN_DIR=$(C2_BASE_DIR)/generated


 524 update_jdk: export_product_jdk export_fastdebug_jdk test_jdk
 525 
 526 copy_jdk: $(JDK_IMAGE_DIR)/jre/lib/rt.jar
 527 
 528 $(JDK_IMAGE_DIR)/jre/lib/rt.jar:
 529         $(RM) -r $(JDK_IMAGE_DIR)
 530         $(MKDIR) -p $(JDK_IMAGE_DIR)
 531         ($(CD) $(JDK_IMPORT_PATH) && \
 532          $(TAR) -cf - *) | \
 533          ($(CD) $(JDK_IMAGE_DIR) && $(TAR) -xf -)
 534 
 535 
 536 # Testing the built JVM
 537 RUN_JVM=JAVA_HOME=$(JDK_IMPORT_PATH) $(JDK_IMPORT_PATH)/bin/java -d$(ARCH_DATA_MODEL) -Dsun.java.launcher=gamma
 538 generic_test:
 539         @$(ECHO) "Running with: $(ALTJVM_DIR)"
 540         @$(RUN_JVM) -XXaltjvm=$(ALTJVM_DIR) -Xinternalversion
 541         @$(RUN_JVM) -XXaltjvm=$(ALTJVM_DIR) -showversion -help
 542 
 543 # C2 test targets
 544 test_product test_optimized test_fastdebug test_debug:
 545         @$(MAKE) generic_test ALTJVM_DIR="$(C2_DIR)/$(@:test_%=%)"
 546 
 547 # C1 test targets
 548 test_product1 test_optimized1 test_fastdebug1 test_debug1:
 549   ifeq ($(ARCH_DATA_MODEL), 32)
 550         @$(MAKE) generic_test ALTJVM_DIR="$(C1_DIR)/$(@:test_%1=%)"
 551   else
 552         @$(ECHO) "No compiler1 ($(@:test_%=%)) for ARCH_DATA_MODEL=$(ARCH_DATA_MODEL)"
 553   endif
 554 
 555 # Zero test targets
 556 test_productzero test_optimizedzero test_fastdebugzero test_debugzero:
 557         @$(MAKE) generic_test ALTJVM_DIR="$(ZERO_DIR)/$(@:test_%zero=%)"
 558 
 559 # Shark test targets
 560 test_productshark test_optimizedshark test_fastdebugshark test_debugshark:
 561         @$(MAKE) generic_test ALTJVM_DIR="$(SHARK_DIR)/$(@:test_%shark=%)"
 562 
 563 # Minimal1 test targets
 564 test_productminimal1 test_optimizedminimal1 test_fastdebugminimal1 test_debugminimal1:
 565         @$(MAKE) generic_test ALTJVM_DIR="$(MINIMAL1_DIR)/$(@:test_%minimal1=%)"
 566 
 567 
 568 test_jdk:
 569   ifeq ($(JVM_VARIANT_CLIENT), true)
 570         $(JDK_IMAGE_DIR)/bin/java -d$(ARCH_DATA_MODEL) -client -Xinternalversion
 571         $(JDK_IMAGE_DIR)/bin/java -d$(ARCH_DATA_MODEL) -client -version
 572   endif
 573   ifeq ($(findstring true, $(JVM_VARIANT_SERVER)\
 574                 $(JVM_VARIANT_ZERO)$(JVM_VARIANT_ZEROSHARK)), true)
 575         $(JDK_IMAGE_DIR)/bin/java -d$(ARCH_DATA_MODEL) -server -Xinternalversion
 576         $(JDK_IMAGE_DIR)/bin/java -d$(ARCH_DATA_MODEL) -server -version
 577   endif
 578 
 579 copy_product_jdk::
 580         $(RM) -r $(JDK_IMAGE_DIR)
 581         $(MKDIR) -p $(JDK_IMAGE_DIR)
 582         ($(CD) $(JDK_IMPORT_PATH) && \
 583          $(TAR) -cf - $(JDK_DIRS)) | \
 584          ($(CD) $(JDK_IMAGE_DIR) && $(TAR) -xf -)


 620 
 621 #
 622 # Help target
 623 #
 624 help: intro_help target_help variable_help notes_help examples_help
 625 
 626 # Intro help message
 627 intro_help:
 628         @$(ECHO) \
 629 "Makefile for the Hotspot workspace."
 630         @$(ECHO) \
 631 "Default behavior is to build and create an export area for the j2se builds."
 632 
 633 # Target help
 634 target_help:
 635         @$(ECHO) "help:             This help message"
 636         @$(ECHO) "all:              Same as: all_product all_fastdebug"
 637         @$(ECHO) "world:            Same as: all create_jdk"
 638         @$(ECHO) "all_product:      Same as: product product1 export_product"
 639         @$(ECHO) "all_fastdebug:    Same as: fastdebug fastdebug1 export_fastdebug"
 640         @$(ECHO) "all_debug:        Same as: debug debug1 export_debug"
 641         @$(ECHO) "all_optimized:    Same as: optimized optimized1 export_optimized"
 642         @$(ECHO) "clean:            Clean all areas"
 643         @$(ECHO) "export_product:   Export product files to EXPORT_PATH"
 644         @$(ECHO) "export_fastdebug: Export fastdebug files to EXPORT_PATH"
 645         @$(ECHO) "export_debug:     Export debug files to EXPORT_PATH"
 646         @$(ECHO) "export_optimized: Export optimized files to EXPORT_PATH"
 647         @$(ECHO) "create_jdk:       Create JDK image, export all files into it"
 648         @$(ECHO) "update_jdk:       Update JDK image with fresh exported files"
 649         @$(ECHO) " "
 650         @$(ECHO) "Other targets are:"
 651         @$(ECHO) "   $(C1_VM_TARGETS)"
 652         @$(ECHO) "   $(C2_VM_TARGETS)"
 653         @$(ECHO) "   $(MINIMAL1_VM_TARGETS)"
 654 
 655 # Variable help (only common ones used by this workspace)
 656 variable_help: variable_help_intro variable_list variable_help_end
 657 variable_help_intro:
 658         @$(ECHO) "--- Common Variables ---"
 659 variable_help_end:
 660         @$(ECHO) " "


 724 
 725 examples_help:
 726         @$(ECHO) \
 727 "--- Examples --- "
 728         @$(ECHO) \
 729 "  $(MAKE) all"
 730         @$(ECHO) \
 731 "  $(MAKE) world"
 732         @$(ECHO) \
 733 "  $(MAKE) ALT_BOOTDIR=/opt/java/jdk$(PREVIOUS_JDK_VERSION)"
 734         @$(ECHO) \
 735 "  $(MAKE) ALT_JDK_IMPORT_PATH=/opt/java/jdk$(JDK_VERSION)"
 736 
 737 # Universal build support
 738 ifeq ($(OS_VENDOR), Darwin)
 739 ifeq ($(MACOSX_UNIVERSAL),true)
 740 include $(GAMMADIR)/make/$(OSNAME)/makefiles/universal.gmk
 741 endif
 742 endif
 743 
 744 # Compatibility for transition to new naming
 745 warn_jvmg_deprecated:
 746         echo "Warning: The jvmg target has been replaced with debug"
 747         echo "Warning: Please update your usage"
 748 
 749 jvmg: warn_jvmg_deprecated debug
 750 
 751 jvmg1: warn_jvmg_deprecated debug1
 752 
 753 jvmgcore: warn_jvmg_deprecated debugcore
 754 
 755 jvmgzero: warn_jvmg_deprecated debugzero
 756 
 757 jvmgshark: warn_jvmg_deprecated debugshark
 758 
 759 # JPRT rule to build this workspace
 760 include $(GAMMADIR)/make/jprt.gmk
 761 
 762 .PHONY: all world clobber clean help $(C1_VM_TARGETS) $(C2_VM_TARGETS) \
 763         $(MINIMAL1_VM_TARGETS) \
 764         generic_build1 generic_build2 generic_buildminimal1 generic_export \
 765         export_product export_fastdebug export_debug export_optimized \
 766         export_jdk_product export_jdk_fastdebug export_jdk_debug \
 767         create_jdk copy_jdk update_jdk test_jdk \
 768         copy_product_jdk copy_fastdebug_jdk copy_debug_jdk  \
 769         $(HS_ALT_MAKE)/Makefile.make