2006-12-31 01:02:27 +01:00
|
|
|
# Copyright (C) 2000-2006 MySQL AB
|
2006-11-13 13:36:07 +01:00
|
|
|
#
|
2000-07-31 21:29:14 +02:00
|
|
|
# This program is free software; you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
2006-12-23 20:17:15 +01:00
|
|
|
# the Free Software Foundation; version 2 of the License.
|
2006-11-13 13:36:07 +01:00
|
|
|
#
|
2000-07-31 21:29:14 +02:00
|
|
|
# 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.
|
2006-11-13 13:36:07 +01:00
|
|
|
#
|
2000-07-31 21:29:14 +02:00
|
|
|
# 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
|
|
|
|
# This file is public domain and comes with NO WARRANTY of any kind
|
|
|
|
|
2006-02-24 01:24:41 +01:00
|
|
|
if THREAD_SAFE_CLIENT
|
|
|
|
LIBMYSQLCLIENT_LA = $(top_builddir)/libmysql_r/libmysqlclient_r.la
|
|
|
|
else
|
|
|
|
LIBMYSQLCLIENT_LA = $(top_builddir)/libmysql/libmysqlclient.la
|
|
|
|
endif
|
|
|
|
|
2005-10-18 15:43:59 +02:00
|
|
|
INCLUDES = -I$(top_builddir)/include \
|
|
|
|
-I$(top_srcdir)/include \
|
|
|
|
-I$(top_srcdir)/regex \
|
2006-06-06 13:21:07 +02:00
|
|
|
$(openssl_includes)
|
2006-11-13 13:36:07 +01:00
|
|
|
|
2000-07-31 21:29:14 +02:00
|
|
|
LIBS = @CLIENT_LIBS@
|
2006-11-13 13:36:07 +01:00
|
|
|
|
2006-02-18 04:23:24 +01:00
|
|
|
LDADD= @CLIENT_EXTRA_LDFLAGS@ $(CLIENT_THREAD_LIBS) \
|
2006-02-24 01:24:41 +01:00
|
|
|
$(top_builddir)/libmysql/libmysqlclient.la
|
2006-11-13 13:36:07 +01:00
|
|
|
|
2001-09-21 15:36:23 +02:00
|
|
|
noinst_HEADERS = sql_string.h completion_hash.h my_readline.h \
|
|
|
|
client_priv.h
|
2006-11-13 13:36:07 +01:00
|
|
|
|
2007-03-28 23:18:43 +02:00
|
|
|
EXTRA_DIST = get_password.c CMakeLists.txt echo.c
|
2006-11-13 13:36:07 +01:00
|
|
|
|
2007-03-27 23:56:48 +02:00
|
|
|
BUILT_SOURCES = link_sources
|
|
|
|
|
|
|
|
CLEANFILES = $(BUILT_SOURCES)
|
|
|
|
|
2006-11-13 13:36:07 +01:00
|
|
|
bin_PROGRAMS = mysql \
|
|
|
|
mysqladmin \
|
|
|
|
mysqlbinlog \
|
|
|
|
mysqlcheck \
|
|
|
|
mysqldump \
|
|
|
|
mysqlimport \
|
|
|
|
mysqlshow \
|
|
|
|
mysqlslap \
|
|
|
|
mysqltest \
|
|
|
|
mysql_upgrade
|
|
|
|
|
|
|
|
mysql_SOURCES = mysql.cc readline.cc sql_string.cc \
|
|
|
|
completion_hash.cc
|
|
|
|
mysql_LDADD = @readline_link@ @TERMCAP_LIB@ \
|
|
|
|
$(LDADD) $(CXXLDFLAGS)
|
2006-11-13 16:54:47 +01:00
|
|
|
mysqladmin_SOURCES = mysqladmin.cc
|
2006-11-13 13:36:07 +01:00
|
|
|
|
|
|
|
mysqlbinlog_SOURCES = mysqlbinlog.cc \
|
|
|
|
$(top_srcdir)/mysys/mf_tempdir.c \
|
2005-12-22 06:39:02 +01:00
|
|
|
$(top_srcdir)/mysys/my_new.cc \
|
|
|
|
$(top_srcdir)/mysys/my_bit.c \
|
|
|
|
$(top_srcdir)/mysys/my_bitmap.c \
|
|
|
|
$(top_srcdir)/mysys/my_vle.c \
|
|
|
|
$(top_srcdir)/mysys/base64.c
|
2005-04-30 19:48:45 +02:00
|
|
|
mysqlbinlog_LDADD = $(LDADD) $(CXXLDFLAGS)
|
2006-11-13 13:36:07 +01:00
|
|
|
|
|
|
|
mysqldump_SOURCES= mysqldump.c \
|
|
|
|
my_user.c \
|
2006-11-13 18:06:05 +01:00
|
|
|
$(top_srcdir)/mysys/mf_getdate.c
|
2006-11-13 13:36:07 +01:00
|
|
|
|
2006-11-13 18:06:05 +01:00
|
|
|
mysqlimport_SOURCES= mysqlimport.c
|
2009-05-12 19:45:40 +02:00
|
|
|
mysqlimport_CFLAGS= -DTHREAD -UUNDEF_THREADS_HACK
|
2006-02-19 18:41:59 +01:00
|
|
|
mysqlimport_LDADD = $(CXXLDFLAGS) $(CLIENT_THREAD_LIBS) \
|
|
|
|
@CLIENT_EXTRA_LDFLAGS@ \
|
2006-02-24 01:24:41 +01:00
|
|
|
$(LIBMYSQLCLIENT_LA) \
|
2006-11-13 13:36:07 +01:00
|
|
|
$(top_builddir)/mysys/libmysys.a
|
|
|
|
|
2006-11-13 18:06:05 +01:00
|
|
|
mysqlshow_SOURCES= mysqlshow.c
|
2006-11-13 13:36:07 +01:00
|
|
|
|
2006-11-13 18:06:05 +01:00
|
|
|
mysqlslap_SOURCES= mysqlslap.c
|
2009-07-08 16:49:45 +02:00
|
|
|
mysqlslap_CFLAGS= -DTHREAD -UMYSQL_CLIENT_NO_THREADS
|
2006-11-13 13:36:07 +01:00
|
|
|
mysqlslap_LDADD = $(CXXLDFLAGS) $(CLIENT_THREAD_LIBS) \
|
|
|
|
@CLIENT_EXTRA_LDFLAGS@ \
|
|
|
|
$(LIBMYSQLCLIENT_LA) \
|
|
|
|
$(top_builddir)/mysys/libmysys.a
|
|
|
|
|
2008-08-04 21:54:44 +02:00
|
|
|
mysqltest_SOURCES= mysqltest.cc
|
2009-07-08 16:49:45 +02:00
|
|
|
mysqltest_CXXFLAGS= -DTHREAD -UMYSQL_CLIENT_NO_THREADS
|
2008-06-18 18:17:15 +02:00
|
|
|
mysqltest_LDADD = $(CXXLDFLAGS) $(CLIENT_THREAD_LIBS) \
|
|
|
|
@CLIENT_EXTRA_LDFLAGS@ \
|
|
|
|
$(LIBMYSQLCLIENT_LA) \
|
|
|
|
$(top_builddir)/mysys/libmysys.a \
|
2008-08-01 17:10:06 +02:00
|
|
|
$(top_builddir)/regex/libregex.a \
|
|
|
|
$(CLIENT_THREAD_LIBS)
|
2006-11-13 13:36:07 +01:00
|
|
|
|
2006-11-23 21:07:41 +01:00
|
|
|
mysql_upgrade_SOURCES= mysql_upgrade.c \
|
|
|
|
$(top_srcdir)/mysys/my_getpagesize.c
|
2000-07-31 21:29:14 +02:00
|
|
|
|
|
|
|
# Fix for mit-threads
|
2009-07-08 16:49:45 +02:00
|
|
|
DEFS = -DMYSQL_CLIENT_NO_THREADS \
|
2006-03-18 14:56:24 +01:00
|
|
|
-DDEFAULT_MYSQL_HOME="\"$(prefix)\"" \
|
2009-07-31 21:22:02 +02:00
|
|
|
-DMYSQL_DATADIR="\"$(localstatedir)\""
|
2006-11-13 13:36:07 +01:00
|
|
|
|
2007-03-29 20:31:09 +02:00
|
|
|
sql_src=log_event.h mysql_priv.h rpl_constants.h \
|
2009-12-14 12:04:55 +01:00
|
|
|
rpl_tblmap.h rpl_tblmap.cc \
|
2007-04-12 15:50:54 +02:00
|
|
|
log_event.cc my_decimal.h my_decimal.cc \
|
|
|
|
log_event_old.h log_event_old.cc \
|
2009-12-14 12:04:55 +01:00
|
|
|
rpl_utility.h rpl_utility.cc \
|
2007-04-12 15:50:54 +02:00
|
|
|
rpl_record_old.h rpl_record_old.cc
|
2009-12-22 17:23:13 +01:00
|
|
|
strings_src=decimal.c dtoa.c
|
2000-07-31 21:29:14 +02:00
|
|
|
|
2001-08-10 02:16:43 +02:00
|
|
|
link_sources:
|
|
|
|
for f in $(sql_src) ; do \
|
2005-09-24 15:51:45 +02:00
|
|
|
rm -f $$f; \
|
|
|
|
@LN_CP_F@ $(top_srcdir)/sql/$$f $$f; \
|
2007-05-02 14:16:21 +02:00
|
|
|
done; \
|
|
|
|
for f in $(strings_src) ; do \
|
|
|
|
rm -f $(srcdir)/$$f; \
|
|
|
|
@LN_CP_F@ $(top_srcdir)/strings/$$f $$f; \
|
|
|
|
done; \
|
|
|
|
rm -f $(srcdir)/my_user.c; \
|
|
|
|
@LN_CP_F@ $(top_srcdir)/sql-common/my_user.c my_user.c;
|
2007-03-27 23:56:48 +02:00
|
|
|
echo timestamp > link_sources;
|
2006-02-18 04:23:24 +01:00
|
|
|
|
2000-08-16 04:14:02 +02:00
|
|
|
# Don't update the files from bitkeeper
|
|
|
|
%::SCCS/s.%
|