src/modules/cnxcc/Makefile
96596e28
 #
c587ce0b
 # cnxcc module makefile
96596e28
 #
162ccdae
 #
96596e28
 # WARNING: do not run this directly, it should be run by the master Makefile
 
 include ../../Makefile.defs
 auto_gen=
 NAME=cnxcc.so
 
162ccdae
 ifeq ($(CROSS_COMPILE),)
 HIREDIS_BUILDER = $(shell \
fa0d3267
 	if pkg-config --exists hiredis; then \
162ccdae
 		echo 'pkg-config hiredis'; \
 	fi)
 endif
 
 ifeq ($(HIREDIS_BUILDER),)
 	HIREDISDEFS=-I$(LOCALBASE)/include
 	HIREDISLIBS=-L$(LOCALBASE)/lib -lhiredis
 else
 	HIREDISDEFS = $(shell $(HIREDIS_BUILDER) --cflags)
 	HIREDISLIBS = $(shell $(HIREDIS_BUILDER) --libs)
fa0d3267
 
 ifeq ($(HIREDISLIBS),-L -lhiredis)
 		HIREDISDEFS = $(shell $(HIREDIS_BUILDER) --cflags) /opt/local/include
 		HIREDISLIBS = -L/opt/local/lib -lhiredis
 endif
 
 endif
 
 ifeq ($(CROSS_COMPILE),)
 LEVENT_BUILDER = $(shell \
 	if pkg-config --exists libevent; then \
 		echo 'pkg-config libevent'; \
 	fi)
 endif
 
 ifeq ($(LEVENT_BUILDER),)
 	LEVENTDEFS=
 	LEVENTLIBS=-L$(LOCALBASE)/lib -levent
 else
 	LEVENTDEFS = $(shell $(LEVENT_BUILDER) --cflags)
 	LEVENTLIBS = $(shell $(LEVENT_BUILDER) --libs)
162ccdae
 endif
 
fa0d3267
 DEFS+=$(HIREDISDEFS) $(LEVENTDEFS)
 LIBS=$(HIREDISLIBS) $(LEVENTLIBS)
162ccdae
 
96596e28
 SERLIBPATH=../../lib
 SER_LIBS+=$(SERLIBPATH)/srdb1/srdb1
 include ../../Makefile.modules