
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.
42 lines
922 B
PHP
42 lines
922 B
PHP
#
|
|
# This file is static. It handles the dynamic content of build.inc,
|
|
# for example, by setting compiler flags etc.
|
|
|
|
# Changes to environment, such as building directories etc. are made to
|
|
# build_gateway.inc.
|
|
# A template file build_gateway_l2x64.inc is stored in directory 'config'.
|
|
# Template can't be used as such, but hopefully only little modifications are
|
|
# needed, such as setting build directory etc.
|
|
#
|
|
|
|
#ifdef UNIX
|
|
DEL := rm -fr
|
|
LINK := ln -s
|
|
COPY := cp
|
|
NOHUP := nohup
|
|
#endif
|
|
|
|
LIB := libmysqld.a
|
|
|
|
ifdef DYNLIB
|
|
LIB := libmysqld.so.18
|
|
endif
|
|
|
|
|
|
CFLAGS := $(CFLAGS) -Wall
|
|
LDLIBS := $(LDLIBS) -pthread
|
|
LDMYSQL := -lmysqld
|
|
CPP_LDLIBS := -lstdc++
|
|
|
|
#
|
|
# Compiler flags, httpd arguments and debugger options
|
|
#
|
|
ifdef DEBUG
|
|
DEBUG_FLAGS := -DSS_DEBUG
|
|
CFLAGS := $(CFLAGS) -ggdb -O0 -pthread $(DEBUG_FLAGS)
|
|
endif
|
|
|
|
|
|
ifdef PROF
|
|
CFLAGS := $(CFLAGS) -DSS_PROF
|
|
endif |