1 | # |
---|
2 | # $Id: Makefile.deps 81 2008-04-15 18:40:01Z rosiere $ |
---|
3 | # |
---|
4 | # [ Description ] |
---|
5 | # |
---|
6 | # Makefile |
---|
7 | # |
---|
8 | # DIR_MORPHEO must be defined |
---|
9 | |
---|
10 | Branch_Target_Buffer = yes |
---|
11 | |
---|
12 | ifndef Behavioural |
---|
13 | include $(DIR_MORPHEO)/Behavioural/Makefile.deps |
---|
14 | endif |
---|
15 | ifndef Branch_Target_Buffer_Glue |
---|
16 | include $(DIR_MORPHEO)/Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Branch_Target_Buffer/Branch_Target_Buffer_Glue/Makefile.deps |
---|
17 | endif |
---|
18 | ifndef Branch_Target_Buffer_Register |
---|
19 | include $(DIR_MORPHEO)/Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Branch_Target_Buffer/Branch_Target_Buffer_Register/Makefile.deps |
---|
20 | endif |
---|
21 | ifndef Sort |
---|
22 | include $(DIR_MORPHEO)/Behavioural/Generic/Sort/Makefile.deps |
---|
23 | endif |
---|
24 | ifndef Victim |
---|
25 | include $(DIR_MORPHEO)/Behavioural/Generic/Victim/Makefile.deps |
---|
26 | endif |
---|
27 | |
---|
28 | #-----[ Directory ]---------------------------------------- |
---|
29 | |
---|
30 | Branch_Target_Buffer_DIR = $(DIR_MORPHEO)/Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Branch_Target_Buffer |
---|
31 | |
---|
32 | #-----[ Library ]------------------------------------------ |
---|
33 | |
---|
34 | Branch_Target_Buffer_LIBRARY = -lBranch_Target_Buffer \ |
---|
35 | $(Branch_Target_Buffer_Glue_LIBRARY) \ |
---|
36 | $(Branch_Target_Buffer_Register_LIBRARY) \ |
---|
37 | $(Sort_LIBRARY) \ |
---|
38 | $(Victim_LIBRARY) \ |
---|
39 | $(Behavioural_LIBRARY) |
---|
40 | |
---|
41 | Branch_Target_Buffer_DIR_LIBRARY = -L$(Branch_Target_Buffer_DIR)/lib \ |
---|
42 | $(Branch_Target_Buffer_Glue_DIR_LIBRARY) \ |
---|
43 | $(Branch_Target_Buffer_Register_DIR_LIBRARY) \ |
---|
44 | $(Sort_DIR_LIBRARY) \ |
---|
45 | $(Victim_DIR_LIBRARY) \ |
---|
46 | $(Behavioural_DIR_LIBRARY) |
---|
47 | |
---|
48 | #-----[ Rules ]-------------------------------------------- |
---|
49 | |
---|
50 | Branch_Target_Buffer_library : |
---|
51 | @\ |
---|
52 | $(MAKE) Behavioural_library; \ |
---|
53 | $(MAKE) Branch_Target_Buffer_Glue_library; \ |
---|
54 | $(MAKE) Branch_Target_Buffer_Register_library; \ |
---|
55 | $(MAKE) Sort_library; \ |
---|
56 | $(MAKE) Victim_library; \ |
---|
57 | $(MAKE) --directory=$(Branch_Target_Buffer_DIR) --makefile=Makefile; |
---|
58 | |
---|
59 | Branch_Target_Buffer_library_clean : |
---|
60 | @\ |
---|
61 | $(MAKE) Behavioural_library_clean; \ |
---|
62 | $(MAKE) Branch_Target_Buffer_Glue_library_clean; \ |
---|
63 | $(MAKE) Branch_Target_Buffer_Register_library_clean; \ |
---|
64 | $(MAKE) Sort_library_clean; \ |
---|
65 | $(MAKE) Victim_library_clean; \ |
---|
66 | $(MAKE) --directory=$(Branch_Target_Buffer_DIR) --makefile=Makefile clean; |
---|