1
0
mirror of https://github.com/hsoft/collapseos.git synced 2024-11-14 14:58:05 +11:00
collapseos/recipes/rc2014/ps2/Makefile

26 lines
444 B
Makefile
Raw Normal View History

2019-06-29 12:54:57 +10:00
PROGNAME = ps2ctl
AVRDUDEMCU ?= t45
AVRDUDEARGS ?= -c usbtiny -P usb
TARGETS = $(PROGNAME).hex os.bin
ZASM = ../../../tools/zasm.sh
KERNEL = ../../../kernel
2019-06-29 12:54:57 +10: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 $@ $<
os.bin: glue.asm
$(ZASM) $(KERNEL) < $< > $@
2019-06-29 12:54:57 +10:00
clean:
rm -f $(TARGETS) *.eep.hex *.obj os.bin