diff --git a/src/Makefile b/src/Makefile new file mode 100644 index 0000000..89b5b83 --- /dev/null +++ b/src/Makefile @@ -0,0 +1,21 @@ +TARGET = bank.asm.bin +SRC = $(wildcard [01234567]*.asm) +BIN = $(addsuffix .bin, $(SRC)) + +.PHONY: all flash clean +all: $(TARGET) + +$(TARGET): $(BIN) + +%.asm.bin: %.asm + bash ../toolchain.sh fvcompile $< + dd if=$@ bs=512 count=1 seek=$(basename $<) conv=notrunc of=$(TARGET) + +flash: $(TARGET) + bash ../toolchain.sh fvflash $(TARGET) + +erase: + bash ../toolchain.sh fverase + +clean: + -rm -f $(TARGET) $(BIN)