]>
Commit | Line | Data |
---|---|---|
70da9bec L |
1 | include_rules |
2 | ||
3 | PROG = hdrom | |
a2907f2e | 4 | CFBOOT = cfboot |
70da9bec | 5 | |
23f85294 | 6 | SRC = init.180 |
70da9bec | 7 | SRC += ddtz.180 |
64cc2207 L |
8 | SRC += msgbuf-a.180 conbuf-a.180 |
9 | #SRC += bioscio.180 chario.180 | |
10 | SRC += console.180 | |
11 | SRC += asci-p.180 | |
70da9bec L |
12 | SRC += romend.180 |
13 | ||
14 | ||
15 | AS_OPT = MFS | |
16 | ||
17 | LN_PROG = 0 | |
18 | LN_DATA = C000 | |
19 | ||
20 | ||
70da9bec | 21 | ############################################################################### |
eded7ec4 | 22 | # Executables |
70da9bec L |
23 | |
24 | CPMEMU = zxcc | |
25 | ||
26 | #AS = $(CPMEMU) ccpline.com | |
27 | AS = $(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 |
36 | grep -q '^ 0 Error(s) Detected' ${OUTPUT}; ERROR=$?;\ |
37 | [ "${ERROR}" != "0" ] && cat ${OUTPUT};\ | |
38 | [ "${ERROR}" != "0" ] && rm -f %B.rel;\ | |
39 | rm -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 |