Subversion Repositories tendra.SVN

Rev

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

Rev 7 Rev 38
Line 1... Line 1...
1
# $Id$
1
 
-
 
2
.include "../Makefile.inc"
2
 
3
 
3
# Standard directories and files
4
# Standard directories and files
4
 
5
 
5
DEST=${OBJ_DIR}/src/lib
6
DEST=${OBJ_DIR}/src/lib
6
#SRC=${BASE}/src/tools/tspec
7
#SRC=${BASE}/src/tools/tspec
7
API_DIR=${BASE_DIR}/src/lib/apis
8
API_DIR=${BASE_DIR}/src/lib/apis
8
 
9
 
9
# Standard variables
10
# Standard variables
10
 
11
 
11
WARNS?=		2
12
WARNS?=		2
12
 
13
 
13
TCCOPTS=	-Yposix1 -Xs
14
TCCOPTS=	-Yposix1 -Xs
14
CCOPTS=		${TCCOPTS} -I${BASE_DIR}/${INCLUDE} -I${.CURDIR}
15
CCOPTS=		${TCCOPTS} -I${BASE_DIR}/${INCLUDE} -I${.CURDIR}
15
LIBS=
16
LIBS=
16
 
17
 
17
# Dependencies and construction rules
18
# Dependencies and construction rules
18
 
19
 
19
PROG=		${.CURDIR:T}
20
PROG=		tspec
20
WRAPPER=	tspec.sh
21
WRAPPER=	tspec.sh
21
 
22
 
22
SRCS=		hash.c index.c lex.c main.c makefile.c name.c object.c print.c\
23
OBJS=		hash.o index.o lex.o main.o makefile.o name.o object.o print.o\
23
		syntax.c type.c utility.c variable.c
24
		syntax.o type.o utility.o variable.o
-
 
25
 
-
 
26
.c.o:
-
 
27
	$(CC) -c $(CFLAGS) -o $@ $<
-
 
28
 
-
 
29
$(PROG): $(OBJS)
-
 
30
	$(CC) -o $(PROG) $(LDFLAGS) $(OBJS)
-
 
31
 
-
 
32
clean:
-
 
33
	rm -f $(OBJS)
-
 
34
	rm -f $(PROG)
-
 
35
 
-
 
36
install: $(PROG)
-
 
37
	install -d $(INSTALL_BINDIR)
-
 
38
	install $(PROG) $(INSTALL_BINDIR)/$(PROG)
-
 
39
 
-
 
40
depend:
-
 
41
	mkdep $(CFLAGS) *.c
-
 
42
 
24
 
43
 
-
 
44
-include .depend
25
#LEXI=lexi
45
#LEXI=lexi
26
#SID=sid
46
#SID=sid
27
#SIDOPTS=-l ossg-c -s no-lines
47
#SIDOPTS=-l ossg-c -s no-lines
28
#
48
#
29
#SID_OUT=${SRC}/syntax.c ${SRC}/syntax.h
49
#SID_OUT=${SRC}/syntax.o ${SRC}/syntax.h
30
#LEXI_OUT=${SRC}/lexer.h ${SRC}/keyword.h
50
#LEXI_OUT=${SRC}/lexer.h ${SRC}/keyword.h
31
#
51
#
32
#auto : ${SID_OUT} ${LEXI_OUT}
52
#auto : ${SID_OUT} ${LEXI_OUT}
33
#
53
#
34
#${SRC}/syntax.c : ${SRC}/syntax.sid ${SRC}/syntax.act
54
#${SRC}/syntax.o : ${SRC}/syntax.sid ${SRC}/syntax.act
35
#	@${REMOVE} ${SID_OUT}
55
#	@${REMOVE} ${SID_OUT}
36
#	${SID} ${SIDOPTS} ${SRC}/syntax.sid ${SRC}/syntax.act ${SID_OUT}
56
#	${SID} ${SIDOPTS} ${SRC}/syntax.sid ${SRC}/syntax.act ${SID_OUT}
37
#
57
#
38
#${SRC}/lexer.h : ${SRC}/lexer.lxi
58
#${SRC}/lexer.h : ${SRC}/lexer.lxi
39
#	@${REMOVE} ${SRC}/lexer.h
59
#	@${REMOVE} ${SRC}/lexer.h
Line 44... Line 64...
44
#	${LEXI} -k ${SRC}/lexer.lxi ${SRC}/keyword.h
64
#	${LEXI} -k ${SRC}/lexer.lxi ${SRC}/keyword.h
45
#
65
#
46
#auto_clobber :
66
#auto_clobber :
47
#	${REMOVE} ${SID_OUT} ${LEXI_OUT}
67
#	${REMOVE} ${SID_OUT} ${LEXI_OUT}
48
 
68
 
49
.include "../Makefile.inc"
-