Add avr-size invocation

This commit is contained in:
Nero 2018-01-29 23:12:22 +00:00 committed by Nero
parent 3f284654ea
commit e24dfa6e65

View File

@ -5,6 +5,7 @@ override LDFLAGS =
CC = avr-gcc CC = avr-gcc
OBJCOPY = avr-objcopy OBJCOPY = avr-objcopy
OBJDUMP = avr-objdump OBJDUMP = avr-objdump
SIZE = avr-size
AVRDUDE_ARGS = AVRDUDE_ARGS =
ifdef BOARD ifdef BOARD
@ -31,6 +32,7 @@ deps.mk: *.c drivers/*.c
%.elf: %.o %.elf: %.o
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^
$(SIZE) $@
%.lst: %.elf %.lst: %.elf
$(OBJDUMP) -h -S $< > $@ $(OBJDUMP) -h -S $< > $@