mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-24 08:58:06 +11:00
23 lines
341 B
Makefile
23 lines
341 B
Makefile
|
PROGNAME = ps2ctl
|
||
|
AVRDUDEMCU ?= t45
|
||
|
AVRDUDEARGS ?= -c usbtiny -P usb
|
||
|
TARGETS = $(PROGNAME).hex
|
||
|
|
||
|
# Rules
|
||
|
|
||
|
.PHONY: send all clean
|
||
|
|
||
|
all: $(TARGETS)
|
||
|
@echo Done!
|
||
|
|
||
|
send: $(PROGNAME).hex
|
||
|
avrdude $(AVRDUDEARGS) -p $(AVRDUDEMCU) -U flash:w:$<
|
||
|
|
||
|
$(PROGNAME).hex: $(PROGNAME).asm
|
||
|
$(TARGETS):
|
||
|
avra -o $@ $<
|
||
|
|
||
|
clean:
|
||
|
rm -f $(TARGETS) *.eep.hex *.obj
|
||
|
|