]> cloudbase.mooo.com Git - avrcpm.git/blobdiff - cpm/Makefile
* avr/timer.asm
[avrcpm.git] / cpm / Makefile
index d77b3537e2f57424af507f97c418b98edbadd6d2..e12e618cd1fea192ee346134f47937832794c890 100644 (file)
@@ -1,5 +1,9 @@
 #WARNING! Do not run a 'make install' unless you know what you're doing.
 
+CPMSIZE = 62
+
+CPMSYS = CPM$(CPMSIZE).SYS
+
 IMGFORMAT = avrcpm
 #IMGFORMAT = simhd
 
@@ -26,10 +30,10 @@ diskimage: CPM.BIN cpmdsk/*
        mkfs.cpm -f $(IMGFORMAT) -b CPM.BIN -L test diskimage
        cd cpmdsk; for x in *; do cpmcp -f $(IMGFORMAT) ../diskimage $$x 0:$$x; done; cd ..
 
-CPM.BIN: IPL.BIN BIOS.BIN CPM.SYS
+CPM.BIN: IPL.BIN BIOS.BIN $(CPMSYS)
        dd conv=sync bs=118  count=1 if=IPL.BIN > tmpCPM.BIN   &&\
        echo -n "<CPM_Disk>" >> tmpCPM.BIN                     &&\
-       dd conv=sync bs=128 count=44 if=CPM.SYS >> tmpCPM.BIN  &&\
+       dd conv=sync bs=128 count=44 if=$(CPMSYS) >> tmpCPM.BIN  &&\
        dd conv=sync bs=128  count=7 if=BIOS.BIN >> tmpCPM.BIN &&\
        mv tmpCPM.BIN CPM.BIN