summaryrefslogtreecommitdiff
path: root/Makefile
blob: 8df710b877ce6ff580db17c945646eeb2e1abf42 (plain)
1
2
3
4
5
6
7
8
9

default:
	# compile for attiny86 with warnings, optimizations, and 1 MHz clock frequency
	avr-gcc -Wall -Os -DF_CPU=1000000 -mmcu=attiny85 -o hello.o hello.c
	avr-objcopy -j .text -j .data -O ihex hello.o hello.hex
	avrdude -c usbasp -p t85 -U flash:w:hello.hex:i

clean: /dev/null
	rm -f hello.o hello.hex