collapseos/recipes/arduinouno/at28/Makefile

24 lines
427 B
Makefile
Raw Normal View History

2020-07-22 17:26:06 -04:00
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: $(PROGNAME).hex
avrdude $(AVRDUDEARGS) -p $(AVRDUDEMCU) -U flash:w:$(PROGNAME).hex
2020-07-22 17:26:06 -04:00
$(TARGET): $(PROGNAME).asm
$(AVRA) -o $@ $(PROGNAME).asm
2020-07-22 17:26:06 -04:00
clean:
rm -f $(TARGET) *.S.eep.hex *.S.obj