summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorTomasz Kramkowski <tk@the-tk.com>2017-05-25 21:18:13 +0100
committerTomasz Kramkowski <tk@the-tk.com>2017-05-25 21:56:59 +0100
commit7ffe3e4bc0c43707265697fc3ab6faaf6d33c391 (patch)
tree9ccc56855be7d8af743b0627eadf7c682509b9de /Makefile
parent7eb36e43b3430ac089ae824b1d4b399a169e3cc4 (diff)
downloadfmk-7ffe3e4bc0c43707265697fc3ab6faaf6d33c391.tar.gz
fmk-7ffe3e4bc0c43707265697fc3ab6faaf6d33c391.tar.xz
fmk-7ffe3e4bc0c43707265697fc3ab6faaf6d33c391.zip
Makefile: debug define
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)