140 # |
140 # |
141 # Target Tree Type Build Dir |
141 # Target Tree Type Build Dir |
142 # |
142 # |
143 # debug compiler2 <os>_<arch>_compiler2/debug |
143 # debug compiler2 <os>_<arch>_compiler2/debug |
144 # fastdebug compiler2 <os>_<arch>_compiler2/fastdebug |
144 # fastdebug compiler2 <os>_<arch>_compiler2/fastdebug |
145 # jvmg compiler2 <os>_<arch>_compiler2/jvmg |
|
146 # optimized compiler2 <os>_<arch>_compiler2/optimized |
145 # optimized compiler2 <os>_<arch>_compiler2/optimized |
147 # profiled compiler2 <os>_<arch>_compiler2/profiled |
|
148 # product compiler2 <os>_<arch>_compiler2/product |
146 # product compiler2 <os>_<arch>_compiler2/product |
149 # |
147 # |
150 # debug1 compiler1 <os>_<arch>_compiler1/debug |
148 # debug1 compiler1 <os>_<arch>_compiler1/debug |
151 # fastdebug1 compiler1 <os>_<arch>_compiler1/fastdebug |
149 # fastdebug1 compiler1 <os>_<arch>_compiler1/fastdebug |
152 # jvmg1 compiler1 <os>_<arch>_compiler1/jvmg |
|
153 # optimized1 compiler1 <os>_<arch>_compiler1/optimized |
150 # optimized1 compiler1 <os>_<arch>_compiler1/optimized |
154 # profiled1 compiler1 <os>_<arch>_compiler1/profiled |
|
155 # product1 compiler1 <os>_<arch>_compiler1/product |
151 # product1 compiler1 <os>_<arch>_compiler1/product |
156 # |
152 # |
157 # debugcore core <os>_<arch>_core/debug |
153 # debugcore core <os>_<arch>_core/debug |
158 # fastdebugcore core <os>_<arch>_core/fastdebug |
154 # fastdebugcore core <os>_<arch>_core/fastdebug |
159 # jvmgcore core <os>_<arch>_core/jvmg |
|
160 # optimizedcore core <os>_<arch>_core/optimized |
155 # optimizedcore core <os>_<arch>_core/optimized |
161 # profiledcore core <os>_<arch>_core/profiled |
|
162 # productcore core <os>_<arch>_core/product |
156 # productcore core <os>_<arch>_core/product |
163 # |
157 # |
164 # debugzero zero <os>_<arch>_zero/debug |
158 # debugzero zero <os>_<arch>_zero/debug |
165 # fastdebugzero zero <os>_<arch>_zero/fastdebug |
159 # fastdebugzero zero <os>_<arch>_zero/fastdebug |
166 # jvmgzero zero <os>_<arch>_zero/jvmg |
|
167 # optimizedzero zero <os>_<arch>_zero/optimized |
160 # optimizedzero zero <os>_<arch>_zero/optimized |
168 # profiledzero zero <os>_<arch>_zero/profiled |
|
169 # productzero zero <os>_<arch>_zero/product |
161 # productzero zero <os>_<arch>_zero/product |
170 # |
162 # |
171 # debugshark shark <os>_<arch>_shark/debug |
163 # debugshark shark <os>_<arch>_shark/debug |
172 # fastdebugshark shark <os>_<arch>_shark/fastdebug |
164 # fastdebugshark shark <os>_<arch>_shark/fastdebug |
173 # jvmgshark shark <os>_<arch>_shark/jvmg |
|
174 # optimizedshark shark <os>_<arch>_shark/optimized |
165 # optimizedshark shark <os>_<arch>_shark/optimized |
175 # profiledshark shark <os>_<arch>_shark/profiled |
|
176 # productshark shark <os>_<arch>_shark/product |
166 # productshark shark <os>_<arch>_shark/product |
177 # |
167 # |
178 # fastdebugminimal1 minimal1 <os>_<arch>_minimal1/fastdebug |
168 # fastdebugminimal1 minimal1 <os>_<arch>_minimal1/fastdebug |
179 # jvmgminimal1 minimal1 <os>_<arch>_minimal1/jvmg |
|
180 # productminimal1 minimal1 <os>_<arch>_minimal1/product |
169 # productminimal1 minimal1 <os>_<arch>_minimal1/product |
181 # |
170 # |
182 # What you get with each target: |
171 # What you get with each target: |
183 # |
172 # |
184 # debug* - "thin" libjvm - debug info linked into the gamma launcher |
173 # debug* - debug compile with asserts enabled |
185 # fastdebug* - optimized compile, but with asserts enabled |
174 # fastdebug* - optimized compile, but with asserts enabled |
186 # jvmg* - "fat" libjvm - debug info linked into libjvm.so |
|
187 # optimized* - optimized compile, no asserts |
175 # optimized* - optimized compile, no asserts |
188 # profiled* - gprof |
|
189 # product* - the shippable thing: optimized compile, no asserts, -DPRODUCT |
176 # product* - the shippable thing: optimized compile, no asserts, -DPRODUCT |
190 |
177 |
191 # This target list needs to be coordinated with the usage message |
178 # This target list needs to be coordinated with the usage message |
192 # in the build.sh script: |
179 # in the build.sh script: |
193 TARGETS = debug jvmg fastdebug optimized profiled product |
180 TARGETS = debug fastdebug optimized product |
194 |
181 |
195 ifeq ($(findstring true, $(JVM_VARIANT_ZERO) $(JVM_VARIANT_ZEROSHARK)), true) |
182 ifeq ($(findstring true, $(JVM_VARIANT_ZERO) $(JVM_VARIANT_ZEROSHARK)), true) |
196 SUBDIR_DOCS = $(OSNAME)_$(VARIANTARCH)_docs |
183 SUBDIR_DOCS = $(OSNAME)_$(VARIANTARCH)_docs |
197 else |
184 else |
198 SUBDIR_DOCS = $(OSNAME)_$(BUILDARCH)_docs |
185 SUBDIR_DOCS = $(OSNAME)_$(BUILDARCH)_docs |
355 docs: checks |
342 docs: checks |
356 $(QUIETLY) mkdir -p $(SUBDIR_DOCS) |
343 $(QUIETLY) mkdir -p $(SUBDIR_DOCS) |
357 $(MAKE) -f $(GAMMADIR)/make/$(OSNAME)/makefiles/jvmti.make $(MFLAGS) $(BUILDTREE_VARS) JvmtiOutDir=$(SUBDIR_DOCS) BUILD_FLAVOR=product jvmtidocs |
344 $(MAKE) -f $(GAMMADIR)/make/$(OSNAME)/makefiles/jvmti.make $(MFLAGS) $(BUILDTREE_VARS) JvmtiOutDir=$(SUBDIR_DOCS) BUILD_FLAVOR=product jvmtidocs |
358 |
345 |
359 # Synonyms for win32-like targets. |
346 # Synonyms for win32-like targets. |
360 compiler2: jvmg product |
347 compiler2: debug product |
361 |
348 |
362 compiler1: jvmg1 product1 |
349 compiler1: debug1 product1 |
363 |
350 |
364 core: jvmgcore productcore |
351 core: debugcore productcore |
365 |
352 |
366 zero: jvmgzero productzero |
353 zero: debugzero productzero |
367 |
354 |
368 shark: jvmgshark productshark |
355 shark: debugshark productshark |
|
356 |
|
357 warn_jvmg_deprecated: |
|
358 echo "Warning: The jvmg target has been replaced with debug" |
|
359 echo "Warning: Please update your usage" |
|
360 |
|
361 jvmg: warn_jvmg_deprecated debug |
|
362 |
|
363 jvmg1: warn_jvmg_deprecated debug1 |
|
364 |
|
365 jvmgcore: warn_jvmg_deprecated debugcore |
|
366 |
|
367 jvmgzero: warn_jvmg_deprecated debugzero |
|
368 |
|
369 jvmgshark: warn_jvmg_deprecated debugshark |
369 |
370 |
370 clean_docs: |
371 clean_docs: |
371 rm -rf $(SUBDIR_DOCS) |
372 rm -rf $(SUBDIR_DOCS) |
372 |
373 |
373 clean_compiler1 clean_compiler2 clean_core clean_zero clean_shark clean_minimal1: |
374 clean_compiler1 clean_compiler2 clean_core clean_zero clean_shark clean_minimal1: |