blob: 09947bad19834d54d1be107bf86cb353b88843f6 [file] [log] [blame]
Michael Clark4504df72007-03-13 08:26:20 +00001Building on Unix with gcc and autotools
2
Eric Haszlakiewicza37ddcf2011-05-03 21:19:55 +00003Home page for json-c:
4 http://oss.metaparadigm.com/json-c/
5
Jehiah Czebotarc096f5a2011-01-14 18:02:00 +00006If checking out from SVN (http://svn.metaparadigm.com/svn/json-c/trunk) or Git (https://github.com/jehiah/json-c):
Michael Clark4504df72007-03-13 08:26:20 +00007
Jehiah Czebotarc096f5a2011-01-14 18:02:00 +00008 $ sh autogen.sh
Michael Clark4504df72007-03-13 08:26:20 +00009
Jehiah Czebotarc096f5a2011-01-14 18:02:00 +000010Then
Michael Clark4504df72007-03-13 08:26:20 +000011
Jehiah Czebotarc096f5a2011-01-14 18:02:00 +000012 $ ./configure
13 $ make
14 $ make install
Michael Clark4504df72007-03-13 08:26:20 +000015
Jehiah Czebotarc096f5a2011-01-14 18:02:00 +000016To build and run the test programs run
Michael Clark4504df72007-03-13 08:26:20 +000017
Jehiah Czebotarc096f5a2011-01-14 18:02:00 +000018 $ make check
Michael Clark4504df72007-03-13 08:26:20 +000019
20Linking to libjson
21
22If your system has pkgconfig then you can just add this to your makefile
23
24CFLAGS += $(shell pkg-config --cflags json)
25LDFLAGS += $(shell pkg-config --libs json)