~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 \
54.1.3 by Stewart Smith
sql => server (initial patch)
21
				-I$(top_srcdir)/server \
28.1.11 by Monty Taylor
Removed symlinking from client programs. Still need to figure out how to avoid
22
				-I$(top_srcdir)/strings
1 by brian
clean slate
23
77.1.50 by Monty Taylor
First step of sql-common removal (the cheap way)
24
LDADD=				$(top_builddir)/libdrizzle/libdrizzle.la -lz
12.4.3 by Stewart Smith
remove non-thread safe client library. client lib is now *always* thread safe.
25
1 by brian
clean slate
26
27
noinst_HEADERS =		sql_string.h completion_hash.h my_readline.h \
28
				client_priv.h
29
30
CLEANFILES =			$(BUILT_SOURCES)
31
32
bin_PROGRAMS =			mysql \
33
				mysqladmin \
34
				mysqlbinlog \
35
				mysqlcheck \
36
				mysqldump \
37
				mysqlimport \
104 by Brian Aker
Merging up Monty's changes
38
				mysqltest \
77.1.31 by Monty Taylor
Replaced regex lib with pcre. Reworked mysqltest to use it.
39
				mysqlslap 
1 by brian
clean slate
40
41
mysql_SOURCES =			mysql.cc readline.cc sql_string.cc \
42
				completion_hash.cc
43
mysql_LDADD =			-lreadline @TERMCAP_LIB@ \
44
				$(LDADD) $(CXXLDFLAGS)
45
mysqladmin_SOURCES =		mysqladmin.cc
46
47
mysqlbinlog_SOURCES =		mysqlbinlog.cc \
48
				$(top_srcdir)/mysys/mf_tempdir.c \
49
				$(top_srcdir)/mysys/my_new.cc \
50
				$(top_srcdir)/mysys/my_bit.c \
51
				$(top_srcdir)/mysys/my_bitmap.c \
53.2.2 by Monty Taylor
Updated everything that needs updating to compile with -std=gnu99 -pedantic
52
				$(top_srcdir)/mysys/base64.c 
28.1.11 by Monty Taylor
Removed symlinking from client programs. Still need to figure out how to avoid
53
mysqlbinlog_LDADD =		$(LDADD) $(CXXLDFLAGS) 
1 by brian
clean slate
54
55
mysqldump_SOURCES=              mysqldump.c \
56
	                        $(top_srcdir)/mysys/mf_getdate.c
57
58
mysqlimport_SOURCES=		mysqlimport.c
59
60
mysqlslap_SOURCES=		mysqlslap.c
61
mysqlslap_CFLAGS=		-DTHREAD -UUNDEF_THREADS_HACK
62
77.1.31 by Monty Taylor
Replaced regex lib with pcre. Reworked mysqltest to use it.
63
mysqltest_SOURCES=		mysqltest.cc \
1 by brian
clean slate
64
				$(top_srcdir)/mysys/my_getsystime.c \
65
				$(top_srcdir)/mysys/my_copy.c \
66
                                $(top_srcdir)/mysys/my_mkdir.c
77.1.31 by Monty Taylor
Replaced regex lib with pcre. Reworked mysqltest to use it.
67
mysqltest_LDADD =		${LDADD} @PCRE_LIBS@
68
mysqltest_CFLAGS = 		${AM_CPPFLAGS} @PCRE_CFLAGS@
1 by brian
clean slate
69
70
# Fix for mit-threads
71
DEFS =			-DUNDEF_THREADS_HACK \
72
			-DDEFAULT_MYSQL_HOME="\"$(prefix)\"" \
73
			-DDATADIR="\"$(localstatedir)\""