-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
62 lines (44 loc) · 2.12 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
# 伪目标:生成所有可执行文件
all: bin/Makedict bin/main bin/MakePagelib
# 目标:生成 bin/Makedict
bin/Makedict: bin/Makedict.o bin/DictProducer.o bin/SplitTool.o
g++ bin/Makedict.o bin/DictProducer.o bin/SplitTool.o -o bin/Makedict -g
# 目标:生成 bin/Makedict.o
bin/Makedict.o: src/Makedict.cc
g++ -c src/Makedict.cc -o bin/Makedict.o -I include
# 目标:生成 bin/DictProducer.o
bin/DictProducer.o: src/DictProducer.cc
g++ -c src/DictProducer.cc -o bin/DictProducer.o -I include
# 目标:生成 bin/SplitTool.o
bin/SplitTool.o: src/SplitTool.cc
g++ -c src/SplitTool.cc -o bin/SplitTool.o -I include
# 目标: 生成 bin/main
bin/main: bin/main.o bin/SearchEngineServer.o bin/KeyRecomander.o bin/WebPageSearcher.o bin/SplitTool.o bin/tinyxml2.o
g++ bin/main.o bin/SearchEngineServer.o bin/KeyRecomander.o bin/WebPageSearcher.o bin/SplitTool.o bin/tinyxml2.o -o bin/main -lwfrest -lworkflow -g
# 目标:生成 bin/main.o
bin/main.o: src/main.cc
g++ -c src/main.cc -o bin/main.o -I include
# 目标:生成 bin/SearchEngineServer.o
bin/SearchEngineServer.o: src/SearchEngineServer.cc
g++ -c src/SearchEngineServer.cc -o bin/SearchEngineServer.o -I include
# 目标:生成 bin/KeyRecomander.o
bin/KeyRecomander.o: src/KeyRecomander.cc
g++ -c src/KeyRecomander.cc -o bin/KeyRecomander.o -I include
# 目标:生成 bin/WebPageSearcher.o
bin/WebPageSearcher.o: src/WebPageSearcher.cc
g++ -c src/WebPageSearcher.cc -o bin/WebPageSearcher.o -I include
# 目标:生成 bin/MakePagelib
bin/MakePagelib: bin/MakePagelib.o bin/PagelibProcessor.o bin/tinyxml2.o bin/SplitTool.o
g++ bin/MakePagelib.o bin/PagelibProcessor.o bin/tinyxml2.o bin/SplitTool.o -o bin/MakePagelib -g
# 目标:生成 bin/MakePagelib.o
bin/MakePagelib.o: src/MakePagelib.cc
g++ -c src/MakePagelib.cc -o bin/MakePagelib.o -I include
# 目标:生成 bin/PagelibProcessor.o
bin/PagelibProcessor.o: src/PagelibProcessor.cc
g++ -c src/PagelibProcessor.cc -o bin/PagelibProcessor.o -I include
# 目标:生成 bin/tinyxml2.o
bin/tinyxml2.o: src/tinyxml2.cpp
g++ -c src/tinyxml2.cpp -o bin/tinyxml2.o -I include
# 清理命令
clean:
rm -f bin/*