Subversion Repositories tendra.SVN

Rev

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

Rev 6 Rev 15
Line 1... Line -...
1
# $Id$
-
 
2
 
1
 
3
# Standard directories and files
2
.include "../Makefile.inc"
4
 
3
 
5
SRCC=${.CURDIR}/obj_c
4
SRCC=./obj_c
6
SRCTOK=${.CURDIR}/obj_tok
5
SRCTOK=./obj_tok
7
SRCX=${.CURDIR}/../shared
6
SRCX=${.CURDIR}/../shared
8
 
7
 
9
# Standard variables
8
# Standard variables
10
 
9
 
11
WARNS?=		2
10
WARNS?=		2
12
 
11
 
13
TCCOPTS=	-Yansi -Xs
12
TCCOPTS=	-Yansi -Xs
14
CCOPTS=		${TCCOPTS} -I${BASE_DIR}/${INCLUDE} -I${.CURDIR} -I${SRCC}\
13
CCOPTS=		${TCCOPTS} -I${BASE_DIR}/${INCLUDE} -I${.CURDIR} -I${SRCC}\
15
		-I${SRCTOK} -I${SRCX}
14
		-I${SRCTOK} -I${SRCX}
16
LIBS=
15
LIBS=
-
 
16
CFLAGS+=-I../shared -I./ -I$(SRCC) -I$(SRCTOK)
17
 
17
 
18
# Dependencies and construction rules
18
# Dependencies and construction rules
19
 
19
 
20
PROG=		${.CURDIR:T}
20
PROG=calculus
21
 
21
 
22
SRCS=		calculus.c check.c code.c common.c disk.c error.c lex.c main.c\
22
OBJS=	calculus.o check.o code.o common.o disk.o error.o lex.o main.o\
23
 		output.c pretty.c print.c read.c syntax.c template.c token.c\
23
 	output.o pretty.o print.o read.o syntax.o template.o token.o\
24
		write.c xalloc.c
24
	write.o xalloc.o
-
 
25
 
-
 
26
.c.o:
-
 
27
	$(CC) -c $(CFLAGS) -o $@ $<
-
 
28
 
-
 
29
 
-
 
30
 
-
 
31
$(PROG): $(OBJS)
-
 
32
	$(CC) -o $(PROG) $(LDFLAGS) $(OBJS)
-
 
33
 
-
 
34
calculus.o: obj_c/calculus.c
-
 
35
error.o: ../shared/error.c
-
 
36
xalloc.o: ../shared/xalloc.c	
-
 
37
	
-
 
38
depend:
-
 
39
	mkdep $(CFLAGS) *.c
-
 
40
 
-
 
41
clean:
-
 
42
	rm -f $(OBJS)
-
 
43
	rm -f $(PROG)
-
 
44
 
-
 
45
 
-
 
46
 
25
 
47
 
26
.PATH:	${SRCC} ${SRCTOK} ${SRCX}
48
#.PATH:	${SRCC} ${SRCTOK} ${SRCX}
27
 
49
 
28
SIDOPTS=-l ansi-c -s no-lines
50
SIDOPTS=-l ansi-c -s no-lines
29
 
51
 
30
#SID_OUT=${SRC}/syntax.c ${SRC}/syntax.h
52
#SID_OUT=${SRC}/syntax.o ${SRC}/syntax.h
31
#C_OUT=${SRCC}/calculus.h ${SRCC}/type_ops.h
53
#C_OUT=${SRCC}/calculus.h ${SRCC}/type_ops.h
32
#TOK_OUT=${SRCTOK}/calculus.h ${SRCTOK}/type_ops.h
54
#TOK_OUT=${SRCTOK}/calculus.h ${SRCTOK}/type_ops.h
33
#DISK_OUT=${SRC}/read_def.h ${SRC}/write_def.h ${SRC}/print_def.h
55
#DISK_OUT=${SRC}/read_def.h ${SRC}/write_def.h ${SRC}/print_def.h
34
#LEXI_OUT=${SRC}/lexer.h ${SRC}/keyword.h
56
#LEXI_OUT=${SRC}/lexer.h ${SRC}/keyword.h
35
 
57
 
36
#${SRC}/syntax.c : ${SRC}/syntax.sid ${SRC}/syntax.act
58
#${SRC}/syntax.o : ${SRC}/syntax.sid ${SRC}/syntax.act
37
#	@${REMOVE} ${SID_OUT}
59
#	@${REMOVE} ${SID_OUT}
38
#	${SID} ${SIDOPTS} ${SRC}/syntax.sid ${SRC}/syntax.act ${SID_OUT}
60
#	${SID} ${SIDOPTS} ${SRC}/syntax.sid ${SRC}/syntax.act ${SID_OUT}
39
#
61
#
40
#${SRCC}/calculus.h : ${SRC}/calculus.alg
62
#${SRCC}/calculus.h : ${SRC}/calculus.alg
41
#	@${REMOVE} ${SRCC}/*.h
63
#	@${REMOVE} ${SRCC}/*.h
Line 66... Line 88...
66
#	${REMOVE} ${SRCC}/*.h
88
#	${REMOVE} ${SRCC}/*.h
67
#	${REMOVE} ${SRCTOK}/*.h
89
#	${REMOVE} ${SRCTOK}/*.h
68
#	${REMOVE} ${DISK_OUT}
90
#	${REMOVE} ${DISK_OUT}
69
#	${REMOVE} ${LEXI_OUT}
91
#	${REMOVE} ${LEXI_OUT}
70
 
92
 
71
.include "../Makefile.inc"
93
include .depend