forked from hfuuss/alice
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
executable file
·72 lines (44 loc) · 1.24 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
include init.mk
include config.mk
first: all
include $(SUBMAKE)
Rcsc_Deps += $(patsubst %.o, %.d, $(Rcsc_Obj))
Player_Deps += $(patsubst %.o, %.d, $(Player_Obj))
Coach_Deps += $(patsubst %.o, %.d, $(Coach_Obj))
Trainer_Deps += $(patsubst %.o, %.d, $(Trainer_Obj))
-include $(Rcsc_Deps)
-include $(Player_Deps)
-include $(Coach_Deps)
-include $(Trainer_Deps)
all: $(config_target) \
$(player_target) $(coach_target) $(trainer_target)
$(player_target): $(Rcsc_Obj) $(Player_Obj)
$(CXX) -L. -o $@ $^
@echo ""
@echo "### Bulid Player success! ###"
@echo ""
$(coach_target): $(Rcsc_Obj) $(Coach_Obj)
$(CXX) -L. -o $@ $^
@echo ""
@echo "### Bulid Coach success! ###"
@echo ""
$(trainer_target): $(Rcsc_Obj) $(Trainer_Obj)
$(CXX) -L. -o $@ $^
@echo ""
@echo "### Bulid Trainer success! ###"
@echo ""
$(config_target): $(config_deps)
clean: cleansrc
distclean cleanall:
@rm -rf $(Dst_ObjPath) $(Dst_Path) $(Rcsc_lib)
@echo ""
@echo "clean finish!"
@echo ""
cleansrc: cleandata
@rm -rf $(player_target) $(coach_target) $(trainer_target) $(Dst_SrcObj)
@rm -rf $(Dst_Path)/$(Rcsc_lib) $(Dst_Path)
@echo ""
@echo "clean src finish!"
@echo ""
.PHONY: all clean distclean cleanall cleansrc cleandata
#End of Makefile