mirror of
https://github.com/json-c/json-c.git
synced 2026-03-21 14:09:06 +08:00
git-svn-id: http://svn.metaparadigm.com/svn/json-c/trunk@64 327403b1-1117-474d-bef2-5cb71233fd97
23 lines
474 B
Plaintext
23 lines
474 B
Plaintext
Building on Unix with gcc and autotools
|
|
|
|
If checking out from SVN (http://svn.metaparadigm.com/svn/json-c/trunk) or Git (https://github.com/jehiah/json-c):
|
|
|
|
$ sh autogen.sh
|
|
|
|
Then
|
|
|
|
$ ./configure
|
|
$ make
|
|
$ make install
|
|
|
|
To build and run the test programs run
|
|
|
|
$ make check
|
|
|
|
Linking to libjson
|
|
|
|
If your system has pkgconfig then you can just add this to your makefile
|
|
|
|
CFLAGS += $(shell pkg-config --cflags json)
|
|
LDFLAGS += $(shell pkg-config --libs json)
|