-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (27 loc) · 1019 Bytes
/
Makefile
File metadata and controls
38 lines (27 loc) · 1019 Bytes
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
# Makefile para o Trabalho 2 - Sistema de Backup
all: testa_backup
./testa_backup
compile: testa_backup
backup.o: backup.cpp backup.hpp
g++ -std=c++11 -Wall -c backup.cpp
testa_backup: testa_backup.cpp backup.cpp backup.hpp backup.o
g++ -std=c++11 -Wall backup.o testa_backup.cpp -o testa_backup
test: testa_backup
./testa_backup
cpplint: testa_backup.cpp backup.cpp backup.hpp
cpplint --exclude=catch.hpp *.*
gcov: backup.cpp testa_backup.cpp
g++ -std=c++11 -Wall -fprofile-arcs -ftest-coverage -c backup.cpp
g++ -std=c++11 -Wall -fprofile-arcs -ftest-coverage backup.o testa_backup.cpp -o testa_backup
./testa_backup
gcov *.cpp
debug: backup.cpp testa_backup.cpp
g++ -std=c++11 -Wall -g -c backup.cpp
g++ -std=c++11 -Wall -g backup.o testa_backup.cpp -o testa_backup
gdb testa_backup
cppcheck: testa_backup.cpp backup.cpp backup.hpp
cppcheck --enable=warning .
valgrind: testa_backup
valgrind --leak-check=yes --log-file=valgrind.rpt ./testa_backup
clean:
rm -rf *.o *.exe *.gc* testa_backup