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}/lexi
6
 
7
make_mf\
8
    +A BASE=${BASE}\
9
    +A UTIL=${UTIL}\
10
    +A SRC=${SRC}\
11
    +A SRCX=${UTIL}/shared\
12
    +W ...\
13
    +V 'EXTRA=auto'\
14
    -o .../lexi\
15
    -Yansi -Xs\
16
    -I ${SRC}\
17
    -I ${UTIL}/shared\
18
    ${SRC}/*.c\
19
    ${UTIL}/shared/*.c\
20
    > Makefile
21
 
22
cat >> Makefile << EOF
23
 
24
LEXI=lexi
25
SID=sid
26
SIDOPTS=-l ossg-c -s no-lines
27
 
28
SID_OUT=\${SRC}/syntax.c \${SRC}/syntax.h
29
LEXI_OUT=\${SRC}/lexer.h \${SRC}/keyword.h
30
 
31
auto : \${SID_OUT} \${LEXI_OUT}
32
 
33
\${SRC}/syntax.c : \${SRC}/syntax.sid \${SRC}/syntax.act
34
	@\${REMOVE} \${SID_OUT}
35
	\${SID} \${SIDOPTS} \${SRC}/syntax.sid \${SRC}/syntax.act \${SID_OUT}
36
 
37
\${SRC}/lexer.h : \${SRC}/lexer.lxi
38
	@\${REMOVE} \${SRC}/lexer.h
39
	\${LEXI} \${SRC}/lexer.lxi \${SRC}/lexer.h
40
 
41
\${SRC}/keyword.h : \${SRC}/lexer.lxi
42
	@\${REMOVE} \${SRC}/keyword.h
43
	\${LEXI} -k \${SRC}/lexer.lxi \${SRC}/keyword.h
44
 
45
auto_clobber :
46
	\${REMOVE} \${SID_OUT} \${LEXI_OUT}
47
EOF