Add depend make target and resolve conflict in query_classifier.cc
This commit is contained in:
@ -4,6 +4,8 @@ include ../makefile.inc
|
|||||||
CC = gcc
|
CC = gcc
|
||||||
CPP = g++
|
CPP = g++
|
||||||
|
|
||||||
|
SRCS = log_manager.cc
|
||||||
|
|
||||||
LOG_WRITER_PATH := $(shell pwd)
|
LOG_WRITER_PATH := $(shell pwd)
|
||||||
|
|
||||||
makeall: clean all
|
makeall: clean all
|
||||||
@ -14,6 +16,7 @@ clean:
|
|||||||
- $(DEL) *.so
|
- $(DEL) *.so
|
||||||
- $(DEL) *.so.1.0.1
|
- $(DEL) *.so.1.0.1
|
||||||
- $(DEL) *~
|
- $(DEL) *~
|
||||||
|
- $(DEL) depend
|
||||||
|
|
||||||
all: utils lib
|
all: utils lib
|
||||||
|
|
||||||
@ -39,3 +42,12 @@ liblink:
|
|||||||
|
|
||||||
install: liblink
|
install: liblink
|
||||||
install liblog_manager.so.1.0.1 liblog_manager.so $(DEST)/lib
|
install liblog_manager.so.1.0.1 liblog_manager.so $(DEST)/lib
|
||||||
|
|
||||||
|
depend:
|
||||||
|
@rm -f depend
|
||||||
|
$(CPP) -M $(CFLAGS) \
|
||||||
|
-I$(MARIADB_SRC_PATH)/include/ \
|
||||||
|
-I../utils/ -I./ \
|
||||||
|
$(SRCS) > depend
|
||||||
|
|
||||||
|
include depend
|
||||||
|
@ -4,6 +4,8 @@ include ../makefile.inc
|
|||||||
CC = gcc
|
CC = gcc
|
||||||
CPP = g++
|
CPP = g++
|
||||||
|
|
||||||
|
SRCS = query_classifier.cc
|
||||||
|
|
||||||
QUERY_CLASSIFIER_PATH := $(shell pwd)
|
QUERY_CLASSIFIER_PATH := $(shell pwd)
|
||||||
|
|
||||||
makeall: clean all
|
makeall: clean all
|
||||||
@ -15,6 +17,7 @@ clean:
|
|||||||
- $(DEL) libquery_classifier.so.1.0.1
|
- $(DEL) libquery_classifier.so.1.0.1
|
||||||
- $(DEL) skygw_utils.o
|
- $(DEL) skygw_utils.o
|
||||||
- $(DEL) *~
|
- $(DEL) *~
|
||||||
|
- $(DEL) depend
|
||||||
|
|
||||||
all: utils lib
|
all: utils lib
|
||||||
|
|
||||||
@ -45,3 +48,15 @@ liblink:
|
|||||||
|
|
||||||
install: liblink
|
install: liblink
|
||||||
install ./libquery_classifier.so.1.0.1 ./libquery_classifier.so $(DEST)/lib
|
install ./libquery_classifier.so.1.0.1 ./libquery_classifier.so $(DEST)/lib
|
||||||
|
|
||||||
|
depend:
|
||||||
|
@rm -f depend
|
||||||
|
$(CPP) -M $(CFLAGS) \
|
||||||
|
-I$(MARIADB_SRC_PATH)/libmysqld/ \
|
||||||
|
-I$(MARIADB_SRC_PATH)/include/ \
|
||||||
|
-I$(MARIADB_SRC_PATH)/sql \
|
||||||
|
-I$(MARIADB_SRC_PATH)/regex/ \
|
||||||
|
-I./ \
|
||||||
|
$(SRCS) > depend
|
||||||
|
|
||||||
|
include depend
|
||||||
|
@ -100,8 +100,9 @@ skygw_query_type_t skygw_query_classifier_get_type(
|
|||||||
ss_info_dassert(query != NULL, ("query_str is NULL"));
|
ss_info_dassert(query != NULL, ("query_str is NULL"));
|
||||||
|
|
||||||
query_str = const_cast<char*>(query);
|
query_str = const_cast<char*>(query);
|
||||||
|
#if QUERY_DEBUG
|
||||||
//fprintf(stderr, " Query \"%s\"\n", query_str);
|
fprintf(stderr, " Query \"%s\"\n", query_str);
|
||||||
|
#endif
|
||||||
|
|
||||||
/** Get server handle */
|
/** Get server handle */
|
||||||
mysql = mysql_init(NULL);
|
mysql = mysql_init(NULL);
|
||||||
|
Reference in New Issue
Block a user