13
13
# along with this program; if not, write to the Free Software
14
14
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
16
LDADD = $(LIBINTL) $(LTLIBZ)
18
noinst_HEADERS = ha_archive.h azio.h
19
noinst_PROGRAMS = archive_test archive_reader archive_performance concurrency_test
21
EXTRA_LTLIBRARIES = ha_archive.la
22
pkglib_LTLIBRARIES = @plugin_archive_shared_target@
23
ha_archive_la_LDFLAGS = -module -avoid-version -rpath $(pkgplugindir) $(LDADD)
24
ha_archive_la_CXXFLAGS= $(AM_CXXFLAGS) -DDRIZZLE_DYNAMIC_PLUGIN
25
ha_archive_la_CFLAGS = $(AM_CFLAGS) -DDRIZZLE_DYNAMIC_PLUGIN
26
ha_archive_la_SOURCES = ha_archive.cc azio.cc
29
EXTRA_LIBRARIES = libarchive.a
30
noinst_LIBRARIES = @plugin_archive_static_target@
31
libarchive_a_CXXFLAGS = $(AM_CXXFLAGS)
32
libarchive_a_CFLAGS = $(AM_CFLAGS)
33
libarchive_a_SOURCES = ha_archive.cc azio.cc
35
archive_performance_SOURCES = archive_performance.cc azio.cc
36
archive_performance_CFLAGS = $(AM_CFLAGS)
37
archive_performance_LDADD = $(top_builddir)/mysys/libmysys.la \
38
$(top_builddir)/mystrings/libmystrings.la \
40
archive_performance_LDFLAGS =
42
archive_test_SOURCES = archive_test.cc azio.cc
43
archive_test_CFLAGS = $(AM_CFLAGS)
44
archive_test_LDADD = $(top_builddir)/mysys/libmysys.la \
45
$(top_builddir)/mystrings/libmystrings.la \
47
archive_test_LDFLAGS =
49
archive_reader_SOURCES = archive_reader.cc azio.cc
50
archive_reader_CFLAGS = $(AM_CFLAGS)
51
archive_reader_LDADD = $(top_builddir)/mysys/libmysys.la \
52
$(top_builddir)/mystrings/libmystrings.la \
54
archive_reader_LDFLAGS =
56
concurrency_test_SOURCES = concurrency_test.cc azio.cc
57
concurrency_test_CFLAGS = $(AM_CFLAGS)
58
concurrency_test_LDADD = $(top_builddir)/mysys/libmysys.la \
59
$(top_builddir)/mystrings/libmystrings.la \
61
concurrency_test_LDFLAGS =
63
valgrind-test: archive_test archive_performance
64
libtool --mode=execute valgrind --leak-check=yes --show-reachable=yes ./concurrency_test
65
libtool --mode=execute valgrind --leak-check=yes --show-reachable=yes ./archive_test
16
test_archive_LDADD = $(LIBINTL) $(LTLIBZ) \
17
$(top_builddir)/plugin/libarchive_plugin.la \
18
$(top_builddir)/mysys/libmysys.la \
19
$(top_builddir)/mystrings/libmystrings.la \
22
noinst_HEADERS+= plugin/archive/ha_archive.h plugin/archive/azio.h
24
plugin/archive/archive_test \
25
plugin/archive/archive_reader \
26
plugin/archive/archive_performance \
27
plugin/archive/concurrency_test
29
plugin_archive_archive_performance_SOURCES= plugin/archive/archive_performance.cc
30
plugin_archive_archive_performance_LDADD= $(test_archive_LDADD)
32
plugin_archive_archive_test_SOURCES= plugin/archive/archive_test.cc
33
plugin_archive_archive_test_LDADD= $(test_archive_LDADD)
35
plugin_archive_archive_reader_SOURCES= plugin/archive/archive_reader.cc
36
plugin_archive_archive_reader_LDADD= $(test_archive_LDADD)
38
plugin_archive_concurrency_test_SOURCES= plugin/archive/concurrency_test.cc
39
plugin_archive_concurrency_test_LDADD= $(test_archive_LDADD)
41
valgrind-test: plugin/archive/archive_test plugin/archive/archive_performance plugin/archive/concurrency_test
42
libtool --mode=execute valgrind --leak-check=yes --show-reachable=yes ./plugin/archive/concurrency_test
43
libtool --mode=execute valgrind --leak-check=yes --show-reachable=yes ./plugin/archive/archive_test
66
44
libtool --mode=execute valgrind --leak-check=yes --show-reachable=yes ./archive_performance