-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
43 lines (29 loc) · 1.22 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
all: testa_velha.cpp velha.cpp velha.hpp velha.o
g++ -std=c++11 -Wall velha.o testa_velha.cpp -o testa_velha
./testa_velha
#use comentario se necessario
compile: testa_velha.cpp velha.cpp velha.hpp velha.o
g++ -std=c++11 -Wall velha.o testa_velha.cpp -o testa_velha
velha.o : velha.cpp velha.hpp
g++ -std=c++11 -Wall -c velha.cpp
testa_velha: testa_velha.cpp velha.cpp velha.hpp velha.o
g++ -std=c++11 -Wall velha.o testa_velha.cpp -o testa_velha
test: testa_velha
./testa_velha
cpplint: testa_velha.cpp velha.cpp velha.hpp
cpplint --exclude=catch.hpp *.*
gcov: testa_velha.cpp velha.cpp velha.hpp
g++ -std=c++11 -Wall -fprofile-arcs -ftest-coverage -c velha.cpp
g++ -std=c++11 -Wall -fprofile-arcs -ftest-coverage velha.o testa_velha.cpp -o testa_velha
./testa_velha
gcov *.cpp
debug: testa_velha.cpp velha.cpp velha.hpp
g++ -std=c++11 -Wall -g -c velha.cpp
g++ -std=c++11 -Wall -g velha.o testa_velha.cpp -o testa_velha
gdb testa_velha
cppcheck: testa_velha.cpp velha.cpp velha.hpp
cppcheck --enable=warning .
valgrind: testa_velha
valgrind --leak-check=yes --log-file=valgrind.rpt testa_velha
clean:
rm -rf *.o *.exe *.gc* testa_velha