~drizzle-trunk/drizzle/development

1 by brian
clean slate
1
# Copyright (C) 2005-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., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
15
264.1.4 by Monty Taylor
Added LIBINTL to libs needed.
16
LDADD = $(LIBINTL)
1 by brian
clean slate
17
18
noinst_HEADERS =	ha_archive.h azio.h
19
noinst_PROGRAMS	=	archive_test archive_reader archive_performance concurrency_test
20
21
EXTRA_LTLIBRARIES =	ha_archive.la
22
pkglib_LTLIBRARIES =	@plugin_archive_shared_target@
635.1.9 by Elan Ruusamäe
- no need to version dlopened plugins (add -avoid-version in am)
23
ha_archive_la_LDFLAGS =	-module -avoid-version -rpath $(pkgplugindir) $(LDADD)
319.1.1 by Grant Limberg
renamed all instances of MYSQL_ to DRIZZLE_
24
ha_archive_la_CXXFLAGS=	$(AM_CXXFLAGS) -DDRIZZLE_DYNAMIC_PLUGIN
25
ha_archive_la_CFLAGS =	$(AM_CFLAGS) -DDRIZZLE_DYNAMIC_PLUGIN 
598.1.1 by Super-User
Fixed solaris build crap.
26
ha_archive_la_SOURCES =	ha_archive.cc azio.cc
1 by brian
clean slate
27
28
29
EXTRA_LIBRARIES =	libarchive.a
30
noinst_LIBRARIES =	@plugin_archive_static_target@
287.3.35 by Monty Taylor
Fixed build in archive.
31
libarchive_a_CXXFLAGS =	$(AM_CXXFLAGS) 
1 by brian
clean slate
32
libarchive_a_CFLAGS =	$(AM_CFLAGS) 
598.1.1 by Super-User
Fixed solaris build crap.
33
libarchive_a_SOURCES =	ha_archive.cc azio.cc
1 by brian
clean slate
34
598.1.1 by Super-User
Fixed solaris build crap.
35
archive_performance_SOURCES =	archive_performance.c azio.cc
1 by brian
clean slate
36
archive_performance_CFLAGS =	$(AM_CFLAGS) 
264.1.3 by Monty Taylor
Removed libmysyslt.la, made mysys a noinst_ and made everything use it. It's
37
archive_performance_LDADD =	$(top_builddir)/mysys/libmysys.la \
266.4.3 by Monty Taylor
Removed mystringslt conv lib and replaced it with a noinst lib.
38
			$(top_builddir)/mystrings/libmystrings.la \
1 by brian
clean slate
39
			$(LDADD) \
40
			-lz
25 by Brian Aker
Clean up of configure.in
41
archive_performance_LDFLAGS =
1 by brian
clean slate
42
602 by Brian Aker
Merge in Monty's work for Solaris Sun Studio
43
archive_test_SOURCES =	archive_test.c azio.cc
1 by brian
clean slate
44
archive_test_CFLAGS =	$(AM_CFLAGS) 
264.1.3 by Monty Taylor
Removed libmysyslt.la, made mysys a noinst_ and made everything use it. It's
45
archive_test_LDADD =	$(top_builddir)/mysys/libmysys.la \
266.4.3 by Monty Taylor
Removed mystringslt conv lib and replaced it with a noinst lib.
46
			$(top_builddir)/mystrings/libmystrings.la \
1 by brian
clean slate
47
			$(LDADD) \
48
			-lz
25 by Brian Aker
Clean up of configure.in
49
archive_test_LDFLAGS =
1 by brian
clean slate
50
598.1.1 by Super-User
Fixed solaris build crap.
51
archive_reader_SOURCES = archive_reader.c azio.cc
1 by brian
clean slate
52
archive_reader_CFLAGS =	$(AM_CFLAGS) 
264.1.3 by Monty Taylor
Removed libmysyslt.la, made mysys a noinst_ and made everything use it. It's
53
archive_reader_LDADD =	$(top_builddir)/mysys/libmysys.la \
266.4.3 by Monty Taylor
Removed mystringslt conv lib and replaced it with a noinst lib.
54
			$(top_builddir)/mystrings/libmystrings.la \
1 by brian
clean slate
55
			$(LDADD) \
56
			-lz
25 by Brian Aker
Clean up of configure.in
57
archive_reader_LDFLAGS =
1 by brian
clean slate
58
598.1.1 by Super-User
Fixed solaris build crap.
59
concurrency_test_SOURCES = concurrency_test.c azio.cc
1 by brian
clean slate
60
concurrency_test_CFLAGS =	$(AM_CFLAGS) 
264.1.3 by Monty Taylor
Removed libmysyslt.la, made mysys a noinst_ and made everything use it. It's
61
concurrency_test_LDADD =	$(top_builddir)/mysys/libmysys.la \
266.4.3 by Monty Taylor
Removed mystringslt conv lib and replaced it with a noinst lib.
62
			$(top_builddir)/mystrings/libmystrings.la \
77.1.38 by Monty Taylor
Renamed more stuff to drizzle.
63
			$(top_builddir)/libdrizzle/libdrizzle.la \
1 by brian
clean slate
64
			$(LDADD) \
65
			-lz
25 by Brian Aker
Clean up of configure.in
66
concurrency_test_LDFLAGS =
1 by brian
clean slate
67
68
valgrind-test: archive_test archive_performance
69
	libtool --mode=execute valgrind --leak-check=yes --show-reachable=yes  ./concurrency_test
70
	libtool --mode=execute valgrind --leak-check=yes --show-reachable=yes  ./archive_test
71
	libtool --mode=execute valgrind --leak-check=yes --show-reachable=yes  ./archive_performance
72
28.1.25 by Monty Taylor
Removed CMake file references.
73
EXTRA_DIST =		plug.in