Skip to content

Commit

Permalink
fork to libfastjson
Browse files Browse the repository at this point in the history
  • Loading branch information
rgerhards committed Nov 18, 2015
1 parent c97bbd3 commit 34f5048
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
3 changes: 3 additions & 0 deletions AUTHORS
@@ -1,3 +1,6 @@
Rainer Gerhards <rgerhards@adiscon.com>

With special thanks for the original json-c library:
Michael Clark <michael@metaparadigm.com>
Jehiah Czebotar <jehiah@gmail.com>
Eric Haszlakiewicz <hawicz+json-c@gmail.com>
Expand Down
29 changes: 13 additions & 16 deletions README.md
@@ -1,14 +1,11 @@
`json-c`
========
libfastjson
===========
**NOTE: libfastjson is a fork from json-c, and is currently under development.**


Building on Unix with `git`, `gcc` and `autotools`
--------------------------------------------------

Home page for json-c: https://github.com/json-c/json-c/wiki

Caution: do **NOT** use sources from svn.metaparadigm.com,
they are old.

Prerequisites:

- `gcc`, `clang`, or another C compiler
Expand All @@ -21,11 +18,11 @@ If you're not using a release tarball, you'll also need:

Make sure you have a complete `libtool` install, including `libtoolize`.

`json-c` GitHub repo: https://github.com/json-c/json-c
`libfastjson` GitHub repo: https://github.com/rsyslog/libfastjson

```bash
$ git clone https://github.com/json-c/json-c.git
$ cd json-c
$ git clone https://github.com/libfastjson/libfastjson.git
$ cd libfastjson
$ sh autogen.sh
```

Expand All @@ -43,21 +40,21 @@ To build and run the test programs:
$ make check
```

Linking to `libjson-c`
----------------------
Linking to `liblibfastjson`
---------------------------

If your system has `pkgconfig`,
then you can just add this to your `makefile`:

```make
CFLAGS += $(shell pkg-config --cflags json-c)
LDFLAGS += $(shell pkg-config --libs json-c)
CFLAGS += $(shell pkg-config --cflags libfastjson)
LDFLAGS += $(shell pkg-config --libs libfastjson)
```

Without `pkgconfig`, you would do something like this:

```make
JSON_C_DIR=/path/to/json_c/install
CFLAGS += -I$(JSON_C_DIR)/include/json-c
LDFLAGS+= -L$(JSON_C_DIR)/lib -ljson-c
CFLAGS += -I$(JSON_C_DIR)/include/libfastjson
LDFLAGS+= -L$(JSON_C_DIR)/lib -llibfastjson
```

0 comments on commit 34f5048

Please sign in to comment.