mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +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.
7 lines
304 B
Makefile
7 lines
304 B
Makefile
$(srcdir)/pgsql_sql_parser.c: $(srcdir)/pgsql_sql_parser.re
|
|
@(cd $(top_srcdir); \
|
|
if test -f ./pgsql_sql_parser.re; then \
|
|
$(RE2C) $(RE2C_FLAGS) -o pgsql_sql_parser.c pgsql_sql_parser.re; \
|
|
else \
|
|
$(RE2C) $(RE2C_FLAGS) -o ext/pdo_pgsql/pgsql_sql_parser.c ext/pdo_pgsql/pgsql_sql_parser.re; \
|
|
fi)
|