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)
3518 miho 3 #
4 # If compiled on Linux do this
5 # chmod +x checksize
3516 miho 6  
7 ALL_TARGETS=atmega8 atmega88 attiny45
8  
9 # Execute these steps for each target CPU
10 # Do not remove empty line in this definition!
11 define EXEC
12 echo ************* $(1) ************* avrusb *************
13 rm -f i2c_tiny_usb_avrusb_$(1).hex
14 make -f Makefile-avrusb.$(1) clean
15 make -f Makefile-avrusb.$(1) all
16 cp firmware.hex i2c_tiny_usb_avrusb_$(1).hex
17 make -f Makefile-avrusb.$(1) clean
18 echo ************* $(1) ************* usbtiny *************
19 rm -f i2c_tiny_usb_usbtiny_$(1).hex
20 make -f Makefile-usbtiny.$(1) clobber
21 make -f Makefile-usbtiny.$(1) all
22 cp main.hex i2c_tiny_usb_usbtiny_$(1).hex
23 make -f Makefile-usbtiny.$(1) clobber
24  
25 endef
26  
3518 miho 27 all:
3516 miho 28 @$(foreach III,$(ALL_TARGETS),$(call EXEC,$(III)))