1
by brian
clean slate |
1 |
# Copyright (C) 2000-2006 MySQL AB
|
2 |
#
|
|
3 |
# This program is free software; you can redistribute it and/or modify
|
|
4 |
# it under the terms of the GNU General Public License as published by
|
|
5 |
# the Free Software Foundation; version 2 of the License.
|
|
6 |
#
|
|
7 |
# This program is distributed in the hope that it will be useful,
|
|
8 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
9 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
10 |
# GNU General Public License for more details.
|
|
11 |
#
|
|
12 |
# You should have received a copy of the GNU General Public License
|
|
13 |
# along with this program; if not, write to the Free Software
|
|
14 |
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
15 |
||
16 |
#called from the top level Makefile
|
|
17 |
||
187
by Brian Aker
Fixed tab issue |
18 |
MYSQLDATAdir =$(localstatedir) |
19 |
||
20 |
MYSQLSHAREdir =$(pkgdatadir) |
|
21 |
||
22 |
MYSQLBASEdir=$(prefix) |
|
23 |
||
24 |
MYSQLLIBdir= $(pkglibdir) |
|
25 |
||
26 |
pkgplugindir =$(pkglibdir)/plugin |
|
27 |
||
28 |
AM_CPPFLAGS =-I$(top_builddir)/include \ |
|
29 |
-I$(top_srcdir)/include \ |
|
30 |
-I$(srcdir) $(openssl_includes) \ |
|
31 |
$(libevent_includes) \ |
|
32 |
-ggdb |
|
33 |
||
34 |
SUBDIRS =. share |
|
35 |
||
36 |
libexec_PROGRAMS =drizzled |
|
37 |
||
38 |
EXTRA_PROGRAMS =gen_lex_hash |
|
39 |
||
40 |
bin_PROGRAMS = |
|
41 |
||
42 |
bin_SCRIPTS = drizzledumpslow \ |
|
43 |
drizzled_safe
|
|
44 |
||
45 |
DTRACE = @DTRACE@ |
|
46 |
||
47 |
DTRACEFLAGS = @DTRACEFLAGS@ |
|
48 |
||
49 |
DTRACEFILES = handler.o \ |
|
50 |
filesort.o \
|
|
51 |
sql_insert.o \
|
|
52 |
sql_delete.o \
|
|
53 |
sql_select.o \
|
|
54 |
sql_update.o |
|
55 |
||
56 |
noinst_LTLIBRARIES = libhandler.la |
|
57 |
||
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 |
|
62 |
||
63 |
LDADD = $(SUPPORTING_LIBS) -lz -levent |
|
64 |
||
65 |
drizzled_LDADD = libhandler.la \ |
|
66 |
$(top_builddir)/libdrizzle/libdrizzle.la \ |
|
67 |
$(libevent_libs) \ |
|
68 |
@mysql_plugin_libs@ \
|
|
69 |
$(LDADD) \ |
|
70 |
$(CXXLDFLAGS) \ |
|
71 |
@LIBDL@ |
|
72 |
||
73 |
noinst_HEADERS = item.h \ |
|
74 |
item_func.h \
|
|
75 |
item_sum.h \
|
|
76 |
item_cmpfunc.h \
|
|
77 |
item_strfunc.h \
|
|
78 |
item_timefunc.h \
|
|
79 |
item_create.h \
|
|
80 |
item_subselect.h \
|
|
81 |
item_row.h \
|
|
82 |
mysql_priv.h \
|
|
83 |
sql_bitmap.h \
|
|
84 |
sql_class.h \
|
|
85 |
sql_lex.h \
|
|
86 |
sql_list.h \
|
|
87 |
sql_map.h \
|
|
88 |
sql_string.h \
|
|
89 |
unireg.h \
|
|
90 |
sql_error.h \
|
|
91 |
field.h \
|
|
92 |
handler.h \
|
|
93 |
mysqld_suffix.h \
|
|
94 |
rpl_constants.h \
|
|
95 |
opt_range.h \
|
|
96 |
protocol.h \
|
|
97 |
rpl_tblmap.h \
|
|
98 |
rpl_utility.h \
|
|
99 |
rpl_reporting.h \
|
|
100 |
log.h \
|
|
101 |
sql_show.h \
|
|
102 |
rpl_rli.h \
|
|
103 |
rpl_mi.h \
|
|
104 |
sql_select.h \
|
|
105 |
structs.h \
|
|
106 |
table.h \
|
|
107 |
sql_udf.h \
|
|
108 |
lex.h \
|
|
109 |
lex_symbol.h \
|
|
110 |
sql_crypt.h \
|
|
111 |
sql_repl.h \
|
|
112 |
slave.h \
|
|
113 |
rpl_filter.h \
|
|
114 |
log_event.h \
|
|
115 |
rpl_record.h \
|
|
116 |
stacktrace.h \
|
|
117 |
sql_sort.h \
|
|
118 |
set_var.h \
|
|
119 |
tzfile.h \
|
|
120 |
client_settings.h \
|
|
121 |
tztime.h \
|
|
122 |
my_decimal.h\
|
|
123 |
sql_array.h \
|
|
124 |
scheduler.h \
|
|
125 |
sql_plugin.h \
|
|
126 |
probes.h |
|
127 |
||
128 |
drizzled_SOURCES = sql_lex.cc \ |
|
129 |
sql_handler.cc \
|
|
130 |
item.cc \
|
|
131 |
item_sum.cc \
|
|
132 |
item_buff.cc \
|
|
133 |
item_func.cc \
|
|
134 |
item_cmpfunc.cc \
|
|
135 |
item_strfunc.cc \
|
|
136 |
item_timefunc.cc \
|
|
137 |
thr_malloc.cc \
|
|
138 |
item_create.cc \
|
|
139 |
item_subselect.cc \
|
|
140 |
item_row.cc \
|
|
141 |
field.cc \
|
|
142 |
strfunc.cc \
|
|
143 |
key.cc \
|
|
144 |
sql_class.cc \
|
|
145 |
sql_list.cc \
|
|
146 |
protocol.cc \
|
|
147 |
sql_state.c \
|
|
148 |
lock.cc \
|
|
149 |
sql_string.cc \
|
|
150 |
sql_map.cc \
|
|
151 |
drizzled.cc \
|
|
152 |
sql_connect.cc \
|
|
153 |
scheduler.cc \
|
|
154 |
sql_parse.cc \
|
|
155 |
set_var.cc \
|
|
156 |
sql_yacc.yy \
|
|
157 |
sql_base.cc \
|
|
158 |
table.cc \
|
|
159 |
sql_select.cc \
|
|
160 |
sql_insert.cc \
|
|
161 |
sql_error.cc \
|
|
162 |
sql_locale.cc \
|
|
163 |
sql_update.cc \
|
|
164 |
sql_delete.cc \
|
|
165 |
uniques.cc \
|
|
166 |
log.cc \
|
|
167 |
init.cc \
|
|
168 |
derror.cc \
|
|
169 |
unireg.cc \
|
|
170 |
log_event.cc \
|
|
171 |
rpl_record.cc \
|
|
172 |
discover.cc \
|
|
173 |
time.cc \
|
|
174 |
opt_range.cc \
|
|
175 |
opt_sum.cc \
|
|
176 |
records.cc \
|
|
177 |
filesort.cc \
|
|
178 |
sql_db.cc \
|
|
179 |
sql_table.cc \
|
|
180 |
sql_rename.cc \
|
|
181 |
sql_crypt.cc \
|
|
182 |
sql_load.cc \
|
|
183 |
mf_iocache.cc \
|
|
184 |
field_conv.cc \
|
|
185 |
sql_show.cc \
|
|
186 |
sql_udf.cc \
|
|
187 |
slave.cc \
|
|
188 |
sql_repl.cc \
|
|
189 |
rpl_filter.cc \
|
|
190 |
rpl_tblmap.cc \
|
|
191 |
rpl_utility.cc \
|
|
192 |
rpl_rli.cc \
|
|
193 |
rpl_mi.cc \
|
|
194 |
rpl_reporting.cc \
|
|
195 |
sql_union.cc \
|
|
196 |
sql_derived.cc \
|
|
197 |
sql_client.cc \
|
|
198 |
stacktrace.c \
|
|
199 |
repl_failsafe.h \
|
|
200 |
repl_failsafe.cc \
|
|
201 |
sql_olap.cc \
|
|
202 |
tztime.cc \
|
|
203 |
my_decimal.cc\
|
|
204 |
sql_plugin.cc \
|
|
205 |
sql_binlog.cc \
|
|
206 |
sql_builtin.cc |
|
207 |
||
208 |
libhandler_la_SOURCES = handler.cc |
|
1
by brian
clean slate |
209 |
|
210 |
if HAVE_DTRACE
|
|
187
by Brian Aker
Fixed tab issue |
211 |
drizzled_SOURCES += probes.d |
1
by brian
clean slate |
212 |
endif
|
213 |
||
187
by Brian Aker
Fixed tab issue |
214 |
gen_lex_hash_SOURCES =gen_lex_hash.cc |
215 |
||
216 |
gen_lex_hash_LDFLAGS = |
|
217 |
||
218 |
DEFS =-DMYSQL_SERVER \ |
|
219 |
-DDEFAULT_MYSQL_HOME="\"$(MYSQLBASEdir)\"" \ |
|
220 |
-DDATADIR="\"$(MYSQLDATAdir)\"" \ |
|
221 |
-DSHAREDIR="\"$(MYSQLSHAREdir)\"" \ |
|
222 |
-DPLUGINDIR="\"$(pkgplugindir)\"" \ |
|
223 |
@DEFS@ |
|
224 |
||
225 |
BUILT_MAINT_SRC = sql_yacc.cc \ |
|
226 |
sql_yacc.h |
|
227 |
||
228 |
BUILT_SOURCES = $(BUILT_MAINT_SRC) \ |
|
229 |
lex_hash.h |
|
230 |
||
231 |
EXTRA_DIST = $(BUILT_MAINT_SRC) \ |
|
232 |
message.mc \
|
|
233 |
probes.d |
|
234 |
||
235 |
CLEANFILES = lex_hash.h \ |
|
236 |
sql_yacc.output \
|
|
237 |
$(nodist_drizzled_SOURCES) |
|
238 |
||
239 |
DISTCLEANFILES = $(EXTRA_PROGRAMS) \ |
|
240 |
$(BUILT_MAINT_SRC) |
|
241 |
||
242 |
MAINTAINERCLEANFILES = $(BUILT_MAINT_SRC) |
|
243 |
||
244 |
AM_YFLAGS = -d --verbose |
|
1
by brian
clean slate |
245 |
|
246 |
# This generates lex_hash.h
|
|
247 |
# NOTE Built sources should depend on their sources not the tool
|
|
248 |
# this avoid the rebuild of the built files in a source dist
|
|
187
by Brian Aker
Fixed tab issue |
249 |
lex_hash.h: gen_lex_hash$(EXEEXT) \ |
250 |
$(srcdir)/lex.h |
|
251 |
$(top_builddir)/server/gen_lex_hash$(EXEEXT) > $@ |
|
252 |
||
253 |
probes.h: probes.d |
|
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
|
|
257 |
rm probes.h.bak |
|
258 |
||
259 |
SUFFIXES = .d |
|
260 |
||
261 |
.d.o : $(DTRACEFILES) |
|
262 |
$(DTRACE) $(DTRACEFLAGS) -G -s $< $(DTRACEFILES) |