2019-07-20 05:45:13 +10:00
|
|
|
PROGNAME = ps2ctl
|
|
|
|
AVRDUDEMCU ?= t45
|
|
|
|
AVRDUDEARGS ?= -c usbtiny -P usb
|
2020-05-18 04:24:27 +10:00
|
|
|
TARGETS = $(PROGNAME).bin
|
2020-01-01 07:07:39 +11:00
|
|
|
BASEDIR = ../../..
|
2020-05-18 04:24:27 +10:00
|
|
|
EDIR = $(BASEDIR)/emul
|
2019-07-20 05:45:13 +10:00
|
|
|
|
|
|
|
# Rules
|
|
|
|
|
|
|
|
.PHONY: send all clean
|
|
|
|
|
|
|
|
all: $(TARGETS)
|
|
|
|
@echo Done!
|
|
|
|
|
2020-02-27 15:10:43 +11:00
|
|
|
send: $(PROGNAME).bin
|
|
|
|
avrdude $(AVRDUDEARGS) -p $(AVRDUDEMCU) -U flash:w:$(PROGNAME).bin
|
2019-07-20 05:45:13 +10:00
|
|
|
|
2020-05-18 04:24:27 +10:00
|
|
|
$(PROGNAME).bin: $(PROGNAME).fs
|
|
|
|
cd $(EDIR) && ./avra.sh < ../recipes/sms/kbd/$(PROGNAME).fs > ../recipes/sms/kbd/$@
|
2019-07-20 05:45:13 +10:00
|
|
|
|
|
|
|
clean:
|
2020-02-27 15:10:43 +11:00
|
|
|
rm -f $(TARGETS)
|