TIDYUP: Move original ROM and disassemblies to subdirectory
[uccvend-snackrom.git] / original / ROM / Makefile
diff --git a/original/ROM/Makefile b/original/ROM/Makefile
new file mode 100644 (file)
index 0000000..c5600d6
--- /dev/null
@@ -0,0 +1,36 @@
+HEXDUMP=xxd
+#HEXDUMP=od -A x -x
+
+.SUFFIXES: .asm .obj
+
+all: as11/vend.asm hex
+       @true
+
+.asm.obj:
+       masm $? -l > $*.listing
+       masm $? -b
+
+as11/vend.asm: mapped.asm
+       ./makeasm.pl $? > $@
+
+as11/64kvend.bin: vend.bin
+       dd if=/dev/zero bs=32768 count=1 of=$@
+       cat $? >> $@
+
+check: test
+       @true
+
+test: as11/vend.obj as11/64kvend.bin
+       cmp as11/vend.obj as11/64kvend.bin
+
+as11/x1: as11/vend.obj
+       $(HEXDUMP) $? > $@
+
+as11/x2: as11/64kvend.bin
+       $(HEXDUMP) $? > $@
+
+hex: as11/x1 as11/x2
+       diff -u as11/x1 as11/x2
+
+clean:
+       find as11 -type f -exec rm {} \; -print

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