[88] | 1 | # |
---|
| 2 | # $Id: Makefile.deps 142 2010-08-04 20:09:03Z rosiere $ |
---|
| 3 | # |
---|
| 4 | # [ Description ] |
---|
| 5 | # |
---|
| 6 | # Makefile |
---|
| 7 | # |
---|
| 8 | # DIR_MORPHEO must be defined |
---|
| 9 | |
---|
[142] | 10 | Core = yes |
---|
[88] | 11 | |
---|
| 12 | ifndef Behavioural |
---|
| 13 | include $(DIR_MORPHEO)/Behavioural/Makefile.deps |
---|
| 14 | endif |
---|
| 15 | ifndef Icache_Access |
---|
| 16 | include $(DIR_MORPHEO)/Behavioural/Core/Icache_Access/Makefile.deps |
---|
| 17 | endif |
---|
| 18 | ifndef Dcache_Access |
---|
| 19 | include $(DIR_MORPHEO)/Behavioural/Core/Dcache_Access/Makefile.deps |
---|
| 20 | endif |
---|
[142] | 21 | ifndef Front_end |
---|
[88] | 22 | include $(DIR_MORPHEO)/Behavioural/Core/Multi_Front_end/Front_end/Makefile.deps |
---|
| 23 | endif |
---|
[142] | 24 | ifndef OOO_Engine |
---|
[88] | 25 | include $(DIR_MORPHEO)/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Makefile.deps |
---|
| 26 | endif |
---|
[142] | 27 | ifndef Execute_loop |
---|
[88] | 28 | include $(DIR_MORPHEO)/Behavioural/Core/Multi_Execute_loop/Execute_loop/Makefile.deps |
---|
| 29 | endif |
---|
| 30 | ifndef Core_Glue |
---|
| 31 | include $(DIR_MORPHEO)/Behavioural/Core/Core_Glue/Makefile.deps |
---|
| 32 | endif |
---|
| 33 | |
---|
| 34 | #-----[ Directory ]---------------------------------------- |
---|
| 35 | |
---|
| 36 | Core_DIR = $(DIR_MORPHEO)/Behavioural/Core |
---|
| 37 | |
---|
| 38 | #-----[ Library ]------------------------------------------ |
---|
| 39 | |
---|
| 40 | Core_LIBRARY = -lCore \ |
---|
| 41 | $(Icache_Access_LIBRARY) \ |
---|
| 42 | $(Dcache_Access_LIBRARY) \ |
---|
| 43 | $(Front_end_LIBRARY) \ |
---|
| 44 | $(OOO_Engine_LIBRARY) \ |
---|
| 45 | $(Execute_loop_LIBRARY) \ |
---|
| 46 | $(Core_Glue_LIBRARY) \ |
---|
| 47 | $(Behavioural_LIBRARY) |
---|
| 48 | |
---|
| 49 | #-----[ Rules ]-------------------------------------------- |
---|
| 50 | |
---|
[142] | 51 | Core_library_only : |
---|
[88] | 52 | @\ |
---|
[142] | 53 | $(MAKE) --directory=$(Core_DIR) --makefile=Makefile; |
---|
| 54 | |
---|
| 55 | Core_library_clean_only : |
---|
| 56 | @\ |
---|
| 57 | $(MAKE) --directory=$(Core_DIR) --makefile=Makefile clean; |
---|
| 58 | |
---|
| 59 | Core_library : Core_library_only |
---|
| 60 | @\ |
---|
[88] | 61 | $(MAKE) Behavioural_library; \ |
---|
| 62 | $(MAKE) Icache_Access_library; \ |
---|
| 63 | $(MAKE) Dcache_Access_library; \ |
---|
| 64 | $(MAKE) Front_end_library; \ |
---|
| 65 | $(MAKE) OOO_Engine_library; \ |
---|
| 66 | $(MAKE) Execute_loop_library; \ |
---|
[142] | 67 | $(MAKE) Core_Glue_library; |
---|
[88] | 68 | |
---|
[142] | 69 | Core_library_clean : Core_library_clean_only |
---|
[88] | 70 | @\ |
---|
| 71 | $(MAKE) Behavioural_library_clean; \ |
---|
| 72 | $(MAKE) Icache_Access_library_clean; \ |
---|
| 73 | $(MAKE) Dcache_Access_library_clean; \ |
---|
| 74 | $(MAKE) Front_end_library_clean; \ |
---|
| 75 | $(MAKE) OOO_Engine_library_clean; \ |
---|
| 76 | $(MAKE) Execute_loop_library_clean; \ |
---|
[142] | 77 | $(MAKE) Core_Glue_library_clean; |
---|