summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 1bc11e1..fc7c13c 100644
--- a/Makefile
+++ b/Makefile
@@ -26,6 +26,10 @@ CPPFLAGS += $(mk20dx256_CPPFLAGS)
%.bin: %
$(OBJCOPY) -O binary $< $@
+debug: all
+debug: CFLAGS += -Og -ggdb
+debug: LDFLAGS += -Og -ggdb
+
all: fmk.bin
fmk: $(OBJ)