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

28 lines
531 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
BASEDIR = ../../..
ZASM = $(BASEDIR)/emul/zasm/zasm
KERNEL = $(BASEDIR)/kernel
APPS = $(BASEDIR)/apps
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
2019-06-29 12:54:57 +10:00
$(PROGNAME).hex: $(PROGNAME).asm
avra -o $@ $(PROGNAME).asm
2019-06-29 12:54:57 +10:00
os.bin: glue.asm
$(ZASM) $(KERNEL) $(APPS) < glue.asm > $@
2019-06-29 12:54:57 +10:00
clean:
rm -f $(TARGETS) *.eep.hex *.obj os.bin