~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
28.1.20 by Monty Taylor
Replaced INCLUDES with AM_CPPFLAGS.
18
AM_CPPFLAGS =			-I$(top_builddir)/include \
1 by brian
clean slate
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
28.1.35 by Monty Taylor
Removed all references to THREAD.
26
LDADD=				$(top_builddir)/sql-common/libsqlcommon.la \
28.1.11 by Monty Taylor
Removed symlinking from client programs. Still need to figure out how to avoid
27
				$(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.
28
1 by brian
clean slate
29
30
noinst_HEADERS =		sql_string.h completion_hash.h my_readline.h \
31
				client_priv.h
32
28.1.25 by Monty Taylor
Removed CMake file references.
33
EXTRA_DIST =			get_password.c 
1 by brian
clean slate
34
35
CLEANFILES =			$(BUILT_SOURCES)
36
37
bin_PROGRAMS =			mysql \
38
				mysqladmin \
39
				mysqlbinlog \
40
				mysqlcheck \
41
				mysqldump \
42
				mysqlimport \
43
				mysqlshow \
44
				mysqlslap \
28.1.31 by Monty Taylor
Deleted tons of pointless garbage from scripts.
45
				mysqltest 
1 by brian
clean slate
46
47
mysql_SOURCES =			mysql.cc readline.cc sql_string.cc \
48
				completion_hash.cc
49
mysql_LDADD =			-lreadline @TERMCAP_LIB@ \
50
				$(LDADD) $(CXXLDFLAGS)
51
mysqladmin_SOURCES =		mysqladmin.cc
52
53
mysqlbinlog_SOURCES =		mysqlbinlog.cc \
54
				$(top_srcdir)/mysys/mf_tempdir.c \
55
				$(top_srcdir)/mysys/my_new.cc \
56
				$(top_srcdir)/mysys/my_bit.c \
57
				$(top_srcdir)/mysys/my_bitmap.c \
53.2.2 by Monty Taylor
Updated everything that needs updating to compile with -std=gnu99 -pedantic
58
				$(top_srcdir)/mysys/base64.c 
28.1.11 by Monty Taylor
Removed symlinking from client programs. Still need to figure out how to avoid
59
mysqlbinlog_LDADD =		$(LDADD) $(CXXLDFLAGS) 
1 by brian
clean slate
60
61
mysqldump_SOURCES=              mysqldump.c \
62
	                        $(top_srcdir)/mysys/mf_getdate.c
63
64
mysqlimport_SOURCES=		mysqlimport.c
65
66
mysqlshow_SOURCES=		mysqlshow.c
67
68
mysqlslap_SOURCES=		mysqlslap.c
69
mysqlslap_CFLAGS=		-DTHREAD -UUNDEF_THREADS_HACK
70
71
mysqltest_SOURCES=		mysqltest.c \
72
				$(top_srcdir)/mysys/my_getsystime.c \
73
				$(top_srcdir)/mysys/my_copy.c \
74
                                $(top_srcdir)/mysys/my_mkdir.c
75
mysqltest_LDADD =		$(top_builddir)/regex/libregex.a $(LDADD)
76
77
# Fix for mit-threads
78
DEFS =			-DUNDEF_THREADS_HACK \
79
			-DDEFAULT_MYSQL_HOME="\"$(prefix)\"" \
80
			-DDATADIR="\"$(localstatedir)\""