1
0
mirror of https://github.com/hsoft/collapseos.git synced 2024-11-24 00:58:05 +11:00
collapseos/recipes/arduinouno/Makefile
2020-08-18 15:46:14 -04:00

24 lines
415 B
Makefile

PROGNAME = at28wr
USBDEV = /dev/cuaU0
BAUDS = 115200
AVRDUDEARGS = -F -V -c arduino -P $(USBDEV) -b $(BAUDS)
AVRDUDEMCU = atmega328p
TARGET = $(PROGNAME).hex
AVRA = avra
# Rules
.PHONY: send all clean
all: $(TARGET)
@echo Done!
send: $(TARGET)
avrdude $(AVRDUDEARGS) -p $(AVRDUDEMCU) -U flash:w:$(TARGET)
$(TARGET): $(PROGNAME).asm
$(AVRA) -o $@ $(PROGNAME).asm
clean:
rm -f $(TARGET) *.S.eep.hex *.S.obj