mariadb/storage/tokudb/Makefile.am
Rich Prohaska c7b0b5f904 fix the tokudb engine build library path
git-svn-id: file:///svn/mysql/tokudb-engine/src@2676 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:39 -04:00

41 lines
1.2 KiB
Makefile

# Used to build Makefile.in
EXTRA_DIST = ha_tokudb.h CMakeFiles.txt plug.in tokudb_probes.d
# this is for regular mysql builds
# INCLUDES = $(MYSQL_INC) $(TOKUDB_INC)
# this is for debug mysql builds
INCLUDES = -DDBUG_ON -DSAFE_MUTEX -DEXTRA_DEBUG -DSAFEMALLOC -DPEDANTIC_SAFEMALLOC -DSAFE_MUTEX $(MYSQL_INC) $(TOKUDB_INC)
LIBS= -ltokudb
DTRACE = @DTRACE@
DTRACEFLAGS = @DTRACEFLAGS@
DTRACEFILES = .libs/libtokudb_engine_la-ha_tokudb.o
noinst_HEADERS = ha_tokudb.h \
tokudb_probes.h
lib_LTLIBRARIES = libtokudb_engine.la
libtokudb_engine_la_SOURCES = ha_tokudb.cc
libtokudb_engine_la_LIBADD =
if HAVE_DTRACE
libtokudb_engine_la_LIBADD += tokudb_probes.o
endif
libtokudb_engine_la_LDFLAGS = -module $(TOKUDB_LIB)
libtokudb_engine_la_CFLAGS = $(AM_CFLAGS) -DMYSQL_DYNAMIC_PLUGIN
libtokudb_engine_la_CXXFLAGS = $(AM_CFLAGS) -DMYSQL_DYNAMIC_PLUGIN
tokudb_probes.h: tokudb_probes.d
$(DTRACE) $(DTRACEFLAGS) -h -s tokudb_probes.d
mv tokudb_probes.h tokudb_probes.h.bak
sed "s/#include <unistd.h>//g" tokudb_probes.h.bak > tokudb_probes.h
rm tokudb_probes.h.bak
tokudb_probes.o:
$(DTRACE) $(DTRACEFLAGS) -G -s tokudb_probes.d $(DTRACEFILES)
# End