include_rules
PROG = hdrom
+CFBOOT = cfboot
+CPUINFO = cpuinfo
-SRC = r3init.180
+SRC = init.180
SRC += ddtz.180
-#SRC += fifoio.180 msgbuf.180 ser1-i.180 console.180
-SRC += msgfifo.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
###############################################################################
-!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};\
[ "${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
: $(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
+
+: $(CPUINFO).180 |> $(AS) -%B/HFS |> %B.hex | %B.lst
+: $(CPUINFO).hex |> srec_cat -o %o -c_array %B -C_COMpressed -include %f -Intel |> $(CPUINFO).c | $(CPUINFO).h
+
#COMMAND="$(AS) -%B/$(AS_OPT)"; \
#endif
-