Subversion Repositories tendra.SVN

Rev

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

Rev 46 Rev 47
Line 25... Line 25...
25
	exception.o grammar.o istream.o item.o key.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\
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\
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\
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
29
	scope.o syntax.o table.o type.o types.o
-
 
30
 
-
 
31
 
-
 
32
ERR_OUT=gen-errors.c gen-errors.h
-
 
33
 
30
 
34
 
31
.c.o:
35
.c.o:
32
	$(CC) -c $(CFLAGS) -o $@ $<
36
	$(CC) -c $(CFLAGS) -o $@ $<
33
 
37
 
34
$(PROG): $(OBJS)
38
$(PROG): $(OBJS)
35
	$(CC) -o $(PROG) $(LDFLAGS) $(OBJS)
39
	$(CC) -o $(PROG) $(LDFLAGS) $(OBJS)
36
 
40
 
37
depend:
41
depend:
38
	mkdep $(CFLAGS) *.c
42
	mkdep $(CFLAGS) *.c
39
 
43
 
40
clean:
44
clean:
41
	rm -f $(OBJS)
45
	rm -f $(OBJS)
42
	rm -f $(PROG)
46
	rm -f $(PROG)
-
 
47
 
-
 
48
# The ERR_OUT files  are generatet by the BUILD_ERROS - script 
-
 
49
# which requires Perl 
-
 
50
clean-all:
43
	rm -f $(ERR_OUT)
51
	rm -f $(ERR_OUT)
44
 
52
 
45
 
53
 
46
# XXX: Do I want to have them removed during clean?
-
 
47
#CLEAN_EXTRA= parser.c junk.h c-parser.c c-junk.h gen-errors.c gen-errors.h
54
#CLEAN_EXTRA= parser.c junk.h c-parser.c c-junk.h gen-errors.c gen-errors.h
48
 
55
 
49
SIDOPTS=-l ansi-c -s numeric -s no-lines
56
SIDOPTS=-l ansi-c -s numeric -s no-lines
50
 
57
 
51
#PARSER_OUT=${SRC}/parser.c ${SRC}/junk.h
58
#PARSER_OUT=${SRC}/parser.c ${SRC}/junk.h
52
#C_OUT=${SRC}/c-parser.c ${SRC}/c-junk.h
59
#C_OUT=${SRC}/c-parser.c ${SRC}/c-junk.h
53
ERR_OUT=gen-errors.c gen-errors.h
-
 
54
 
60
 
55
EFILES=$(SRC2)/arg-parse.e ${SRC2}/c-check.e ${SRC2}/c-code.e\
61
EFILES=$(SRC2)/arg-parse.e ${SRC2}/c-check.e ${SRC2}/c-code.e\
56
 ${SRC2}/c-lexer.e ${SRC2}/c-parser.e ${SRC2}/error-file.e\
62
 ${SRC2}/c-lexer.e ${SRC2}/c-parser.e ${SRC2}/error-file.e\
57
 ${SRC2}/for-osif.e ${SRC2}/grammar.e ${SRC2}/lexer.e ${SRC2}/main.e\
63
 ${SRC2}/for-osif.e ${SRC2}/grammar.e ${SRC2}/lexer.e ${SRC2}/main.e\
58
 ${SRC2}/parser.e ${SRC2}/rule-check.e ${SRC2}/rule-factor.e\
64
 ${SRC2}/parser.e ${SRC2}/rule-check.e ${SRC2}/rule-factor.e\
Line 60... Line 66...
60
 ${SRC2}/table.e ${SRC2}/types.e
66
 ${SRC2}/table.e ${SRC2}/types.e
61
 
67
 
62
gen-errors.c: ${BUILD_ERRORS} ${EFILES}
68
gen-errors.c: ${BUILD_ERRORS} ${EFILES}
63
	${REMOVE} ${ERR_OUT};\
69
	${REMOVE} ${ERR_OUT};\
64
	${BUILD_ERRORS} -o gen-errors ${EFILES}
70
	${BUILD_ERRORS} -o gen-errors ${EFILES}
65
 
-
 
66
auto_clobber :
-
 
67
	${REMOVE} ${PARSER_OUT} ${C_OUT} ${ERR_OUT}
-
 
68
 
71
 
69
 
72
 
70
#include	.depend
73
#include	.depend
71
 
74
 
72
 
75