Rev Author Line No. Line
3516 miho 1 # Supported targets:
2 # atmega8 atmega88 attiny45 (attiny45 is not usable in a board AVRUSB01A, it has different package)
3  
4 ALL_TARGETS=atmega8 atmega88 attiny45
5  
6 # Execute these steps for each target CPU
7 # Do not remove empty line in this definition!
8 define EXEC
9 echo ************* $(1) ************* avrusb *************
10 rm -f i2c_tiny_usb_avrusb_$(1).hex
11 make -f Makefile-avrusb.$(1) clean
12 make -f Makefile-avrusb.$(1) all
13 cp firmware.hex i2c_tiny_usb_avrusb_$(1).hex
14 make -f Makefile-avrusb.$(1) clean
15 echo ************* $(1) ************* usbtiny *************
16 rm -f i2c_tiny_usb_usbtiny_$(1).hex
17 make -f Makefile-usbtiny.$(1) clobber
18 make -f Makefile-usbtiny.$(1) all
19 cp main.hex i2c_tiny_usb_usbtiny_$(1).hex
20 make -f Makefile-usbtiny.$(1) clobber
21  
22 endef
23  
24 ALL:
25 @$(foreach III,$(ALL_TARGETS),$(call EXEC,$(III)))