Replaced build script with Makefile and removed upload script as it is now in tools

This commit is contained in:
2020-09-20 20:19:23 +02:00
parent a56fba1fef
commit 21024c642b
3 changed files with 16 additions and 50 deletions

16
Makefile Normal file
View File

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