Split from cpm repository

This commit is contained in:
2021-01-14 02:48:11 +01:00
commit 8ee4201dc8
5 changed files with 2078 additions and 0 deletions

19
Makefile Normal file
View File

@@ -0,0 +1,19 @@
BUILDDIR=.build
_BIN= rom_monitor.bin ram_monitor.bin MONITOR.COM
BIN = $(patsubst %,$(BUILDDIR)/%,$(_BIN))
.PHONY: all clean
all: $(BUILDDIR) $(BIN)
$(BUILDDIR)/%.bin: src/%.z80 | $(BUILDDIR)
@zasm -w -i $< -o $@
$(BUILDDIR)/%.COM: src/%.z80 | $(BUILDDIR)
@zasm -w -i $< -o $@
$(BUILDDIR):
@mkdir $(BUILDDIR)
clean:
@rm -df $(BUILDDIR)/*.bin $(BUILDDIR)/*.COM $(BUILDDIR)/*.lst .build