[78] | 1 | # |
---|
| 2 | # $Id$ |
---|
| 3 | # |
---|
| 4 | # [ Description ] |
---|
| 5 | # |
---|
| 6 | # Makefile |
---|
| 7 | # |
---|
| 8 | # DIR_MORPHEO must be defined |
---|
| 9 | |
---|
| 10 | Execute_loop = yes |
---|
| 11 | |
---|
| 12 | ifndef Behavioural |
---|
| 13 | include $(DIR_MORPHEO)/Behavioural/Makefile.deps |
---|
| 14 | endif |
---|
| 15 | ifndef Read_unit |
---|
| 16 | include $(DIR_MORPHEO)/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Makefile.deps |
---|
| 17 | endif |
---|
| 18 | ifndef Functionnal_unit |
---|
| 19 | include $(DIR_MORPHEO)/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Execute_unit/Execute_unit/Functionnal_unit/Makefile.deps |
---|
| 20 | endif |
---|
| 21 | ifndef Load_store_unit |
---|
| 22 | include $(DIR_MORPHEO)/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Execute_unit/Execute_unit/Load_store_unit/Makefile.deps |
---|
| 23 | endif |
---|
| 24 | ifndef Write_unit |
---|
| 25 | include $(DIR_MORPHEO)/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Write_unit/Write_unit/Makefile.deps |
---|
| 26 | endif |
---|
| 27 | ifndef Register_unit |
---|
| 28 | include $(DIR_MORPHEO)/Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/Makefile.deps |
---|
| 29 | endif |
---|
| 30 | ifndef Read_unit_to_Execution_unit |
---|
| 31 | include $(DIR_MORPHEO)/Behavioural/Core/Multi_Execute_loop/Execute_loop/Network/Read_unit_to_Execution_unit/Makefile.deps |
---|
| 32 | endif |
---|
| 33 | ifndef Execution_unit_to_Write_unit |
---|
| 34 | include $(DIR_MORPHEO)/Behavioural/Core/Multi_Execute_loop/Execute_loop/Network/Execution_unit_to_Write_unit/Makefile.deps |
---|
| 35 | endif |
---|
| 36 | |
---|
| 37 | #-----[ Directory ]---------------------------------------- |
---|
| 38 | |
---|
| 39 | Execute_loop_DIR = $(DIR_MORPHEO)/Behavioural/Core/Multi_Execute_loop/Execute_loop |
---|
| 40 | |
---|
| 41 | #-----[ Library ]------------------------------------------ |
---|
| 42 | |
---|
| 43 | Execute_loop_LIBRARY = -lExecute_loop \ |
---|
| 44 | $(Behavioural_LIBRARY) \ |
---|
| 45 | $(Read_unit_LIBRARY) \ |
---|
| 46 | $(Functionnal_unit_LIBRARY) \ |
---|
| 47 | $(Load_store_unit_LIBRARY) \ |
---|
| 48 | $(Write_unit_LIBRARY) \ |
---|
| 49 | $(Register_unit_LIBRARY) \ |
---|
| 50 | $(Read_unit_to_Execution_unit_LIBRARY) \ |
---|
| 51 | $(Execution_unit_to_Write_unit_LIBRARY) |
---|
| 52 | |
---|
| 53 | |
---|
| 54 | Execute_loop_DIR_LIBRARY = -L$(Execute_loop_DIR)/lib \ |
---|
| 55 | $(Behavioural_DIR_LIBRARY) \ |
---|
| 56 | $(Behavioural_DIR_LIBRARY) \ |
---|
| 57 | $(Read_unit_DIR_LIBRARY) \ |
---|
| 58 | $(Functionnal_unit_DIR_LIBRARY) \ |
---|
| 59 | $(Load_store_unit_DIR_LIBRARY) \ |
---|
| 60 | $(Write_unit_DIR_LIBRARY) \ |
---|
| 61 | $(Register_unit_DIR_LIBRARY) \ |
---|
| 62 | $(Read_unit_to_Execution_unit_DIR_LIBRARY) \ |
---|
| 63 | $(Execution_unit_to_Write_unit_DIR_LIBRARY) |
---|
| 64 | |
---|
| 65 | |
---|
| 66 | #-----[ Rules ]-------------------------------------------- |
---|
| 67 | |
---|
| 68 | Execute_loop_library : |
---|
| 69 | @\ |
---|
| 70 | $(MAKE) Behavioural_library; \ |
---|
| 71 | $(MAKE) Read_unit_library; \ |
---|
| 72 | $(MAKE) Functionnal_unit_library; \ |
---|
| 73 | $(MAKE) Load_store_unit_library; \ |
---|
| 74 | $(MAKE) Write_unit_library; \ |
---|
| 75 | $(MAKE) Register_unit_library; \ |
---|
| 76 | $(MAKE) Read_unit_to_Execution_unit_library; \ |
---|
| 77 | $(MAKE) Execution_unit_to_Write_unit_library; \ |
---|
| 78 | $(MAKE) --directory=$(Execute_loop_DIR) --makefile=Makefile; |
---|
| 79 | |
---|
| 80 | Execute_loop_library_clean : |
---|
| 81 | @\ |
---|
| 82 | $(MAKE) Behavioural_library_clean; \ |
---|
| 83 | $(MAKE) Read_unit_library_clean; \ |
---|
| 84 | $(MAKE) Functionnal_unit_library_clean; \ |
---|
| 85 | $(MAKE) Load_store_unit_library_clean; \ |
---|
| 86 | $(MAKE) Write_unit_library_clean; \ |
---|
| 87 | $(MAKE) Register_unit_library_clean; \ |
---|
| 88 | $(MAKE) Read_unit_to_Execution_unit_library_clean; \ |
---|
| 89 | $(MAKE) Execution_unit_to_Write_unit_library_clean; \ |
---|
| 90 | $(MAKE) --directory=$(Execute_loop_DIR) --makefile=Makefile clean; |
---|