1 | # |
---|
2 | # $Id$ |
---|
3 | # |
---|
4 | # [ Description ] |
---|
5 | # |
---|
6 | # Makefile |
---|
7 | # |
---|
8 | # DIR_MORPHEO must be defined |
---|
9 | |
---|
10 | Prediction_unit = yes |
---|
11 | |
---|
12 | ifndef Behavioural |
---|
13 | include $(DIR_MORPHEO)/Behavioural/Makefile.deps |
---|
14 | endif |
---|
15 | ifndef Branch_Target_Buffer |
---|
16 | include $(DIR_MORPHEO)/Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Branch_Target_Buffer/Makefile.deps |
---|
17 | endif |
---|
18 | ifndef Direction |
---|
19 | include $(DIR_MORPHEO)/Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/Makefile.deps |
---|
20 | endif |
---|
21 | ifndef Return_Address_Stack |
---|
22 | include $(DIR_MORPHEO)/Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Return_Address_Stack/Makefile.deps |
---|
23 | endif |
---|
24 | ifndef Update_Prediction_Table |
---|
25 | include $(DIR_MORPHEO)/Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Update_Prediction_Table/Makefile.deps |
---|
26 | endif |
---|
27 | |
---|
28 | #-----[ Directory ]---------------------------------------- |
---|
29 | |
---|
30 | Prediction_unit_DIR = $(DIR_MORPHEO)/Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit |
---|
31 | |
---|
32 | #-----[ Library ]------------------------------------------ |
---|
33 | |
---|
34 | Prediction_unit_LIBRARY = -lPrediction_unit \ |
---|
35 | $(Behavioural_LIBRARY) \ |
---|
36 | $(Branch_Target_Buffer_LIBRARY) \ |
---|
37 | $(Direction_LIBRARY) \ |
---|
38 | $(Return_Address_Stack_LIBRARY) \ |
---|
39 | $(Update_Prediction_Table_LIBRARY) |
---|
40 | |
---|
41 | |
---|
42 | Prediction_unit_DIR_LIBRARY = -L$(Prediction_unit_DIR)/lib \ |
---|
43 | $(Behavioural_DIR_LIBRARY) \ |
---|
44 | $(Branch_Target_Buffer_DIR_LIBRARY) \ |
---|
45 | $(Direction_DIR_LIBRARY) \ |
---|
46 | $(Return_Address_Stack_DIR_LIBRARY) \ |
---|
47 | $(Update_Prediction_Table_DIR_LIBRARY) |
---|
48 | |
---|
49 | |
---|
50 | #-----[ Rules ]-------------------------------------------- |
---|
51 | |
---|
52 | Prediction_unit_library : |
---|
53 | @\ |
---|
54 | $(MAKE) Behavioural_library; \ |
---|
55 | $(MAKE) Branch_Target_Buffer_library; \ |
---|
56 | $(MAKE) Direction_library; \ |
---|
57 | $(MAKE) Return_Address_Stack_library; \ |
---|
58 | $(MAKE) Update_Prediction_Table_library; \ |
---|
59 | $(MAKE) --directory=$(Prediction_unit_DIR) --makefile=Makefile; |
---|
60 | |
---|
61 | Prediction_unit_library_clean : |
---|
62 | @\ |
---|
63 | $(MAKE) Behavioural_library_clean; \ |
---|
64 | $(MAKE) Branch_Target_Buffer_library_clean; \ |
---|
65 | $(MAKE) Direction_library_clean; \ |
---|
66 | $(MAKE) Return_Address_Stack_library_clean; \ |
---|
67 | $(MAKE) Update_Prediction_Table_library_clean; \ |
---|
68 | $(MAKE) --directory=$(Prediction_unit_DIR) --makefile=Makefile clean; |
---|