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 |
||
316
by Brian Aker
First pass of new sql_db.cc work |
28 |
SUBDIRS = field serialize . share |
187
by Brian Aker
Fixed tab issue |
29 |
|
236.1.37
by Monty Taylor
Moved drizzled to sbin from libexec. (why, god, why?) |
30 |
sbin_PROGRAMS =drizzled |
187
by Brian Aker
Fixed tab issue |
31 |
|
32 |
EXTRA_PROGRAMS =gen_lex_hash |
|
33 |
||
34 |
bin_PROGRAMS = |
|
35 |
||
202.1.6
by Monty Taylor
Added Makefile.am to server/field and build as libtool noinst lib. |
36 |
bin_SCRIPTS = drizzledumpslow \ |
37 |
drizzled_safe |
|
187
by Brian Aker
Fixed tab issue |
38 |
|
287.3.20
by Monty Taylor
Rolled back -fno-exceptions change just a little bit. |
39 |
AM_CPPFLAGS = ${GLOBAL_CPPFLAGS} ${LIBEVENT_CPPFLAGS} |
236.1.14
by Monty Taylor
Merged build changes from Antony. |
40 |
|
187
by Brian Aker
Fixed tab issue |
41 |
DTRACE = @DTRACE@ |
42 |
||
43 |
DTRACEFLAGS = @DTRACEFLAGS@ |
|
44 |
||
45 |
DTRACEFILES = handler.o \ |
|
46 |
filesort.o \
|
|
47 |
sql_insert.o \
|
|
48 |
sql_delete.o \
|
|
49 |
sql_select.o \
|
|
50 |
sql_update.o |
|
51 |
||
236.1.38
by Monty Taylor
Fixed header install problem. The now install to the right places. |
52 |
drizzledincludedir = ${includedir}/drizzled |
53 |
dist_drizzledinclude_HEADERS = error.h \ |
|
54 |
plugin.h \
|
|
306
by Brian Aker
Remove dead plugin type. |
55 |
plugin_authentication.h |
212.5.10
by Monty Taylor
Moved drizzle/plugin*h to drizzled |
56 |
|
187
by Brian Aker
Fixed tab issue |
57 |
noinst_LTLIBRARIES = libhandler.la |
58 |
||
201.2.3
by Monty Taylor
Cleaned up some LIBS bits in the build. |
59 |
LDADD = $(top_builddir)/vio/libviolt.la \ |
60 |
$(top_builddir)/libdrizzle/libsqlcommon.la \ |
|
264.1.3
by Monty Taylor
Removed libmysyslt.la, made mysys a noinst_ and made everything use it. It's |
61 |
$(top_builddir)/mysys/libmysys.la \ |
266.4.3
by Monty Taylor
Removed mystringslt conv lib and replaced it with a noinst lib. |
62 |
$(top_builddir)/mystrings/libmystrings.la \ |
264.1.4
by Monty Taylor
Added LIBINTL to libs needed. |
63 |
$(ZLIB_LIBS) $(LIBINTL) |
187
by Brian Aker
Fixed tab issue |
64 |
|
65 |
drizzled_LDADD = libhandler.la \ |
|
66 |
$(top_builddir)/libdrizzle/libdrizzle.la \ |
|
214
by Brian Aker
Rename of fields (fix issue with string and decimal .h clashing). |
67 |
$(top_builddir)/drizzled/field/libfield.la \ |
316
by Brian Aker
First pass of new sql_db.cc work |
68 |
$(top_builddir)/drizzled/serialize/libserialize.la \ |
187
by Brian Aker
Fixed tab issue |
69 |
$(libevent_libs) \ |
70 |
@mysql_plugin_libs@ \
|
|
318
by Brian Aker
Modified sql_db to now use Google Proto buffers instead of MySQL type. |
71 |
-lprotobuf \
|
187
by Brian Aker
Fixed tab issue |
72 |
$(LDADD) \ |
73 |
$(CXXLDFLAGS) \ |
|
201.2.3
by Monty Taylor
Cleaned up some LIBS bits in the build. |
74 |
$(LIBDL_LIBS) $(LIBEVENT_LIBS) |
187
by Brian Aker
Fixed tab issue |
75 |
|
76 |
noinst_HEADERS = item.h \ |
|
259
by Brian Aker
First pass on PAM auth |
77 |
authentication.h \
|
187
by Brian Aker
Fixed tab issue |
78 |
item_func.h \
|
79 |
item_sum.h \
|
|
80 |
item_cmpfunc.h \
|
|
81 |
item_strfunc.h \
|
|
82 |
item_timefunc.h \
|
|
83 |
item_create.h \
|
|
84 |
item_subselect.h \
|
|
85 |
item_row.h \
|
|
243.1.17
by Jay Pipes
FINAL PHASE removal of mysql_priv.h (Bye, bye my friend.) |
86 |
server_includes.h \
|
187
by Brian Aker
Fixed tab issue |
87 |
sql_bitmap.h \
|
88 |
sql_class.h \
|
|
89 |
sql_lex.h \
|
|
90 |
sql_list.h \
|
|
202.3.10
by Monty Taylor
Moved locale.h->sql_locale.h to prevent local conflicts with drizzled.cc including the system locale.h. |
91 |
sql_locale.h \
|
187
by Brian Aker
Fixed tab issue |
92 |
sql_map.h \
|
212.5.42
by Monty Taylor
Ding dong include is dead. |
93 |
sql_state.h \
|
187
by Brian Aker
Fixed tab issue |
94 |
sql_string.h \
|
95 |
sql_error.h \
|
|
96 |
field.h \
|
|
97 |
handler.h \
|
|
98 |
mysqld_suffix.h \
|
|
99 |
rpl_constants.h \
|
|
100 |
opt_range.h \
|
|
101 |
protocol.h \
|
|
102 |
rpl_tblmap.h \
|
|
103 |
rpl_utility.h \
|
|
104 |
rpl_reporting.h \
|
|
105 |
log.h \
|
|
106 |
sql_show.h \
|
|
107 |
rpl_rli.h \
|
|
108 |
rpl_mi.h \
|
|
109 |
sql_select.h \
|
|
110 |
structs.h \
|
|
111 |
table.h \
|
|
112 |
sql_udf.h \
|
|
113 |
lex.h \
|
|
114 |
lex_symbol.h \
|
|
115 |
sql_repl.h \
|
|
116 |
slave.h \
|
|
117 |
rpl_filter.h \
|
|
118 |
log_event.h \
|
|
119 |
rpl_record.h \
|
|
120 |
stacktrace.h \
|
|
121 |
sql_sort.h \
|
|
122 |
set_var.h \
|
|
123 |
tzfile.h \
|
|
124 |
client_settings.h \
|
|
125 |
tztime.h \
|
|
126 |
my_decimal.h\
|
|
127 |
sql_array.h \
|
|
128 |
scheduler.h \
|
|
129 |
sql_plugin.h \
|
|
212.5.39
by Monty Taylor
Phew. Moved my_base and my_global. |
130 |
global.h \
|
131 |
base.h \
|
|
187
by Brian Aker
Fixed tab issue |
132 |
probes.h |
133 |
||
319
by Brian Aker
Fix (yuck!) for OSX/Google bug. |
134 |
drizzled_SOURCES = \ |
135 |
sql_db.cc \
|
|
136 |
sql_lex.cc \
|
|
259
by Brian Aker
First pass on PAM auth |
137 |
authentication.cc \
|
187
by Brian Aker
Fixed tab issue |
138 |
sql_handler.cc \
|
139 |
item.cc \
|
|
140 |
item_sum.cc \
|
|
141 |
item_buff.cc \
|
|
142 |
item_func.cc \
|
|
143 |
item_cmpfunc.cc \
|
|
144 |
item_strfunc.cc \
|
|
145 |
item_timefunc.cc \
|
|
146 |
thr_malloc.cc \
|
|
147 |
item_create.cc \
|
|
148 |
item_subselect.cc \
|
|
149 |
item_row.cc \
|
|
150 |
field.cc \
|
|
151 |
strfunc.cc \
|
|
152 |
key.cc \
|
|
153 |
sql_class.cc \
|
|
154 |
sql_list.cc \
|
|
155 |
protocol.cc \
|
|
156 |
sql_state.c \
|
|
157 |
lock.cc \
|
|
158 |
sql_string.cc \
|
|
159 |
sql_map.cc \
|
|
160 |
drizzled.cc \
|
|
161 |
sql_connect.cc \
|
|
162 |
scheduler.cc \
|
|
163 |
sql_parse.cc \
|
|
164 |
set_var.cc \
|
|
165 |
sql_yacc.yy \
|
|
166 |
sql_base.cc \
|
|
167 |
table.cc \
|
|
168 |
sql_select.cc \
|
|
169 |
sql_insert.cc \
|
|
170 |
sql_error.cc \
|
|
171 |
sql_locale.cc \
|
|
172 |
sql_update.cc \
|
|
173 |
sql_delete.cc \
|
|
174 |
uniques.cc \
|
|
175 |
log.cc \
|
|
176 |
init.cc \
|
|
177 |
derror.cc \
|
|
178 |
unireg.cc \
|
|
179 |
log_event.cc \
|
|
180 |
rpl_record.cc \
|
|
181 |
discover.cc \
|
|
182 |
time.cc \
|
|
183 |
opt_range.cc \
|
|
184 |
opt_sum.cc \
|
|
185 |
records.cc \
|
|
186 |
filesort.cc \
|
|
187 |
sql_table.cc \
|
|
188 |
sql_rename.cc \
|
|
189 |
sql_load.cc \
|
|
190 |
mf_iocache.cc \
|
|
191 |
field_conv.cc \
|
|
192 |
sql_show.cc \
|
|
193 |
sql_udf.cc \
|
|
194 |
slave.cc \
|
|
195 |
sql_repl.cc \
|
|
196 |
rpl_filter.cc \
|
|
197 |
rpl_tblmap.cc \
|
|
198 |
rpl_utility.cc \
|
|
199 |
rpl_rli.cc \
|
|
200 |
rpl_mi.cc \
|
|
201 |
rpl_reporting.cc \
|
|
202 |
sql_union.cc \
|
|
203 |
sql_derived.cc \
|
|
204 |
sql_client.cc \
|
|
205 |
stacktrace.c \
|
|
206 |
repl_failsafe.h \
|
|
207 |
repl_failsafe.cc \
|
|
208 |
sql_olap.cc \
|
|
209 |
tztime.cc \
|
|
210 |
my_decimal.cc\
|
|
211 |
sql_plugin.cc \
|
|
212 |
sql_binlog.cc \
|
|
213 |
sql_builtin.cc |
|
214 |
||
215 |
libhandler_la_SOURCES = handler.cc |
|
1
by brian
clean slate |
216 |
|
217 |
if HAVE_DTRACE
|
|
187
by Brian Aker
Fixed tab issue |
218 |
drizzled_SOURCES += probes.d |
1
by brian
clean slate |
219 |
endif
|
220 |
||
187
by Brian Aker
Fixed tab issue |
221 |
gen_lex_hash_SOURCES =gen_lex_hash.cc |
222 |
||
223 |
gen_lex_hash_LDFLAGS = |
|
224 |
||
319.1.1
by Grant Limberg
renamed all instances of MYSQL_ to DRIZZLE_ |
225 |
DEFS =-DDRIZZLE_SERVER \ |
226 |
-DDEFAULT_DRIZZLE_HOME="\"$(MYSQLBASEdir)\"" \ |
|
187
by Brian Aker
Fixed tab issue |
227 |
-DDATADIR="\"$(MYSQLDATAdir)\"" \ |
228 |
-DSHAREDIR="\"$(MYSQLSHAREdir)\"" \ |
|
229 |
-DPLUGINDIR="\"$(pkgplugindir)\"" \ |
|
202.3.8
by Monty Taylor
Actually turn gettext on... |
230 |
-DLOCALEDIR=\"$(localedir)\" \ |
187
by Brian Aker
Fixed tab issue |
231 |
@DEFS@ |
232 |
||
233 |
BUILT_MAINT_SRC = sql_yacc.cc \ |
|
234 |
sql_yacc.h |
|
235 |
||
236 |
BUILT_SOURCES = $(BUILT_MAINT_SRC) \ |
|
212.5.36
by Monty Taylor
Moved drizzle_version. |
237 |
lex_hash.h \
|
238 |
version.h |
|
187
by Brian Aker
Fixed tab issue |
239 |
|
240 |
EXTRA_DIST = $(BUILT_MAINT_SRC) \ |
|
241 |
message.mc \
|
|
242 |
probes.d |
|
243 |
||
244 |
CLEANFILES = lex_hash.h \ |
|
245 |
sql_yacc.output \
|
|
246 |
$(nodist_drizzled_SOURCES) |
|
247 |
||
248 |
DISTCLEANFILES = $(EXTRA_PROGRAMS) \ |
|
249 |
$(BUILT_MAINT_SRC) |
|
250 |
||
251 |
MAINTAINERCLEANFILES = $(BUILT_MAINT_SRC) |
|
252 |
||
253 |
AM_YFLAGS = -d --verbose |
|
1
by brian
clean slate |
254 |
|
212.5.36
by Monty Taylor
Moved drizzle_version. |
255 |
|
256 |
# These files should not be included in distributions since they are
|
|
257 |
# generated by configure from the .h.in files
|
|
258 |
dist-hook: |
|
259 |
$(RM) -f $(distdir)/drizzle_version.h |
|
260 |
||
1
by brian
clean slate |
261 |
# This generates lex_hash.h
|
262 |
# NOTE Built sources should depend on their sources not the tool
|
|
263 |
# this avoid the rebuild of the built files in a source dist
|
|
187
by Brian Aker
Fixed tab issue |
264 |
lex_hash.h: gen_lex_hash$(EXEEXT) \ |
265 |
$(srcdir)/lex.h |
|
214
by Brian Aker
Rename of fields (fix issue with string and decimal .h clashing). |
266 |
$(top_builddir)/drizzled/gen_lex_hash$(EXEEXT) > $@ |
187
by Brian Aker
Fixed tab issue |
267 |
|
268 |
probes.h: probes.d |
|
269 |
$(DTRACE) $(DTRACEFLAGS) -h -s probes.d |
|
270 |
mv probes.h probes.h.bak |
|
271 |
sed "s/#include <unistd.h>//g" probes.h.bak > probes.h
|
|
272 |
rm probes.h.bak |
|
273 |
||
274 |
SUFFIXES = .d |
|
275 |
||
276 |
.d.o : $(DTRACEFILES) |
|
277 |
$(DTRACE) $(DTRACEFLAGS) -G -s $< $(DTRACEFILES) |