Subversion Repositories tendra.SVN

Rev

Rev 38 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 38 Rev 89
Line 1... Line 1...
1
 
1
 
2
include ../../../defs.mk
2
include ../../../defs.mk
3
include ../../../Makefile.defs
3
#include ../../../Makefile.defs
4
 
4
 
5
SRC6=./syntax
5
SRC6=./syntax
6
SRC1=../common
6
COMMON=../common
-
 
7
 
7
SRC2=${SRC1}/obj_c
8
OBJC=${COMMON}/obj_c
8
SRC2A=${SRC1}/obj_tok
9
OBJCA=${COMMON}/obj_tok
9
SRC2B=${SRC1}/obj_templ
10
OBJCB=${COMMON}/obj_templ
10
SRC3=${SRC1}/construct
11
CONSTRUCT=${COMMON}/construct
11
SRC4=${SRC1}/output
12
SRC4=${COMMON}/output
12
SRC5=${SRC1}/parse
13
SRC5=${COMMON}/parse
13
SRC7=${SRC1}/utility
14
SRC7=${COMMON}/utility
14
SPEC=../../lib/tdf/def_4_1.db
15
SPEC=../../lib/tdf/def_4_1.db
-
 
16
 
15
 
17
 
16
# Standard variables
18
# Standard variables
17
 
19
 
18
TCCOPTS=	-Yposix1 -Xs
20
TCCOPTS=	-Yposix1 -Xs
19
CCOPTS=		${TCCOPTS} -I${SRC1} -I${SRC2} -I${SRC3} -I${SRC4} -I${SRC5}\
21
CCOPTS=		${TCCOPTS} -I${COMMON} -I${OBJC} -I${CONSTRUCT} -I${SRC4} -I${SRC5}\
20
		 -I${SRC6} -I${SRC7}
22
		 -I${SRC6} -I${SRC7}
21
LIBS=
23
LIBS=
22
CFLAGS=	-I${SRC1} -I${SRC2} -I${SRC3} -I${SRC4} -I${SRC5} -I${SRC6} -I${SRC7}
24
CFLAGS=	-I${COMMON} -I${OBJC} -I${CONSTRUCT} -I${SRC4} -I${SRC5} -I${SRC6} -I${SRC7}
23
 
25
 
24
# Dependencies and construction rules
26
# Dependencies and construction rules
25
 
27
 
26
PROG=	tdfc2
28
PROG=	tdfc2
27
 
29
 
28
OBJS=	access.o allocate.o assign.o basetype.o buffer.o c_class.o capsule.o\
30
OBJS=	access.o allocate.o assign.o basetype.o buffer.o c_class.o capsule.o\
29
	cast.o catalog.o char.o check.o chktype.o class.o compile.o\
31
	cast.o catalog.o char.o check.o chktype.o class.o compile.o\
30
	constant.o construct.o convert.o copy.o debug.o declare.o decode.o\
32
	constant.o construct.o convert.o copy.o debug.o declare.o decode.o\
31
	derive.o destroy.o diag.o diag2.o dump.o encode.o error.o exception.o\
33
	derive.o destroy.o diag.o diag2.o dump.o encode.o error.o exception.o\
32
	exp.o expression.o file.o function.o hash.o identifier.o init.o\
34
	exp.o expression.o file.o function.o hash.o identifier.o init.o\
Line 36... Line 38...
36
	printf.o psyntax1.o psyntax2.o psyntax3.o quality.o redeclare.o\
38
	printf.o psyntax1.o psyntax2.o psyntax3.o quality.o redeclare.o\
37
	rewrite.o save.o shape.o statement.o stmt.o struct.o syntax1.o\
39
	rewrite.o save.o shape.o statement.o stmt.o struct.o syntax1.o\
38
	syntax2.o syntax3.o system.o table.o template.o throw.o tok.o tokdef.o\
40
	syntax2.o syntax3.o system.o table.o template.o throw.o tok.o tokdef.o\
39
	token.o typeid.o unmangle.o variable.o virtual.o xalloc.o
41
	token.o typeid.o unmangle.o variable.o virtual.o xalloc.o
40
 
42
 
41
.PATH:	${SRC1} ${SRC2} ${SRC2A} ${SRC2B} ${SRC3} ${SRC4} ${SRC5} ${SRC6}\
43
.PATH:	$(COMMON) ${OBJC} ${OBJCA} ${OBJCB} ${CONSTRUCT} ${SRC4} ${SRC5} ${SRC6}\
42
	${SRC7} 
44
	${SRC7} 
-
 
45
 
-
 
46
$(PROG): $(OBJS)
-
 
47
	$(CC) -o $(PROG) $(LDFLAGS) $(OBJS)
-
 
48
 
43
 
49
 
44
.c.o:
50
.c.o:
45
	$(CC) -c $(CFLAGS) -o $@ $<
51
	$(CC) -c $(CFLAGS) -o $@ $<
46
 
52
 
47
$(PROG): $(OBJS)
53
access.o: $(CONSTRUCT)/access.c
48
	$(CC) -o $(PROG) $(LDFLAGS) $(OBJS)
54
	$(CC) -c $(CFLAGS) -o $@ $(CONSTRUCT)/access.c
-
 
55
allocate.o: $(CONSTRUCT)/allocate.c
-
 
56
	$(CC) -c $(CFLAGS) -o $@ $(CONSTRUCT)/allocate.c
-
 
57
assign.o: $(CONSTRUCT)/assign.c
-
 
58
	$(CC) -c $(CFLAGS) -o $@ $(CONSTRUCT)/assign.c
-
 
59
	
49
 
60
 
50
install: $(PROG)
61
install: $(PROG)
51
	install -d $(INSTALL_BINDIR)
62
	install -d $(INSTALL_BINDIR)
52
	install $(PROG) $(INSTALL_BINDIR)/$(PROG)
63
	install $(PROG) $(INSTALL_BINDIR)/$(PROG)
53
 
64
 
54
clean:
65
clean:
55
	rm -f $(OBJS)
66
	rm -f $(OBJS)
56
	rm -f $(PROG)
67
	rm -f $(PROG)
57
 
68
 
58
depend:
69
depend:
59
	mkdep $(CFLAGS) ${SRC1}/*.c ${SRC2}/*.c ${SRC3}/*.c ${SRC4}/*.c ${SRC5}/*.c ${SRC6}/*.c ${SRC7}/*.c
70
	mkdep $(CFLAGS) ${COMMON}/*.c ${OBJC}/*.c ${CONSTRUCT}/*.c ${SRC4}/*.c ${SRC5}/*.c ${SRC6}/*.c ${SRC7}/*.c
60
	
71
	
61
 
72
 
62
-include .depend
73
#-include .depend
63
 
74
 
64
 
75
 
65
 
76
 
66
 
77
 
67
#CAT=cat
78
#CAT=cat
Line 69... Line 80...
69
#MAKE_ERR=make_err
80
#MAKE_ERR=make_err
70
#MAKE_TDF=make_tdf
81
#MAKE_TDF=make_tdf
71
#SID=sid
82
#SID=sid
72
#SIDOPTS=-l ossg-c -s numeric -s split -s no-lines
83
#SIDOPTS=-l ossg-c -s numeric -s split -s no-lines
73
#
84
#
74
#ALG=${SRC1}/c_class.alg
85
#ALG=${COMMON}/c_class.alg
75
#TEMPL=${SRC2B}/bits.h ${SRC2B}/err_ext.h ${SRC2B}/loc_ext.h
86
#TEMPL=${OBJCB}/bits.h ${OBJCB}/err_ext.h ${OBJCB}/loc_ext.h
76
#SYNTAX=${SRC6}/syntax.sid ${SRC6}/syntax.act
87
#SYNTAX=${SRC6}/syntax.sid ${SRC6}/syntax.act
77
#PSYNTAX=${SRC5}/psyntax.sid ${SRC5}/psyntax.act
88
#PSYNTAX=${SRC5}/psyntax.sid ${SRC5}/psyntax.act
78
#
89
#
79
#SID_OUT=${SRC6}/syntax1.c ${SRC6}/syntax.h
90
#SID_OUT=${SRC6}/syntax1.c ${SRC6}/syntax.h
80
#PSID_OUT=${SRC5}/psyntax1.c ${SRC5}/psyntax.h
91
#PSID_OUT=${SRC5}/psyntax1.c ${SRC5}/psyntax.h
81
#C_OUT=${SRC2}/c_class.h
92
#C_OUT=${OBJC}/c_class.h
82
#TOK_OUT=${SRC2A}/c_class.h
93
#TOK_OUT=${OBJCA}/c_class.h
83
#ERR_OUT=${SRC7}/errors1.h ${SRC7}/errors2.h ${SRC7}/errors3.h ${SRC7}/opts.h
94
#ERR_OUT=${SRC7}/errors1.h ${SRC7}/errors2.h ${SRC7}/errors3.h ${SRC7}/opts.h
84
#TDF_OUT=${SRC4}/tdf1.h
95
#TDF_OUT=${SRC4}/tdf1.h
85
#
96
#
86
#ALL_OUT=${SID_OUT} ${PSID_OUT} ${C_OUT} ${TOK_OUT} ${ERR_OUT} ${TDF_OUT}
97
#ALL_OUT=${SID_OUT} ${PSID_OUT} ${C_OUT} ${TOK_OUT} ${ERR_OUT} ${TDF_OUT}
87
#
98
#
Line 91... Line 102...
91
#	${SID} ${SIDOPTS} ${SYNTAX} ${SRC6}/syntax@.c ${SRC6}/syntax.h
102
#	${SID} ${SIDOPTS} ${SYNTAX} ${SRC6}/syntax@.c ${SRC6}/syntax.h
92
#
103
#
93
#${SRC5}/psyntax1.c : ${PSYNTAX}
104
#${SRC5}/psyntax1.c : ${PSYNTAX}
94
#	${SID} ${SIDOPTS} ${PSYNTAX} ${SRC5}/psyntax@.c ${SRC5}/psyntax.h
105
#	${SID} ${SIDOPTS} ${PSYNTAX} ${SRC5}/psyntax@.c ${SRC5}/psyntax.h
95
#
106
#
96
#${SRC2}/c_class.h : ${ALG} ${TEMPL}
107
#${OBJC}/c_class.h : ${ALG} ${TEMPL}
97
#	@${REMOVE} ${SRC2}/*.h
108
#	@${REMOVE} ${OBJC}/*.h
98
#	${CALCULUS} -a -x ${ALG} ${SRC2}
109
#	${CALCULUS} -a -x ${ALG} ${OBJC}
99
#	${CALCULUS} ${ALG} -T${SRC2B}/bits.h ${SRC2}/bits.h
110
#	${CALCULUS} ${ALG} -T${OBJCB}/bits.h ${OBJC}/bits.h
100
#	${CALCULUS} ${ALG} -T${SRC2B}/err_ext.h ${SRC2}/err_ext.h
111
#	${CALCULUS} ${ALG} -T${OBJCB}/err_ext.h ${OBJC}/err_ext.h
101
#	${CALCULUS} ${ALG} -T${SRC2B}/loc_ext.h ${SRC2}/loc_ext.h
112
#	${CALCULUS} ${ALG} -T${OBJCB}/loc_ext.h ${OBJC}/loc_ext.h
102
#
113
#
103
#${SRC2A}/c_class.h : ${ALG} ${TEMPL}
114
#${OBJCA}/c_class.h : ${ALG} ${TEMPL}
104
#	@${REMOVE} ${SRC2A}/*.h
115
#	@${REMOVE} ${OBJCA}/*.h
105
#	${CALCULUS} -a -x -t ${ALG} ${SRC2A}
116
#	${CALCULUS} -a -x -t ${ALG} ${OBJCA}
106
#	${CALCULUS} -t ${ALG} -T${SRC2B}/bits.h ${SRC2A}/bits.h
117
#	${CALCULUS} -t ${ALG} -T${OBJCB}/bits.h ${OBJCA}/bits.h
107
#	${CALCULUS} -t ${ALG} -T${SRC2B}/err_ext.h ${SRC2A}/err_ext.h
118
#	${CALCULUS} -t ${ALG} -T${OBJCB}/err_ext.h ${OBJCA}/err_ext.h
108
#	${CALCULUS} -t ${ALG} -T${SRC2B}/loc_ext.h ${SRC2A}/loc_ext.h
119
#	${CALCULUS} -t ${ALG} -T${OBJCB}/loc_ext.h ${OBJCA}/loc_ext.h
109
#
120
#
110
#${SRC7}/errors1.h : ${SRC7}/catalog.err
121
#${SRC7}/errors1.h : ${SRC7}/catalog.err
111
#	@${REMOVE} ${SRC7}/errors1.h
122
#	@${REMOVE} ${SRC7}/errors1.h
112
#	${MAKE_ERR} ${SRC7}/catalog.err ${SRC7}/errors1.h
123
#	${MAKE_ERR} ${SRC7}/catalog.err ${SRC7}/errors1.h
113
#
124
#
Line 121... Line 132...
121
#
132
#
122
#${SRC7}/opts.h : ${SRC7}/catalog.err
133
#${SRC7}/opts.h : ${SRC7}/catalog.err
123
#	@${REMOVE} ${SRC7}/opts.h
134
#	@${REMOVE} ${SRC7}/opts.h
124
#	${MAKE_ERR} -u ${SRC7}/catalog.err ${SRC7}/opts.h
135
#	${MAKE_ERR} -u ${SRC7}/catalog.err ${SRC7}/opts.h
125
#
136
#
126
#${SRC4}/tdf1.h : ${SPEC} ${SRC2B}/tdf1.h
137
#${SRC4}/tdf1.h : ${SPEC} ${OBJCB}/tdf1.h
127
#	@${REMOVE} ${SRC4}/tdf1.h
138
#	@${REMOVE} ${SRC4}/tdf1.h
128
#	${MAKE_TDF} ${SPEC} ${SRC2B}/tdf1.h ${SRC4}/tdf1.h
139
#	${MAKE_TDF} ${SPEC} ${OBJCB}/tdf1.h ${SRC4}/tdf1.h
129
#
140
#
130
#auto_clobber :
141
#auto_clobber :
131
#	@${REMOVE} ${SRC6}/syntax*.c ${SRC6}/syntax.h
142
#	@${REMOVE} ${SRC6}/syntax*.c ${SRC6}/syntax.h
132
#	@${REMOVE} ${SRC5}/psyntax*.c ${SRC5}/psyntax.h
143
#	@${REMOVE} ${SRC5}/psyntax*.c ${SRC5}/psyntax.h
133
#	@${REMOVE} ${SRC2}/*.h
144
#	@${REMOVE} ${OBJC}/*.h
134
#	@${REMOVE} ${SRC2A}/*.h
145
#	@${REMOVE} ${OBJCA}/*.h
135
#	@${REMOVE} ${ERR_OUT}
146
#	@${REMOVE} ${ERR_OUT}
136
#	@${REMOVE} ${TDF_OUT}
147
#	@${REMOVE} ${TDF_OUT}
137
 
148