Subversion Repositories tendra.SVN

Rev

Rev 98 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 7u83 1
 
46 7u83 2
include ../../../defs.mk
2 7u83 3
 
15 7u83 4
 
46 7u83 5
SRC2=	./errors
6 7u83 6
 
2 7u83 7
# Standard variables
8
 
6 7u83 9
WARNS?=		2
10
 
11
TCCOPTS=	-Yansi -Xs
2 7u83 12
LIBS=
13
 
14
# Dependencies and construction rules
15
 
15 7u83 16
PROG=sid
2 7u83 17
 
15 7u83 18
CCOPTS=	${TCCOPTS} -I${BASE_DIR}/${INCLUDE} -I${.CURDIR} -I${OBJ_SDIR}
19
 
106 7u83 20
#OBJS=	gen-errors.o\
21
#	action.o alt.o arg-parse.o basic.o bitvec.o c-check.o\
22
#	c-code.o c-lexer.o c-out-info.o c-out-key.o c-out-nl.o\
23
#	c-out-types.o c-output.o c-parser.o cstring-list.o cstring.o\
24
#	dalloc.o dstring.o entry-list.o entry.o error-file.o error.o\
25
#	exception.o grammar.o istream.o item.o key.o\
26
#	lexer.o main.o name.o non-local.o ostream.o output.o parser.o\
27
#	rstack.o rule-check.o rule-factor.o rule-firsts.o rule-lre.o\
28
#	rule-mutate.o rule-names.o rule-simp.o rule-tail.o rule.o\
29
#	scope.o syntax.o table.o type.o types.o
15 7u83 30
 
47 7u83 31
 
106 7u83 32
SOURCES=	gen-errors.c\
33
	action.c alt.c arg-parse.c basic.c bitvec.c c-check.c\
34
	c-code.c c-lexer.c c-out-info.c c-out-key.c c-out-nl.c\
35
	c-out-types.c c-output.c c-parser.c cstring-list.c cstring.c\
36
	dalloc.c dstring.c entry-list.c entry.c error-file.c error.c\
37
	exception.c grammar.c istream.c item.c key.c\
38
	lexer.c main.c name.c non-local.c ostream.c output.c parser.c\
39
	rstack.c rule-check.c rule-factor.c rule-firsts.c rule-lre.c\
40
	rule-mutate.c rule-names.c rule-simp.c rule-tail.c rule.c\
41
	scope.c syntax.c table.c type.c types.c
47 7u83 42
 
106 7u83 43
OBJDIR=./o$(STAGE)
47 7u83 44
 
106 7u83 45
include ../../prog.mk
15 7u83 46
 
47
 
106 7u83 48
ERR_OUT=gen-errors.c gen-errors.h
49
 
50
 
15 7u83 51
depend:
52
	mkdep $(CFLAGS) *.c
53
 
106 7u83 54
#clean:
55
#	rm -f $(OBJS)
56
#	rm -f $(PROG)
47 7u83 57
 
58
# The ERR_OUT files  are generatet by the BUILD_ERROS - script 
59 7u83 59
# which requires Perl, so we have a  
47 7u83 60
clean-all:
15 7u83 61
	rm -f $(ERR_OUT)
62
 
59 7u83 63
#clean-never:
64
#	rm -f parser.c junk.h c-parser.c c-junk.h 
15 7u83 65
 
6 7u83 66
SIDOPTS=-l ansi-c -s numeric -s no-lines
2 7u83 67
 
6 7u83 68
#PARSER_OUT=${SRC}/parser.c ${SRC}/junk.h
69
#C_OUT=${SRC}/c-parser.c ${SRC}/c-junk.h
2 7u83 70
 
46 7u83 71
EFILES=$(SRC2)/arg-parse.e ${SRC2}/c-check.e ${SRC2}/c-code.e\
2 7u83 72
 ${SRC2}/c-lexer.e ${SRC2}/c-parser.e ${SRC2}/error-file.e\
73
 ${SRC2}/for-osif.e ${SRC2}/grammar.e ${SRC2}/lexer.e ${SRC2}/main.e\
74
 ${SRC2}/parser.e ${SRC2}/rule-check.e ${SRC2}/rule-factor.e\
75
 ${SRC2}/rule-firsts.e ${SRC2}/rule-lre.e ${SRC2}/scope.e\
76
 ${SRC2}/table.e ${SRC2}/types.e
77
 
98 7u83 78
gen-errors.c: ${BUILD_ERRORS} ${EFILES}
79
gen-errors.c: 
80
	${REMOVE} ${ERR_OUT};\
81
	${BUILD_ERRORS} -o gen-errors ${EFILES}
2 7u83 82
 
106 7u83 83
#install: $(PROG)
84
#	mkdir -p $(INSTALL_BINDIR)
85
#	install $(PROG) $(INSTALL_BINDIR)/$(PROG)
6 7u83 86
 
46 7u83 87
#include	.depend
88
 
89