Mercurial > hg > graal-compiler
comparison make/Makefile @ 14489:f460c6926af7
Merge
author | ehelin |
---|---|
date | Tue, 25 Feb 2014 11:02:11 +0100 |
parents | 8a9bb7821e28 |
children | d8041d695d19 |
comparison
equal
deleted
inserted
replaced
14488:60fd6d24f49f | 14489:f460c6926af7 |
---|---|
85 endif | 85 endif |
86 | 86 |
87 # Typical C1/C2 targets made available with this Makefile | 87 # Typical C1/C2 targets made available with this Makefile |
88 C1_VM_TARGETS=product1 fastdebug1 optimized1 debug1 | 88 C1_VM_TARGETS=product1 fastdebug1 optimized1 debug1 |
89 C2_VM_TARGETS=product fastdebug optimized debug | 89 C2_VM_TARGETS=product fastdebug optimized debug |
90 CORE_VM_TARGETS=productcore fastdebugcore optimizedcore debugcore | |
90 ZERO_VM_TARGETS=productzero fastdebugzero optimizedzero debugzero | 91 ZERO_VM_TARGETS=productzero fastdebugzero optimizedzero debugzero |
91 SHARK_VM_TARGETS=productshark fastdebugshark optimizedshark debugshark | 92 SHARK_VM_TARGETS=productshark fastdebugshark optimizedshark debugshark |
92 MINIMAL1_VM_TARGETS=productminimal1 fastdebugminimal1 debugminimal1 | 93 MINIMAL1_VM_TARGETS=productminimal1 fastdebugminimal1 debugminimal1 |
93 | 94 |
94 COMMON_VM_PRODUCT_TARGETS=product product1 docs export_product | 95 COMMON_VM_PRODUCT_TARGETS=product product1 docs export_product |
134 all_productshark: productshark docs export_product | 135 all_productshark: productshark docs export_product |
135 all_fastdebugshark: fastdebugshark docs export_fastdebug | 136 all_fastdebugshark: fastdebugshark docs export_fastdebug |
136 all_debugshark: debugshark docs export_debug | 137 all_debugshark: debugshark docs export_debug |
137 all_optimizedshark: optimizedshark docs export_optimized | 138 all_optimizedshark: optimizedshark docs export_optimized |
138 | 139 |
140 allcore: all_productcore all_fastdebugcore | |
141 all_productcore: productcore docs export_product | |
142 all_fastdebugcore: fastdebugcore docs export_fastdebug | |
143 all_debugcore: debugcore docs export_debug | |
144 all_optimizedcore: optimizedcore docs export_optimized | |
145 | |
139 # Do everything | 146 # Do everything |
140 world: all create_jdk | 147 world: all create_jdk |
141 | 148 |
142 # Build or export docs | 149 # Build or export docs |
143 docs: | 150 docs: |
152 endif | 159 endif |
153 | 160 |
154 # Output directories | 161 # Output directories |
155 C1_DIR =$(OUTPUTDIR)/$(VM_PLATFORM)_compiler1 | 162 C1_DIR =$(OUTPUTDIR)/$(VM_PLATFORM)_compiler1 |
156 C2_DIR =$(OUTPUTDIR)/$(VM_PLATFORM)_compiler2 | 163 C2_DIR =$(OUTPUTDIR)/$(VM_PLATFORM)_compiler2 |
164 CORE_DIR =$(OUTPUTDIR)/$(VM_PLATFORM)_core | |
157 MINIMAL1_DIR=$(OUTPUTDIR)/$(VM_PLATFORM)_minimal1 | 165 MINIMAL1_DIR=$(OUTPUTDIR)/$(VM_PLATFORM)_minimal1 |
158 ZERO_DIR =$(OUTPUTDIR)/$(VM_PLATFORM)_zero | 166 ZERO_DIR =$(OUTPUTDIR)/$(VM_PLATFORM)_zero |
159 SHARK_DIR =$(OUTPUTDIR)/$(VM_PLATFORM)_shark | 167 SHARK_DIR =$(OUTPUTDIR)/$(VM_PLATFORM)_shark |
160 | 168 |
161 # Build variation of hotspot | 169 # Build variation of hotspot |
164 $(MAKE) BUILD_DIR=$(C1_DIR) BUILD_FLAVOR=$(@:%1=%) VM_TARGET=$@ generic_build1 $(ALT_OUT) | 172 $(MAKE) BUILD_DIR=$(C1_DIR) BUILD_FLAVOR=$(@:%1=%) VM_TARGET=$@ generic_build1 $(ALT_OUT) |
165 | 173 |
166 $(C2_VM_TARGETS): | 174 $(C2_VM_TARGETS): |
167 $(CD) $(GAMMADIR)/make; \ | 175 $(CD) $(GAMMADIR)/make; \ |
168 $(MAKE) BUILD_DIR=$(C2_DIR) BUILD_FLAVOR=$@ VM_TARGET=$@ generic_build2 $(ALT_OUT) | 176 $(MAKE) BUILD_DIR=$(C2_DIR) BUILD_FLAVOR=$@ VM_TARGET=$@ generic_build2 $(ALT_OUT) |
177 | |
178 $(CORE_VM_TARGETS): | |
179 $(CD) $(GAMMADIR)/make; \ | |
180 $(MAKE) BUILD_DIR=$(CORE_DIR) BUILD_FLAVOR=$(@:%core=%) VM_TARGET=$@ generic_buildcore $(ALT_OUT) | |
169 | 181 |
170 $(ZERO_VM_TARGETS): | 182 $(ZERO_VM_TARGETS): |
171 $(CD) $(GAMMADIR)/make; \ | 183 $(CD) $(GAMMADIR)/make; \ |
172 $(MAKE) BUILD_DIR=$(ZERO_DIR) BUILD_FLAVOR=$(@:%zero=%) VM_TARGET=$@ generic_buildzero $(ALT_OUT) | 184 $(MAKE) BUILD_DIR=$(ZERO_DIR) BUILD_FLAVOR=$(@:%zero=%) VM_TARGET=$@ generic_buildzero $(ALT_OUT) |
173 | 185 |
224 $(MAKE_ARGS) $(VM_TARGET) | 236 $(MAKE_ARGS) $(VM_TARGET) |
225 else | 237 else |
226 $(CD) $(OUTPUTDIR); \ | 238 $(CD) $(OUTPUTDIR); \ |
227 $(MAKE) -f $(ABS_OS_MAKEFILE) \ | 239 $(MAKE) -f $(ABS_OS_MAKEFILE) \ |
228 $(MAKE_ARGS) $(VM_TARGET) | 240 $(MAKE_ARGS) $(VM_TARGET) |
241 endif | |
242 | |
243 generic_buildcore: $(HOTSPOT_SCRIPT) | |
244 ifeq ($(HS_ARCH),ppc) | |
245 ifeq ($(ARCH_DATA_MODEL),64) | |
246 $(MKDIR) -p $(OUTPUTDIR) | |
247 $(CD) $(OUTPUTDIR); \ | |
248 $(MAKE) -f $(ABS_OS_MAKEFILE) \ | |
249 $(MAKE_ARGS) $(VM_TARGET) | |
250 else | |
251 @$(ECHO) "No ($(VM_TARGET)) for ppc ARCH_DATA_MODEL=$(ARCH_DATA_MODEL)" | |
252 endif | |
253 else | |
254 @$(ECHO) "No ($(VM_TARGET)) for $(HS_ARCH)" | |
229 endif | 255 endif |
230 | 256 |
231 generic_buildzero: $(HOTSPOT_SCRIPT) | 257 generic_buildzero: $(HOTSPOT_SCRIPT) |
232 $(MKDIR) -p $(OUTPUTDIR) | 258 $(MKDIR) -p $(OUTPUTDIR) |
233 $(CD) $(OUTPUTDIR); \ | 259 $(CD) $(OUTPUTDIR); \ |
285 # Export file copy rules | 311 # Export file copy rules |
286 XUSAGE=$(HS_SRC_DIR)/share/vm/Xusage.txt | 312 XUSAGE=$(HS_SRC_DIR)/share/vm/Xusage.txt |
287 DOCS_DIR=$(OUTPUTDIR)/$(VM_PLATFORM)_docs | 313 DOCS_DIR=$(OUTPUTDIR)/$(VM_PLATFORM)_docs |
288 C1_BUILD_DIR =$(C1_DIR)/$(BUILD_FLAVOR) | 314 C1_BUILD_DIR =$(C1_DIR)/$(BUILD_FLAVOR) |
289 C2_BUILD_DIR =$(C2_DIR)/$(BUILD_FLAVOR) | 315 C2_BUILD_DIR =$(C2_DIR)/$(BUILD_FLAVOR) |
316 CORE_BUILD_DIR =$(CORE_DIR)/$(BUILD_FLAVOR) | |
290 MINIMAL1_BUILD_DIR=$(MINIMAL1_DIR)/$(BUILD_FLAVOR) | 317 MINIMAL1_BUILD_DIR=$(MINIMAL1_DIR)/$(BUILD_FLAVOR) |
291 ZERO_BUILD_DIR =$(ZERO_DIR)/$(BUILD_FLAVOR) | 318 ZERO_BUILD_DIR =$(ZERO_DIR)/$(BUILD_FLAVOR) |
292 SHARK_BUILD_DIR =$(SHARK_DIR)/$(BUILD_FLAVOR) | 319 SHARK_BUILD_DIR =$(SHARK_DIR)/$(BUILD_FLAVOR) |
293 | 320 |
294 # Server (C2) | 321 # Server (C2) |
460 # MacOS X | 487 # MacOS X |
461 $(EXPORT_JRE_LIB_ARCH_DIR)/%.dSYM: $(ZERO_BUILD_DIR)/%.dSYM | 488 $(EXPORT_JRE_LIB_ARCH_DIR)/%.dSYM: $(ZERO_BUILD_DIR)/%.dSYM |
462 $(install-dir) | 489 $(install-dir) |
463 $(EXPORT_SERVER_DIR)/%.dSYM: $(ZERO_BUILD_DIR)/%.dSYM | 490 $(EXPORT_SERVER_DIR)/%.dSYM: $(ZERO_BUILD_DIR)/%.dSYM |
464 $(install-dir) | 491 $(install-dir) |
492 endif | |
493 | |
494 # Core | |
495 ifeq ($(JVM_VARIANT_CORE), true) | |
496 # Common | |
497 $(EXPORT_LIB_DIR)/%.jar: $(CORE_BUILD_DIR)/../generated/%.jar | |
498 $(install-file) | |
499 $(EXPORT_INCLUDE_DIR)/%: $(CORE_BUILD_DIR)/../generated/jvmtifiles/% | |
500 $(install-file) | |
501 # Unix | |
502 $(EXPORT_JRE_LIB_ARCH_DIR)/%.$(LIBRARY_SUFFIX): $(CORE_BUILD_DIR)/%.$(LIBRARY_SUFFIX) | |
503 $(install-file) | |
504 $(EXPORT_JRE_LIB_ARCH_DIR)/%.debuginfo: $(CORE_BUILD_DIR)/%.debuginfo | |
505 $(install-file) | |
506 $(EXPORT_JRE_LIB_ARCH_DIR)/%.diz: $(CORE_BUILD_DIR)/%.diz | |
507 $(install-file) | |
508 $(EXPORT_SERVER_DIR)/%.$(LIBRARY_SUFFIX): $(CORE_BUILD_DIR)/%.$(LIBRARY_SUFFIX) | |
509 $(install-file) | |
510 $(EXPORT_SERVER_DIR)/%.debuginfo: $(CORE_BUILD_DIR)/%.debuginfo | |
511 $(install-file) | |
512 $(EXPORT_SERVER_DIR)/%.diz: $(CORE_BUILD_DIR)/%.diz | |
513 $(install-file) | |
465 endif | 514 endif |
466 | 515 |
467 # Shark | 516 # Shark |
468 ifeq ($(JVM_VARIANT_ZEROSHARK), true) | 517 ifeq ($(JVM_VARIANT_ZEROSHARK), true) |
469 # Common | 518 # Common |
529 # | 578 # |
530 clobber clean: clean_build clean_export clean_jdk | 579 clobber clean: clean_build clean_export clean_jdk |
531 clean_build: | 580 clean_build: |
532 $(RM) -r $(C1_DIR) | 581 $(RM) -r $(C1_DIR) |
533 $(RM) -r $(C2_DIR) | 582 $(RM) -r $(C2_DIR) |
583 $(RM) -r $(CORE_DIR) | |
534 $(RM) -r $(ZERO_DIR) | 584 $(RM) -r $(ZERO_DIR) |
535 $(RM) -r $(SHARK_DIR) | 585 $(RM) -r $(SHARK_DIR) |
536 $(RM) -r $(MINIMAL1_DIR) | 586 $(RM) -r $(MINIMAL1_DIR) |
537 clean_export: | 587 clean_export: |
538 $(RM) -r $(EXPORT_PATH) | 588 $(RM) -r $(EXPORT_PATH) |