]> cloudbase.mooo.com Git - z180-stamp.git/blobdiff - z180/Tupfile
Adaptions for fatfs R0.13b
[z180-stamp.git] / z180 / Tupfile
index ebdb1d1fa1490de8239359bb1d5593107eec1c1e..c7d79fbea81cfee4c8aef548fc4ebffd1d9fe6ca 100644 (file)
@@ -1,11 +1,14 @@
 include_rules
 
 PROG   = hdrom
+CFBOOT = cfboot
 
-SRC    = r3init.180 
+SRC    = init.180
 SRC    += ddtz.180
-#SRC   += fifoio.180 msgbuf.180 ser1-i.180 console.180
-SRC    += ser1-i.180 console.180
+SRC    += msgbuf-a.180 conbuf-a.180
+#SRC   += bioscio.180 chario.180
+SRC    += console.180
+SRC    += asci-p.180
 SRC    += romend.180
 
 
@@ -26,7 +29,7 @@ AS = $(CPMEMU) slr180.com
 
 ###############################################################################
 
-!AS-plain = |> $(AS) -%B/$(AS_OPT) |> %B.rel | %B.lst 
+!AS-plain = |> $(AS) -%B/$(AS_OPT) |> %B.rel | %B.lst
 
 !AS = |> ^ $(AS) -%B/$(AS_OPT)^ set +e; OUTPUT=\$(mktemp);\
 $(AS) -%B/$(AS_OPT) > ${OUTPUT};\
@@ -34,9 +37,10 @@ grep -q '^ 0 Error(s) Detected' ${OUTPUT}; ERROR=$?;\
 [ "${ERROR}" != "0" ] && cat ${OUTPUT};\
 [ "${ERROR}" != "0" ] && rm -f %B.rel;\
 rm -f ${OUTPUT}; exit ${ERROR} \
-|> %B.rel | %B.lst 
+|> %B.rel | %B.lst
 
-!LINK = |> ld80 -o %o -ms %O.map -P $(LN_PROG) -D $(LN_DATA) %f |> | %O.map
+#!LINK = |> ld80 -o %o -ms %O.map -P $(LN_PROG) -D $(LN_DATA) %f |> | %O.map
+!LINK = |> ld80 -o %o -ms %O.map -P $(LN_PROG) %f |> | %O.map
 
 #ifndef DEBUG
 
@@ -45,8 +49,10 @@ rm -f ${OUTPUT}; exit ${ERROR} \
 : $(PROG).hex |> srec_cat -o %o -c_array %B -C_COMpressed -include %f -Intel |> $(PROG).c | $(PROG).h
 
 
+: $(CFBOOT).180 |> $(AS) -%B/HFS |> %B.hex | %B.lst
+: $(CFBOOT).hex |> srec_cat -o %o -c_array %B -C_COMpressed -include %f -Intel |> $(CFBOOT).c | $(CFBOOT).h
+
 #COMMAND="$(AS) -%B/$(AS_OPT)"; \
 
 
 #endif
-