Split from cpm repository

This commit is contained in:
2021-01-14 02:50:16 +01:00
commit bf06e199fa
3 changed files with 75 additions and 0 deletions

18
Makefile Normal file
View File

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