Add target for prg files to Makefile.

This commit is contained in:
giomba 2023-06-02 23:38:04 +02:00
parent f20b4d1be7
commit a574c97209

View File

@ -11,6 +11,14 @@ $(OUTDIR)/main.bin: main.asm
$(QUIET) mkdir -p $(OUTDIR)
$(QUIET) zcc +z80 -subtype=none -o $(OUTDIR)/main.bin main.asm
.PHONY: prg
prg: $(OUTDIR)/main.bin.prg
$(OUTDIR)/%.bin.prg: $(OUTDIR)/%.bin
$(ECHO) ' PRG'
$(QUIET) echo -n -e '\x00\x10' > "$@"
$(QUIET) cat "$<" >> "$@"
.PHONY: send
send: $(OUTDIR)/main.bin.pkt
$(ECHO) ' SEND'