Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Link LibYAML and json-c archive in Makefile
- Loading branch information
Chakrit Wichian
committed
May 23, 2012
1 parent
dc995a9
commit fa80424
Showing
2 changed files
with
4 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,9 @@ | |
|
||
int | ||
main() { | ||
yaml_parser_t parser; | ||
struct json_object *obj; | ||
|
||
printf("Hello World!"); | ||
return 0; | ||
} |