mirror of
https://github.com/json-c/json-c.git
synced 2026-03-27 08:59:07 +08:00
24 lines
434 B
Plaintext
24 lines
434 B
Plaintext
|
|
Building on Unix with gcc and autotools
|
||
|
|
|
||
|
|
If checking out from CVS:
|
||
|
|
|
||
|
|
cp /usr/share/libtool/ltmain.sh .
|
||
|
|
aclocal-1.6
|
||
|
|
automake-1.6 --add-missing
|
||
|
|
autoconf
|
||
|
|
|
||
|
|
Then configure, make, make install
|
||
|
|
|
||
|
|
|
||
|
|
Test programs
|
||
|
|
|
||
|
|
To build 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)
|