Skip to content

Commit

Permalink
added debug switch to makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
pauledd committed Jul 29, 2019
1 parent 478b6ac commit 549b4b8
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
output: main.o
g++ -Wall -g -std=c++11 main.o -o bin2csv
g++ -Wall $(DEBUG) -std=c++11 main.o -o bin2csv
main.o: main.cpp
g++ -Wall -g -std=c++11 -c main.cpp
g++ -Wall $(DEBUG) -std=c++11 -c main.cpp

debug: DEBUG = -g

debug: main.o output

clean:
rm *.o bin2csv

0 comments on commit 549b4b8

Please sign in to comment.