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
SRCX=${.CURDIR}/../shared
6
SRCX=${.CURDIR}/../shared
6
 
7
 
7
# Standard variables
8
# Standard variables
8
 
9
 
9
WARNS?=		3
10
WARNS?=		3
10
 
11
 
11
TCCOPTS=	-Yansi -Xs
12
TCCOPTS=	-Yansi -Xs
12
CCOPTS=		${TCCOPTS} -I${BASE_DIR}/${INCLUDE} -I${.CURDIR} -I${SRCX}
13
CCOPTS=		${TCCOPTS} -I${BASE_DIR}/${INCLUDE} -I${.CURDIR} -I${SRCX}
13
LIBS=
14
LIBS=
-
 
15
 
-
 
16
CFLAGS+= -I../shared
14
 
17
 
15
# Dependencies and construction rules
18
# Dependencies and construction rules
16
 
19
 
17
PROG=		${.CURDIR:T}
20
PROG=		${.CURDIR:T}
18
 
21
 
19
SRCS=		char.c error.c lex.c main.c output.c syntax.c xalloc.c
22
OBJS=		char.o error.o lex.o main.o output.o syntax.o xalloc.o
-
 
23
 
-
 
24
.c.o:
-
 
25
	$(CC) -c $(CFLAGS) -o $@ $<
-
 
26
 
-
 
27
$(PROG): syntax.sid syntax.act syntax.c syntax.h $(OBJS)
-
 
28
	$(CC) -o $(PROG) $(LDFLAGS) $(OBJS)
-
 
29
 
-
 
30
depend:
-
 
31
	mkdep $(CFLAGS) *.c
-
 
32
 
-
 
33
clean:
-
 
34
	rm -f $(OBJS)
-
 
35
	rm -f $(PROG)
-
 
36
	rm -f syntax.c
-
 
37
	rm -f syntax.h
-
 
38
 
-
 
39
 
-
 
40
syntax:
-
 
41
	$(SID) ${SIDOPTS} syntax.sid syntax.act syntax.c syntax.h
-
 
42
 
-
 
43
syntax.c: syntax.sid syntax.act
-
 
44
	$(MAKE) syntax
-
 
45
 
-
 
46
syntax.h: syntax.sid syntax.act
-
 
47
	$(MAKE) syntax
-
 
48
 
-
 
49
 
-
 
50
 
20
 
51
 
21
.PATH:	${SRCX}
52
.PATH:	${SRCX}
22
 
53
 
23
SIDOPTS=-l ansi-c -s no-lines
54
SIDOPTS=-l ansi-c -s no-lines
24
 
55
 
25
#SID_OUT=${SRC}/syntax.c ${SRC}/syntax.h
56
#SID_OUT=${SRC}/syntax.c ${SRC}/syntax.h
26
#LEXI_OUT=${SRC}/lexer.h ${SRC}/keyword.h
57
#LEXI_OUT=${SRC}/lexer.h ${SRC}/keyword.h
27
 
58
 
28
#${SRC}/syntax.c : ${SRC}/syntax.sid ${SRC}/syntax.act
59
#${SRC}/syntax.c : ${SRC}/syntax.sid ${SRC}/syntax.act
29
#	@${REMOVE} ${SID_OUT}
60
#	@${REMOVE} ${SID_OUT}
Line 38... Line 69...
38
#	${LEXI} -k ${SRC}/lexer.lxi ${SRC}/keyword.h
69
#	${LEXI} -k ${SRC}/lexer.lxi ${SRC}/keyword.h
39
#
70
#
40
#auto_clobber :
71
#auto_clobber :
41
#	${REMOVE} ${SID_OUT} ${LEXI_OUT}
72
#	${REMOVE} ${SID_OUT} ${LEXI_OUT}
42
 
73
 
43
.include "../Makefile.inc"
-