Subversion Repositories tendra.SVN

Rev

Rev 59 | Rev 93 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 7u83 1
 
43 7u83 2
include ../../../defs.mk
15 7u83 3
 
43 7u83 4
 
6 7u83 5
DEST=${OBJ_DIR}/src/lib
6
 
2 7u83 7
 
6 7u83 8
TCCOPTS=	-Yposix1 -Xs
2 7u83 9
 
10
# Dependencies and construction rules
11
 
92 7u83 12
PROG=	tspec
2 7u83 13
 
92 7u83 14
OBJS=	hash.o index.o lex.o main.o makefile.o name.o object.o print.o\
15
	syntax.o type.o utility.o variable.o
2 7u83 16
 
15 7u83 17
.c.o:
92 7u83 18
	$(CC) -c $(TCFLAGS) $(CFLAGS) -o $@ $<
15 7u83 19
 
20
$(PROG): $(OBJS)
21
	$(CC) -o $(PROG) $(LDFLAGS) $(OBJS)
22
 
23
clean:
24
	rm -f $(OBJS)
25
	rm -f $(PROG)
26
 
22 7u83 27
install: $(PROG)
59 7u83 28
	mkdir -p $(INSTALL_BINDIR)
22 7u83 29
	install $(PROG) $(INSTALL_BINDIR)/$(PROG)
30
 
15 7u83 31
depend:
32
	mkdep $(CFLAGS) *.c
33
 
34
 
55 7u83 35
#-include .depend
6 7u83 36
#LEXI=lexi
37
#SID=sid
38
#SIDOPTS=-l ossg-c -s no-lines
39
#
15 7u83 40
#SID_OUT=${SRC}/syntax.o ${SRC}/syntax.h
6 7u83 41
#LEXI_OUT=${SRC}/lexer.h ${SRC}/keyword.h
42
#
43
#auto : ${SID_OUT} ${LEXI_OUT}
44
#
15 7u83 45
#${SRC}/syntax.o : ${SRC}/syntax.sid ${SRC}/syntax.act
6 7u83 46
#	@${REMOVE} ${SID_OUT}
47
#	${SID} ${SIDOPTS} ${SRC}/syntax.sid ${SRC}/syntax.act ${SID_OUT}
48
#
49
#${SRC}/lexer.h : ${SRC}/lexer.lxi
50
#	@${REMOVE} ${SRC}/lexer.h
51
#	${LEXI} ${SRC}/lexer.lxi ${SRC}/lexer.h
52
#
53
#${SRC}/keyword.h : ${SRC}/lexer.lxi
54
#	@${REMOVE} ${SRC}/keyword.h
55
#	${LEXI} -k ${SRC}/lexer.lxi ${SRC}/keyword.h
56
#
57
#auto_clobber :
58
#	${REMOVE} ${SID_OUT} ${LEXI_OUT}
2 7u83 59