Makefile.am 2.07 KB
Newer Older
unknown's avatar
unknown committed
1
# Copyright (C) 2000-2006 MySQL AB
unknown's avatar
unknown committed
2 3 4
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Library General Public
unknown's avatar
unknown committed
5 6
# License as published by the Free Software Foundation; version 2
# of the License.
unknown's avatar
unknown committed
7 8 9 10 11 12 13 14 15 16 17 18 19
#
# This library 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
# Library General Public License for more details.
#
# You should have received a copy of the GNU Library General Public
# License along with this library; if not, write to the Free
# Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
# MA 02111-1307, USA

## Process this file with automake to create Makefile.in

unknown's avatar
unknown committed
20 21 22 23 24 25 26

if THREAD_SAFE_CLIENT
LIBMYSQLCLIENT_LA =		$(top_builddir)/libmysql_r/libmysqlclient_r.la
else
LIBMYSQLCLIENT_LA =		$(top_builddir)/libmysql/libmysqlclient.la
endif

unknown's avatar
unknown committed
27 28 29
EXTRA_DIST =		auto_increment.res auto_increment.tst \
			function.res function.tst lock_test.pl lock_test.res \
			export.pl big_record.pl \
unknown's avatar
unknown committed
30
			fork2_test.pl fork_big.pl \
unknown's avatar
unknown committed
31 32 33
			insert_and_repair.pl \
			grant.pl grant.res test_delayed_insert.pl \
			pmail.pl mail_to_db.pl table_types.pl \
34
			myisam-big-rows.tst \
35
			CMakeLists.txt
unknown's avatar
unknown committed
36

37
bin_PROGRAMS =		mysql_client_test
unknown's avatar
unknown committed
38
noinst_PROGRAMS =	insert_test select_test thread_test bug25714
unknown's avatar
unknown committed
39

unknown's avatar
unknown committed
40 41
INCLUDES =		-I$(top_builddir)/include -I$(top_srcdir)/include \
			$(openssl_includes)
unknown's avatar
unknown committed
42
LIBS =			@CLIENT_LIBS@
43
LDADD =			@CLIENT_EXTRA_LDFLAGS@ \
unknown's avatar
unknown committed
44
                        $(LIBMYSQLCLIENT_LA)
45

unknown's avatar
unknown committed
46
mysql_client_test_LDADD= $(LDADD) $(CXXLDFLAGS)
47
mysql_client_test_SOURCES= mysql_client_test.c\
48 49
			$(top_srcdir)/mysys/my_memmem.c

50 51
insert_test_SOURCES=       insert_test.c
select_test_SOURCES=       select_test.c
unknown's avatar
unknown committed
52 53 54
insert_test_DEPENDENCIES=	$(LIBRARIES) $(pkglib_LTLIBRARIES)
select_test_DEPENDENCIES=	$(LIBRARIES) $(pkglib_LTLIBRARIES)

unknown's avatar
unknown committed
55 56 57
bug25714_SOURCES=          bug25714.c
bug25714_DEPENDENCIES=     $(LIBRARIES) $(pkglib_LTLIBRARIES)

unknown's avatar
unknown committed
58
# Fix for mit-threads
59
DEFS =			-DMYSQL_CLIENT_NO_THREADS
unknown's avatar
unknown committed
60

unknown's avatar
unknown committed
61
thread_test.o:		thread_test.c
62
			$(COMPILE) -c $(INCLUDES) $<