1 # provide headers in builddir, so they do not end up in /usr/include/ext/psi/src
3 PHP_PSI_HEADERS := $(addprefix $(PHP_PSI_BUILDDIR)/,$(PHP_PSI_HEADERS))
5 $(PHP_PSI_BUILDDIR)/%.h: $(PHP_PSI_SRCDIR)/src/%.h
9 clean: psi-clean-headers
11 .PHONY: psi-build-headers
12 psi-build-headers: $(PHP_PSI_HEADERS)
14 .PHONY: psi-clean-headers
16 -rm -f $(PHP_PSI_HEADERS)
19 curl -sSo $@ "http://www.sqlite.org/src/raw/tool/lempar.c?name=3617143ddb9b176c3605defe6a9c798793280120"
22 curl -sSo $@ "http://www.sqlite.org/src/raw/tool/lemon.c?name=039f813b520b9395740c52f9cbf36c90b5d8df03"
24 ./lemon: lemon.c | lempar.c
27 $(PHP_PSI_SRCDIR)/src/parser_proc.c: $(PHP_PSI_SRCDIR)/src/parser_proc.y $(LEMON)
30 $(PHP_PSI_SRCDIR)/src/parser.c: $(PHP_PSI_SRCDIR)/src/parser.re