-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
35 lines (26 loc) · 1.11 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
all:
g++ draw.cpp TSP_AG.cpp -o TSP_AG.out -Wall -Wextra -Wno-unused-parameter -O3 -lGL -lglut -lm
g++ draw.cpp TSP_DP.cpp -o TSP_DP.out -Wall -Wextra -Wno-unused-parameter -O3 -lGL -lglut -lm
g++ draw.cpp TSP_TRIVIAL.cpp -o TSP_TRIVIAL.out -Wall -Wextra -Wno-unused-parameter -O3 -lGL -lglut -lm
g++ random_in.cpp -o random_in.out -Wall -Wextra -O3 -lm
maps_case:
python ./data_for_tsp/coord_getter.py > ./data_for_tsp/coordinates.txt
python ./data_for_tsp/distance_getter.py > ./data_for_tsp/distances.txt
random_case:
./random_in.out > ./data_for_tsp/random_distances.txt
run:
./TSP_AG.out < ./data_for_tsp/distances.txt
./TSP_TRIVIAL.out < ./data_for_tsp/distances.txt
random_run:
./TSP_AG.out < ./data_for_tsp/random_distances.txt
./TSP_TRIVIAL.out < ./data_for_tsp/random_distances.txt
test:
./TSP_DP.out < ./data_for_tsp/distances.txt
random_test:
./TSP_DP.out < ./data_for_tsp/random_distances.txt
graphic:
python ./plot/plot.py
map:
python ./generate_map/generate_map.py > generate_map/path_map.html
clean:
rm -f *.out ./data_for_tsp/*coordinates* ./data_for_tsp/*distances* ./plot/graphic_best.png