2006-12-31 02:29:11 +01:00
|
|
|
# Copyright (C) 2005-2006 MySQL AB
|
2005-12-21 10:18:40 -08:00
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
2006-12-27 02:23:51 +01:00
|
|
|
# the Free Software Foundation; version 2 of the License.
|
2005-12-21 10:18:40 -08:00
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program; if not, write to the Free Software
|
2006-12-31 02:29:11 +01:00
|
|
|
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
2005-12-21 10:18:40 -08:00
|
|
|
|
|
|
|
#called from the top level Makefile
|
|
|
|
|
|
|
|
MYSQLDATAdir = $(localstatedir)
|
|
|
|
MYSQLSHAREdir = $(pkgdatadir)
|
|
|
|
MYSQLBASEdir= $(prefix)
|
|
|
|
MYSQLLIBdir= $(pkglibdir)
|
2006-02-22 20:34:25 +01:00
|
|
|
INCLUDES = -I$(top_builddir)/include \
|
|
|
|
-I$(top_srcdir)/include \
|
2005-12-21 10:18:40 -08:00
|
|
|
-I$(top_srcdir)/regex \
|
|
|
|
-I$(top_srcdir)/sql \
|
|
|
|
-I$(srcdir)
|
|
|
|
LDADD =
|
|
|
|
|
2006-01-20 00:40:56 +03:00
|
|
|
DEFS = @DEFS@
|
2007-01-03 17:26:45 -08:00
|
|
|
noinst_HEADERS = ha_tina.h transparent_file.h
|
2006-04-13 13:49:29 -07:00
|
|
|
|
|
|
|
EXTRA_LTLIBRARIES = ha_csv.la
|
|
|
|
pkglib_LTLIBRARIES = @plugin_csv_shared_target@
|
|
|
|
ha_csv_la_LDFLAGS = -module -rpath $(MYSQLLIBdir)
|
|
|
|
ha_csv_la_CXXFLAGS = $(AM_CFLAGS) -DMYSQL_PLUGIN
|
2007-01-03 17:26:45 -08:00
|
|
|
ha_csv_la_SOURCES = transparent_file.cc ha_tina.cc
|
2006-01-20 00:40:56 +03:00
|
|
|
|
2006-04-13 13:49:29 -07:00
|
|
|
EXTRA_LIBRARIES = libcsv.a
|
|
|
|
noinst_LIBRARIES = @plugin_csv_static_target@
|
2006-01-20 00:40:56 +03:00
|
|
|
libcsv_a_CXXFLAGS = $(AM_CFLAGS)
|
2007-01-03 17:26:45 -08:00
|
|
|
libcsv_a_SOURCES = transparent_file.cc ha_tina.cc
|
2005-12-21 10:18:40 -08:00
|
|
|
|
2006-09-18 19:31:08 -07:00
|
|
|
EXTRA_DIST = CMakeLists.txt plug.in
|
2008-12-20 11:01:41 +01:00
|
|
|
|
|
|
|
if HAVE_DTRACE_DASH_G
|
|
|
|
libcsv_a_LIBADD = probes_mysql.o
|
|
|
|
libcsv_a_DEPENDENCIES = probes_mysql.o dtrace_files dtrace_providers
|
|
|
|
CLEANFILES = probes_mysql.o dtrace_files dtrace_providers
|
|
|
|
DTRACEFILES = libcsv_a-ha_tina.o
|
2009-02-20 23:11:09 +01:00
|
|
|
DTRACEPROVIDER = probes_mysql.d
|
2008-12-20 11:01:41 +01:00
|
|
|
|
|
|
|
dtrace_files:
|
|
|
|
echo $(DTRACEFILES) > $@
|
2009-02-21 21:32:46 +01:00
|
|
|
dtrace_providers: probes_mysql.d
|
2008-12-20 11:01:41 +01:00
|
|
|
echo $(DTRACEPROVIDER) > $@
|
2009-02-21 21:32:46 +01:00
|
|
|
probes_mysql.d:
|
|
|
|
-$(RM) -f probes_mysql.d
|
2009-03-18 10:04:15 +00:00
|
|
|
$(CP) $(top_srcdir)/include/probes_mysql.d.base probes_mysql.d
|
2009-02-21 21:32:46 +01:00
|
|
|
echo timestamp > dtrace_sources
|
|
|
|
|
|
|
|
probes_mysql.o: $(DTRACEPROVIDER) $(DTRACEFILES)
|
2009-02-20 00:56:25 +01:00
|
|
|
$(DTRACE) $(DTRACEFLAGS) -G -s $(DTRACEPROVIDER) $(DTRACEFILES) -o $@
|
2008-12-20 11:01:41 +01:00
|
|
|
endif
|
|
|
|
|
2005-12-21 10:18:40 -08:00
|
|
|
# Don't update the files from bitkeeper
|
|
|
|
%::SCCS/s.%
|