# Makefile fr Z9001 CPM-Versionen
# VPohlers 24.11.2025 16:23:52

# Anpassen an den Speicherort des Arnold-Assemblers

AS=c:\\myuser\\hobby3\\programme\\as\\bin\\as.exe
P2BIN=c:\\myuser\\hobby3\\programme\\as\\bin\\p2bin.exe
PLIST=c:\\myuser\\hobby3\\programme\\as\\bin\\plist.exe
PERL=c:\\perl\\bin\\perl.exe

# Zu erzeugende Dateien

FILES=CPM6010.bin CPMSD4.bin CPMSD8.bin CPMSDS8.bin CPMSS4.bin CPMSS4R.bin CPMSS8.bin cpmz9_robotron.bin

ALL:	$(FILES)

*.bin: 

# Assemblieren einer Datei
%.p %.bin:	%.asm
	$(AS) -cpu Z80 -L $< -a
	$(PLIST) $*.p
	$(P2BIN) -r \$$-\$$ $*.p
	del $*.p
	bdiff $*.cpm $*.bin > $*.bdiff
	