Subversion Repositories tendra.SVN

Rev

Rev 19 | Rev 60 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 7u83 1
 
19 7u83 2
include ../../../defs.mk
41 7u83 3
#include ../../../Makefile.defs
19 7u83 4
 
5
SRC6=./syntax
6
SRC1=../common
2 7u83 7
SRC2=${SRC1}/obj_c
8
SRC2A=${SRC1}/obj_tok
9
SRC2B=${SRC1}/obj_templ
10
SRC3=${SRC1}/construct
11
SRC4=${SRC1}/output
12
SRC5=${SRC1}/parse
13
SRC7=${SRC1}/utility
19 7u83 14
SPEC=../../lib/tdf/def_4_1.db
2 7u83 15
 
16
# Standard variables
17
 
6 7u83 18
TCCOPTS=	-Yposix1 -Xs
19
CCOPTS=		${TCCOPTS} -I${SRC1} -I${SRC2} -I${SRC3} -I${SRC4} -I${SRC5}\
20
		 -I${SRC6} -I${SRC7}
2 7u83 21
LIBS=
19 7u83 22
CFLAGS=	-I${SRC1} -I${SRC2} -I${SRC3} -I${SRC4} -I${SRC5} -I${SRC6} -I${SRC7}
2 7u83 23
 
24
# Dependencies and construction rules
25
 
6 7u83 26
PROG=	tdfc2
2 7u83 27
 
19 7u83 28
OBJS=	access.o allocate.o assign.o basetype.o buffer.o c_class.o capsule.o\
6 7u83 29
	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\
31
	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\
33
	initialise.o instance.o inttype.o label.o lex.o literal.o load.o\
34
	macro.o main.o mangle.o member.o merge.o namespace.o operator.o\
35
	option.o overload.o parse.o pragma.o predict.o preproc.o print.o\
36
	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\
38
	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
2 7u83 40
 
6 7u83 41
.PATH:	${SRC1} ${SRC2} ${SRC2A} ${SRC2B} ${SRC3} ${SRC4} ${SRC5} ${SRC6}\
42
	${SRC7} 
2 7u83 43
 
19 7u83 44
.c.o:
45
	$(CC) -c $(CFLAGS) -o $@ $<
46
 
47
$(PROG): $(OBJS)
48
	$(CC) -o $(PROG) $(LDFLAGS) $(OBJS)
49
 
50
install: $(PROG)
51
	install -d $(INSTALL_BINDIR)
52
	install $(PROG) $(INSTALL_BINDIR)/$(PROG)
53
 
54
clean:
55
	rm -f $(OBJS)
56
	rm -f $(PROG)
57
 
58
depend:
59
	mkdep $(CFLAGS) ${SRC1}/*.c ${SRC2}/*.c ${SRC3}/*.c ${SRC4}/*.c ${SRC5}/*.c ${SRC6}/*.c ${SRC7}/*.c
60
 
61
 
41 7u83 62
include .depend
19 7u83 63
 
64
 
65
 
66
 
6 7u83 67
#CAT=cat
68
#CALCULUS=calculus
69
#MAKE_ERR=make_err
70
#MAKE_TDF=make_tdf
71
#SID=sid
72
#SIDOPTS=-l ossg-c -s numeric -s split -s no-lines
73
#
74
#ALG=${SRC1}/c_class.alg
75
#TEMPL=${SRC2B}/bits.h ${SRC2B}/err_ext.h ${SRC2B}/loc_ext.h
76
#SYNTAX=${SRC6}/syntax.sid ${SRC6}/syntax.act
77
#PSYNTAX=${SRC5}/psyntax.sid ${SRC5}/psyntax.act
78
#
79
#SID_OUT=${SRC6}/syntax1.c ${SRC6}/syntax.h
80
#PSID_OUT=${SRC5}/psyntax1.c ${SRC5}/psyntax.h
81
#C_OUT=${SRC2}/c_class.h
82
#TOK_OUT=${SRC2A}/c_class.h
83
#ERR_OUT=${SRC7}/errors1.h ${SRC7}/errors2.h ${SRC7}/errors3.h ${SRC7}/opts.h
84
#TDF_OUT=${SRC4}/tdf1.h
85
#
86
#ALL_OUT=${SID_OUT} ${PSID_OUT} ${C_OUT} ${TOK_OUT} ${ERR_OUT} ${TDF_OUT}
87
#
88
#auto : ${ALL_OUT}
89
#
90
#${SRC6}/syntax1.c : ${SYNTAX}
91
#	${SID} ${SIDOPTS} ${SYNTAX} ${SRC6}/syntax@.c ${SRC6}/syntax.h
92
#
93
#${SRC5}/psyntax1.c : ${PSYNTAX}
94
#	${SID} ${SIDOPTS} ${PSYNTAX} ${SRC5}/psyntax@.c ${SRC5}/psyntax.h
95
#
96
#${SRC2}/c_class.h : ${ALG} ${TEMPL}
97
#	@${REMOVE} ${SRC2}/*.h
98
#	${CALCULUS} -a -x ${ALG} ${SRC2}
99
#	${CALCULUS} ${ALG} -T${SRC2B}/bits.h ${SRC2}/bits.h
100
#	${CALCULUS} ${ALG} -T${SRC2B}/err_ext.h ${SRC2}/err_ext.h
101
#	${CALCULUS} ${ALG} -T${SRC2B}/loc_ext.h ${SRC2}/loc_ext.h
102
#
103
#${SRC2A}/c_class.h : ${ALG} ${TEMPL}
104
#	@${REMOVE} ${SRC2A}/*.h
105
#	${CALCULUS} -a -x -t ${ALG} ${SRC2A}
106
#	${CALCULUS} -t ${ALG} -T${SRC2B}/bits.h ${SRC2A}/bits.h
107
#	${CALCULUS} -t ${ALG} -T${SRC2B}/err_ext.h ${SRC2A}/err_ext.h
108
#	${CALCULUS} -t ${ALG} -T${SRC2B}/loc_ext.h ${SRC2A}/loc_ext.h
109
#
110
#${SRC7}/errors1.h : ${SRC7}/catalog.err
111
#	@${REMOVE} ${SRC7}/errors1.h
112
#	${MAKE_ERR} ${SRC7}/catalog.err ${SRC7}/errors1.h
113
#
114
#${SRC7}/errors2.h : ${SRC7}/catalog.err ${SRC7}/extra.err
115
#	@${REMOVE} ${SRC7}/errors2.h
116
#	${CAT} ${SRC7}/catalog.err ${SRC7}/extra.err | ${MAKE_ERR} > ${SRC7}/errors2.h
117
#
118
#${SRC7}/errors3.h : ${SRC7}/catalog.err ${SRC7}/extra.err
119
#	@${REMOVE} ${SRC7}/errors3.h
120
#	${CAT} ${SRC7}/catalog.err ${SRC7}/extra.err | ${MAKE_ERR} -d > ${SRC7}/errors3.h
121
#
122
#${SRC7}/opts.h : ${SRC7}/catalog.err
123
#	@${REMOVE} ${SRC7}/opts.h
124
#	${MAKE_ERR} -u ${SRC7}/catalog.err ${SRC7}/opts.h
125
#
126
#${SRC4}/tdf1.h : ${SPEC} ${SRC2B}/tdf1.h
127
#	@${REMOVE} ${SRC4}/tdf1.h
128
#	${MAKE_TDF} ${SPEC} ${SRC2B}/tdf1.h ${SRC4}/tdf1.h
129
#
130
#auto_clobber :
131
#	@${REMOVE} ${SRC6}/syntax*.c ${SRC6}/syntax.h
132
#	@${REMOVE} ${SRC5}/psyntax*.c ${SRC5}/psyntax.h
133
#	@${REMOVE} ${SRC2}/*.h
134
#	@${REMOVE} ${SRC2A}/*.h
135
#	@${REMOVE} ${ERR_OUT}
136
#	@${REMOVE} ${TDF_OUT}
2 7u83 137