61 TOPDIR:=.
62 endif
63
64 ifndef JDK_TOPDIR
65 JDK_TOPDIR=$(TOPDIR)/jdk
66 endif
67 ifndef JDK_MAKE_SHARED_DIR
68 JDK_MAKE_SHARED_DIR=$(JDK_TOPDIR)/make/common/shared
69 endif
70
71 default: all
72
73 include $(JDK_MAKE_SHARED_DIR)/Defs-control.gmk
74 include ./make/Defs-internal.gmk
75 include ./make/sanity-rules.gmk
76 include ./make/hotspot-rules.gmk
77 include ./make/langtools-rules.gmk
78 include ./make/corba-rules.gmk
79 include ./make/jaxp-rules.gmk
80 include ./make/jaxws-rules.gmk
81 include ./make/jdk-rules.gmk
82 include ./make/install-rules.gmk
83 include ./make/sponsors-rules.gmk
84 include ./make/deploy-rules.gmk
85
86 all:: sanity
87
88 ifeq ($(SKIP_FASTDEBUG_BUILD), false)
89 all:: fastdebug_build
90 endif
91
92 ifeq ($(SKIP_DEBUG_BUILD), false)
93 all:: debug_build
94 endif
95
96 all:: all_product_build
97
98 all_product_build::
99
100 # Everything for a full product build
141 ifeq ($(BUILD_CORBA), true)
142 generic_build_repo_series:: corba
143 clobber:: corba-clobber
144 endif
145
146 ifeq ($(BUILD_JAXP), true)
147 generic_build_repo_series:: jaxp
148 clobber:: jaxp-clobber
149 endif
150
151 ifeq ($(BUILD_JAXWS), true)
152 generic_build_repo_series:: jaxws
153 clobber:: jaxws-clobber
154 endif
155
156 ifeq ($(BUILD_HOTSPOT), true)
157 generic_build_repo_series:: $(HOTSPOT)
158 clobber:: hotspot-clobber
159 endif
160
161 ifeq ($(BUILD_JDK), true)
162 generic_build_repo_series:: $(JDK_JAVA_EXE)
163 clobber:: jdk-clobber
164 endif
165
166 ifeq ($(BUILD_DEPLOY), true)
167 generic_build_repo_series:: $(DEPLOY)
168 clobber:: deploy-clobber
169 endif
170
171 generic_build_repo_series::
172 @$(call StopTimer,$(if $(DEBUG_NAME),$(DEBUG_NAME)_build,all_product_build))
173
174 # The debug build, fastdebug or debug. Needs special handling.
175 # Note that debug builds do NOT do INSTALL steps, but must be done
176 # after the product build and before the INSTALL step of the product build.
177 #
178 # DEBUG_NAME is fastdebug or debug
179 # ALT_OUTPUTDIR is changed to have -debug or -fastdebug suffix
180 # The resulting image directory (j2sdk-image) is used by the install makefiles
306 # Quick jdk verification build
307 #
308 jdk_only:
309 $(MAKE) SKIP_FASTDEBUG_BUILD=true BUILD_HOTSPOT=false all
310
311
312 #
313 # Quick jdk verification fastdebug build
314 #
315 jdk_fastdebug_only:
316 $(MAKE) DEBUG_NAME=fastdebug BUILD_HOTSPOT=false BUILD_DEPLOY=false \
317 BUILD_INSTALL=false BUILD_SPONSORS=false generic_debug_build
318
319 #
320 # Quick deploy verification fastdebug build
321 #
322 deploy_fastdebug_only:
323 $(MAKE) \
324 DEBUG_NAME=fastdebug \
325 BUILD_HOTSPOT=false \
326 BUILD_JDK=false \
327 BUILD_LANGTOOLS=false \
328 BUILD_CORBA=false \
329 BUILD_JAXP=false \
330 BUILD_JAXWS=false \
331 BUILD_INSTALL=false \
332 BUILD_SPONSORS=false \
333 generic_debug_build
334
335 #
336 # Product build (skip debug builds)
337 #
338 product_only:
339 $(MAKE) SKIP_FASTDEBUG_BUILD=true all
340
341 #
342 # Check target
343 #
344
345 check: variable_check
|
61 TOPDIR:=.
62 endif
63
64 ifndef JDK_TOPDIR
65 JDK_TOPDIR=$(TOPDIR)/jdk
66 endif
67 ifndef JDK_MAKE_SHARED_DIR
68 JDK_MAKE_SHARED_DIR=$(JDK_TOPDIR)/make/common/shared
69 endif
70
71 default: all
72
73 include $(JDK_MAKE_SHARED_DIR)/Defs-control.gmk
74 include ./make/Defs-internal.gmk
75 include ./make/sanity-rules.gmk
76 include ./make/hotspot-rules.gmk
77 include ./make/langtools-rules.gmk
78 include ./make/corba-rules.gmk
79 include ./make/jaxp-rules.gmk
80 include ./make/jaxws-rules.gmk
81 include ./make/bdb-rules.gmk
82 include ./make/jdk-rules.gmk
83 include ./make/install-rules.gmk
84 include ./make/sponsors-rules.gmk
85 include ./make/deploy-rules.gmk
86
87 all:: sanity
88
89 ifeq ($(SKIP_FASTDEBUG_BUILD), false)
90 all:: fastdebug_build
91 endif
92
93 ifeq ($(SKIP_DEBUG_BUILD), false)
94 all:: debug_build
95 endif
96
97 all:: all_product_build
98
99 all_product_build::
100
101 # Everything for a full product build
142 ifeq ($(BUILD_CORBA), true)
143 generic_build_repo_series:: corba
144 clobber:: corba-clobber
145 endif
146
147 ifeq ($(BUILD_JAXP), true)
148 generic_build_repo_series:: jaxp
149 clobber:: jaxp-clobber
150 endif
151
152 ifeq ($(BUILD_JAXWS), true)
153 generic_build_repo_series:: jaxws
154 clobber:: jaxws-clobber
155 endif
156
157 ifeq ($(BUILD_HOTSPOT), true)
158 generic_build_repo_series:: $(HOTSPOT)
159 clobber:: hotspot-clobber
160 endif
161
162 ifeq ($(BUILD_BDB), true)
163 generic_build_repo_series:: bdb
164 clobber:: bdb-clobber
165 endif
166
167 ifeq ($(BUILD_JDK), true)
168 generic_build_repo_series:: $(JDK_JAVA_EXE)
169 clobber:: jdk-clobber
170 endif
171
172 ifeq ($(BUILD_DEPLOY), true)
173 generic_build_repo_series:: $(DEPLOY)
174 clobber:: deploy-clobber
175 endif
176
177 generic_build_repo_series::
178 @$(call StopTimer,$(if $(DEBUG_NAME),$(DEBUG_NAME)_build,all_product_build))
179
180 # The debug build, fastdebug or debug. Needs special handling.
181 # Note that debug builds do NOT do INSTALL steps, but must be done
182 # after the product build and before the INSTALL step of the product build.
183 #
184 # DEBUG_NAME is fastdebug or debug
185 # ALT_OUTPUTDIR is changed to have -debug or -fastdebug suffix
186 # The resulting image directory (j2sdk-image) is used by the install makefiles
312 # Quick jdk verification build
313 #
314 jdk_only:
315 $(MAKE) SKIP_FASTDEBUG_BUILD=true BUILD_HOTSPOT=false all
316
317
318 #
319 # Quick jdk verification fastdebug build
320 #
321 jdk_fastdebug_only:
322 $(MAKE) DEBUG_NAME=fastdebug BUILD_HOTSPOT=false BUILD_DEPLOY=false \
323 BUILD_INSTALL=false BUILD_SPONSORS=false generic_debug_build
324
325 #
326 # Quick deploy verification fastdebug build
327 #
328 deploy_fastdebug_only:
329 $(MAKE) \
330 DEBUG_NAME=fastdebug \
331 BUILD_HOTSPOT=false \
332 BUILD_BDB=false \
333 BUILD_JDK=false \
334 BUILD_LANGTOOLS=false \
335 BUILD_CORBA=false \
336 BUILD_JAXP=false \
337 BUILD_JAXWS=false \
338 BUILD_INSTALL=false \
339 BUILD_SPONSORS=false \
340 generic_debug_build
341
342 #
343 # Product build (skip debug builds)
344 #
345 product_only:
346 $(MAKE) SKIP_FASTDEBUG_BUILD=true all
347
348 #
349 # Check target
350 #
351
352 check: variable_check
|