]> cloudbase.mooo.com Git - z180-stamp.git/blame - z180/Tupfile
New command: cfboot - boot from cf card.
[z180-stamp.git] / z180 / Tupfile
CommitLineData
70da9bec
L
1include_rules
2
3PROG = hdrom
a2907f2e 4CFBOOT = cfboot
70da9bec 5
23f85294 6SRC = init.180
70da9bec 7SRC += ddtz.180
64cc2207
L
8SRC += msgbuf-a.180 conbuf-a.180
9#SRC += bioscio.180 chario.180
10SRC += console.180
11SRC += asci-p.180
70da9bec
L
12SRC += romend.180
13
14
15AS_OPT = MFS
16
17LN_PROG = 0
18LN_DATA = C000
19
20
70da9bec 21###############################################################################
eded7ec4 22# Executables
70da9bec
L
23
24CPMEMU = zxcc
25
26#AS = $(CPMEMU) ccpline.com
27AS = $(CPMEMU) slr180.com
28
29
30###############################################################################
31
23f85294 32!AS-plain = |> $(AS) -%B/$(AS_OPT) |> %B.rel | %B.lst
70da9bec 33
eded7ec4
L
34!AS = |> ^ $(AS) -%B/$(AS_OPT)^ set +e; OUTPUT=\$(mktemp);\
35$(AS) -%B/$(AS_OPT) > ${OUTPUT};\
70da9bec
L
36grep -q '^ 0 Error(s) Detected' ${OUTPUT}; ERROR=$?;\
37[ "${ERROR}" != "0" ] && cat ${OUTPUT};\
38[ "${ERROR}" != "0" ] && rm -f %B.rel;\
39rm -f ${OUTPUT}; exit ${ERROR} \
23f85294 40|> %B.rel | %B.lst
70da9bec 41
8df5b655
L
42#!LINK = |> ld80 -o %o -ms %O.map -P $(LN_PROG) -D $(LN_DATA) %f |> | %O.map
43!LINK = |> ld80 -o %o -ms %O.map -P $(LN_PROG) %f |> | %O.map
70da9bec
L
44
45#ifndef DEBUG
46
071402f0 47: foreach $(SRC) |> !AS |> {objs}
70da9bec
L
48: {objs} |> !LINK |> $(PROG).hex
49: $(PROG).hex |> srec_cat -o %o -c_array %B -C_COMpressed -include %f -Intel |> $(PROG).c | $(PROG).h
50
51
a2907f2e
L
52: $(CFBOOT).180 |> $(AS) -%B/HFS |> %B.hex | %B.lst
53: $(CFBOOT).hex |> srec_cat -o %o -c_array %B -C_COMpressed -include %f -Intel |> $(CFBOOT).c | $(CFBOOT).h
54
eded7ec4
L
55#COMMAND="$(AS) -%B/$(AS_OPT)"; \
56
57
70da9bec 58#endif