src/modules/kazoo/Makefile
e134574b
 #
 # WARNING: do not run this directly, it should be run by the master Makefile
 
 include ../../Makefile.defs
 auto_gen=
 NAME=kazoo.so
602c4a7c
 JLIB=json
e134574b
 
602c4a7c
 BUILDER = $(shell which pkg-config)
 ifeq ($(BUILDER),)
 	JSONC=$(shell ls $(SYSBASE)/include/lib/libjson*.so $(LOCALBASE)/lib/libjson*.so 2>/dev/null | grep json-c)
 else
 	JSONC=$(shell pkg-config --libs json-c 2>/dev/null | grep json-c)
 endif
e134574b
 
602c4a7c
 ifneq ($(JSONC),)
 	JLIB=json-c
 endif
 
 ifeq ($(BUILDER),)
 	DEFS+=-I$(LOCALBASE)/include -I$(SYSBASE)/include \
 		-I$(SYSBASE)/include/$(JLIB)
1dbd53a0
 	LIBS=-L$(LOCALBASE)/lib -I$(SYSBASE)/lib -lrabbitmq -l$(JLIB) -luuid -levent
602c4a7c
 else
 	DEFS += $(shell $(BUILDER) --cflags $(JLIB))
 	LIBS += $(shell $(BUILDER) --libs $(JLIB))
 	DEFS += $(shell $(BUILDER) --cflags uuid)
 	LIBS += $(shell $(BUILDER) --libs uuid)
 	DEFS += $(shell $(BUILDER) --cflags librabbitmq)
 	LIBS += $(shell $(BUILDER) --libs librabbitmq)
1dbd53a0
 	DEFS += $(shell $(BUILDER) --cflags libevent)
 	LIBS += $(shell $(BUILDER) --libs libevent)
602c4a7c
 endif
 
e134574b
 SERLIBPATH=../../lib
ec583a4c
 SER_LIBS=$(SERLIBPATH)/srdb1/srdb1
e134574b
 
 include ../../Makefile.modules