mirror of
https://github.com/php/php-src.git
synced 2026-03-30 20:22:36 +02:00
The --no-generation-date flag is a common re2c flag used in all re2c invocations. This adds the 2nd optional argument to PHP_PROG_RE2C M4 macro in BC manner to set the default re2c command-line options and sets the default RE2C_FLAGS similarly on Windows.
8 lines
278 B
Makefile
8 lines
278 B
Makefile
$(srcdir)/pdo_sql_parser.c: $(srcdir)/pdo_sql_parser.re
|
|
@(cd $(top_srcdir); \
|
|
if test -f ./pdo_sql_parser.re; then \
|
|
$(RE2C) $(RE2C_FLAGS) -o pdo_sql_parser.c pdo_sql_parser.re; \
|
|
else \
|
|
$(RE2C) $(RE2C_FLAGS) -o ext/pdo/pdo_sql_parser.c ext/pdo/pdo_sql_parser.re; \
|
|
fi)
|