Speed up build tests by only building each test to the ELF output stage (when all files are compiled and linked), rather than to the full HEX output stage as the resulting binary is not actually required.

This commit is contained in:
Dean Camera 2012-05-07 17:42:49 +00:00
parent e5a7fa201e
commit 7a7ee6a908
5 changed files with 29 additions and 30 deletions

View file

@ -37,21 +37,21 @@ end:
@echo
%.avr8:
$(MAKE) -f makefile.avr8 clean -s
$(MAKE) -f makefile.avr8 all MCU=$(@:%.avr8=%) -s
$(MAKE) -s -f makefile.avr8 clean
$(MAKE) -s -f makefile.avr8 all MCU=$(@:%.avr8=%) elf
%.xmega:
$(MAKE) -f makefile.xmega clean -s
$(MAKE) -f makefile.xmega all MCU=$(@:%.xmega=%) -s
$(MAKE) -s -f makefile.xmega clean
$(MAKE) -s -f makefile.xmega all MCU=$(@:%.xmega=%) elf
%.uc3:
$(MAKE) -f makefile.uc3 clean -s
$(MAKE) -f makefile.uc3 all MCU=$(@:%.uc3=%) -s
$(MAKE) -s -f makefile.uc3 clean
$(MAKE) -s -f makefile.uc3 all MCU=$(@:%.uc3=%) elf
clean:
$(MAKE) -f makefile.avr8 clean -s
$(MAKE) -f makefile.xmega clean -s
$(MAKE) -f makefile.uc3 clean -s
$(MAKE) -s -f makefile.avr8 clean
$(MAKE) -s -f makefile.xmega clean
$(MAKE) -s -f makefile.uc3 clean
%: