From a574c9720931bbda869b9de0242e43def3c3697a Mon Sep 17 00:00:00 2001 From: giomba Date: Fri, 2 Jun 2023 23:38:04 +0200 Subject: [PATCH] Add target for prg files to Makefile. --- Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Makefile b/Makefile index 9fd556b..ae65d36 100644 --- a/Makefile +++ b/Makefile @@ -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'