summaryrefslogtreecommitdiff
path: root/client/Makefile.am
diff options
context:
space:
mode:
authorunknown <msvensson@neptunus.(none)>2006-11-13 13:36:07 +0100
committerunknown <msvensson@neptunus.(none)>2006-11-13 13:36:07 +0100
commitde8f1500a663a3e8dc2a7d1ff7e669a44389ab8c (patch)
tree3f55663d266c8288d8314a4ac96d2f484ee0e298 /client/Makefile.am
parente94e55c7f38bea9f915f04ee6eb1c5a56f1ef93a (diff)
downloadmariadb-git-de8f1500a663a3e8dc2a7d1ff7e669a44389ab8c.tar.gz
Bug#23984 mysqltest on HP-UX
- Cleanup the Makefile for client - Don't link mysqltest with mysys as it's been compiled with different flags. client/Makefile.am: Cleanup the Makefile for client Don't link mysqltest with mysys as it's been compiled with different flags.
Diffstat (limited to 'client/Makefile.am')
-rw-r--r--client/Makefile.am83
1 files changed, 53 insertions, 30 deletions
diff --git a/client/Makefile.am b/client/Makefile.am
index 7d48e34b37b..48dc68ff704 100644
--- a/client/Makefile.am
+++ b/client/Makefile.am
@@ -1,15 +1,15 @@
# Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
-#
+#
# 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
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
-#
+#
# 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
@@ -28,57 +28,81 @@ else
LIBMYSQLCLIENT_LA = $(top_builddir)/libmysql/libmysqlclient.la
endif
-#AUTOMAKE_OPTIONS = nostdinc
INCLUDES = -I$(top_builddir)/include \
-I$(top_srcdir)/include \
-I$(top_srcdir)/regex \
$(openssl_includes)
+
LIBS = @CLIENT_LIBS@
+
LDADD= @CLIENT_EXTRA_LDFLAGS@ $(CLIENT_THREAD_LIBS) \
$(top_builddir)/libmysql/libmysqlclient.la
-bin_PROGRAMS = mysql mysqladmin mysqlcheck mysqlshow \
- mysqldump mysqlimport mysqltest mysqlbinlog \
- mysqlslap mysql_upgrade
+
noinst_HEADERS = sql_string.h completion_hash.h my_readline.h \
client_priv.h
-mysql_SOURCES = mysql.cc readline.cc sql_string.cc completion_hash.cc
-mysqladmin_SOURCES = mysqladmin.cc
-mysql_LDADD = @readline_link@ @TERMCAP_LIB@ $(LDADD) $(CXXLDFLAGS)
-mysqltest_SOURCES= mysqltest.c $(top_srcdir)/mysys/my_getsystime.c \
- $(yassl_dummy_link_fix)
-mysqltest_LDADD = $(top_builddir)/regex/libregex.a $(LDADD) \
- $(top_builddir)/mysys/libmysys.a
-mysqlbinlog_SOURCES = mysqlbinlog.cc $(top_srcdir)/mysys/mf_tempdir.c \
+
+EXTRA_DIST = get_password.c CMakeLists.txt
+
+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)
+
+mysqlbinlog_SOURCES = mysqlbinlog.cc \
+ $(top_srcdir)/mysys/mf_tempdir.c \
$(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
mysqlbinlog_LDADD = $(LDADD) $(CXXLDFLAGS)
-mysqlslap_LDADD = $(CXXLDFLAGS) $(CLIENT_THREAD_LIBS) \
- @CLIENT_EXTRA_LDFLAGS@ \
- $(LIBMYSQLCLIENT_LA) \
- $(top_builddir)/mysys/libmysys.a
+
+mysqldump_SOURCES= mysqldump.c \
+ my_user.c \
+ $(top_srcdir)/mysys/mf_getdate.c \
+ $(yassl_dummy_link_fix)
+
+mysqlimport_SOURCES= mysqlimport.c $(yassl_dummy_link_fix)
+
mysqlimport_LDADD = $(CXXLDFLAGS) $(CLIENT_THREAD_LIBS) \
@CLIENT_EXTRA_LDFLAGS@ \
$(LIBMYSQLCLIENT_LA) \
- $(top_builddir)/mysys/libmysys.a
-mysqlcheck_SOURCES= mysqlcheck.c $(yassl_dummy_link_fix)
+ $(top_builddir)/mysys/libmysys.a
+
mysqlshow_SOURCES= mysqlshow.c $(yassl_dummy_link_fix)
+
mysqlslap_SOURCES= mysqlslap.c $(yassl_dummy_link_fix)
-mysqldump_SOURCES= mysqldump.c my_user.c \
- $(top_srcdir)/mysys/mf_getdate.c \
- $(yassl_dummy_link_fix)
-mysqlimport_SOURCES= mysqlimport.c $(yassl_dummy_link_fix)
+mysqlslap_LDADD = $(CXXLDFLAGS) $(CLIENT_THREAD_LIBS) \
+ @CLIENT_EXTRA_LDFLAGS@ \
+ $(LIBMYSQLCLIENT_LA) \
+ $(top_builddir)/mysys/libmysys.a
+
+mysqltest_SOURCES= mysqltest.c \
+ $(top_srcdir)/mysys/my_getsystime.c \
+ $(top_srcdir)/mysys/my_copy.c \
+ $(yassl_dummy_link_fix)
+mysqltest_LDADD = $(top_builddir)/regex/libregex.a $(LDADD)
+
mysql_upgrade_SOURCES= mysql_upgrade.c $(yassl_dummy_link_fix)
-sql_src=log_event.h mysql_priv.h log_event.cc my_decimal.h my_decimal.cc
-strings_src=decimal.c
# Fix for mit-threads
DEFS = -DUNDEF_THREADS_HACK \
-DDEFAULT_MYSQL_HOME="\"$(prefix)\"" \
- -DDATADIR="\"$(localstatedir)\""
-EXTRA_DIST = get_password.c CMakeLists.txt
+ -DDATADIR="\"$(localstatedir)\""
+
+sql_src=log_event.h mysql_priv.h log_event.cc my_decimal.h my_decimal.cc
+strings_src=decimal.c
link_sources:
for f in $(sql_src) ; do \
@@ -92,6 +116,5 @@ link_sources:
rm -f $(srcdir)/my_user.c; \
@LN_CP_F@ $(top_srcdir)/sql-common/my_user.c my_user.c;
-
# Don't update the files from bitkeeper
%::SCCS/s.%