Bunch of silly errors & debugging stuff.
[uccvend-snackrom.git] / ROM / Makefile
1 HEXDUMP=xxd
2 #HEXDUMP=od -A x -x
3
4 .SUFFIXES: .asm .obj
5
6 all: as11/vend.asm hex
7         @true
8
9 .asm.obj:
10         masm $? -l > $*.listing
11         masm $? -b
12
13 as11/vend.asm: mapped.asm
14         ./makeasm.pl $? > $@
15
16 as11/64kvend.bin: vend.bin
17         dd if=/dev/zero bs=32768 count=1 of=$@
18         cat $? >> $@
19
20 check: test
21         @true
22
23 test: as11/vend.obj as11/64kvend.bin
24         cmp as11/vend.obj as11/64kvend.bin
25
26 as11/x1: as11/vend.obj
27         $(HEXDUMP) $? > $@
28
29 as11/x2: as11/64kvend.bin
30         $(HEXDUMP) $? > $@
31
32 hex: as11/x1 as11/x2
33         diff -u as11/x1 as11/x2
34
35 clean:
36         find as11 -type f -exec rm {} \; -print

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