Advertisement
Guest User

Untitled

a guest
May 30th, 2019
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CMake 0.87 KB | None | 0 0
  1. CC=g++
  2. CFLAGS= --coverage -fexceptions -std=c++11 -Wextra -Wall -g
  3.  
  4.  
  5. TAD1=Piece
  6. MAIN=TesteTriangularNumber
  7.  
  8. all: $(MAIN)
  9.  
  10. $(TAD1).o: $(TAD1).cpp $(TAD1).hpp
  11.     $(CC) $(CFLAGS) -c $(TAD1).cpp
  12.  
  13. $(MAIN).o: $(TAD1).hpp $(MAIN).cpp
  14.     $(CC) $(CFLAGS) -c $(MAIN).cpp
  15.  
  16. $(MAIN): $(MAIN).o $(TAD1).o
  17.     $(CC) $(CFLAGS) -o main.run $(MAIN).o $(TAD1).o
  18.  
  19. run: main.run
  20.     ./main.run
  21.     mv *.gcno *.gcda cobertura/
  22.  
  23. debug: main.run
  24.     gdb ./main.run
  25.  
  26. cov:
  27.     gcov -lpr *.cpp -o cobertura/
  28.     mv *.gcov cobertura/
  29.     lcov --no-external --capture  --directory . --output-file cobertura/coverage.info
  30.     genhtml cobertura/coverage.info --output-directory cobertura
  31.     /home/charles/firefox_dev/firefox "/home/charles/Desktop/UFMG/PDS 2/Trabalhos/Lab05Ex03 - Triangular Number/cobertura/index.html"
  32.  
  33. clear:
  34.     rm -r ./cobertura/*
  35.     rm -f ./*.o
  36.  
  37. v: main.run
  38.     valgrind --leak-check=full ./main.run
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement