2006-12-31 02:29:11 +01:00
|
|
|
# Copyright (C) 2006 MySQL AB
|
|
|
|
#
|
2006-04-13 13:49:29 -07: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.
|
2006-12-31 02:29:11 +01:00
|
|
|
#
|
2006-04-13 13:49:29 -07: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.
|
2006-12-31 02:29:11 +01:00
|
|
|
#
|
2006-04-13 13:49:29 -07:00
|
|
|
# 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
|
2006-04-13 13:49:29 -07:00
|
|
|
|
|
|
|
#called from the top level Makefile
|
|
|
|
|
|
|
|
MYSQLDATAdir = $(localstatedir)
|
|
|
|
MYSQLSHAREdir = $(pkgdatadir)
|
|
|
|
MYSQLBASEdir= $(prefix)
|
|
|
|
MYSQLLIBdir= $(pkglibdir)
|
2008-01-02 13:00:46 +00:00
|
|
|
pkgplugindir = $(pkglibdir)/plugin
|
2006-04-29 09:33:34 -07:00
|
|
|
INCLUDES = -I$(top_srcdir)/include -I$(top_builddir)/include \
|
2006-04-13 13:49:29 -07:00
|
|
|
-I$(top_srcdir)/regex \
|
|
|
|
-I$(top_srcdir)/sql \
|
|
|
|
-I$(srcdir)
|
|
|
|
WRAPLIBS=
|
|
|
|
|
|
|
|
LDADD =
|
|
|
|
|
|
|
|
DEFS = @DEFS@
|
|
|
|
|
|
|
|
noinst_HEADERS = ha_blackhole.h
|
|
|
|
|
|
|
|
EXTRA_LTLIBRARIES = ha_blackhole.la
|
2007-12-19 13:24:43 +00:00
|
|
|
pkgplugin_LTLIBRARIES = @plugin_blackhole_shared_target@
|
|
|
|
ha_blackhole_la_LDFLAGS=-module -rpath $(pkgplugindir)
|
2006-04-13 13:49:29 -07:00
|
|
|
ha_blackhole_la_CXXFLAGS=$(AM_CFLAGS) -DMYSQL_DYNAMIC_PLUGIN
|
|
|
|
ha_blackhole_la_CFLAGS= $(AM_CFLAGS) -DMYSQL_DYNAMIC_PLUGIN
|
|
|
|
ha_blackhole_la_SOURCES=ha_blackhole.cc
|
|
|
|
|
|
|
|
|
|
|
|
EXTRA_LIBRARIES = libblackhole.a
|
|
|
|
noinst_LIBRARIES = @plugin_blackhole_static_target@
|
|
|
|
libblackhole_a_CXXFLAGS=$(AM_CFLAGS)
|
|
|
|
libblackhole_a_CFLAGS = $(AM_CFLAGS)
|
|
|
|
libblackhole_a_SOURCES= ha_blackhole.cc
|
|
|
|
|
|
|
|
|
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
|
|
|
|
libblackhole_a_LIBADD = probes_mysql.o
|
|
|
|
libblackhole_a_DEPENDENCIES = probes_mysql.o dtrace_files dtrace_providers
|
|
|
|
CLEANFILES = probes_mysql.o dtrace_files dtrace_providers
|
|
|
|
DTRACEFILES = libblackhole_a-ha_blackhole.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:
|
2009-02-20 23:11:09 +01:00
|
|
|
-$(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-20 23:11:09 +01:00
|
|
|
echo timestamp > dtrace_sources
|
|
|
|
|
2009-02-21 21:32:46 +01:00
|
|
|
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
|
|
|
|
|
2006-04-13 13:49:29 -07:00
|
|
|
# Don't update the files from bitkeeper
|
|
|
|
%::SCCS/s.%
|