| 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 | |
| Michael Clark | f6a6e48 | 2007-03-13 08:26:23 +0000 | [diff] [blame] | 5 | sh autogen.sh |
| Michael Clark | 4504df7 | 2007-03-13 08:26:20 +0000 | [diff] [blame] | 6 | |
| 7 | Then configure, make, make install |
| 8 | |
| 9 | |
| 10 | Test programs |
| 11 | |
| 12 | To build the test programs run 'make check' |
| 13 | |
| 14 | |
| 15 | Linking to libjson |
| 16 | |
| 17 | If your system has pkgconfig then you can just add this to your makefile |
| 18 | |
| 19 | CFLAGS += $(shell pkg-config --cflags json) |
| 20 | LDFLAGS += $(shell pkg-config --libs json) |