< prev index next >

make/Main.gmk

Print this page




  68 # When creating a BUILDJDK, the buildtools and interim targets have already
  69 # been built and should not be built again.
  70 ifneq ($(CREATING_BUILDJDK), true)
  71   buildtools-langtools:
  72         +($(CD) $(LANGTOOLS_TOPDIR)/make && $(MAKE) $(MAKE_ARGS) -f Tools.gmk)
  73 
  74   interim-langtools:
  75         +($(CD) $(LANGTOOLS_TOPDIR)/make && $(MAKE) $(MAKE_ARGS) -f CompileInterim.gmk)
  76 
  77   interim-rmic:
  78         +($(CD) $(JDK_TOPDIR)/make && $(MAKE) $(MAKE_ARGS) -f CompileInterimRmic.gmk)
  79 
  80   interim-cldrconverter:
  81         +($(CD) $(JDK_TOPDIR)/make && $(MAKE) $(MAKE_ARGS) -f CopyInterimCLDRConverter.gmk)
  82 
  83   buildtools-jdk:
  84         +($(CD) $(JDK_TOPDIR)/make && $(MAKE) $(MAKE_ARGS) -f CompileTools.gmk)
  85 
  86   buildtools-modules:
  87         +($(CD) $(JDK_TOPDIR)/make && $(MAKE) $(MAKE_ARGS) -f CompileModuleTools.gmk)



  88 endif
  89 
  90 ALL_TARGETS += buildtools-langtools interim-langtools \
  91     interim-rmic interim-cldrconverter buildtools-jdk buildtools-modules

  92 
  93 ################################################################################
  94 # Special targets for certain modules
  95 
  96 unpack-sec:
  97         +($(CD) $(JDK_TOPDIR)/make && $(MAKE) $(MAKE_ARGS) -f UnpackSecurity.gmk)
  98 
  99 generate-exported-symbols:
 100         +($(CD) $(TOPDIR)/make && $(MAKE) $(MAKE_ARGS) -f BuildStatic.gmk)
 101 
 102 ALL_TARGETS += unpack-sec generate-exported-symbols
 103 
 104 ################################################################################
 105 # Gensrc targets, generating source before java compilation can be done
 106 #
 107 # When creating a BUILDJDK, the java targets have already been built and copied
 108 # into the buildjdk so no need to generate sources.
 109 ifneq ($(CREATING_BUILDJDK), true)
 110   $(eval $(call DeclareRecipesForPhase, GENSRC, \
 111       TARGET_SUFFIX := gensrc, \


 532 # have recipes above as these dependencies may be disabled. Then the aggregator
 533 # targets that do not have recipes of their own, which will never have their
 534 # dependencies disabled.
 535 #
 536 ################################################################################
 537 # Targets with recipes above
 538 
 539 # If running an *-only target, parallel execution and dependencies between
 540 # recipe targets are disabled. This makes it possible to run a select set of
 541 # recipe targets in order. It's the responsibility of the user to make sure
 542 # all prerequisites are fulfilled.
 543 ifneq ($(findstring -only, $(MAKECMDGOALS)), )
 544   .NOTPARALLEL:
 545 else
 546   $(LANGTOOLS_GENSRC_TARGETS): buildtools-langtools
 547 
 548   interim-langtools: $(LANGTOOLS_GENSRC_TARGETS)
 549 
 550   buildtools-jdk: interim-langtools interim-cldrconverter
 551 


 552   buildtools-modules: exploded-image-base
 553 
 554   $(CORBA_GENSRC_TARGETS): interim-langtools
 555 
 556   $(HOTSPOT_GENSRC_TARGETS): interim-langtools
 557 
 558   $(JDK_GENSRC_TARGETS): interim-langtools buildtools-jdk
 559 
 560   $(GENSRC_MODULEINFO_TARGETS): buildtools-jdk
 561 
 562   $(GENDATA_TARGETS): interim-langtools buildtools-jdk
 563 
 564   interim-rmic: interim-langtools
 565 
 566   $(RMIC_TARGETS): interim-langtools interim-rmic
 567 
 568   $(JAVA_TARGETS): interim-langtools
 569 
 570   # Declare dependencies between hotspot-<variant>* targets
 571   $(foreach v, $(JVM_VARIANTS), \
 572       $(eval hotspot-$v: hotspot-$v-gensrc hotspot-$v-libs) \
 573       $(eval hotspot-$v-libs: hotspot-$v-gensrc) \
 574   )
 575 
 576   hotspot-ide-project: hotspot exploded-image


 613   # Declare dependencies from all other <module>-lib to java.base-lib
 614   $(foreach t, $(filter-out java.base-libs, $(LIBS_TARGETS)), \
 615       $(eval $t: java.base-libs))
 616 
 617   # jdk.accessibility depends on java.desktop
 618   jdk.accessibility-libs: java.desktop-libs
 619 
 620   # This dependency needs to be explicitly declared. jdk.jdi-gensrc generates a
 621   # header file used by jdk.jdwp.agent-libs. The jdk.jdwp.agent-gensrc is a
 622   # virtual target.
 623   jdk.jdwp.agent-libs: jdk.jdwp.agent-gensrc
 624 
 625   # The swing beans need to have java base properly generated to avoid errors
 626   # in javadoc.
 627   java.desktop-gensrc-jdk: java.base-gensrc
 628 
 629   # The annotation processing for jdk.vm.ci needs java.base classes from the
 630   # current JDK.
 631   jdk.vm.ci-gensrc-hotspot: java.base-java
 632 








 633   # Explicitly add dependencies for special targets
 634   java.base-java: unpack-sec
 635 
 636   jdk.jdeps-gendata: java rmic
 637 
 638   # Declare dependencies between jmod targets. Only java.base jmod needs access
 639   # to the other jmods to be built.
 640   # When creating a BUILDJDK, we don't need to add hashes to java.base, thus
 641   # we don't need to depend on all other jmods
 642   ifneq ($(CREATING_BUILDJDK), true)
 643     java.base-jmod: $(filter-out java.base-jmod \
 644         $(addsuffix -jmod, $(call FindAllUpgradeableModules)), $(JMOD_TARGETS))
 645   endif
 646 
 647   # Building java.base-jmod requires all of hotspot to be built.
 648   java.base-jmod: hotspot
 649 
 650   # Declare dependencies from <module>-jmod to all other module targets
 651   # When creating a BUILDJDK, the java compilation has already been done by the
 652   # normal build and copied in.


 771   test-hotspot-jtreg: jdk-image test-image
 772 
 773   test-hotspot-gtest: exploded-image test-image-hotspot-gtest
 774 
 775   install: product-images
 776 
 777   product-bundles: product-images
 778 
 779   test-bundles: test-image
 780 
 781   docs-bundles: docs-image
 782 
 783   generate-summary: jmods buildtools-modules
 784 
 785 endif
 786 
 787 ################################################################################
 788 # Virtual targets without recipes
 789 
 790 buildtools: buildtools-langtools interim-langtools interim-rmic \
 791     buildtools-jdk
 792 
 793 hotspot: $(HOTSPOT_VARIANT_TARGETS) hotspot-jsig
 794 
 795 hotspot-libs: hotspot-jsig
 796 
 797 # Create targets hotspot-libs and hotspot-gensrc.
 798 $(foreach v, $(JVM_VARIANTS), \
 799   $(eval hotspot-libs: hotspot-$v-libs) \
 800   $(eval hotspot-gensrc: hotspot-$v-gensrc) \
 801 )
 802 
 803 gensrc: $(GENSRC_TARGETS)
 804 
 805 gendata: $(GENDATA_TARGETS)
 806 
 807 copy: $(ALL_COPY_TARGETS)
 808 
 809 java: $(JAVA_TARGETS)
 810 
 811 rmic: $(RMIC_TARGETS)




  68 # When creating a BUILDJDK, the buildtools and interim targets have already
  69 # been built and should not be built again.
  70 ifneq ($(CREATING_BUILDJDK), true)
  71   buildtools-langtools:
  72         +($(CD) $(LANGTOOLS_TOPDIR)/make && $(MAKE) $(MAKE_ARGS) -f Tools.gmk)
  73 
  74   interim-langtools:
  75         +($(CD) $(LANGTOOLS_TOPDIR)/make && $(MAKE) $(MAKE_ARGS) -f CompileInterim.gmk)
  76 
  77   interim-rmic:
  78         +($(CD) $(JDK_TOPDIR)/make && $(MAKE) $(MAKE_ARGS) -f CompileInterimRmic.gmk)
  79 
  80   interim-cldrconverter:
  81         +($(CD) $(JDK_TOPDIR)/make && $(MAKE) $(MAKE_ARGS) -f CopyInterimCLDRConverter.gmk)
  82 
  83   buildtools-jdk:
  84         +($(CD) $(JDK_TOPDIR)/make && $(MAKE) $(MAKE_ARGS) -f CompileTools.gmk)
  85 
  86   buildtools-modules:
  87         +($(CD) $(JDK_TOPDIR)/make && $(MAKE) $(MAKE_ARGS) -f CompileModuleTools.gmk)
  88 
  89   buildtools-hotspot:
  90         +($(CD) $(HOTSPOT_TOPDIR)/make && $(MAKE) $(MAKE_ARGS) -f CompileTools.gmk)
  91 endif
  92 
  93 ALL_TARGETS += buildtools-langtools interim-langtools \
  94     interim-rmic interim-cldrconverter buildtools-jdk buildtools-modules \
  95     buildtools-hotspot
  96 
  97 ################################################################################
  98 # Special targets for certain modules
  99 
 100 unpack-sec:
 101         +($(CD) $(JDK_TOPDIR)/make && $(MAKE) $(MAKE_ARGS) -f UnpackSecurity.gmk)
 102 
 103 generate-exported-symbols:
 104         +($(CD) $(TOPDIR)/make && $(MAKE) $(MAKE_ARGS) -f BuildStatic.gmk)
 105 
 106 ALL_TARGETS += unpack-sec generate-exported-symbols
 107 
 108 ################################################################################
 109 # Gensrc targets, generating source before java compilation can be done
 110 #
 111 # When creating a BUILDJDK, the java targets have already been built and copied
 112 # into the buildjdk so no need to generate sources.
 113 ifneq ($(CREATING_BUILDJDK), true)
 114   $(eval $(call DeclareRecipesForPhase, GENSRC, \
 115       TARGET_SUFFIX := gensrc, \


 536 # have recipes above as these dependencies may be disabled. Then the aggregator
 537 # targets that do not have recipes of their own, which will never have their
 538 # dependencies disabled.
 539 #
 540 ################################################################################
 541 # Targets with recipes above
 542 
 543 # If running an *-only target, parallel execution and dependencies between
 544 # recipe targets are disabled. This makes it possible to run a select set of
 545 # recipe targets in order. It's the responsibility of the user to make sure
 546 # all prerequisites are fulfilled.
 547 ifneq ($(findstring -only, $(MAKECMDGOALS)), )
 548   .NOTPARALLEL:
 549 else
 550   $(LANGTOOLS_GENSRC_TARGETS): buildtools-langtools
 551 
 552   interim-langtools: $(LANGTOOLS_GENSRC_TARGETS)
 553 
 554   buildtools-jdk: interim-langtools interim-cldrconverter
 555 
 556   buildtools-hotspot: interim-langtools
 557 
 558   buildtools-modules: exploded-image-base
 559 
 560   $(CORBA_GENSRC_TARGETS): interim-langtools
 561 
 562   $(HOTSPOT_GENSRC_TARGETS): interim-langtools buildtools-hotspot
 563 
 564   $(JDK_GENSRC_TARGETS): interim-langtools buildtools-jdk
 565 
 566   $(GENSRC_MODULEINFO_TARGETS): buildtools-jdk
 567 
 568   $(GENDATA_TARGETS): interim-langtools buildtools-jdk
 569 
 570   interim-rmic: interim-langtools
 571 
 572   $(RMIC_TARGETS): interim-langtools interim-rmic
 573 
 574   $(JAVA_TARGETS): interim-langtools
 575 
 576   # Declare dependencies between hotspot-<variant>* targets
 577   $(foreach v, $(JVM_VARIANTS), \
 578       $(eval hotspot-$v: hotspot-$v-gensrc hotspot-$v-libs) \
 579       $(eval hotspot-$v-libs: hotspot-$v-gensrc) \
 580   )
 581 
 582   hotspot-ide-project: hotspot exploded-image


 619   # Declare dependencies from all other <module>-lib to java.base-lib
 620   $(foreach t, $(filter-out java.base-libs, $(LIBS_TARGETS)), \
 621       $(eval $t: java.base-libs))
 622 
 623   # jdk.accessibility depends on java.desktop
 624   jdk.accessibility-libs: java.desktop-libs
 625 
 626   # This dependency needs to be explicitly declared. jdk.jdi-gensrc generates a
 627   # header file used by jdk.jdwp.agent-libs. The jdk.jdwp.agent-gensrc is a
 628   # virtual target.
 629   jdk.jdwp.agent-libs: jdk.jdwp.agent-gensrc
 630 
 631   # The swing beans need to have java base properly generated to avoid errors
 632   # in javadoc.
 633   java.desktop-gensrc-jdk: java.base-gensrc
 634 
 635   # The annotation processing for jdk.vm.ci needs java.base classes from the
 636   # current JDK.
 637   jdk.vm.ci-gensrc-hotspot: java.base-java
 638 
 639   # The annotation processing for jdk.vm.compiler needs classes from the current JDK.
 640   jdk.vm.compiler-gensrc-hotspot: java.base-java java.management-java \
 641       jdk.management-java jdk.vm.ci-java jdk.unsupported-java
 642 
 643   # For jdk.vm.compiler, the gensrc step is generating a module-info.java.extra
 644   # file to be processed by the gensrc-moduleinfo target.
 645   jdk.vm.compiler-gensrc-moduleinfo: jdk.vm.compiler-gensrc-hotspot
 646 
 647   # Explicitly add dependencies for special targets
 648   java.base-java: unpack-sec
 649 
 650   jdk.jdeps-gendata: java rmic
 651 
 652   # Declare dependencies between jmod targets. Only java.base jmod needs access
 653   # to the other jmods to be built.
 654   # When creating a BUILDJDK, we don't need to add hashes to java.base, thus
 655   # we don't need to depend on all other jmods
 656   ifneq ($(CREATING_BUILDJDK), true)
 657     java.base-jmod: $(filter-out java.base-jmod \
 658         $(addsuffix -jmod, $(call FindAllUpgradeableModules)), $(JMOD_TARGETS))
 659   endif
 660 
 661   # Building java.base-jmod requires all of hotspot to be built.
 662   java.base-jmod: hotspot
 663 
 664   # Declare dependencies from <module>-jmod to all other module targets
 665   # When creating a BUILDJDK, the java compilation has already been done by the
 666   # normal build and copied in.


 785   test-hotspot-jtreg: jdk-image test-image
 786 
 787   test-hotspot-gtest: exploded-image test-image-hotspot-gtest
 788 
 789   install: product-images
 790 
 791   product-bundles: product-images
 792 
 793   test-bundles: test-image
 794 
 795   docs-bundles: docs-image
 796 
 797   generate-summary: jmods buildtools-modules
 798 
 799 endif
 800 
 801 ################################################################################
 802 # Virtual targets without recipes
 803 
 804 buildtools: buildtools-langtools interim-langtools interim-rmic \
 805     buildtools-jdk buildtools-hotspot
 806 
 807 hotspot: $(HOTSPOT_VARIANT_TARGETS) hotspot-jsig
 808 
 809 hotspot-libs: hotspot-jsig
 810 
 811 # Create targets hotspot-libs and hotspot-gensrc.
 812 $(foreach v, $(JVM_VARIANTS), \
 813   $(eval hotspot-libs: hotspot-$v-libs) \
 814   $(eval hotspot-gensrc: hotspot-$v-gensrc) \
 815 )
 816 
 817 gensrc: $(GENSRC_TARGETS)
 818 
 819 gendata: $(GENDATA_TARGETS)
 820 
 821 copy: $(ALL_COPY_TARGETS)
 822 
 823 java: $(JAVA_TARGETS)
 824 
 825 rmic: $(RMIC_TARGETS)


< prev index next >