61 # Recipes for all targets. Only recipes, dependencies are declared later.
62 #
63 ################################################################################
64
65 ################################################################################
66 # Interim/build tools targets, compiling tools used during the build
67
68 buildtools-langtools:
69 +($(CD) $(LANGTOOLS_TOPDIR)/make && $(MAKE) $(MAKE_ARGS) -f Tools.gmk)
70
71 interim-langtools:
72 +($(CD) $(LANGTOOLS_TOPDIR)/make && $(MAKE) $(MAKE_ARGS) -f CompileInterim.gmk)
73
74 interim-rmic:
75 +($(CD) $(JDK_TOPDIR)/make && $(MAKE) $(MAKE_ARGS) -f CompileInterimRmic.gmk)
76
77 interim-cldrconverter:
78 +($(CD) $(JDK_TOPDIR)/make && $(MAKE) $(MAKE_ARGS) -f CopyInterimCLDRConverter.gmk)
79
80 buildtools-jdk:
81 +($(CD) $(JDK_TOPDIR)/make && $(MAKE) $(MAKE_ARGS) -f Tools.gmk java-tools)
82
83 ALL_TARGETS += buildtools-langtools interim-langtools \
84 interim-rmic interim-cldrconverter buildtools-jdk
85
86 ################################################################################
87 # Special targets for certain modules
88
89 import-hotspot:
90 +($(CD) $(JDK_TOPDIR)/make && $(MAKE) $(MAKE_ARGS) -f Import.gmk)
91
92 unpack-sec:
93 +($(CD) $(JDK_TOPDIR)/make && $(MAKE) $(MAKE_ARGS) -f UnpackSecurity.gmk)
94
95 generate-exported-symbols:
96 +($(CD) $(TOPDIR)/make && $(MAKE) $(MAKE_ARGS) -f BuildStatic.gmk)
97
98 ALL_TARGETS += import-hotspot unpack-sec generate-exported-symbols
99
100 ################################################################################
101 # Gensrc targets, generating source before java compilation can be done
201 ALL_TARGETS += hotspot
202
203 ################################################################################
204 # Build demos and samples targets
205
206 demos-jdk:
207 +($(CD) $(JDK_TOPDIR)/make && $(MAKE) $(MAKE_ARGS) -f CompileDemos.gmk)
208
209 samples-jdk:
210 +($(CD) $(JDK_TOPDIR)/make && $(MAKE) $(MAKE_ARGS) -f CopySamples.gmk)
211
212 ALL_TARGETS += demos-jdk samples-jdk
213
214 ################################################################################
215 # Image targets
216
217 # Stores the tips for each repository. This file is be used when constructing the jdk image and can be
218 # used to track the exact sources used to build that image.
219 source-tips: $(SUPPORT_OUTPUTDIR)/source_tips
220 $(SUPPORT_OUTPUTDIR)/source_tips: FRC
221 @$(MKDIR) -p $(@D)
222 @$(RM) $@
223 @$(call GetSourceTips)
224
225 BOOTCYCLE_TARGET := product-images
226 bootcycle-images:
227 @$(ECHO) Boot cycle build step 2: Building a new JDK image using previously built image
228 +$(MAKE) -f $(SRC_ROOT)/make/Init.gmk PARALLEL_TARGETS=$(BOOTCYCLE_TARGET) \
229 JOBS= SPEC=$(dir $(SPEC))bootcycle-spec.gmk main
230
231 zip-security:
232 +($(CD) $(SRC_ROOT)/make && $(MAKE) $(MAKE_ARGS) -f ZipSecurity.gmk)
233
234 zip-source:
235 +($(CD) $(SRC_ROOT)/make && $(MAKE) $(MAKE_ARGS) -f ZipSource.gmk)
236
237 strip-binaries:
238 +($(CD) $(SRC_ROOT)/make && $(MAKE) $(MAKE_ARGS) -f StripBinaries.gmk)
239
240 jrtfs-jar:
241 +($(CD) $(SRC_ROOT)/make && $(MAKE) $(MAKE_ARGS) -f JrtfsJar.gmk)
639
640 ALL_TARGETS += $(addsuffix -only, $(filter-out dist-clean clean%, $(ALL_TARGETS)))
641
642 ################################################################################
643
644 # Include JPRT targets
645 include $(SRC_ROOT)/make/Jprt.gmk
646
647 ################################################################################
648
649 # The following targets are intentionally not added to ALL_TARGETS since they
650 # are internal only, to support Init.gmk.
651
652 print-targets:
653 @$(ECHO) $(sort $(ALL_TARGETS))
654
655 print-modules:
656 @$(ECHO) $(sort $(ALL_MODULES))
657
658 create-main-targets-include:
659 @$(ECHO) $(LOG_INFO) Generating main target list
660 @$(ECHO) ALL_MAIN_TARGETS := $(sort $(ALL_TARGETS)) > \
661 $(MAKESUPPORT_OUTPUTDIR)/main-targets.gmk
662
663 ################################################################################
664
665 .PHONY: $(ALL_TARGETS)
666
667 FRC: # Force target
|
61 # Recipes for all targets. Only recipes, dependencies are declared later.
62 #
63 ################################################################################
64
65 ################################################################################
66 # Interim/build tools targets, compiling tools used during the build
67
68 buildtools-langtools:
69 +($(CD) $(LANGTOOLS_TOPDIR)/make && $(MAKE) $(MAKE_ARGS) -f Tools.gmk)
70
71 interim-langtools:
72 +($(CD) $(LANGTOOLS_TOPDIR)/make && $(MAKE) $(MAKE_ARGS) -f CompileInterim.gmk)
73
74 interim-rmic:
75 +($(CD) $(JDK_TOPDIR)/make && $(MAKE) $(MAKE_ARGS) -f CompileInterimRmic.gmk)
76
77 interim-cldrconverter:
78 +($(CD) $(JDK_TOPDIR)/make && $(MAKE) $(MAKE_ARGS) -f CopyInterimCLDRConverter.gmk)
79
80 buildtools-jdk:
81 +($(CD) $(JDK_TOPDIR)/make && $(MAKE) $(MAKE_ARGS) -f CompileTools.gmk)
82
83 ALL_TARGETS += buildtools-langtools interim-langtools \
84 interim-rmic interim-cldrconverter buildtools-jdk
85
86 ################################################################################
87 # Special targets for certain modules
88
89 import-hotspot:
90 +($(CD) $(JDK_TOPDIR)/make && $(MAKE) $(MAKE_ARGS) -f Import.gmk)
91
92 unpack-sec:
93 +($(CD) $(JDK_TOPDIR)/make && $(MAKE) $(MAKE_ARGS) -f UnpackSecurity.gmk)
94
95 generate-exported-symbols:
96 +($(CD) $(TOPDIR)/make && $(MAKE) $(MAKE_ARGS) -f BuildStatic.gmk)
97
98 ALL_TARGETS += import-hotspot unpack-sec generate-exported-symbols
99
100 ################################################################################
101 # Gensrc targets, generating source before java compilation can be done
201 ALL_TARGETS += hotspot
202
203 ################################################################################
204 # Build demos and samples targets
205
206 demos-jdk:
207 +($(CD) $(JDK_TOPDIR)/make && $(MAKE) $(MAKE_ARGS) -f CompileDemos.gmk)
208
209 samples-jdk:
210 +($(CD) $(JDK_TOPDIR)/make && $(MAKE) $(MAKE_ARGS) -f CopySamples.gmk)
211
212 ALL_TARGETS += demos-jdk samples-jdk
213
214 ################################################################################
215 # Image targets
216
217 # Stores the tips for each repository. This file is be used when constructing the jdk image and can be
218 # used to track the exact sources used to build that image.
219 source-tips: $(SUPPORT_OUTPUTDIR)/source_tips
220 $(SUPPORT_OUTPUTDIR)/source_tips: FRC
221 $(call MakeDir, $(@D))
222 @$(RM) $@
223 @$(call GetSourceTips)
224
225 BOOTCYCLE_TARGET := product-images
226 bootcycle-images:
227 @$(ECHO) Boot cycle build step 2: Building a new JDK image using previously built image
228 +$(MAKE) -f $(SRC_ROOT)/make/Init.gmk PARALLEL_TARGETS=$(BOOTCYCLE_TARGET) \
229 JOBS= SPEC=$(dir $(SPEC))bootcycle-spec.gmk main
230
231 zip-security:
232 +($(CD) $(SRC_ROOT)/make && $(MAKE) $(MAKE_ARGS) -f ZipSecurity.gmk)
233
234 zip-source:
235 +($(CD) $(SRC_ROOT)/make && $(MAKE) $(MAKE_ARGS) -f ZipSource.gmk)
236
237 strip-binaries:
238 +($(CD) $(SRC_ROOT)/make && $(MAKE) $(MAKE_ARGS) -f StripBinaries.gmk)
239
240 jrtfs-jar:
241 +($(CD) $(SRC_ROOT)/make && $(MAKE) $(MAKE_ARGS) -f JrtfsJar.gmk)
639
640 ALL_TARGETS += $(addsuffix -only, $(filter-out dist-clean clean%, $(ALL_TARGETS)))
641
642 ################################################################################
643
644 # Include JPRT targets
645 include $(SRC_ROOT)/make/Jprt.gmk
646
647 ################################################################################
648
649 # The following targets are intentionally not added to ALL_TARGETS since they
650 # are internal only, to support Init.gmk.
651
652 print-targets:
653 @$(ECHO) $(sort $(ALL_TARGETS))
654
655 print-modules:
656 @$(ECHO) $(sort $(ALL_MODULES))
657
658 create-main-targets-include:
659 $(call LogInfo, Generating main target list)
660 @$(ECHO) ALL_MAIN_TARGETS := $(sort $(ALL_TARGETS)) > \
661 $(MAKESUPPORT_OUTPUTDIR)/main-targets.gmk
662
663 ################################################################################
664
665 .PHONY: $(ALL_TARGETS)
666
667 FRC: # Force target
|