1
# Copyright (C) 2005-2006 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
16
#called from the top level Makefile
19
LIBMYSQLCLIENT_LA = $(top_builddir)/libmysql_r/libmysqlclient_r.la
21
LIBMYSQLCLIENT_LA = $(top_builddir)/libmysql/libmysqlclient.la
24
MYSQLDATAdir = $(localstatedir)
25
MYSQLSHAREdir = $(pkgdatadir)
26
MYSQLBASEdir= $(prefix)
27
MYSQLLIBdir= $(pkglibdir)
28
pkgplugindir = $(pkglibdir)/plugin
29
INCLUDES = -I$(top_srcdir)/include -I$(top_builddir)/include \
30
-I$(top_srcdir)/regex \
36
AM_CFLAGS = -DHAVE_MYSQL_CONFIG_H
40
noinst_HEADERS = ha_archive.h azio.h
41
noinst_PROGRAMS = archive_test archive_reader archive_performance concurrency_test
43
EXTRA_LTLIBRARIES = ha_archive.la
44
pkglib_LTLIBRARIES = @plugin_archive_shared_target@
45
ha_archive_la_LDFLAGS = -module -rpath $(pkgplugindir) $(LDADD)
46
ha_archive_la_CXXFLAGS= $(AM_CFLAGS) -DMYSQL_DYNAMIC_PLUGIN
47
ha_archive_la_CFLAGS = $(AM_CFLAGS) -DMYSQL_DYNAMIC_PLUGIN
48
ha_archive_la_SOURCES = ha_archive.cc azio.c
51
EXTRA_LIBRARIES = libarchive.a
52
noinst_LIBRARIES = @plugin_archive_static_target@
53
libarchive_a_CXXFLAGS = $(AM_CFLAGS)
54
libarchive_a_CFLAGS = $(AM_CFLAGS)
55
libarchive_a_SOURCES = ha_archive.cc azio.c
57
archive_performance_SOURCES = archive_performance.c azio.c
58
archive_performance_CFLAGS = $(AM_CFLAGS)
59
archive_performance_LDADD = $(top_builddir)/mysys/libmysys.a \
60
$(top_builddir)/dbug/libdbug.a \
61
$(top_builddir)/strings/libmystrings.a \
64
archive_performance_LDFLAGS = @NOINST_LDFLAGS@
66
archive_test_SOURCES = archive_test.c azio.c
67
archive_test_CFLAGS = $(AM_CFLAGS)
68
archive_test_LDADD = $(top_builddir)/mysys/libmysys.a \
69
$(top_builddir)/dbug/libdbug.a \
70
$(top_builddir)/strings/libmystrings.a \
73
archive_test_LDFLAGS = @NOINST_LDFLAGS@
75
archive_reader_SOURCES = archive_reader.c azio.c
76
archive_reader_CFLAGS = $(AM_CFLAGS)
77
archive_reader_LDADD = $(top_builddir)/mysys/libmysys.a \
78
$(top_builddir)/dbug/libdbug.a \
79
$(top_builddir)/strings/libmystrings.a \
82
archive_reader_LDFLAGS = @NOINST_LDFLAGS@
84
concurrency_test_SOURCES = concurrency_test.c azio.c
85
concurrency_test_CFLAGS = $(AM_CFLAGS)
86
concurrency_test_LDADD = $(top_builddir)/mysys/libmysys.a \
87
$(top_builddir)/dbug/libdbug.a \
88
$(top_builddir)/strings/libmystrings.a \
89
$(LIBMYSQLCLIENT_LA) \
92
concurrency_test_LDFLAGS = @NOINST_LDFLAGS@
94
valgrind-test: archive_test archive_performance
95
libtool --mode=execute valgrind --leak-check=yes --show-reachable=yes ./concurrency_test
96
libtool --mode=execute valgrind --leak-check=yes --show-reachable=yes ./archive_test
97
libtool --mode=execute valgrind --leak-check=yes --show-reachable=yes ./archive_performance
99
EXTRA_DIST = CMakeLists.txt plug.in
100
# Don't update the files from bitkeeper