16
16
#called from the top level Makefile
18
MYSQLDATAdir = $(localstatedir)
20
MYSQLSHAREdir = $(pkgdatadir)
22
MYSQLBASEdir= $(prefix)
24
MYSQLLIBdir= $(pkglibdir)
26
pkgplugindir = $(pkglibdir)/plugin
28
AM_CPPFLAGS = -I$(top_builddir)/include \
29
-I$(top_srcdir)/include \
30
-I$(srcdir) $(openssl_includes) \
31
$(libevent_includes) \
36
libexec_PROGRAMS = drizzled
38
EXTRA_PROGRAMS = gen_lex_hash
42
bin_SCRIPTS = drizzledumpslow \
47
DTRACEFLAGS = @DTRACEFLAGS@
49
DTRACEFILES = handler.o \
56
noinst_LTLIBRARIES = libhandler.la
58
SUPPORTING_LIBS = $(top_builddir)/vio/libviolt.la \
59
$(top_builddir)/libdrizzle/libsqlcommon.la \
60
$(top_builddir)/mysys/libmysyslt.la \
61
$(top_builddir)/strings/libmystringslt.la
63
LDADD = $(SUPPORTING_LIBS) -lz -levent
65
drizzled_LDADD = libhandler.la \
66
$(top_builddir)/libdrizzle/libdrizzle.la \
73
noinst_HEADERS = item.h \
128
drizzled_SOURCES = sql_lex.cc \
208
libhandler_la_SOURCES = handler.cc
18
MYSQLDATAdir =$(localstatedir)
20
MYSQLSHAREdir =$(pkgdatadir)
22
MYSQLBASEdir=$(prefix)
24
MYSQLLIBdir= $(pkglibdir)
26
pkgplugindir =$(pkglibdir)/plugin
28
AM_CPPFLAGS =-I$(top_builddir)/include \
29
-I$(top_srcdir)/include \
30
-I$(srcdir) $(openssl_includes) \
31
$(libevent_includes) \
36
libexec_PROGRAMS =drizzled
38
EXTRA_PROGRAMS =gen_lex_hash
42
bin_SCRIPTS = drizzledumpslow \
47
DTRACEFLAGS = @DTRACEFLAGS@
49
DTRACEFILES = handler.o \
56
noinst_LTLIBRARIES = libhandler.la
58
SUPPORTING_LIBS = $(top_builddir)/vio/libviolt.la \
59
$(top_builddir)/libdrizzle/libsqlcommon.la \
60
$(top_builddir)/mysys/libmysyslt.la \
61
$(top_builddir)/strings/libmystringslt.la
63
LDADD = $(SUPPORTING_LIBS) -lz -levent
65
drizzled_LDADD = libhandler.la \
66
$(top_builddir)/libdrizzle/libdrizzle.la \
73
noinst_HEADERS = item.h \
128
drizzled_SOURCES = sql_lex.cc \
208
libhandler_la_SOURCES = handler.cc
211
drizzled_SOURCES += probes.d
211
drizzled_SOURCES += probes.d
214
gen_lex_hash_SOURCES = gen_lex_hash.cc
216
gen_lex_hash_LDFLAGS =
218
DEFS = -DMYSQL_SERVER \
219
-DDEFAULT_MYSQL_HOME="\"$(MYSQLBASEdir)\"" \
220
-DDATADIR="\"$(MYSQLDATAdir)\"" \
221
-DSHAREDIR="\"$(MYSQLSHAREdir)\"" \
222
-DPLUGINDIR="\"$(pkgplugindir)\"" \
225
BUILT_MAINT_SRC = sql_yacc.cc \
228
BUILT_SOURCES = $(BUILT_MAINT_SRC) \
231
EXTRA_DIST = $(BUILT_MAINT_SRC) \
235
CLEANFILES = lex_hash.h \
237
$(nodist_drizzled_SOURCES)
239
DISTCLEANFILES = $(EXTRA_PROGRAMS) \
242
MAINTAINERCLEANFILES = $(BUILT_MAINT_SRC)
244
AM_YFLAGS = -d --verbose
214
gen_lex_hash_SOURCES =gen_lex_hash.cc
216
gen_lex_hash_LDFLAGS =
218
DEFS =-DMYSQL_SERVER \
219
-DDEFAULT_MYSQL_HOME="\"$(MYSQLBASEdir)\"" \
220
-DDATADIR="\"$(MYSQLDATAdir)\"" \
221
-DSHAREDIR="\"$(MYSQLSHAREdir)\"" \
222
-DPLUGINDIR="\"$(pkgplugindir)\"" \
225
BUILT_MAINT_SRC = sql_yacc.cc \
228
BUILT_SOURCES = $(BUILT_MAINT_SRC) \
231
EXTRA_DIST = $(BUILT_MAINT_SRC) \
235
CLEANFILES = lex_hash.h \
237
$(nodist_drizzled_SOURCES)
239
DISTCLEANFILES = $(EXTRA_PROGRAMS) \
242
MAINTAINERCLEANFILES = $(BUILT_MAINT_SRC)
244
AM_YFLAGS = -d --verbose
246
246
# This generates lex_hash.h
247
247
# NOTE Built sources should depend on their sources not the tool
248
248
# this avoid the rebuild of the built files in a source dist
249
lex_hash.h: gen_lex_hash$(EXEEXT) \
251
$(top_builddir)/server/gen_lex_hash$(EXEEXT) > $@
254
$(DTRACE) $(DTRACEFLAGS) -h -s probes.d
255
mv probes.h probes.h.bak
256
sed "s/#include <unistd.h>//g" probes.h.bak > probes.h
261
.d.o : $(DTRACEFILES)
262
$(DTRACE) $(DTRACEFLAGS) -G -s $< $(DTRACEFILES)
249
lex_hash.h: gen_lex_hash$(EXEEXT) \
251
$(top_builddir)/server/gen_lex_hash$(EXEEXT) > $@
254
$(DTRACE) $(DTRACEFLAGS) -h -s probes.d
255
mv probes.h probes.h.bak
256
sed "s/#include <unistd.h>//g" probes.h.bak > probes.h
261
.d.o : $(DTRACEFILES)
262
$(DTRACE) $(DTRACEFLAGS) -G -s $< $(DTRACEFILES)