-
Notifications
You must be signed in to change notification settings - Fork 1
/
makefile
47 lines (33 loc) · 1.46 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
build:
# build string_tokenizer
g++ -c string_tokenizer/string_tokenizer.cpp -I ./string_tokenizer -o ./builds/string_tokenizer.o
# build cell
g++ -c cell/cell.cpp -I ./cell -o ./builds/cell.o
# build a_star node
g++ -c node/node_astar.cpp -I ./node -o ./builds/node_astar.o
# build priority queue based dijkstra node
g++ -c node/node_pqdj.cpp -I ./node -o ./builds/node_pqdj.o
# build arena
g++ -c arena/arena.cpp -I ./arena -o ./builds/arena.o
# build a_star robot
g++ -c robot/robot_astar.cpp -I ./robot -o ./builds/robot_astar.o
# build dijkstra robot
g++ -c robot/robot_dj.cpp -I ./robot -o ./builds/robot_dj.o
# build priority queue based dijkstra robot
g++ -c robot/robot_pqdj.cpp -I ./robot -o ./builds/robot_pqdj.o
run_custom:
# build main for custom maps
g++ -c main/main_custom.cpp -I ./main -o ./builds/main_custom.o
# link all objects to main
g++ -o app ./builds/string_tokenizer.o ./builds/cell.o ./builds/node_astar.o ./builds/node_pqdj.o ./builds/arena.o ./builds/robot_astar.o ./builds/robot_dj.o ./builds/main_custom.o
# execute
./app
run_movingai:
# build main for moving ai maps
g++ -c main/main_moving_ai.cpp -I./main -o ./builds/main_moving_ai.o
# link all objects to main
g++ -o app ./builds/string_tokenizer.o ./builds/cell.o ./builds/node_astar.o ./builds/node_pqdj.o ./builds/arena.o ./builds/robot_astar.o ./builds/robot_dj.o ./builds/robot_pqdj.o ./builds/main_moving_ai.o
# execute
./app
clean:
rm -rf ./app ./builds/*