1 | # |
---|
2 | # $Id: Makefile.deps 82 2008-05-01 16:48:45Z rosiere $ |
---|
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 | ifndef Prediction_unit_Glue |
---|
28 | include $(DIR_MORPHEO)/Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Prediction_unit_Glue/Makefile.deps |
---|
29 | endif |
---|
30 | |
---|
31 | #-----[ Directory ]---------------------------------------- |
---|
32 | |
---|
33 | Prediction_unit_DIR = $(DIR_MORPHEO)/Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit |
---|
34 | |
---|
35 | #-----[ Library ]------------------------------------------ |
---|
36 | |
---|
37 | Prediction_unit_LIBRARY = -lPrediction_unit \ |
---|
38 | $(Behavioural_LIBRARY) \ |
---|
39 | $(Branch_Target_Buffer_LIBRARY) \ |
---|
40 | $(Direction_LIBRARY) \ |
---|
41 | $(Return_Address_Stack_LIBRARY) \ |
---|
42 | $(Update_Prediction_Table_LIBRARY) \ |
---|
43 | $(Prediction_unit_Glue_LIBRARY) |
---|
44 | |
---|
45 | Prediction_unit_DIR_LIBRARY = -L$(Prediction_unit_DIR)/lib \ |
---|
46 | $(Behavioural_DIR_LIBRARY) \ |
---|
47 | $(Branch_Target_Buffer_DIR_LIBRARY) \ |
---|
48 | $(Direction_DIR_LIBRARY) \ |
---|
49 | $(Return_Address_Stack_DIR_LIBRARY) \ |
---|
50 | $(Update_Prediction_Table_DIR_LIBRARY) \ |
---|
51 | $(Prediction_unit_Glue_DIR_LIBRARY) |
---|
52 | |
---|
53 | |
---|
54 | #-----[ Rules ]-------------------------------------------- |
---|
55 | |
---|
56 | Prediction_unit_library : |
---|
57 | @\ |
---|
58 | $(MAKE) Behavioural_library; \ |
---|
59 | $(MAKE) Branch_Target_Buffer_library; \ |
---|
60 | $(MAKE) Direction_library; \ |
---|
61 | $(MAKE) Return_Address_Stack_library; \ |
---|
62 | $(MAKE) Update_Prediction_Table_library; \ |
---|
63 | $(MAKE) Prediction_unit_Glue_library; \ |
---|
64 | $(MAKE) --directory=$(Prediction_unit_DIR) --makefile=Makefile; |
---|
65 | |
---|
66 | Prediction_unit_library_clean : |
---|
67 | @\ |
---|
68 | $(MAKE) Behavioural_library_clean; \ |
---|
69 | $(MAKE) Branch_Target_Buffer_library_clean; \ |
---|
70 | $(MAKE) Direction_library_clean; \ |
---|
71 | $(MAKE) Return_Address_Stack_library_clean; \ |
---|
72 | $(MAKE) Update_Prediction_Table_library_clean; \ |
---|
73 | $(MAKE) Prediction_unit_Glue_library_clean; \ |
---|
74 | $(MAKE) --directory=$(Prediction_unit_DIR) --makefile=Makefile clean; |
---|