use pkg-config for JSON=true

This commit is contained in:
Eric 2013-09-02 15:49:49 -04:00
parent e02ac4eb0b
commit 7534966101

View File

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