-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
38 lines (38 loc) · 1.19 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
.PHONY: traveltime constant peaked periodic linux debug windows visual docs
traveltime:
clear
./tfdm.wsl ./data/matrix.dat ./data/vehicletype.dat 300 200 15001
constant:
clear
./tfdm.wsl ./data/matrix.dat ./data/vehicletype.dat 300 250 15001
peaked:
clear
./tfdm.wsl ./data/matrix.dat ./data/vehicletype.dat 300 25000 12000
periodic:
clear
./tfdm.wsl ./data/matrix.dat ./data/vehicletype.dat 300 2100 32400 55000
linux:
clear
g++ -std=c++20 -O3 ./main.cpp ./src/Graph.cpp ./src/Street.cpp ./src/Vehicle.cpp ./src/VehicleType.cpp -o tfdm.wsl
windows:
clear
x86_64-w64-mingw32-g++ -std=c++20 -O3 main.cpp Graph.cpp Street.cpp Vehicle.cpp VehicleType.cpp -o tfdm.exe
debug:
clear
g++ -std=c++20 -O3 ./main.cpp ./src/Graph.cpp ./src/Street.cpp ./src/Vehicle.cpp ./src/VehicleType.cpp -o tfdm.wsl -Wall -Wextra -fsanitize=address
visual:
clear
python3 ./utils/visual.py
docs:
clear
clang-format -i ./*.cpp
clang-format -i ./src/*.cpp
clang-format -i ./src/*.hpp
clang-format -i ./utils/*.cpp
clang-format -i ./utils/*.hpp
doxygen Doxyfile
test:
clear
g++ -std=c++20 -O3 ./test.cpp ./src/VehicleType.cpp ./src/Vehicle.cpp ./src/Street.cpp ./src/Graph.cpp -o test.out
./test.out
rm -r ./test.out