1
# Copyright (C) 2000 MySQL AB
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.
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.
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
16
noinst_PROGRAMS = mysql
17
bin_PROGRAMS = mysqltest_embedded mysql_client_test_embedded
18
client_sources = $(nodist_mysqltest_embedded_SOURCES) $(nodist_mysql_SOURCES)
19
tests_sources = $(nodist_mysql_client_test_embedded_SOURCES)
20
BUILT_SOURCES = link_sources
21
CLEANFILES = $(client_sources) $(tests_sources) $(BUILT_SOURCES)
22
EXTRA_DIST = CMakeLists.txt
25
for f in $(client_sources); do \
27
@LN_CP_F@ $(top_srcdir)/client/$$f $$f; \
29
for f in $(tests_sources); do \
31
@LN_CP_F@ $(top_srcdir)/tests/$$f $$f; \
33
echo timestamp > link_sources
35
DEFS = -DEMBEDDED_LIBRARY
36
INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include -I$(srcdir) \
37
-I$(top_srcdir) -I$(top_srcdir)/client -I$(top_srcdir)/regex \
39
LIBS = @LIBS@ @WRAPLIBS@ @CLIENT_LIBS@ $(yassl_libs)
40
LDADD = @CLIENT_EXTRA_LDFLAGS@ ../libmysqld.a @LIBDL@ $(CXXLDFLAGS) \
43
mysqltest_embedded_LINK = $(CXXLINK)
44
nodist_mysqltest_embedded_SOURCES = mysqltest.cc
45
mysqltest_embedded_LDADD = $(LDADD) $(top_builddir)/regex/libregex.a
47
nodist_mysql_SOURCES = mysql.cc readline.cc completion_hash.cc \
48
my_readline.h sql_string.h completion_hash.h
49
mysql_LDADD = @readline_link@ @TERMCAP_LIB@ $(LDADD)
51
mysql_client_test_embedded_LINK = $(CXXLINK)
52
nodist_mysql_client_test_embedded_SOURCES = mysql_client_test.c
54
# Don't update the files from bitkeeper