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:
15 Make sure you have a complete libtool install, including libtoolize
17 Github repo for json-c:
18 https://github.com/json-c/json-c
20 $ git clone https://github.com/json-c/json-c.git
30 To build and run the test programs run
36 If your system has pkgconfig then you can just add this to your makefile
38 CFLAGS += $(shell pkg-config --cflags json-c)
39 LDFLAGS += $(shell pkg-config --libs json-c)
41 Without pkgconfig, you would do something like this:
43 JSON_C_DIR=/path/to/json_c/install
44 CFLAGS += -I$(JSON_C_DIR)/include/json-c
45 LDFLAGS+= -L$(JSON_C_DIR)/lib -ljson-c