aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: e63d2c0c5dfeda95387825d2095be65f978e2c4d (plain)
1
2
3
4
5
6
7
8
FLAGS=-Wall -I/usr/lib/gcc/avr/6.3.0/plugin/include/ -I/usr/avr/include -mmcu=attiny13 -O3 -DF_CPU=1200000 

all:
	avr-gcc $(FLAGS) -o main.elf main.c
	avr-objcopy -j .text -j .data -O ihex main.elf main.hex

program: all
	avrdude -B100 -p t85 -c avrisp2 -P usb -U flash:w:main.hex
..