summaryrefslogtreecommitdiff
path: root/storage/federatedx/Makefile.am
blob: 1e76ac152660ca2fa6cc9ec5e4ac06ba16574ca9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# Used to build Makefile.in

MYSQLDATAdir =          $(localstatedir)
MYSQLSHAREdir =         $(pkgdatadir)
MYSQLBASEdir=           $(prefix)
MYSQLLIBdir=            $(pkglibdir)
pkgplugindir =		$(pkglibdir)/plugin
INCLUDES =              -I$(top_srcdir)/include -I$(top_builddir)/include \
			-I$(top_srcdir)/regex \
			-I$(top_srcdir)/sql \
                        -I$(srcdir)
WRAPLIBS=

LDADD =

DEFS =                  @DEFS@

noinst_HEADERS =	ha_federatedx.h federatedx_probes.h

EXTRA_LTLIBRARIES =	ha_federatedx.la
pkgplugin_LTLIBRARIES =	@plugin_federatedx_shared_target@
ha_federatedx_la_LDFLAGS =	-module -rpath $(pkgplugindir)
ha_federatedx_la_CXXFLAGS=	-shared $(AM_CXXFLAGS) -DMYSQL_DYNAMIC_PLUGIN
ha_federatedx_la_CFLAGS =	-shared $(AM_CFLAGS) -DMYSQL_DYNAMIC_PLUGIN


EXTRA_LIBRARIES =	libfederatedx.a
noinst_LIBRARIES =	@plugin_federatedx_static_target@
libfederatedx_a_CXXFLAGS =	$(AM_CXXFLAGS)
libfederatedx_a_SOURCES=	ha_federatedx.cc federatedx_txn.cc \
			        federatedx_io.cc federatedx_io_null.cc \
			        federatedx_io_mysql.cc

EXTRA_DIST =		CMakeLists.txt plug.in ha_federatedx.h \
			federatedx_probes.h

ha_federatedx_la_SOURCES = ha_federatedx.cc federatedx_txn.cc \
			   federatedx_io.cc federatedx_io_null.cc \
			   federatedx_io_mysql.cc $(top_srcdir)/mysys/string.c
ha_federatedx_la_LIBADD =

#DTRACE =                @DTRACE@
#DTRACEFLAGS =           @DTRACEFLAGS@
#DTRACEFILES =           .libs/libfederatedx_engine_la-ha_federatedx.o

# #if HAVE_DTRACE
# #  libfederatedx_engine_la_LIBADD += federatedx_probes.o
# #endif

# federatedx_probes.h: federatedx_probes.d
#	$(DTRACE) $(DTRACEFLAGS) -h -s federatedx_probes.d
#	mv federatedx_probes.h federatedx_probes.h.bak
#	sed "s/#include <unistd.h>//g" federatedx_probes.h.bak > federatedx_probes.h
#	rm federatedx_probes.h.bak

#federatedx_probes.o:
#	$(DTRACE) $(DTRACEFLAGS) -G -s federatedx_probes.d $(DTRACEFILES)

# End

# Don't update the files from bitkeeper
%::SCCS/s.%