1 | # |
---|
2 | # $Id: Makefile.deps 88 2008-12-10 18:31:39Z rosiere $ |
---|
3 | # |
---|
4 | # [ Description ] |
---|
5 | # |
---|
6 | # Makefile |
---|
7 | # |
---|
8 | # DIR_MORPHEO must be defined |
---|
9 | |
---|
10 | Core = yes |
---|
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 |
---|
21 | ifndef Multi_Front_end |
---|
22 | include $(DIR_MORPHEO)/Behavioural/Core/Multi_Front_end/Front_end/Makefile.deps |
---|
23 | endif |
---|
24 | ifndef Multi_OOO_Engine |
---|
25 | include $(DIR_MORPHEO)/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Makefile.deps |
---|
26 | endif |
---|
27 | ifndef Multi_Execute_loop |
---|
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 | Core_DIR_LIBRARY = -L$(Core_DIR)/lib \ |
---|
50 | $(Icache_Access_DIR_LIBRARY) \ |
---|
51 | $(Dcache_Access_DIR_LIBRARY) \ |
---|
52 | $(Front_end_DIR_LIBRARY) \ |
---|
53 | $(OOO_Engine_DIR_LIBRARY) \ |
---|
54 | $(Execute_loop_DIR_LIBRARY) \ |
---|
55 | $(Core_Glue_DIR_LIBRARY) \ |
---|
56 | $(Behavioural_DIR_LIBRARY) |
---|
57 | |
---|
58 | #-----[ Rules ]-------------------------------------------- |
---|
59 | |
---|
60 | Core_library : |
---|
61 | @\ |
---|
62 | $(MAKE) Behavioural_library; \ |
---|
63 | $(MAKE) Icache_Access_library; \ |
---|
64 | $(MAKE) Dcache_Access_library; \ |
---|
65 | $(MAKE) Front_end_library; \ |
---|
66 | $(MAKE) OOO_Engine_library; \ |
---|
67 | $(MAKE) Execute_loop_library; \ |
---|
68 | $(MAKE) Core_Glue_library; \ |
---|
69 | $(MAKE) --directory=$(Core_DIR) --makefile=Makefile; |
---|
70 | |
---|
71 | Core_library_clean : |
---|
72 | @\ |
---|
73 | $(MAKE) Behavioural_library_clean; \ |
---|
74 | $(MAKE) Icache_Access_library_clean; \ |
---|
75 | $(MAKE) Dcache_Access_library_clean; \ |
---|
76 | $(MAKE) Front_end_library_clean; \ |
---|
77 | $(MAKE) OOO_Engine_library_clean; \ |
---|
78 | $(MAKE) Execute_loop_library_clean; \ |
---|
79 | $(MAKE) Core_Glue_library_clean; \ |
---|
80 | $(MAKE) --directory=$(Core_DIR) --makefile=Makefile clean; |
---|