make it work

This commit is contained in:
2026-05-10 13:50:04 -06:00
parent 79f826176d
commit 19db6ae6ae
11 changed files with 255 additions and 88 deletions
+5 -5
View File
@@ -1,10 +1,10 @@
all: a.bin
all: a.out
a.out: main.c
avr-gcc -g -Os -mmcu=attiny84a $< -o $@
a.out: src/*.c src/*.h
avr-gcc -Wall -g -Os -mmcu=attiny84a src/*.c -o $@
a.bin: a.out
avr-objcopy -O binary $< $@
deploy: a.bin
avrdude -p t84a -c stk500v1 -P/dev/tty.usbmodemflip_Rab3gao3 -U flash:w:$<:r
deploy: a.out
avrdude -p t84a -c stk500v1 -P/dev/tty.usbmodemflip_Rab3gao3 -U flash:w:$<:e