Add debug target

Created a debug target for make that just adds the -g and -rdynamic
flags to make stack traces a bit nicer.
pull/7/head
Peter Beard 6 years ago
parent cac873b4d6
commit 8df2de7849

@ -25,6 +25,8 @@ CFLAGS += -finline-functions
#CFLAGS += -mtune=native -march=native
#CFLAGS += -g
DEBUGFLAGS += -g -rdynamic
CC ?= cc
INSTALL ?= install -c -o root -g bin -m 755
RM ?= /bin/rm -f
@ -65,3 +67,5 @@ cleantest:
cleanall: clean cleantest
debug: CFLAGS += ${DEBUGFLAGS}
debug: all

Loading…
Cancel
Save