1Building on Unix with git, gcc and autotools
2
3Home page for json-c:
4  https://github.com/json-c/json-c/wiki
5
6  Caution: do NOT use sources from svn.metaparadigm.com, they are old.
7
8Prerequisites:
9	gcc (or another C compiler)
10	libtool
11
12	If you're not using a release tarball, you'll also need:
13	autoconf (autoreconf)
14	automake
15	Make sure you have a complete libtool install, including libtoolize
16
17Github repo for json-c:
18  https://github.com/json-c/json-c
19
20    $ git clone https://github.com/json-c/json-c.git
21    $ cd json-c
22    $ sh autogen.sh
23
24Then 
25
26    $ ./configure
27    $ make
28    $ make install
29
30To build and run the test programs run 
31
32    $ make check
33
34Linking to libjson-c
35
36If your system has pkgconfig then you can just add this to your makefile
37
38CFLAGS += $(shell pkg-config --cflags json-c)
39LDFLAGS += $(shell pkg-config --libs json-c)
40
41Without pkgconfig, you would do something like this:
42
43JSON_C_DIR=/path/to/json_c/install
44CFLAGS += -I$(JSON_C_DIR)/include/json-c
45LDFLAGS+= -L$(JSON_C_DIR)/lib -ljson-c
46