From 8df2de784929c451f66c4a86ed7bd89de8e7aeba Mon Sep 17 00:00:00 2001 From: Peter Beard Date: Tue, 29 Nov 2016 00:25:07 -0500 Subject: [PATCH] Add debug target Created a debug target for make that just adds the -g and -rdynamic flags to make stack traces a bit nicer. --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 696817a..486e572 100644 --- a/Makefile +++ b/Makefile @@ -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