annotate Makefile @ 9:f9ec351dd82b

Add Makefile rules for running the Coco 3 ROM in MAME
author William Astle <lost@l-w.ca>
date Fri, 04 Nov 2022 18:31:05 -0600
parents 19eac734a518
children e451188b6e46
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2
19eac734a518 Makefile to actually build something with initial start to ROM init code
William Astle <lost@l-w.ca>
parents:
diff changeset
1 .PHONY: all
19eac734a518 Makefile to actually build something with initial start to ROM init code
William Astle <lost@l-w.ca>
parents:
diff changeset
2 all: bin/lwbasic.rom bin/lwbasic-coco2b.rom bin/lwbasic-coco3.rom bin/coco2.zip bin/coco2b.zip bin/coco3.zip
19eac734a518 Makefile to actually build something with initial start to ROM init code
William Astle <lost@l-w.ca>
parents:
diff changeset
3
19eac734a518 Makefile to actually build something with initial start to ROM init code
William Astle <lost@l-w.ca>
parents:
diff changeset
4 bin/lwbasic.rom: src/lwbasic.s
19eac734a518 Makefile to actually build something with initial start to ROM init code
William Astle <lost@l-w.ca>
parents:
diff changeset
5 lwasm --raw --list=src/lwbasic.list --symbols --output=bin/lwbasic.rom src/lwbasic.s
19eac734a518 Makefile to actually build something with initial start to ROM init code
William Astle <lost@l-w.ca>
parents:
diff changeset
6 bin/lwbasic-coco2b.rom: src/lwbasic.s
19eac734a518 Makefile to actually build something with initial start to ROM init code
William Astle <lost@l-w.ca>
parents:
diff changeset
7 lwasm --raw --list=src/lwbasic-coco2b.list --symbols --output=bin/lwbasic-coco2b.rom -DCOCO2B=1 src/lwbasic.s
19eac734a518 Makefile to actually build something with initial start to ROM init code
William Astle <lost@l-w.ca>
parents:
diff changeset
8 bin/lwbasic-coco3.rom: src/lwbasic.s
19eac734a518 Makefile to actually build something with initial start to ROM init code
William Astle <lost@l-w.ca>
parents:
diff changeset
9 lwasm --raw --list=src/lwbasic-coco3.list --symbols --output=bin/lwbasic-coco3.rom -DCOCO3=1 src/lwbasic.s
19eac734a518 Makefile to actually build something with initial start to ROM init code
William Astle <lost@l-w.ca>
parents:
diff changeset
10
19eac734a518 Makefile to actually build something with initial start to ROM init code
William Astle <lost@l-w.ca>
parents:
diff changeset
11 .PHONY: clean
19eac734a518 Makefile to actually build something with initial start to ROM init code
William Astle <lost@l-w.ca>
parents:
diff changeset
12 clean:
19eac734a518 Makefile to actually build something with initial start to ROM init code
William Astle <lost@l-w.ca>
parents:
diff changeset
13 rm -f bin/*.rom bin/*.zip
19eac734a518 Makefile to actually build something with initial start to ROM init code
William Astle <lost@l-w.ca>
parents:
diff changeset
14 rm -f src/*.list
19eac734a518 Makefile to actually build something with initial start to ROM init code
William Astle <lost@l-w.ca>
parents:
diff changeset
15 rm -f */*~ *~
19eac734a518 Makefile to actually build something with initial start to ROM init code
William Astle <lost@l-w.ca>
parents:
diff changeset
16
19eac734a518 Makefile to actually build something with initial start to ROM init code
William Astle <lost@l-w.ca>
parents:
diff changeset
17 bin/coco2.zip: bin/lwbasic.rom
19eac734a518 Makefile to actually build something with initial start to ROM init code
William Astle <lost@l-w.ca>
parents:
diff changeset
18 mkdir -p coco2
19eac734a518 Makefile to actually build something with initial start to ROM init code
William Astle <lost@l-w.ca>
parents:
diff changeset
19 rm -f coco2/* coco2.zip
19eac734a518 Makefile to actually build something with initial start to ROM init code
William Astle <lost@l-w.ca>
parents:
diff changeset
20 dd if=bin/lwbasic.rom of=coco2/extbas11.rom bs=1024 count=8
19eac734a518 Makefile to actually build something with initial start to ROM init code
William Astle <lost@l-w.ca>
parents:
diff changeset
21 dd if=bin/lwbasic.rom of=coco2/bas12.rom bs=1024 count=8 skip=8
19eac734a518 Makefile to actually build something with initial start to ROM init code
William Astle <lost@l-w.ca>
parents:
diff changeset
22 dd if=bin/lwbasic.rom of=coco2/disk11.rom bs=1024 count=16 skip=16
19eac734a518 Makefile to actually build something with initial start to ROM init code
William Astle <lost@l-w.ca>
parents:
diff changeset
23 zip bin/coco2.zip coco2/extbas11.rom coco2/bas12.rom coco2/disk11.rom
19eac734a518 Makefile to actually build something with initial start to ROM init code
William Astle <lost@l-w.ca>
parents:
diff changeset
24 rm -rf coco2
19eac734a518 Makefile to actually build something with initial start to ROM init code
William Astle <lost@l-w.ca>
parents:
diff changeset
25
19eac734a518 Makefile to actually build something with initial start to ROM init code
William Astle <lost@l-w.ca>
parents:
diff changeset
26 bin/coco2b.zip: bin/lwbasic-coco2b.rom
19eac734a518 Makefile to actually build something with initial start to ROM init code
William Astle <lost@l-w.ca>
parents:
diff changeset
27 mkdir -p coco2b
19eac734a518 Makefile to actually build something with initial start to ROM init code
William Astle <lost@l-w.ca>
parents:
diff changeset
28 rm -f coco2b/* coco2b.zip
19eac734a518 Makefile to actually build something with initial start to ROM init code
William Astle <lost@l-w.ca>
parents:
diff changeset
29 dd if=bin/lwbasic-coco2b.rom of=coco2b/extbas11.rom bs=1024 count=8
19eac734a518 Makefile to actually build something with initial start to ROM init code
William Astle <lost@l-w.ca>
parents:
diff changeset
30 dd if=bin/lwbasic-coco2b.rom of=coco2b/bas13.rom bs=1024 count=8 skip=8
19eac734a518 Makefile to actually build something with initial start to ROM init code
William Astle <lost@l-w.ca>
parents:
diff changeset
31 dd if=bin/lwbasic-coco2b.rom of=coco2b/disk11.rom bs=1024 count=16 skip=16
19eac734a518 Makefile to actually build something with initial start to ROM init code
William Astle <lost@l-w.ca>
parents:
diff changeset
32 zip bin/coco2b.zip coco2b/extbas11.rom coco2b/bas13.rom coco2b/disk11.rom
19eac734a518 Makefile to actually build something with initial start to ROM init code
William Astle <lost@l-w.ca>
parents:
diff changeset
33 rm -rf coco2b
19eac734a518 Makefile to actually build something with initial start to ROM init code
William Astle <lost@l-w.ca>
parents:
diff changeset
34
19eac734a518 Makefile to actually build something with initial start to ROM init code
William Astle <lost@l-w.ca>
parents:
diff changeset
35 bin/coco3.zip: bin/lwbasic-coco3.rom
19eac734a518 Makefile to actually build something with initial start to ROM init code
William Astle <lost@l-w.ca>
parents:
diff changeset
36 mkdir -p coco3
19eac734a518 Makefile to actually build something with initial start to ROM init code
William Astle <lost@l-w.ca>
parents:
diff changeset
37 rm -f coco3/* coco3.zip
19eac734a518 Makefile to actually build something with initial start to ROM init code
William Astle <lost@l-w.ca>
parents:
diff changeset
38 dd if=bin/lwbasic-coco3.rom of=coco3/coco3.rom bs=1024 count=32
19eac734a518 Makefile to actually build something with initial start to ROM init code
William Astle <lost@l-w.ca>
parents:
diff changeset
39 dd if=/dev/null of=coco3/disk11.rom bs=1024 count=8
19eac734a518 Makefile to actually build something with initial start to ROM init code
William Astle <lost@l-w.ca>
parents:
diff changeset
40 zip bin/coco3.zip coco3/coco3.rom coco3/disk11.rom
19eac734a518 Makefile to actually build something with initial start to ROM init code
William Astle <lost@l-w.ca>
parents:
diff changeset
41 rm -rf coco3
19eac734a518 Makefile to actually build something with initial start to ROM init code
William Astle <lost@l-w.ca>
parents:
diff changeset
42
9
f9ec351dd82b Add Makefile rules for running the Coco 3 ROM in MAME
William Astle <lost@l-w.ca>
parents: 2
diff changeset
43 .PHONY: mame2 mame2d
2
19eac734a518 Makefile to actually build something with initial start to ROM init code
William Astle <lost@l-w.ca>
parents:
diff changeset
44 mame2: bin/coco2.zip
19eac734a518 Makefile to actually build something with initial start to ROM init code
William Astle <lost@l-w.ca>
parents:
diff changeset
45 mame coco2 -skip_gameinfo -rompath ./bin
19eac734a518 Makefile to actually build something with initial start to ROM init code
William Astle <lost@l-w.ca>
parents:
diff changeset
46 mame2d: bin/coco2.zip
19eac734a518 Makefile to actually build something with initial start to ROM init code
William Astle <lost@l-w.ca>
parents:
diff changeset
47 mame coco2 -skip_gameinfo -rompath ./bin -debug
9
f9ec351dd82b Add Makefile rules for running the Coco 3 ROM in MAME
William Astle <lost@l-w.ca>
parents: 2
diff changeset
48
f9ec351dd82b Add Makefile rules for running the Coco 3 ROM in MAME
William Astle <lost@l-w.ca>
parents: 2
diff changeset
49 .PHONY: mame3 mame3d
f9ec351dd82b Add Makefile rules for running the Coco 3 ROM in MAME
William Astle <lost@l-w.ca>
parents: 2
diff changeset
50 mame3: bin/coco3.zip
f9ec351dd82b Add Makefile rules for running the Coco 3 ROM in MAME
William Astle <lost@l-w.ca>
parents: 2
diff changeset
51 mame coco3 -skip_gameinfo -rompath ./bin
f9ec351dd82b Add Makefile rules for running the Coco 3 ROM in MAME
William Astle <lost@l-w.ca>
parents: 2
diff changeset
52 mame3d: bin/coco3.zip
f9ec351dd82b Add Makefile rules for running the Coco 3 ROM in MAME
William Astle <lost@l-w.ca>
parents: 2
diff changeset
53 mame coco3 -skip_gameinfo -rompath ./bin -debug