Replaced build script with Makefile

This commit is contained in:
2020-09-20 20:17:32 +02:00
parent 7fe2758af7
commit 29259e36da
2 changed files with 19 additions and 8 deletions

19
Makefile Normal file
View File

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