~stewart/drizzle/embedded-innodb-create-select-transaction-arrgh

« back to all changes in this revision

Viewing changes to storage/archive/Makefile.am

  • Committer: brian
  • Date: 2008-06-25 05:29:13 UTC
  • Revision ID: brian@localhost.localdomain-20080625052913-6upwo0jsrl4lnapl
clean slate

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 
 
16
#called from the top level Makefile
 
17
 
 
18
if THREAD_SAFE_CLIENT
 
19
LIBMYSQLCLIENT_LA =             $(top_builddir)/libmysql_r/libmysqlclient_r.la
 
20
else
 
21
LIBMYSQLCLIENT_LA =             $(top_builddir)/libmysql/libmysqlclient.la
 
22
endif
 
23
 
 
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 \
 
31
                        -I$(top_srcdir)/sql \
 
32
                        -I$(srcdir)
 
33
WRAPLIBS=
 
34
 
 
35
LDADD =
 
36
AM_CFLAGS = -DHAVE_MYSQL_CONFIG_H
 
37
 
 
38
DEFS =                  @DEFS@
 
39
 
 
40
noinst_HEADERS =        ha_archive.h azio.h
 
41
noinst_PROGRAMS =       archive_test archive_reader archive_performance concurrency_test
 
42
 
 
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
 
49
 
 
50
 
 
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
 
56
 
 
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 \
 
62
                        $(LDADD) \
 
63
                        -lz
 
64
archive_performance_LDFLAGS = @NOINST_LDFLAGS@
 
65
 
 
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 \
 
71
                        $(LDADD) \
 
72
                        -lz
 
73
archive_test_LDFLAGS = @NOINST_LDFLAGS@
 
74
 
 
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 \
 
80
                        $(LDADD) \
 
81
                        -lz
 
82
archive_reader_LDFLAGS = @NOINST_LDFLAGS@
 
83
 
 
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) \
 
90
                        $(LDADD) \
 
91
                        -lz
 
92
concurrency_test_LDFLAGS = @NOINST_LDFLAGS@
 
93
 
 
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
 
98
 
 
99
EXTRA_DIST =            CMakeLists.txt plug.in
 
100
# Don't update the files from bitkeeper
 
101
%::SCCS/s.%