From 75ff498d410a42b4cce52409f2abcfa9e3856143 Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Sun, 6 Mar 2011 06:37:14 +0100 Subject: intermediate version --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 642202a..581165c 100644 --- a/Makefile +++ b/Makefile @@ -3,6 +3,7 @@ AVRDUDE=avrdude ACC=avr-gcc AOBJCOPY=avr-objcopy ALD=avr-ld +ASIZE=avr-size CFLAGS=-Wall -Wextra -Wno-unused-parameter -pedantic -std=c99 ifdef PIN DPIN=-DPIN=\"$(PIN)\" @@ -23,7 +24,8 @@ love: kbc.flash $(AOBJCOPY) -j .eeprom -O binary $^ $@ %.ld.o: %.o - $(ACC) $(ACFLAGS) $(ALDFLAGS) -o $@ $< + $(ACC) $(ACFLAGS) $(ALDFLAGS) -Wl,-Map,$(patsubst %.ld.o,%.map,$@) -o $@ $< + @$(ASIZE) $@ %.o: %.c $(ACC) $(ACFLAGS) -c -o $@ $< @@ -35,4 +37,5 @@ clean: rm -f *.flash *.eeprom *.o .PHONY: love flash clean +.SECONDARY: -- cgit v1.2.1