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
1 changed files with 2 additions and 0 deletions

View File

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