-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
40 lines (40 loc) · 1.04 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
run:
@python clean.py
@g++ -O3 -w 1.cpp -o 1.exe -fprofile-arcs -ftest-coverage
@echo 1.cpp Compiled!
@g++ -O3 -w 2.cpp -o 2.exe -fprofile-arcs -ftest-coverage
@echo 2.cpp Compiled!
@1.exe < 1.in > 1.out
@echo 1.cpp Run!
@2.exe < 1.in > 2.out
@echo 2.cpp Run!
@gcov 1.cpp > 1.log
@echo 1.cpp Analysis!
@gcov 2.cpp > 2.log
@echo 2.cpp Analysis!
@python run.py
@python clean.py
run_linux:
@python3 clean.py
@g++ -O3 -w 1.cpp -o 1.exe -fprofile-arcs -ftest-coverage
@echo 1.cpp Compiled!
@g++ -O3 -w 2.cpp -o 2.exe -fprofile-arcs -ftest-coverage
@echo 2.cpp Compiled!
@./1.exe < 1.in > 1.out
@echo 1.cpp Run!
@./2.exe < 1.in > 2.out
@echo 2.cpp Run!
@gcov 1.cpp > 1.log
@echo 1.cpp Analysis!
@gcov 2.cpp > 2.log
@echo 2.cpp Analysis!
@python3 run.py
@python3 clean.py
install:
@python -m pip install requests
@python -m pip install prettytable
@python -m pip install colorama
install_linux:
@python3 -m pip install requests
@python3 -m pip install prettytable
@python3 -m pip install colorama