Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CC=g++
- CFLAGS= --coverage -fexceptions -std=c++11 -Wextra -Wall -g
- TAD1=Piece
- MAIN=TesteTriangularNumber
- all: $(MAIN)
- $(TAD1).o: $(TAD1).cpp $(TAD1).hpp
- $(CC) $(CFLAGS) -c $(TAD1).cpp
- $(MAIN).o: $(TAD1).hpp $(MAIN).cpp
- $(CC) $(CFLAGS) -c $(MAIN).cpp
- $(MAIN): $(MAIN).o $(TAD1).o
- $(CC) $(CFLAGS) -o main.run $(MAIN).o $(TAD1).o
- run: main.run
- ./main.run
- mv *.gcno *.gcda cobertura/
- debug: main.run
- gdb ./main.run
- cov:
- gcov -lpr *.cpp -o cobertura/
- mv *.gcov cobertura/
- lcov --no-external --capture --directory . --output-file cobertura/coverage.info
- genhtml cobertura/coverage.info --output-directory cobertura
- /home/charles/firefox_dev/firefox "/home/charles/Desktop/UFMG/PDS 2/Trabalhos/Lab05Ex03 - Triangular Number/cobertura/index.html"
- clear:
- rm -r ./cobertura/*
- rm -f ./*.o
- v: main.run
- valgrind --leak-check=full ./main.run
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement