Replaced fprintf's with log write commands, removed the second argument from call of mysql_reset_thd_for_next_command(thd) according to changes in mariadb/5.5/sql/sql_parse.c #rev 3958. server/Makefile Instead of installing MaxScale.cnf (and overwriting previous config file), install MaxScale_template.cnf to DEST directory. config.c Replace references to 'Gateway' with 'MaxScale', change configuration parameter 'auth' to 'passwd' as it is named in other instances where referenced to password.
64 lines
2.3 KiB
Makefile
64 lines
2.3 KiB
Makefile
# This file is distributed as part of the SkySQL Gateway. It is free
|
|
# software: you can redistribute it and/or modify it under the terms of the
|
|
# GNU General Public License as published by the Free Software Foundation,
|
|
# version 2.
|
|
#
|
|
# This program is distributed in the hope that it will be useful, but WITHOUT
|
|
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
|
# details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License along with
|
|
# this program; if not, write to the Free Software Foundation, Inc., 51
|
|
# Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
#
|
|
# Copyright SkySQL Ab 2013
|
|
#
|
|
# Revision History
|
|
# Date Who Description
|
|
# 14/06/13 Mark Riddoch Initial implementation
|
|
# 17/06/13 Mark Riddoch Addition of documentation and depend
|
|
# targets
|
|
# 18/06/13 Mark Riddoch Addition of install target
|
|
# 21/06/13 Mark Riddoch Addition of inih
|
|
# 08/07/13 Mark Riddoch Addition of monitor modules
|
|
# 16/07/13 Mark Riddoch Renamed things to match the new naming
|
|
|
|
DEST=$(HOME)/usr/local/skysql
|
|
|
|
all:
|
|
(cd inih/extra ; make -f Makefile.static)
|
|
(cd core ; touch depend.mk ; make)
|
|
(cd modules/routing; touch depend.mk ;make)
|
|
(cd modules/routing/readwritesplit; touch depend.mk ;make)
|
|
(cd modules/protocol; touch depend.mk ;make)
|
|
(cd modules/monitor; touch depend.mk ;make)
|
|
|
|
clean:
|
|
(cd Documentation; rm -rf html)
|
|
(cd core; touch depend.mk ; make clean)
|
|
(cd modules/routing; touch depend.mk ; make clean)
|
|
(cd modules/protocol; touch depend.mk ; make clean)
|
|
(cd modules/monitor; touch depend.mk ; make clean)
|
|
|
|
depend:
|
|
(cd core; touch depend.mk ; make depend)
|
|
(cd modules/routing; touch depend.mk ; make depend)
|
|
(cd modules/protocol; touch depend.mk ; make depend)
|
|
(cd modules/monitor; touch depend.mk ; make depend)
|
|
|
|
install:
|
|
@mkdir -p $(DEST)
|
|
@mkdir -p $(DEST)/MaxScale
|
|
@mkdir -p $(DEST)/MaxScale/modules
|
|
@mkdir -p $(DEST)/MaxScale/log
|
|
@mkdir -p $(DEST)/MaxScale/etc
|
|
@mkdir -p $(DEST)/lib
|
|
@mkdir -p $(DEST)/Documentation
|
|
install -b MaxScale_template.cnf $(DEST)/MaxScale/etc
|
|
install ../Documentation/*.pdf $(DEST)/Documentation
|
|
(cd core; make DEST=$(DEST) install)
|
|
(cd modules/routing; make DEST=$(DEST) install)
|
|
(cd modules/protocol; make DEST=$(DEST) install)
|
|
(cd modules/monitor; make DEST=$(DEST) install)
|