Makefile.am 2.52 KB
Newer Older
unknown's avatar
unknown committed
1
# Copyright (C) 2000-2002, 2005-2006 MySQL AB
unknown's avatar
unknown committed
2 3 4
# 
# 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
unknown's avatar
unknown committed
5
# the Free Software Foundation; version 2 of the License.
unknown's avatar
unknown committed
6 7 8 9 10 11 12 13 14 15
# 
# 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
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

unknown's avatar
unknown committed
16 17 18 19 20 21 22 23 24 25 26 27 28
MYSQLDATAdir =          $(localstatedir)
MYSQLSHAREdir =         $(pkgdatadir)
MYSQLBASEdir=           $(prefix)
MYSQLLIBdir=            $(pkglibdir)
INCLUDES =              -I$(top_srcdir)/include -I$(top_builddir)/include \
			-I$(top_srcdir)/regex \
			-I$(top_srcdir)/sql \
                        -I$(srcdir)
WRAPLIBS=

LDADD =

DEFS =                  @DEFS@
unknown's avatar
unknown committed
29 30
pkglib_LIBRARIES =	libheap.a
noinst_PROGRAMS	=	hp_test1 hp_test2
unknown's avatar
unknown committed
31
noinst_LIBRARIES =	libheap.a
32
hp_test1_LDFLAGS = @NOINST_LDFLAGS@
unknown's avatar
unknown committed
33 34 35 36
hp_test1_LDADD =	libheap.a \
			$(top_builddir)/mysys/libmysys.a \
			$(top_builddir)/dbug/libdbug.a \
			$(top_builddir)/strings/libmystrings.a
37
hp_test2_LDFLAGS = @NOINST_LDFLAGS@
unknown's avatar
unknown committed
38 39 40 41 42
hp_test2_LDADD =	libheap.a \
			$(top_builddir)/mysys/libmysys.a \
			$(top_builddir)/dbug/libdbug.a \
			$(top_builddir)/strings/libmystrings.a
noinst_HEADERS =	heapdef.h ha_heap.h
unknown's avatar
unknown committed
43 44 45 46 47
libheap_a_SOURCES =	hp_open.c hp_extra.c hp_close.c hp_panic.c hp_info.c \
			hp_rrnd.c hp_scan.c hp_update.c hp_write.c hp_delete.c \
			hp_rsame.c hp_create.c hp_rename.c hp_rfirst.c \
			hp_rnext.c hp_rlast.c hp_rprev.c hp_clear.c \
			hp_rkey.c hp_block.c \
unknown's avatar
unknown committed
48
			ha_heap.cc \
unknown's avatar
unknown committed
49
			hp_hash.c _check.c _rectest.c hp_static.c
50 51


unknown's avatar
unknown committed
52
EXTRA_DIST =		CMakeLists.txt plug.in
unknown's avatar
unknown committed
53

54 55 56 57 58
if HAVE_DTRACE_DASH_G
libheap_a_LIBADD = probes_mysql.o
libheap_a_DEPENDENCIES = probes_mysql.o dtrace_files dtrace_providers
CLEANFILES = probes_mysql.o dtrace_files dtrace_providers
DTRACEFILES = ha_heap.o
59
DTRACEPROVIDER = probes_mysql.d
60
CLEANFILES += $(DTRACEPROVIDER) dtrace_sources
61 62 63

dtrace_files:
	echo $(DTRACEFILES) > $@
64
dtrace_providers: probes_mysql.d
65
	echo $(DTRACEPROVIDER) > $@
66
probes_mysql.d:
67
	-$(RM) -f probes_mysql.d
68
	$(CP) $(top_srcdir)/include/probes_mysql.d.base probes_mysql.d
69 70
	echo timestamp > dtrace_sources

71
probes_mysql.o: $(DTRACEPROVIDER) $(DTRACEFILES)
72
	$(DTRACE) $(DTRACEFLAGS) -G -s $(DTRACEPROVIDER) $(DTRACEFILES) -o $@
73
endif