1 # Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
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
18 MYSQLDATAdir = $(localstatedir)
19 MYSQLSHAREdir = $(pkgdatadir)
20 MYSQLBASEdir= $(prefix)
21 MYSQLLIBdir= $(pkglibdir)
22 pkgplugindir = $(pkglibdir)/plugin
23 INCLUDES = -I$(top_srcdir)/include -I$(top_builddir)/include \
24 -I$(top_srcdir)/regex \
26 -I$(srcdir) @ZLIB_INCLUDES@
33 noinst_HEADERS = ha_archive.h azlib.h
34 noinst_PROGRAMS = archive_test archive_reader
36 EXTRA_LTLIBRARIES = ha_archive.la
37 pkgplugin_LTLIBRARIES = @plugin_archive_shared_target@
38 ha_archive_la_LDFLAGS = -module -rpath $(pkgplugindir)
39 ha_archive_la_CXXFLAGS= $(AM_CXXFLAGS) -DMYSQL_DYNAMIC_PLUGIN
40 ha_archive_la_CFLAGS = $(AM_CFLAGS) -DMYSQL_DYNAMIC_PLUGIN
41 ha_archive_la_SOURCES = ha_archive.cc azio.c
44 EXTRA_LIBRARIES = libarchive.a
45 noinst_LIBRARIES = @plugin_archive_static_target@
46 libarchive_a_CXXFLAGS = $(AM_CXXFLAGS)
47 libarchive_a_CFLAGS = $(AM_CFLAGS)
48 libarchive_a_SOURCES = ha_archive.cc azio.c
51 archive_test_SOURCES = archive_test.c azio.c
52 archive_test_CFLAGS = $(AM_CFLAGS)
53 archive_test_LDADD = $(top_builddir)/mysys/libmysys.a \
54 $(top_builddir)/dbug/libdbug.a \
55 $(top_builddir)/strings/libmystrings.a \
57 archive_test_LDFLAGS = @NOINST_LDFLAGS@
59 archive_reader_SOURCES = archive_reader.c azio.c
60 archive_reader_CFLAGS = $(AM_CFLAGS)
61 archive_reader_LDADD = $(top_builddir)/mysys/libmysys.a \
62 $(top_builddir)/dbug/libdbug.a \
63 $(top_builddir)/strings/libmystrings.a \
65 archive_reader_LDFLAGS = @NOINST_LDFLAGS@
68 EXTRA_DIST = CMakeLists.txt plug.in
69 # Don't update the files from bitkeeper