makeasm.pl will create vendas11.asm, which, so far, includes every byte
[uccvend-snackrom.git] / ROM / Makefile
diff --git a/ROM/Makefile b/ROM/Makefile
new file mode 100644 (file)
index 0000000..a11b1c7
--- /dev/null
@@ -0,0 +1,32 @@
+HEXDUMP=xxd
+HEXDUMP=od -A x -x
+
+.SUFFIXES: .asm .obj
+
+all: vendas11.asm
+       @true
+
+.asm.obj:
+       masm $? - bl > $*.listing
+
+vendas11.asm: mapped.asm
+       ./makeasm.pl $? > $@
+
+64kvend.bin: vend.bin
+       dd if=/dev/zero bs=32768 count=1 of=$@
+       cat $? >> $@
+
+check: test
+       @true
+
+test: vendas11.obj 64kvend.bin
+       cmp vendas11.obj 64kvend.bin
+
+x1: vendas11.obj
+       $(HEXDUMP) $? > $@
+
+x2: 64kvend.bin
+       $(HEXDUMP) $? > $@
+
+hex: x1 x2
+       diff -u x1 x2

UCC git Repository :: git.ucc.asn.au