Merging rabbitmq into Z3
This commit is contained in:
@ -21,15 +21,16 @@
|
|||||||
include ../../../build_gateway.inc
|
include ../../../build_gateway.inc
|
||||||
|
|
||||||
LOGPATH := $(ROOT_PATH)/log_manager
|
LOGPATH := $(ROOT_PATH)/log_manager
|
||||||
|
QCLASSPATH := $(ROOT_PATH)/query_classifier
|
||||||
UTILSPATH := $(ROOT_PATH)/utils
|
UTILSPATH := $(ROOT_PATH)/utils
|
||||||
|
|
||||||
CC=cc
|
CC=cc
|
||||||
CFLAGS=-c -fPIC -I/usr/include -I../include -I../../include -I$(LOGPATH) \
|
CFLAGS=-c -fPIC -I/usr/include -I../include -I../../include -I$(LOGPATH) -I$(QCLASSPATH) \
|
||||||
-I$(UTILSPATH) -Wall -g
|
-I$(UTILSPATH) -I$(MYSQL_ROOT) -Wall -g
|
||||||
|
|
||||||
include ../../../makefile.inc
|
include ../../../makefile.inc
|
||||||
|
|
||||||
LDFLAGS=-shared -L$(LOGPATH) -Wl,-rpath,$(DEST)/lib \
|
LDFLAGS=-shared -L$(LOGPATH) -L$(QCLASSPATH) -Wl,-rpath,$(DEST)/lib \
|
||||||
-Wl,-rpath,$(LOGPATH) -Wl,-rpath,$(UTILSPATH)
|
-Wl,-rpath,$(LOGPATH) -Wl,-rpath,$(UTILSPATH)
|
||||||
|
|
||||||
TESTSRCS=testfilter.c
|
TESTSRCS=testfilter.c
|
||||||
@ -42,10 +43,12 @@ TOPNSRCS=topfilter.c
|
|||||||
TOPNOBJ=$(TOPNSRCS:.c=.o)
|
TOPNOBJ=$(TOPNSRCS:.c=.o)
|
||||||
TEESRCS=tee.c
|
TEESRCS=tee.c
|
||||||
TEEOBJ=$(TEESRCS:.c=.o)
|
TEEOBJ=$(TEESRCS:.c=.o)
|
||||||
SRCS=$(TESTSRCS) $(QLASRCS) $(REGEXSRCS) $(TOPNSRCS) $(TEESRCS)
|
MQSRCS=mqfilter.c
|
||||||
|
MQOBJ=$(MQSRCS:.c=.o)
|
||||||
|
SRCS=$(TESTSRCS) $(QLASRCS) $(REGEXSRCS) $(TOPNSRCS) $(TEESRCS) $(MQSRCS)
|
||||||
OBJ=$(SRCS:.c=.o)
|
OBJ=$(SRCS:.c=.o)
|
||||||
LIBS=$(UTILSPATH)/skygw_utils.o -lssl -llog_manager
|
LIBS=$(UTILSPATH)/skygw_utils.o -lssl -llog_manager -lrabbitmq -lquery_classifier
|
||||||
MODULES= libtestfilter.so libqlafilter.so libregexfilter.so libtopfilter.so libtee.so libhintfilter.so
|
MODULES= libtestfilter.so libqlafilter.so libregexfilter.so libtopfilter.so libtee.so libmqfilter.so
|
||||||
|
|
||||||
|
|
||||||
all: $(MODULES)
|
all: $(MODULES)
|
||||||
@ -53,6 +56,9 @@ all: $(MODULES)
|
|||||||
libtestfilter.so: $(TESTOBJ)
|
libtestfilter.so: $(TESTOBJ)
|
||||||
$(CC) $(LDFLAGS) $(TESTOBJ) $(LIBS) -o $@
|
$(CC) $(LDFLAGS) $(TESTOBJ) $(LIBS) -o $@
|
||||||
|
|
||||||
|
libmqfilter.so: $(MQOBJ)
|
||||||
|
$(CC) $(LDFLAGS) $(MQOBJ) $(LIBS) -o $@
|
||||||
|
|
||||||
libqlafilter.so: $(QLAOBJ)
|
libqlafilter.so: $(QLAOBJ)
|
||||||
$(CC) $(LDFLAGS) $(QLAOBJ) $(LIBS) -o $@
|
$(CC) $(LDFLAGS) $(QLAOBJ) $(LIBS) -o $@
|
||||||
|
|
||||||
@ -66,8 +72,7 @@ libtee.so: $(TEEOBJ)
|
|||||||
$(CC) $(LDFLAGS) $(TEEOBJ) $(LIBS) -o $@
|
$(CC) $(LDFLAGS) $(TEEOBJ) $(LIBS) -o $@
|
||||||
|
|
||||||
libhintfilter.so:
|
libhintfilter.so:
|
||||||
(cd hint; touch depend.mk ; make; cp $@ ..)
|
# (cd hint; touch depend.mk ; make; cp $@ ..)
|
||||||
|
|
||||||
|
|
||||||
.c.o:
|
.c.o:
|
||||||
$(CC) $(CFLAGS) $< -o $@
|
$(CC) $(CFLAGS) $< -o $@
|
||||||
@ -78,26 +83,26 @@ clean:
|
|||||||
|
|
||||||
tags:
|
tags:
|
||||||
ctags $(SRCS) $(HDRS)
|
ctags $(SRCS) $(HDRS)
|
||||||
(cd hint; touch depend.mk; make tags)
|
# (cd hint; touch depend.mk; make tags)
|
||||||
|
|
||||||
depend:
|
depend:
|
||||||
@$(DEL) depend.mk
|
@rm -f depend.mk
|
||||||
cc -M $(CFLAGS) $(SRCS) > depend.mk
|
cc -M $(CFLAGS) $(SRCS) > depend.mk
|
||||||
(cd hint; touch depend.mk; make depend)
|
# (cd hint; touch depend.mk; make depend)
|
||||||
|
|
||||||
install: $(MODULES)
|
install: $(MODULES)
|
||||||
install -D $(MODULES) $(DEST)/modules
|
install -D $(MODULES) $(DEST)/modules
|
||||||
|
|
||||||
cleantests:
|
cleantests:
|
||||||
$(MAKE) -C test cleantests
|
$(MAKE) -C test cleantests
|
||||||
|
|
||||||
buildtests:
|
buildtests:
|
||||||
$(MAKE) -C test DEBUG=Y buildtests
|
$(MAKE) -C test DEBUG=Y buildtests
|
||||||
|
|
||||||
runtests:
|
runtests:
|
||||||
$(MAKE) -C test runtests
|
$(MAKE) -C test runtests
|
||||||
|
|
||||||
testall:
|
testall:
|
||||||
$(MAKE) -C test testall
|
$(MAKE) -C test testall
|
||||||
|
|
||||||
include depend.mk
|
include depend.mk
|
||||||
|
|||||||
1457
server/modules/filter/mqfilter.c
Normal file
1457
server/modules/filter/mqfilter.c
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user