#C=avr-gcc
#A=avr-as
A=avra

# fuer avrdude-Aufruf unter Linux:
TTY=/dev/ttyUSB0
# fuer avrdude-Aufruf unter MacOSX:
#TTY=/dev/tty.serial-0001

# verwendeter Programmer:
#P=avr910  #fuer mySmartUSB MK2
P=stk500v2 #fuer mySmartUSB light

# Controller:
#K=t2313  #fuer Programmer der den tiny13a nicht kennt
K=t13     #fyer den Tiny13a

all: irempf13a.hex

irempf13a.hex: irempf13a.asm
	$A irempf13a.asm

check:
	avrdude -p $K -c $P -P $(TTY) -v
#	avrdude -p $K -F -c $P -P $(TTY) -v
install: irempf13a.hex
	avrdude -p $K -c $P -P $(TTY) -U flash:w:irempf13a.hex:i
#	avrdude -p $K -F -c $P -P $(TTY) -U flash:w:irempf13a.hex:i

clean:
	rm -f *~ *.obj *.cof *.eep.hex
clean_all:
	rm -f *~ *.obj *.cof *.hex
