use pkg-config for JSON=true

This commit is contained in:
Eric 2013-09-02 15:49:49 -04:00
parent e02ac4eb0b
commit 7534966101
1 changed files with 2 additions and 2 deletions

View File

@ -43,8 +43,8 @@ ifeq ($(REDIS), true)
endif
ifeq ($(JSON), true)
LDLIBS+=-L/usr/local/lib -ljson-c
CFLAGS+=-DJSON -I/usr/local/include/json-c
LDLIBS+=$(shell pkg-config --libs json-c)
CFLAGS+=-DJSON $(shell pkg-config --cflags json-c)
objects+=module_json.o
endif