Skip to content

Commit

Permalink
Link LibYAML and json-c archive in Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
Chakrit Wichian committed May 23, 2012
1 parent dc995a9 commit fa80424
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
@@ -1,4 +1,4 @@
default:
mkdir -p ./obj ./bin
gcc -fPIC -c -I./lib/json-c -I./lib/libyaml/include -o ./obj/yaml2json.o ./src/yaml2json.c
gcc -o ./bin/yaml2json ./obj/yaml2json.o
gcc -o ./bin/yaml2json ./lib/json-c/.libs/libjson.a ./lib/libyaml/src/.libs/libyaml.a ./obj/yaml2json.o
3 changes: 3 additions & 0 deletions src/yaml2json.c
Expand Up @@ -4,6 +4,9 @@

int
main() {
yaml_parser_t parser;
struct json_object *obj;

printf("Hello World!");
return 0;
}

0 comments on commit fa80424

Please sign in to comment.