| Michael Clark | 4504df7 | 2007-03-13 08:26:20 +0000 | [diff] [blame^] | 1 | Building on Unix with gcc and autotools |
| 2 | |
| 3 | If checking out from CVS: |
| 4 | |
| 5 | cp /usr/share/libtool/ltmain.sh . |
| 6 | aclocal-1.6 |
| 7 | automake-1.6 --add-missing |
| 8 | autoconf |
| 9 | |
| 10 | Then configure, make, make install |
| 11 | |
| 12 | |
| 13 | Test programs |
| 14 | |
| 15 | To build the test programs run 'make check' |
| 16 | |
| 17 | |
| 18 | Linking to libjson |
| 19 | |
| 20 | If your system has pkgconfig then you can just add this to your makefile |
| 21 | |
| 22 | CFLAGS += $(shell pkg-config --cflags json) |
| 23 | LDFLAGS += $(shell pkg-config --libs json) |