1 Building on Unix with git, gcc and autotools
4 https://github.com/json-c/json-c/wiki
6 Caution: do NOT use sources from svn.metaparadigm.com, they are old.
9 gcc (or another C compiler)
12 If you're not using a release tarball, you'll also need:
16 Github repo for json-c:
17 https://github.com/json-c/json-c
19 $ git clone https://github.com/json-c/json-c.git
29 To build and run the test programs run
35 If your system has pkgconfig then you can just add this to your makefile
37 CFLAGS += $(shell pkg-config --cflags json-c)
38 LDFLAGS += $(shell pkg-config --libs json-c)
40 Without pkgconfig, you would do something like this:
42 JSON_C_DIR=/path/to/json_c/install
43 CFLAGS += -I$(JSON_C_DIR)/include/json-c
44 LDFLAGS+= -L$(JSON_C_DIR)/lib -ljson-c