| CODENOTIFIER | HelpYou are not signed inSign in |
Project: lighttpd
Revision: 2295
Author: stbuehler
Date: 20 Aug 2008 09:54:40
Changes:Fixed parser generating with automake
- we want "make dist" to generate them (so you can use them for cross compiles),
but we don't want them to be generated in the source dir.
so if you change the .y files and have an extra build dir, you have to delete
the generated parsers from your source.
they get deleted with "make maintainer-clean"
| ... | ...@@ -15,36 +15,38 @@ | |
| 15 | 15 | #simple_fcgi_LDADD=-lfcgi |
| 16 | 16 | |
| 17 | 17 | if CROSS_COMPILING |
| 18 | configparser.c configparser.h: | |
| 19 | mod_ssi_exprparser.c mod_ssi_exprparser.h: | |
| 18 | configparser.c configparser.h: | |
| 19 | mod_ssi_exprparser.c mod_ssi_exprparser.h: | |
| 20 | http_req_parser.c http_req_parser.h: | |
| 21 | http_req_range_parser.c http_req_range_parser.h: | |
| 22 | mod_ssi_exprparser.c mod_ssi_exprparser.h: | |
| 20 | 23 | else |
| 21 | ||
| 22 | configparser.c configparser.h: $(LEMON) $(srcdir)/configparser.y $(srcdir)/lempar.c | |
| 24 | configparser.c configparser.h: $(srcdir)/configparser.y $(srcdir)/lempar.c | $(LEMON) | |
| 23 | 25 | rm -f configparser.h |
| 24 | 26 | $(LEMON) -q $(srcdir)/configparser.y $(srcdir)/lempar.c |
| 25 | 27 | |
| 26 | http_resp_parser.c http_resp_parser.h: $(LEMON) $(srcdir)/http_resp_parser.y $(srcdir)/lempar.c | |
| 28 | http_resp_parser.c http_resp_parser.h: $(srcdir)/http_resp_parser.y $(srcdir)/lempar.c | $(LEMON) | |
| 27 | 29 | rm -f http_resp_parser.h |
| 28 | 30 | $(LEMON) -q $(srcdir)/http_resp_parser.y $(srcdir)/lempar.c |
| 29 | 31 | |
| 30 | http_req_parser.c http_req_parser.h: $(LEMON) $(srcdir)/http_req_parser.y $(srcdir)/lempar.c | |
| 32 | http_req_parser.c http_req_parser.h: $(srcdir)/http_req_parser.y $(srcdir)/lempar.c | $(LEMON) | |
| 31 | 33 | rm -f http_req_parser.h |
| 32 | 34 | $(LEMON) -q $(srcdir)/http_req_parser.y $(srcdir)/lempar.c |
| 33 | 35 | |
| 34 | http_req_range_parser.c http_req_range_parser.h: $(LEMON) $(srcdir)/http_req_range_parser.y $(srcdir)/lempar.c | |
| 36 | http_req_range_parser.c http_req_range_parser.h: $(srcdir)/http_req_range_parser.y $(srcdir)/lempar.c | $(LEMON) | |
| 35 | 37 | rm -f http_req_range_parser.h |
| 36 | 38 | $(LEMON) -q $(srcdir)/http_req_range_parser.y $(srcdir)/lempar.c |
| 37 | 39 | |
| 38 | mod_ssi_exprparser.c mod_ssi_exprparser.h: $(LEMON) $(srcdir)/mod_ssi_exprparser.y $(srcdir)/lempar.c | |
| 40 | mod_ssi_exprparser.c mod_ssi_exprparser.h: $(srcdir)/mod_ssi_exprparser.y $(srcdir)/lempar.c | $(LEMON) | |
| 39 | 41 | rm -f mod_ssi_exprparser.h |
| 40 | 42 | $(LEMON) -q $(srcdir)/mod_ssi_exprparser.y $(srcdir)/lempar.c |
| 41 | 43 | endif |
| 42 | 44 | |
| 43 | configfile.o: configparser.h | |
| 44 | mod_ssi_expr.o: mod_ssi_exprparser.h | |
| 45 | http_resp.o: http_resp_parser.h | |
| 46 | http_req.o: http_req_parser.h | |
| 47 | http_req_range.o: http_req_range_parser.h | |
| 45 | BUILT_SOURCES = configparser.c configparser.h \ | |
| 46 | http_resp_parser.c http_resp_parser.h \ | |
| 47 | http_req_parser.c http_req_parser.h \ | |
| 48 | http_req_range_parser.c http_req_range_parser.h \ | |
| 49 | mod_ssi_exprparser.c mod_ssi_exprparser.h | |
| 48 | 50 | |
| 49 | 51 | common_src=buffer.c log.c \ |
| 50 | 52 | keyvalue.c chunk.c filter.c \ |