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

all: start.hex test.hex

start.hex: start.asm
	$A start.asm
start-install: start.hex
	avrdude -p m8 -c avr910 -P /dev/ttyUSB0 -U flash:w:start.hex:i

# ausprobieren der andern Musterprogramme:
# > rm test.*
# > ln -s name.asm test.asm
# > make install

test.hex: test.asm
	$A test.asm

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

check: test.hex
	avrdude -p m8 -c avr910 -P /dev/ttyUSB0 -v
install: test.hex
	avrdude -p m8 -c avr910 -P /dev/ttyUSB0 -U flash:w:test.hex:i
