2019-06-28 22:54:57 -04:00
|
|
|
PROGNAME = ps2ctl
|
|
|
|
AVRDUDEMCU ?= t45
|
|
|
|
AVRDUDEARGS ?= -c usbtiny -P usb
|
2019-06-29 14:25:18 -04:00
|
|
|
TARGETS = $(PROGNAME).hex os.bin
|
|
|
|
ZASM = ../../../tools/zasm.sh
|
|
|
|
KERNEL = ../../../kernel
|
2019-11-15 15:37:49 -05:00
|
|
|
APPS = ../../../apps
|
2019-06-28 22:54:57 -04:00
|
|
|
|
|
|
|
# Rules
|
|
|
|
|
|
|
|
.PHONY: send all clean
|
|
|
|
|
|
|
|
all: $(TARGETS)
|
|
|
|
@echo Done!
|
|
|
|
|
|
|
|
send: $(PROGNAME).hex
|
|
|
|
avrdude $(AVRDUDEARGS) -p $(AVRDUDEMCU) -U flash:w:$<
|
|
|
|
|
|
|
|
$(PROGNAME).hex: $(PROGNAME).asm
|
|
|
|
avra -o $@ $<
|
|
|
|
|
2019-06-29 14:25:18 -04:00
|
|
|
os.bin: glue.asm
|
2019-11-15 15:37:49 -05:00
|
|
|
$(ZASM) $(KERNEL) $(APPS) < $< > $@
|
2019-06-28 22:54:57 -04:00
|
|
|
|
2019-06-29 14:25:18 -04:00
|
|
|
clean:
|
|
|
|
rm -f $(TARGETS) *.eep.hex *.obj os.bin
|