summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 642202a..581165c 100644
--- a/Makefile
+++ b/Makefile
@@ -5,2 +5,3 @@ AOBJCOPY=avr-objcopy
ALD=avr-ld
+ASIZE=avr-size
CFLAGS=-Wall -Wextra -Wno-unused-parameter -pedantic -std=c99
@@ -25,3 +26,4 @@ love: kbc.flash
%.ld.o: %.o
- $(ACC) $(ACFLAGS) $(ALDFLAGS) -o $@ $<
+ $(ACC) $(ACFLAGS) $(ALDFLAGS) -Wl,-Map,$(patsubst %.ld.o,%.map,$@) -o $@ $<
+ @$(ASIZE) $@
@@ -37,2 +39,3 @@ clean:
.PHONY: love flash clean
+.SECONDARY: