 e8ce2268e0
			
		
	
	e8ce2268e0
	
	
	
		
			
			Every test/makefile have the following targets: cleantests - clean local and subdirectories' tests buildtests - build all local and subdirectories' tests runtests - run all local tests testall - clean, build and run local and subdirectories' tests Tests for directory random_dir are always in its subdirectory, in this case in random_dir/test . If random_dir has subdirectories with tests, random_dir/child_dir, for example, tests of child_dir can be started from random_dir/test/makefile where make -C child_dir/test <test target> is called. See MAXSCALE_HOME/test/README for further information.
		
			
				
	
	
		
			68 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			68 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Makefile
		
	
	
	
	
	
| include ../build_gateway.inc
 | |
| include ../makefile.inc
 | |
| 
 | |
| CC = gcc
 | |
| CPP = g++
 | |
| 
 | |
| SRCS 		:= log_manager.cc
 | |
| UTILS_PATH	:= $(ROOT_PATH)/utils
 | |
| CUR_DIR 	:= $(shell pwd)
 | |
| 
 | |
| makeall: clean all
 | |
| 
 | |
| clean:
 | |
| 	$(MAKE) -C $(UTILS_PATH) clean
 | |
| 	- $(DEL) *.o 
 | |
| 	- $(DEL) *.so
 | |
| 	- $(DEL) *.so.1.0.1 
 | |
| 	- $(DEL) *~
 | |
| 	- $(DEL) depend
 | |
| 
 | |
| all: utils lib
 | |
| 
 | |
| 
 | |
| utils:
 | |
| 	$(MAKE) -C $(UTILS_PATH) clean all
 | |
| 
 | |
| lib: libcomp liblink
 | |
| 
 | |
| libcomp: 
 | |
| 	$(CPP) -c $(CFLAGS) \
 | |
| 	$(MYSQL_HEADERS) \
 | |
| 	-I$(UTILS_PATH) -I./ \
 | |
| 	-fPIC ./log_manager.cc -o log_manager.o $(LDLIBS)
 | |
| 
 | |
| liblink:
 | |
| 	 $(CPP) -shared \
 | |
| 	-Wl,-soname,liblog_manager.so \
 | |
| 	-o liblog_manager.so.1.0.1 log_manager.o \
 | |
| 	$(LDLIBS) $(CPP_LDLIBS)
 | |
| 	$(DEL) ./liblog_manager.so
 | |
| 	$(LINK) ./liblog_manager.so.1.0.1 ./liblog_manager.so
 | |
| 
 | |
| install: liblink
 | |
| 	install liblog_manager.so.1.0.1 liblog_manager.so $(DEST)/lib
 | |
| 
 | |
| depend:
 | |
| 	@rm -f depend
 | |
| 	$(CPP) -M $(CFLAGS) \
 | |
| 	$(MYSQL_HEADERS) \
 | |
| 	-I$(UTILS_PATH) -I./ \
 | |
| 	$(SRCS) > depend
 | |
| 
 | |
| cleantests:
 | |
| 	$(MAKE) -C test cleantests
 | |
| 
 | |
| buildtests:
 | |
| 	$(MAKE) -C test DEBUG=Y buildtests
 | |
| 
 | |
| runtests:
 | |
| 	$(MAKE) -C test runtests
 | |
| 
 | |
| testall: 
 | |
| 	$(MAKE) -C test testall
 | |
| 
 | |
| 
 | |
| 
 | |
| include depend
 |