×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Text
Posted by: Massi Massi
Added: Sep 22, 2016 10:01 AM
Modified: Sep 22, 2016 10:02 AM
Views: 1
Tags: no tags
  1. SRCS = main.cpp
  2. FINAL_TARGET = Tab
  3.  
  4.  
  5. CFLAGS                  = -std=c++11 -Wall
  6.  
  7.  
  8. ./$(FINAL_TARGET): $(SRCS:%.cpp=./%.o)
  9.         g++ $(CFLAGS) $+ -o $@
  10.  
  11. ./%.o: ./%.cpp
  12.         g++ -c $(CFLAGS) $< -o $@
  13.  
  14. clean:
  15.         rm -f ./*.o ./*.out ./$(FINAL_TARGET)
  16.  
  17. valg:
  18.         valgrind --leak-check=full --show-leak-kinds=all ./$(FINAL_TARGET)
  19.  
  20. targ:
  21.         tar -zcvf Bouneffa_p1310939.tar.gz *.cpp *.hpp Makefile
  22.