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