changeset 90:f1d847f69c0d

Add target for explicit coco1 for MAME rules Mame seems to have removed the coco2 machine target. Add an additional coco1 set of targets that uses the bare "coco" machine.
author William Astle <lost@l-w.ca>
date Tue, 17 Oct 2023 17:03:17 -0600
parents f519075cc164
children ecca1fcfc34b
files Makefile
diffstat 1 files changed, 16 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Mon Oct 16 23:42:51 2023 -0600
+++ b/Makefile	Tue Oct 17 17:03:17 2023 -0600
@@ -1,5 +1,5 @@
 .PHONY: all
-all: bin/lwbasic.rom bin/lwbasic-coco2b.rom bin/lwbasic-coco3.rom bin/coco2.zip bin/coco2b.zip bin/coco3.zip
+all: bin/lwbasic.rom bin/lwbasic-coco2b.rom bin/lwbasic-coco3.rom bin/coco.zip bin/coco2.zip bin/coco2b.zip bin/coco3.zip
 
 lwb_srcs := consscr.s defs.s error.s expr.s fps.s genio.s init.s int.s interp.s irq.s keyb.s keywords.s miscdata.s number.s print.s progctrl.s token.s vars.s
 lwb_srcs := $(addprefix src/,$(lwb_srcs))
@@ -26,6 +26,15 @@
 	zip bin/coco2.zip coco2/extbas11.rom coco2/bas12.rom coco2/disk11.rom
 	rm -rf coco2
 
+bin/coco.zip: bin/lwbasic.rom
+	mkdir -p coco
+	rm -f coco/* coco.zip
+	dd if=bin/lwbasic.rom of=coco/extbas11.rom bs=1024 count=8
+	dd if=bin/lwbasic.rom of=coco/bas12.rom bs=1024 count=8 skip=8
+	dd if=bin/lwbasic.rom of=coco/disk11.rom bs=1024 count=16 skip=16
+	zip bin/coco.zip coco/extbas11.rom coco/bas12.rom coco/disk11.rom
+	rm -rf coco
+
 bin/coco2b.zip: bin/lwbasic-coco2b.rom
 	mkdir -p coco2b
 	rm -f coco2b/* coco2b.zip
@@ -43,7 +52,12 @@
 	zip bin/coco3.zip coco3/coco3.rom coco3/disk11.rom
 	rm -rf coco3
 
-.PHONY: mame2 mame2d
+.PHONY: mame1 mame1d mame2 mame2d
+mame1: bin/coco.zip
+	mame coco -skip_gameinfo -rompath ./bin
+mame1d: bin/coco.zip
+	mame coco -skip_gameinfo -rompath ./bin -debug
+
 mame2: bin/coco2.zip
 	mame coco2 -skip_gameinfo -rompath ./bin
 mame2d: bin/coco2.zip