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