$make will show avr-size once and only once whether or not a build needs to occur.

This commit is contained in:
dak664 2010-12-22 21:13:09 +00:00
parent 5b8e62ef4f
commit 95982b40ba
2 changed files with 5 additions and 2 deletions

View file

@ -1,4 +1,4 @@
# $Id: Makefile.avr,v 1.26 2010/11/12 17:15:00 dak664 Exp $
# $Id: Makefile.avr,v 1.27 2010/12/22 21:13:09 dak664 Exp $
### Check if we are running under Windows
@ -133,7 +133,10 @@ $(OBJECTDIR)/%.o: %.c
%.elf: %.co $(PROJECT_OBJECTFILES) contiki-$(TARGET).a symbols.o
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(filter-out %.a,$^) $(filter %.a,$^) $(LDLIBS)
#Allow top-level makefile to always show size even when build is up to date
ifndef NOAVRSIZE
avr-size -C --mcu=$(MCU) $@
endif
%.hex: %.out
$(OBJCOPY) $^ -O ihex $@