]> granicus.if.org Git - php/commitdiff
add nmakefile fragment for json
authorAnatol Belski <ab@php.net>
Wed, 4 Jan 2017 11:41:47 +0000 (12:41 +0100)
committerAnatol Belski <ab@php.net>
Wed, 4 Jan 2017 11:41:47 +0000 (12:41 +0100)
ext/json/Makefile.frag.w32 [new file with mode: 0644]
ext/json/config.w32

diff --git a/ext/json/Makefile.frag.w32 b/ext/json/Makefile.frag.w32
new file mode 100644 (file)
index 0000000..eaf47e2
--- /dev/null
@@ -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
index c37d9a9025edac26aae68bbc3399e33f97026e91..05f6e659e42659a174f46e01015c792b797f87dd 100644 (file)
@@ -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");
 }