~drizzle-trunk/drizzle/development

1 by brian
clean slate
1
# Copyright (C) 2000-2006 MySQL AB
2
#
3
# This program is free software; you can redistribute it and/or modify
4
# it under the terms of the GNU General Public License as published by
5
# the Free Software Foundation; version 2 of the License.
6
#
7
# This program is distributed in the hope that it will be useful,
8
# but WITHOUT ANY WARRANTY; without even the implied warranty of
9
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10
# GNU General Public License for more details.
11
#
12
# You should have received a copy of the GNU General Public License
13
# along with this program; if not, write to the Free Software
14
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
15
16
# This file is public domain and comes with NO WARRANTY of any kind
17
18
INCLUDES =			-I$(top_builddir)/include \
19
				-I$(top_srcdir)/include \
28.1.11 by Monty Taylor
Removed symlinking from client programs. Still need to figure out how to avoid
20
				-I$(top_srcdir)/regex \
21
				-I$(top_srcdir)/sql \
22
				-I$(top_srcdir)/strings
1 by brian
clean slate
23
24
LIBS =				@CLIENT_LIBS@ -lz
25
25 by Brian Aker
Clean up of configure.in
26
LDADD=				$(CLIENT_THREAD_LIBS) \
28.1.11 by Monty Taylor
Removed symlinking from client programs. Still need to figure out how to avoid
27
				$(top_builddir)/sql-common/libsqlcommon.la \
28
				$(top_builddir)/libmysql/libmysqlclient.la -lz
12.4.3 by Stewart Smith
remove non-thread safe client library. client lib is now *always* thread safe.
29
1 by brian
clean slate
30
31
noinst_HEADERS =		sql_string.h completion_hash.h my_readline.h \
32
				client_priv.h
33
34
EXTRA_DIST =			get_password.c CMakeLists.txt echo.c
35
36
CLEANFILES =			$(BUILT_SOURCES)
37
38
bin_PROGRAMS =			mysql \
39
				mysqladmin \
40
				mysqlbinlog \
41
				mysqlcheck \
42
				mysqldump \
43
				mysqlimport \
44
				mysqlshow \
45
				mysqlslap \
46
				mysqltest \
47
				mysql_upgrade
48
49
mysql_SOURCES =			mysql.cc readline.cc sql_string.cc \
50
				completion_hash.cc
51
mysql_LDADD =			-lreadline @TERMCAP_LIB@ \
52
				$(LDADD) $(CXXLDFLAGS)
53
mysqladmin_SOURCES =		mysqladmin.cc
54
55
mysqlbinlog_SOURCES =		mysqlbinlog.cc \
56
				$(top_srcdir)/mysys/mf_tempdir.c \
57
				$(top_srcdir)/mysys/my_new.cc \
58
				$(top_srcdir)/mysys/my_bit.c \
59
				$(top_srcdir)/mysys/my_bitmap.c \
60
				$(top_srcdir)/mysys/base64.c
28.1.11 by Monty Taylor
Removed symlinking from client programs. Still need to figure out how to avoid
61
mysqlbinlog_LDADD =		$(LDADD) $(CXXLDFLAGS) 
1 by brian
clean slate
62
63
mysqldump_SOURCES=              mysqldump.c \
64
	                        $(top_srcdir)/mysys/mf_getdate.c
65
66
mysqlimport_SOURCES=		mysqlimport.c
67
68
mysqlshow_SOURCES=		mysqlshow.c
69
70
mysqlslap_SOURCES=		mysqlslap.c
71
mysqlslap_CFLAGS=		-DTHREAD -UUNDEF_THREADS_HACK
72
73
mysqltest_SOURCES=		mysqltest.c \
74
				$(top_srcdir)/mysys/my_getsystime.c \
75
				$(top_srcdir)/mysys/my_copy.c \
76
                                $(top_srcdir)/mysys/my_mkdir.c
77
mysqltest_LDADD =		$(top_builddir)/regex/libregex.a $(LDADD)
78
79
mysql_upgrade_SOURCES=          mysql_upgrade.c \
80
                                $(top_srcdir)/mysys/my_getpagesize.c
81
82
# Fix for mit-threads
83
DEFS =			-DUNDEF_THREADS_HACK \
84
			-DDEFAULT_MYSQL_HOME="\"$(prefix)\"" \
85
			-DDATADIR="\"$(localstatedir)\""