 f50de7a084
			
		
	
	f50de7a084
	
	
	
		
			
			Removed MARIADB_SRC_PATH Added MYSQL_ROOT - root directory where MariaDB headers are installed Added MYSQL_HEADERS - -I notation for three header directories Added EMBEDDED_LIB - for embedded library directory Added ERRMSG - for errmsg.sys file log_manager.cc Little fixes log_manager/makefile Updated header include directive makefile.inc Removed DEBUGGER and BACKGR as unnecessary Added LIB for embedded library file name query_classifier/makefile Updated header include directives and embedded library directory query_classifier/query_classifier.cc clean up server/core/Makefile Updated header include directives and embedded library directory Added libaio and install of errmsg.sys server/core/dcb.c clean up server/core/gateway.c Added --language and --skip-innodb to mysql_library_init command-line arguments list clean up server/core/load_utils.c clean up server/modules/monitor/Makefile server/modules/routing/readwritesplit/Makefile Updated header include directives and embedded library directory utils/skygw_debug.h http://bugs.skysql.com/show_bug.cgi?id=369 utils/skygw_types.h utils/skygw_utils.cc clean up
		
			
				
	
	
		
			61 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			61 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Makefile
		
	
	
	
	
	
| include ../build_gateway.inc
 | |
| include ../makefile.inc
 | |
| 
 | |
| CC = gcc
 | |
| CPP = g++
 | |
| 
 | |
| SRCS = query_classifier.cc
 | |
| 
 | |
| QUERY_CLASSIFIER_PATH := $(shell pwd)
 | |
| 
 | |
| makeall: clean all
 | |
| 
 | |
| clean:
 | |
| 	make -C ../utils clean
 | |
| 	- $(DEL) query_classifier.o 
 | |
| 	- $(DEL) libquery_classifier.so
 | |
| 	- $(DEL) libquery_classifier.so.1.0.1 
 | |
| 	- $(DEL) skygw_utils.o
 | |
| 	- $(DEL) *~
 | |
| 	- $(DEL) depend
 | |
| 
 | |
| all: utils lib
 | |
| 
 | |
| utils:
 | |
| 	make -C $(ROOT_PATH)/utils clean all
 | |
| 	$(COPY) $(ROOT_PATH)/utils/skygw_utils.o ./
 | |
| 
 | |
| lib: libcomp liblink
 | |
| 
 | |
| libcomp: 
 | |
| 	$(CPP) -c $(CFLAGS) \
 | |
| 	$(MYSQL_HEADERS) \
 | |
| 	-I$(ROOT_PATH)/log_manager/ \
 | |
| 	-I./ \
 | |
| 	-fPIC ./query_classifier.cc -o query_classifier.o
 | |
| 
 | |
| liblink:
 | |
| 	 $(CPP) -shared \
 | |
| 	-L$(EMBEDDED_LIB) \
 | |
| 	-Wl,-soname,libquery_classifier.so \
 | |
| 	-Wl,-rpath,$(DEST)/lib \
 | |
| 	-Wl,-rpath,$(EMBEDDED_LIB) \
 | |
| 	-o libquery_classifier.so.1.0.1 ./query_classifier.o \
 | |
| 	$(LDLIBS) $(LDMYSQL) $(CPP_LDLIBS)
 | |
| 	$(DEL) ./libquery_classifier.so
 | |
| 	$(LINK) ./libquery_classifier.so.1.0.1 ./libquery_classifier.so
 | |
| 
 | |
| 
 | |
| install: liblink
 | |
| 	install ./libquery_classifier.so.1.0.1 ./libquery_classifier.so $(DEST)/lib
 | |
| 
 | |
| depend:
 | |
| 	@rm -f depend
 | |
| 	$(CPP) -M $(CFLAGS) \
 | |
| 	$(MYSQL_HEADERS) \
 | |
| 	-I$(ROOT_PATH)/log_manager/ \
 | |
| 	-I./ \
 | |
| 	$(SRCS) > depend
 | |
| 
 | |
| include depend
 |