try to add query_classifier under skygteway

This commit is contained in:
vraatikka
2013-06-17 18:19:46 +03:00
parent 525861cab3
commit 4854b56aba
5 changed files with 1002 additions and 0 deletions

View File

@ -0,0 +1,34 @@
include ../../build_gateway.inc
include ../../makefile.inc
CC = gcc
CPP = g++
TESTPATH := $(shell pwd)
QUERY_CLASSIFIER_PATH := $(ROOT_PATH)/query_classifier/
TESTAPP = $(TESTPATH)/testmain
runtest: makeall testall
makeall: clean all
clean:
- $(DEL) testmain.o
- $(DEL) testmain
- $(DEL) *~
all: testcomp testall
testcomp:
$(CC) $(CFLAGS) \
-L$(QUERY_CLASSIFIER_PATH) \
-L$(MARIADB_SRC_PATH)/libmysqld \
-Wl,-rpath,$(MARIADB_SRC_PATH)/libmysqld \
-Wl,-rpath,$(QUERY_CLASSIFIER_PATH)/ \
-o testmain -DSS_DEBUG \
-I$(MARIADB_SRC_PATH)/include testmain.c \
-lquery_classifier $(LDLIBS) \
$(QUERY_CLASSIFIER_PATH)/skygw_utils.o
testall:
- $(LAUNCH_DEBUGGER) $(TESTAPP) $(BACKGR)