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
# Automatically generated by make_mf version 1.1
2
 
3
# Standard directories and files
4
BASE=/u/g/release/Source
5
UTIL=${BASE}/src/utilities
6
SRC=${UTIL}/make_tdf
7
SRC2=${SRC}/obj_c
8
SRC2A=${SRC}/obj_tok
9
SRCX=${UTIL}/shared
10
 
11
# Standard variables
12
 
13
CC=tcc
14
TCCOPTS=-Yansi -Xs
15
CCOPTS=${TCCOPTS} -I${SRC} -I${SRC2} -I${SRCX}
16
MAIN_CC=${CC} ${CCOPTS} -c
17
LINK_CC=${CC} ${TCCOPTS}
18
LIBS=
19
 
20
REMOVE=rm -f
21
MOVE=mv
22
COPY=cp
23
ECHO=echo
24
SHELL=/bin/sh
25
 
26
# Dependencies and construction rules
27
 
28
NAME=make_tdf
29
EXTRA=auto
30
EXTRA_CLEAN=
31
EXTRA_CLOBBER=
32
 
33
OFILES=error.o input.o lex.o main.o output.o syntax.o tdf.o xalloc.o
34
 
35
${NAME} : ${OFILES}
36
	${LINK_CC} -o ${NAME} ${OFILES} ${LIBS}
37
 
38
all : ${EXTRA} ${NAME}
39
	@${ECHO} all done
40
 
41
extra : ${EXTRA}
42
	@${ECHO} done
43
 
44
error.o : ${SRCX}/error.c ${SRCX}/config.h ${SRCX}/error.h\
45
 ${SRCX}/release.h ${SRCX}/ossg.h ${SRCX}/ossg_api.h
46
	${MAIN_CC} ${SRCX}/error.c
47
 
48
input.o : ${SRC}/input.c ${SRCX}/config.h ${SRC2}/cons_ops.h\
49
 ${SRCX}/error.h ${SRC2}/info_ops.h ${SRC}/input.h ${SRC2}/link_ops.h\
50
 ${SRC2}/par_ops.h ${SRC2}/sort_ops.h ${SRC2}/tdf.h ${SRCX}/xalloc.h\
51
 ${SRCX}/ossg.h ${SRCX}/ossg_api.h
52
	${MAIN_CC} ${SRC}/input.c
53
 
54
lex.o : ${SRC}/lex.c ${SRC2}/cmd_ops.h ${SRCX}/config.h ${SRCX}/error.h\
55
 ${SRC}/input.h ${SRC}/keyword.h ${SRC}/lex.h ${SRC}/lexer.h\
56
 ${SRC2}/spec_ops.h ${SRC}/syntax.h ${SRC2}/tdf.h ${SRCX}/xalloc.h\
57
 ${SRCX}/ossg.h ${SRCX}/ossg_api.h
58
	${MAIN_CC} ${SRC}/lex.c
59
 
60
main.o : ${SRC}/main.c ${SRC2}/cmd_ops.h ${SRCX}/config.h ${SRCX}/error.h\
61
 ${SRC}/input.h ${SRC}/lex.h ${SRC}/output.h ${SRC2}/spec_ops.h\
62
 ${SRC}/syntax.h ${SRC2}/tdf.h ${SRCX}/ossg.h ${SRCX}/ossg_api.h
63
	${MAIN_CC} ${SRC}/main.c
64
 
65
output.o : ${SRC}/output.c ${SRC2}/cmd_ops.h ${SRCX}/config.h\
66
 ${SRC2}/cons_ops.h ${SRCX}/error.h ${SRC2}/info_ops.h ${SRC}/input.h\
67
 ${SRC}/lex.h ${SRC2}/link_ops.h ${SRC}/output.h ${SRC2}/par_ops.h\
68
 ${SRC2}/sort_ops.h ${SRC2}/spec_ops.h ${SRC2}/tdf.h ${SRCX}/ossg.h\
69
 ${SRCX}/ossg_api.h
70
	${MAIN_CC} ${SRC}/output.c
71
 
72
syntax.o : ${SRC}/syntax.c ${SRC2}/cmd_ops.h ${SRCX}/config.h\
73
 ${SRC2}/cons_ops.h ${SRCX}/error.h ${SRC2}/info_ops.h ${SRC}/input.h\
74
 ${SRC}/lex.h ${SRC2}/link_ops.h ${SRC2}/par_ops.h ${SRC2}/sort_ops.h\
75
 ${SRC2}/spec_ops.h ${SRC}/syntax.h ${SRC2}/tdf.h ${SRCX}/xalloc.h\
76
 ${SRCX}/ossg.h ${SRCX}/ossg_api.h
77
	${MAIN_CC} ${SRC}/syntax.c
78
 
79
tdf.o : ${SRC2}/tdf.c ${SRC2}/assert_def.h ${SRCX}/config.h\
80
 ${SRCX}/error.h ${SRC2}/tdf.h ${SRCX}/xalloc.h ${SRCX}/ossg.h\
81
 ${SRCX}/ossg_api.h
82
	${MAIN_CC} ${SRC2}/tdf.c
83
 
84
xalloc.o : ${SRCX}/xalloc.c ${SRCX}/config.h ${SRCX}/error.h\
85
 ${SRCX}/xalloc.h ${SRCX}/ossg.h ${SRCX}/ossg_api.h
86
	${MAIN_CC} ${SRCX}/xalloc.c
87
 
88
clean : ${EXTRA_CLEAN}
89
	${REMOVE} ${OFILES}
90
	${REMOVE} core
91
 
92
clobber : clean ${EXTRA_CLOBBER}
93
	${REMOVE} ${NAME}
94
 
95
CALCULUS=calculus
96
LEXI=lexi
97
SID=sid
98
SIDOPTS=-l ossg-c -s no-lines
99
 
100
SID_OUT=${SRC}/syntax.c ${SRC}/syntax.h
101
C_OUT=${SRC2}/tdf.h
102
TOK_OUT=${SRC2A}/tdf.h
103
LEXI_OUT=${SRC}/lexer.h ${SRC}/keyword.h
104
 
105
auto : ${SID_OUT} ${C_OUT} ${TOK_OUT} ${LEXI_OUT}
106
 
107
${SRC}/syntax.c : ${SRC}/syntax.sid ${SRC}/syntax.act
108
	@${REMOVE} ${SID_OUT}
109
	${SID} ${SIDOPTS} ${SRC}/syntax.sid ${SRC}/syntax.act ${SID_OUT}
110
 
111
${SRC2}/tdf.h : ${SRC}/tdf.alg
112
	@${REMOVE} ${SRC2}/*.h
113
	${CALCULUS} -a -x ${SRC}/tdf.alg ${SRC2}
114
 
115
${SRC2A}/tdf.h : ${SRC}/tdf.alg
116
	@${REMOVE} ${SRC2A}/*.h
117
	${CALCULUS} -a -x -t ${SRC}/tdf.alg ${SRC2A}
118
 
119
${SRC}/lexer.h : ${SRC}/lexer.lxi
120
	@${REMOVE} ${SRC}/lexer.h
121
	${LEXI} ${SRC}/lexer.lxi ${SRC}/lexer.h
122
 
123
${SRC}/keyword.h : ${SRC}/lexer.lxi
124
	@${REMOVE} ${SRC}/keyword.h
125
	${LEXI} -k ${SRC}/lexer.lxi ${SRC}/keyword.h
126
 
127
auto_clobber :
128
	${REMOVE} ${SID_OUT} ${LEXI_OUT}
129
	${REMOVE} ${SRC2}/*.h
130
	${REMOVE} ${SRC2A}/*.h