2 |
7u83 |
1 |
|
|
|
2 |
CAT=cat
|
|
|
3 |
CALCULUS=calculus
|
|
|
4 |
MAKE_ERR=make_err
|
|
|
5 |
MAKE_TDF=make_tdf
|
|
|
6 |
SID=sid
|
|
|
7 |
SIDOPTS=-l ossg-c -s numeric -s split -s no-lines
|
|
|
8 |
|
|
|
9 |
ALG=${SRC1}/c_class.alg
|
|
|
10 |
TEMPL=${SRC2B}/bits.h ${SRC2B}/err_ext.h ${SRC2B}/loc_ext.h
|
|
|
11 |
SYNTAX=${SRC6}/syntax.sid ${SRC6}/syntax.act
|
|
|
12 |
PSYNTAX=${SRC5}/psyntax.sid ${SRC5}/psyntax.act
|
|
|
13 |
|
|
|
14 |
SID_OUT=${SRC6}/syntax1.c ${SRC6}/syntax.h
|
|
|
15 |
PSID_OUT=${SRC5}/psyntax1.c ${SRC5}/psyntax.h
|
|
|
16 |
C_OUT=${SRC2}/c_class.h
|
|
|
17 |
TOK_OUT=${SRC2A}/c_class.h
|
|
|
18 |
ERR_OUT=${SRC7}/errors1.h ${SRC7}/errors2.h ${SRC7}/errors3.h ${SRC7}/opts.h
|
|
|
19 |
TDF_OUT=${SRC4}/tdf1.h
|
|
|
20 |
|
|
|
21 |
ALL_OUT=${SID_OUT} ${PSID_OUT} ${C_OUT} ${TOK_OUT} ${ERR_OUT} ${TDF_OUT}
|
|
|
22 |
|
|
|
23 |
auto : ${ALL_OUT}
|
|
|
24 |
|
|
|
25 |
${SRC6}/syntax1.c : ${SYNTAX}
|
|
|
26 |
${SID} ${SIDOPTS} ${SYNTAX} ${SRC6}/syntax@.c ${SRC6}/syntax.h
|
|
|
27 |
|
|
|
28 |
${SRC5}/psyntax1.c : ${PSYNTAX}
|
|
|
29 |
${SID} ${SIDOPTS} ${PSYNTAX} ${SRC5}/psyntax@.c ${SRC5}/psyntax.h
|
|
|
30 |
|
|
|
31 |
${SRC2}/c_class.h : ${ALG} ${TEMPL}
|
|
|
32 |
@${REMOVE} ${SRC2}/*.h
|
|
|
33 |
${CALCULUS} -a -x ${ALG} ${SRC2}
|
|
|
34 |
${CALCULUS} ${ALG} -T${SRC2B}/bits.h ${SRC2}/bits.h
|
|
|
35 |
${CALCULUS} ${ALG} -T${SRC2B}/err_ext.h ${SRC2}/err_ext.h
|
|
|
36 |
${CALCULUS} ${ALG} -T${SRC2B}/loc_ext.h ${SRC2}/loc_ext.h
|
|
|
37 |
|
|
|
38 |
${SRC2A}/c_class.h : ${ALG} ${TEMPL}
|
|
|
39 |
@${REMOVE} ${SRC2A}/*.h
|
|
|
40 |
${CALCULUS} -a -x -t ${ALG} ${SRC2A}
|
|
|
41 |
${CALCULUS} -t ${ALG} -T${SRC2B}/bits.h ${SRC2A}/bits.h
|
|
|
42 |
${CALCULUS} -t ${ALG} -T${SRC2B}/err_ext.h ${SRC2A}/err_ext.h
|
|
|
43 |
${CALCULUS} -t ${ALG} -T${SRC2B}/loc_ext.h ${SRC2A}/loc_ext.h
|
|
|
44 |
|
|
|
45 |
${SRC7}/errors1.h : ${SRC7}/catalog.err
|
|
|
46 |
@${REMOVE} ${SRC7}/errors1.h
|
|
|
47 |
${MAKE_ERR} ${SRC7}/catalog.err ${SRC7}/errors1.h
|
|
|
48 |
|
|
|
49 |
${SRC7}/errors2.h : ${SRC7}/catalog.err ${SRC7}/extra.err
|
|
|
50 |
@${REMOVE} ${SRC7}/errors2.h
|
|
|
51 |
${CAT} ${SRC7}/catalog.err ${SRC7}/extra.err | ${MAKE_ERR} > ${SRC7}/errors2.h
|
|
|
52 |
|
|
|
53 |
${SRC7}/errors3.h : ${SRC7}/catalog.err ${SRC7}/extra.err
|
|
|
54 |
@${REMOVE} ${SRC7}/errors3.h
|
|
|
55 |
${CAT} ${SRC7}/catalog.err ${SRC7}/extra.err | ${MAKE_ERR} -d > ${SRC7}/errors3.h
|
|
|
56 |
|
|
|
57 |
${SRC7}/opts.h : ${SRC7}/catalog.err
|
|
|
58 |
@${REMOVE} ${SRC7}/opts.h
|
|
|
59 |
${MAKE_ERR} -u ${SRC7}/catalog.err ${SRC7}/opts.h
|
|
|
60 |
|
|
|
61 |
${SRC4}/tdf1.h : ${SPEC} ${SRC2B}/tdf1.h
|
|
|
62 |
@${REMOVE} ${SRC4}/tdf1.h
|
|
|
63 |
${MAKE_TDF} ${SPEC} ${SRC2B}/tdf1.h ${SRC4}/tdf1.h
|
|
|
64 |
|
|
|
65 |
auto_clobber :
|
|
|
66 |
@${REMOVE} ${SRC6}/syntax*.c ${SRC6}/syntax.h
|
|
|
67 |
@${REMOVE} ${SRC5}/psyntax*.c ${SRC5}/psyntax.h
|
|
|
68 |
@${REMOVE} ${SRC2}/*.h
|
|
|
69 |
@${REMOVE} ${SRC2A}/*.h
|
|
|
70 |
@${REMOVE} ${ERR_OUT}
|
|
|
71 |
@${REMOVE} ${TDF_OUT}
|