From: Anatol Belski Date: Wed, 4 Jan 2017 11:41:47 +0000 (+0100) Subject: add nmakefile fragment for json X-Git-Tag: php-7.2.0alpha1~654 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=25ee9465d1c7043f4302329c901fecd38597b634;p=php add nmakefile fragment for json --- diff --git a/ext/json/Makefile.frag.w32 b/ext/json/Makefile.frag.w32 new file mode 100644 index 0000000000..eaf47e22be --- /dev/null +++ b/ext/json/Makefile.frag.w32 @@ -0,0 +1,6 @@ + +ext\json\json_scanner.c: ext\json\json_scanner.re + $(RE2C) -t ext/json/php_json_scanner_defs.h --no-generation-date -bci -o ext/json/json_scanner.c ext/json/json_scanner.re + +ext\json\json_parser.tab.c: ext\json\json_parser.y + $(BISON) --defines -l ext/json/json_parser.y -o ext/json/json_parser.tab.c diff --git a/ext/json/config.w32 b/ext/json/config.w32 index c37d9a9025..05f6e659e4 100644 --- a/ext/json/config.w32 +++ b/ext/json/config.w32 @@ -17,6 +17,8 @@ if (PHP_JSON != "no") { ADD_SOURCES(configure_module_dirname, "json_encoder.c json_parser.tab.c json_scanner.c", "json"); + ADD_MAKEFILE_FRAGMENT(); + PHP_INSTALL_HEADERS("ext/json/", "php_json.h"); }