Skip to content

Commit

Permalink
add nmakefile fragment for json
Browse files Browse the repository at this point in the history
  • Loading branch information
weltling committed Jan 4, 2017
1 parent 380073b commit 25ee946
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ext/json/Makefile.frag.w32
Original file line number Diff line number Diff line change
@@ -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
2 changes: 2 additions & 0 deletions ext/json/config.w32
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}

0 comments on commit 25ee946

Please # to comment.