Subversion Repositories tendra.SVN

Rev

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

Rev 7 Rev 38
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=	-Yansi -Xs
14
TCCOPTS=	-Yansi -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=
17
 
18
 
-
 
19
CFLAGS+=-I../shared -I$(SRCC)
-
 
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 input.c lex.c main.c output.c syntax.c tdf.c xalloc.c
25
OBJS=		error.o input.o lex.o main.o output.o syntax.o tdf.o xalloc.o
-
 
26
 
-
 
27
$(PROG): $(OBJS)
-
 
28
	$(CC) -o $(PROG) $(LDFLAGS) $(OBJS)
-
 
29
 
-
 
30
	
-
 
31
depend:
-
 
32
	mkdep $(CFLAGS) *.c
-
 
33
 
-
 
34
clean:
-
 
35
	rm -f $(OBJS)
-
 
36
	rm -f $(PROG)
-
 
37
 
-
 
38
 
23
 
39
 
24
.PATH:		${SRCC} ${SRCTOK} ${SRCX}
40
.PATH:		${SRCC} ${SRCTOK} ${SRCX}
25
 
41
 
26
#CALCULUS=calculus
42
#CALCULUS=calculus
27
#LEXI=lexi
43
#LEXI=lexi
28
#SID=sid
44
#SID=sid
29
#SIDOPTS=-l ansi-c -s no-lines
45
#SIDOPTS=-l ansi-c -s no-lines
30
#
46
#
31
#SID_OUT=${SRC}/syntax.c ${SRC}/syntax.h
47
#SID_OUT=${SRC}/syntax.o ${SRC}/syntax.h
32
#C_OUT=${SRC2}/tdf.h
48
#C_OUT=${SRC2}/tdf.h
33
#TOK_OUT=${SRC2A}/tdf.h
49
#TOK_OUT=${SRC2A}/tdf.h
34
#LEXI_OUT=${SRC}/lexer.h ${SRC}/keyword.h
50
#LEXI_OUT=${SRC}/lexer.h ${SRC}/keyword.h
35
#
51
#
36
#auto : ${SID_OUT} ${C_OUT} ${TOK_OUT} ${LEXI_OUT}
52
#auto : ${SID_OUT} ${C_OUT} ${TOK_OUT} ${LEXI_OUT}
37
#
53
#
38
#${SRC}/syntax.c : ${SRC}/syntax.sid ${SRC}/syntax.act
54
#${SRC}/syntax.o : ${SRC}/syntax.sid ${SRC}/syntax.act
39
#	@${REMOVE} ${SID_OUT}
55
#	@${REMOVE} ${SID_OUT}
40
#	${SID} ${SIDOPTS} ${SRC}/syntax.sid ${SRC}/syntax.act ${SID_OUT}
56
#	${SID} ${SIDOPTS} ${SRC}/syntax.sid ${SRC}/syntax.act ${SID_OUT}
41
#
57
#
42
#${SRC2}/tdf.h : ${SRC}/tdf.alg
58
#${SRC2}/tdf.h : ${SRC}/tdf.alg
43
#	@${REMOVE} ${SRC2}/*.h
59
#	@${REMOVE} ${SRC2}/*.h
Line 53... Line 69...
53
#
69
#
54
#${SRC}/keyword.h : ${SRC}/lexer.lxi
70
#${SRC}/keyword.h : ${SRC}/lexer.lxi
55
#	@${REMOVE} ${SRC}/keyword.h
71
#	@${REMOVE} ${SRC}/keyword.h
56
#	${LEXI} -k ${SRC}/lexer.lxi ${SRC}/keyword.h
72
#	${LEXI} -k ${SRC}/lexer.lxi ${SRC}/keyword.h
57
 
73
 
58
.include "../Makefile.inc"
-