# ant makefile July 26 2002
#
ant.hex : ant.out
	avr-objcopy -O ihex ant.out ant.hex
	
ant.out : ant.o
	avr-gcc -mmcu=at90s8535 -o ant.out ant.o
	
ant.o : ant.c
	avr-gcc -c -O2 -Wall -mmcu=at90s8535 ant.c -o ant.o
	
	 
clean:
	rm -f ant.o ant.out ant.hex

#Note: symlink /dev/avr must point to /dev/ttyS0	
old_pgm:
	uisp -datmel -dpart=auto --erase --upload if=ant.hex
	
#New 2002 version of uisp
pgm:
	uisp -dprog=avr910  -dpart=auto --erase --upload if=ant.hex

lst:
	avr-objdump -d ant.o | less



