Subversion Repositories tendra.SVN

Rev

Rev 6 | Rev 57 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6 Rev 15
Line 2... Line 2...
2
 
2
 
3
# Standard directories and files
3
# Standard directories and files
-
 
4
.include "../Makefile.inc"
4
 
5
 
5
SRCC=${.CURDIR}/obj_c
6
SRCC=./obj_c
6
SRCTOK=${.CURDIR}/obj_tok
7
SRCTOK=${.CURDIR}/obj_tok
7
SRCX=${.CURDIR}/../shared
8
SRCX=${.CURDIR}/../shared
8
 
9
 
9
# Standard variables
10
# Standard variables
10
 
11
 
Line 12... Line 13...
12
 
13
 
13
TCCOPTS=	-Yposix2 -Xs
14
TCCOPTS=	-Yposix2 -Xs
14
CCOPTS=		${TCCOPTS} -I${BASE_DIR}/${INCLUDE} -I${.CURDIR} -I${SRCC}\
15
CCOPTS=		${TCCOPTS} -I${BASE_DIR}/${INCLUDE} -I${.CURDIR} -I${SRCC}\
15
		-I${SRCTOK} -I${SRCX}
16
		-I${SRCTOK} -I${SRCX}
16
LIBS=
17
LIBS=
-
 
18
 
-
 
19
CFLAGS+=-I../shared -I$(SRCC)
17
 
20
 
18
# Dependencies and construction rules
21
# Dependencies and construction rules
19
 
22
 
20
PROG=		${.CURDIR:T}
23
PROG=		${.CURDIR:T}
21
 
24
 
22
SRCS=		error.c errors.c lex.c main.c process.c syntax.c xalloc.c
25
OBJS=		error.o errors.o lex.o main.o process.o syntax.o xalloc.o
-
 
26
 
-
 
27
.c.o:
-
 
28
	$(CC) -c $(CFLAGS) -o $@ $<
-
 
29
 
-
 
30
$(PROG): $(OBJS)
-
 
31
	$(CC) -o $(PROG) $(LDFLAGS) $(OBJS)
23
 
32
 
24
.PATH:		${SRCC} ${SRCTOK} ${SRCX}
33
.PATH:		${SRCC} ${SRCTOK} ${SRCX}
-
 
34
 
-
 
35
clean:
-
 
36
	rm -f $(OBJS)
-
 
37
	rm -f $(PROG)
-
 
38
 
-
 
39
 
-
 
40
 
-
 
41
 
-
 
42
#.PATH:	${SRCC} ${SRCTOK} ${SRCX}
-
 
43
 
-
 
44
SIDOPTS=-l ansi-c -s no-lines
-
 
45
 
-
 
46
#SID_OUT=${SRC}/syntax.o ${SRC}/syntax.h
-
 
47
#C_OUT=${SRCC}/calculus.h ${SRCC}/type_ops.h
-
 
48
#TOK_OUT=${SRCTOK}/calculus.h ${SRCTOK}/type_ops.h
-
 
49
#DISK_OUT=${SRC}/read_def.h ${SRC}/write_def.h ${SRC}/print_def.h
-
 
50
#LEXI_OUT=${SRC}/lexer.h ${SRC}/keyword.h
-
 
51
 
-
 
52
#${SRC}/syntax.o : ${SRC}/syntax.sid ${SRC}/syntax.act
-
 
53
#	@${REMOVE} ${SID_OUT}
-
 
54
#	${SID} ${SIDOPTS} ${SRC}/syntax.sid ${SRC}/syntax.act ${SID_OUT}
-
 
55
#
-
 
56
#${SRCC}/calculus.h : ${SRC}/calculus.alg
-
 
57
#	@${REMOVE} ${SRCC}/*.h
-
 
58
#	${CALCULUS} -a -x ${SRC}/calculus.alg ${SRCC}
-
 
59
#
-
 
60
#${SRCTOK}/calculus.h : ${SRC}/calculus.alg
-
 
61
#	@${REMOVE} ${SRCTOK}/*.h
-
 
62
#	${CALCULUS} -a -x -t ${SRC}/calculus.alg ${SRCTOK}
-
 
63
#
-
 
64
#${SRC}/read_def.h : ${SRC}/calculus.alg ${SRC}/disk.alg
-
 
65
#	@${REMOVE} ${SRC}/read_def.h ${SRC}/write_def.h
-
 
66
#	${CALCULUS} -a -x -d ${SRC}/calculus.alg ${SRC}/disk.alg ${SRC}
25
 
67
 
26
#CALCULUS=calculus
68
#CALCULUS=calculus
27
#LEXI=lexi
69
#LEXI=lexi
28
#SID=sid
70
#SID=sid
29
#SIDOPTS=-l ansi-c -s no-lines
71
#SIDOPTS=-l ansi-c -s no-lines
30
#
72
#
31
#SID_OUT=${SRC}/syntax.c ${SRC}/syntax.h
73
#SID_OUT=${SRC}/syntax.o ${SRC}/syntax.h
32
#C_OUT=${SRC2}/errors.h
74
#C_OUT=${SRC2}/errors.h
33
#TOK_OUT=${SRC2A}/errors.h
75
#TOK_OUT=${SRC2A}/errors.h
34
#LEXI_OUT=${SRC}/lexer.h ${SRC}/keyword.h
76
#LEXI_OUT=${SRC}/lexer.h ${SRC}/keyword.h
35
#
77
#
36
#auto : ${SID_OUT} ${C_OUT} ${TOK_OUT} ${LEXI_OUT}
78
#auto : ${SID_OUT} ${C_OUT} ${TOK_OUT} ${LEXI_OUT}
37
#
79
#
38
#${SRC}/syntax.c : ${SRC}/syntax.sid ${SRC}/syntax.act
80
#${SRC}/syntax.o : ${SRC}/syntax.sid ${SRC}/syntax.act
39
#	@${REMOVE} ${SID_OUT}
81
#	@${REMOVE} ${SID_OUT}
40
#	${SID} ${SIDOPTS} ${SRC}/syntax.sid ${SRC}/syntax.act ${SID_OUT}
82
#	${SID} ${SIDOPTS} ${SRC}/syntax.sid ${SRC}/syntax.act ${SID_OUT}
41
#
83
#
42
#${SRC2}/errors.h : ${SRC}/errors.alg
84
#${SRC2}/errors.h : ${SRC}/errors.alg
43
#	@${REMOVE} ${SRC2}/*.h
85
#	@${REMOVE} ${SRC2}/*.h
44
#	${CALCULUS} -a -x ${SRC}/errors.alg ${SRC2}
86
#	${CALCULUS} -a -x ${SRC}/errors.alg ${SRC2}
45
#
87
#
46
#${SRC2A}/errors.h : ${SRC}/errors.alg
88
#${SRC2A}/errors.h : ${SRC}/errors.alg
47
#	@${REMOVE} ${SRC2A}/*.h
89
#	@${REMOVE} ${SRC2A}/*.h
48
#	${CALCULUS} -a -x -t ${SRC}/errors.alg ${SRC2A}
90
#	${CALCULUS} -a -x -t ${SRC}/errors.alg ${SRC2A}
49
#
91
#
50
#${SRC}/lexer.h : ${SRC}/lexer.lxi
92
#${SRC}/lexer.h : ${SRC}/lexer.lxi
51
#	@${REMOVE} ${SRC}/lexer.h
93
#	@${REMOVE} ${SRC}/lexer.h
52
#	${LEXI} ${SRC}/lexer.lxi ${SRC}/lexer.h
94
#	${LEXI} ${SRC}/lexer.lxi ${SRC}/lexer.h
53
#
95
#
54
#${SRC}/keyword.h : ${SRC}/lexer.lxi
96
#${SRC}/keyword.h : ${SRC}/lexer.lxi
Line 58... Line 100...
58
#auto_clobber :
100
#auto_clobber :
59
#	${REMOVE} ${SID_OUT} ${LEXI_OUT}
101
#	${REMOVE} ${SID_OUT} ${LEXI_OUT}
60
#	${REMOVE} ${SRC2}/*.h
102
#	${REMOVE} ${SRC2}/*.h
61
#	${REMOVE} ${SRC2A}/*.h
103
#	${REMOVE} ${SRC2A}/*.h
62
 
104
 
63
.include "../Makefile.inc"
-