Subversion Repositories tendra.SVN

Rev

Rev 2 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 7u83 1
#!/bin/sh
2
 
3
BASE=/u/g/release/Source
4
UTIL=${BASE}/src/utilities
5
SRC=${UTIL}/calculus
6
 
7
make_mf\
8
    +A BASE=${BASE}\
9
    +A UTIL=${UTIL}\
10
    +A SRC=${SRC}\
11
    +A SRC2=${SRC}/obj_c\
12
    +A SRC2A=${SRC}/obj_tok\
13
    +A SRCX=${UTIL}/shared\
14
    +W ...\
15
    +V 'EXTRA=auto'\
16
    -o .../calculus\
17
    -Yansi -Xs\
18
    -I ${SRC}\
19
    -I ${SRC}/obj_c\
20
    -I ${UTIL}/shared\
21
    ${SRC}/*.c\
22
    ${SRC}/obj_c/*.c\
23
    ${UTIL}/shared/*.c\
24
    > Makefile
25
 
26
make_mf\
27
    +fcheck.ini\
28
    +A BASE=${BASE}\
29
    +A UTIL=${UTIL}\
30
    +A SRC=${SRC}\
31
    +A SRC2=${SRC}/obj_c\
32
    +A SRC2A=${SRC}/obj_tok\
33
    +A SRCX=${UTIL}/shared\
34
    +W ...\
35
    -o .../calculus.k\
36
    -Yansi -Xs\
37
    -I ${SRC}\
38
    -I ${SRC}/obj_tok\
39
    -I ${UTIL}/shared\
40
    ${SRC}/*.c\
41
    ${UTIL}/shared/*.c\
42
    > Makefile.chk
43
 
44
cat >> Makefile << EOF
45
 
46
CALCULUS=calculus
47
LEXI=lexi
48
SID=sid
49
SIDOPTS=-l ossg-c -s no-lines
50
 
51
SID_OUT=\${SRC}/syntax.c \${SRC}/syntax.h
52
C_OUT=\${SRC2}/calculus.h \${SRC2}/type_ops.h
53
TOK_OUT=\${SRC2A}/calculus.h \${SRC2A}/type_ops.h
54
DISK_OUT=\${SRC}/read_def.h \${SRC}/write_def.h \${SRC}/print_def.h
55
LEXI_OUT=\${SRC}/lexer.h \${SRC}/keyword.h
56
 
57
auto : \${SID_OUT} \${C_OUT} \${TOK_OUT} \${DISK_OUT} \${LEXI_OUT}
58
 
59
\${SRC}/syntax.c : \${SRC}/syntax.sid \${SRC}/syntax.act
60
	@\${REMOVE} \${SID_OUT}
61
	\${SID} \${SIDOPTS} \${SRC}/syntax.sid \${SRC}/syntax.act \${SID_OUT}
62
 
63
\${SRC2}/calculus.h : \${SRC}/calculus.alg
64
	@\${REMOVE} \${SRC2}/*.h
65
	\${CALCULUS} -a -x \${SRC}/calculus.alg \${SRC2}
66
 
67
\${SRC2A}/calculus.h : \${SRC}/calculus.alg
68
	@\${REMOVE} \${SRC2A}/*.h
69
	\${CALCULUS} -a -x -t \${SRC}/calculus.alg \${SRC2A}
70
 
71
\${SRC}/read_def.h : \${SRC}/calculus.alg \${SRC}/disk.alg
72
	@\${REMOVE} \${SRC}/read_def.h \${SRC}/write_def.h
73
	\${CALCULUS} -a -x -d \${SRC}/calculus.alg \${SRC}/disk.alg \${SRC}
74
 
75
\${SRC}/print_def.h : \${SRC}/calculus.alg
76
	@\${REMOVE} \${SRC}/print_def.h
77
	\${CALCULUS} -a -x -p \${SRC}/calculus.alg \${SRC}
78
 
79
\${SRC}/lexer.h : \${SRC}/lexer.lxi
80
	@\${REMOVE} \${SRC}/lexer.h
81
	\${LEXI} \${SRC}/lexer.lxi \${SRC}/lexer.h
82
 
83
\${SRC}/keyword.h : \${SRC}/lexer.lxi
84
	@\${REMOVE} \${SRC}/keyword.h
85
	\${LEXI} -k \${SRC}/lexer.lxi \${SRC}/keyword.h
86
 
87
auto_clobber :
88
	\${REMOVE} \${SID_OUT}
89
	\${REMOVE} \${SRC2}/*.h
90
	\${REMOVE} \${SRC2A}/*.h
91
	\${REMOVE} \${DISK_OUT}
92
	\${REMOVE} \${LEXI_OUT}
93
EOF