~drizzle-trunk/drizzle/development

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
383.1.6 by Brian Aker
Removed more of the charset support.
28
SUBDIRS = field serialize  .
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
383.1.48 by Monty Taylor
Got rid of libsqlcommon and some surious defines.
59
LDADD = $(top_builddir)/libdrizzle/libdrizzle.la \
264.1.3 by Monty Taylor
Removed libmysyslt.la, made mysys a noinst_ and made everything use it. It's
60
	$(top_builddir)/mysys/libmysys.la \
266.4.3 by Monty Taylor
Removed mystringslt conv lib and replaced it with a noinst lib.
61
	$(top_builddir)/mystrings/libmystrings.la \
264.1.4 by Monty Taylor
Added LIBINTL to libs needed.
62
	$(ZLIB_LIBS) $(LIBINTL)
187 by Brian Aker
Fixed tab issue
63
64
drizzled_LDADD = libhandler.la \
65
		 $(top_builddir)/libdrizzle/libdrizzle.la \
214 by Brian Aker
Rename of fields (fix issue with string and decimal .h clashing).
66
		 $(top_builddir)/drizzled/field/libfield.la \
316 by Brian Aker
First pass of new sql_db.cc work
67
		 $(top_builddir)/drizzled/serialize/libserialize.la \
187 by Brian Aker
Fixed tab issue
68
		 $(libevent_libs) \
69
		 @mysql_plugin_libs@ \
318 by Brian Aker
Modified sql_db to now use Google Proto buffers instead of MySQL type.
70
		 -lprotobuf \
187 by Brian Aker
Fixed tab issue
71
		 $(LDADD) \
72
		 $(CXXLDFLAGS) \
201.2.3 by Monty Taylor
Cleaned up some LIBS bits in the build.
73
		 $(LIBDL_LIBS) $(LIBEVENT_LIBS)
187 by Brian Aker
Fixed tab issue
74
75
noinst_HEADERS = item.h \
259 by Brian Aker
First pass on PAM auth
76
		 authentication.h \
187 by Brian Aker
Fixed tab issue
77
		 item_func.h \
78
		 item_sum.h \
79
		 item_cmpfunc.h \
80
		 item_strfunc.h \
81
		 item_timefunc.h \
82
		 item_create.h \
83
		 item_subselect.h \
84
		 item_row.h \
243.1.17 by Jay Pipes
FINAL PHASE removal of mysql_priv.h (Bye, bye my friend.)
85
		 server_includes.h \
187 by Brian Aker
Fixed tab issue
86
		 sql_bitmap.h \
87
		 sql_class.h \
88
		 sql_lex.h \
89
		 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.
90
		 sql_locale.h \
212.5.42 by Monty Taylor
Ding dong include is dead.
91
		 sql_state.h \
187 by Brian Aker
Fixed tab issue
92
		 sql_string.h \
93
		 sql_error.h \
94
		 field.h \
95
		 handler.h \
96
		 mysqld_suffix.h \
97
		 rpl_constants.h \
98
		 opt_range.h \
99
		 protocol.h \
100
		 rpl_tblmap.h \
101
		 rpl_utility.h \
102
		 rpl_reporting.h \
103
		 log.h \
104
		 sql_show.h \
105
		 rpl_rli.h \
106
		 rpl_mi.h \
107
		 sql_select.h \
108
		 structs.h \
109
		 table.h \
110
		 sql_udf.h \
111
		 lex.h \
112
		 lex_symbol.h \
113
		 sql_repl.h \
114
		 slave.h \
115
		 rpl_filter.h \
116
		 log_event.h \
117
		 rpl_record.h \
118
		 stacktrace.h \
119
		 sql_sort.h \
120
		 set_var.h \
121
		 tzfile.h \
122
		 client_settings.h \
123
		 tztime.h \
124
		 my_decimal.h\
125
		 sql_array.h \
126
		 scheduler.h \
127
		 sql_plugin.h \
212.5.39 by Monty Taylor
Phew. Moved my_base and my_global.
128
		 global.h \
129
		 base.h \
312.1.14 by Monty Taylor
Fixed bug#257694 - added various files to EXTRA_DIST and noinst_HEADERS to make make distcheck (and with-it out-of-tree builds) work.
130
		 probes.h \
131
		 definitions.h \
132
		 sql_alloc.h \
133
		 sql_parse.h \
134
		 error_injection.h \
135
		 connect.h \
136
		 sql_table.h \
137
		 show.h \
327.1.2 by Brian Aker
Commiting next pass of Table class cleanup.
138
		 tmp_table.h \
139
		 sj_tmp_table.h \
347 by Monty Taylor
Fixed a few build oopses for out-of-tree builds.
140
		 table_list.h \
312.1.14 by Monty Taylor
Fixed bug#257694 - added various files to EXTRA_DIST and noinst_HEADERS to make make distcheck (and with-it out-of-tree builds) work.
141
		 drizzled_error_messages.h \
327.2.3 by Brian Aker
Refactoring of class Table
142
		 order.h \
143
		 filesort_info.h \
353 by Brian Aker
Moved Field iterator out to its own definition.
144
		 field_iterator.h \
312.1.14 by Monty Taylor
Fixed bug#257694 - added various files to EXTRA_DIST and noinst_HEADERS to make make distcheck (and with-it out-of-tree builds) work.
145
		 common_includes.h 
187 by Brian Aker
Fixed tab issue
146
319 by Brian Aker
Fix (yuck!) for OSX/Google bug.
147
drizzled_SOURCES = \
148
		   sql_db.cc \
149
		   sql_lex.cc \
259 by Brian Aker
First pass on PAM auth
150
		   authentication.cc \
187 by Brian Aker
Fixed tab issue
151
		   sql_handler.cc \
327.2.4 by Brian Aker
Refactoring table.h
152
		   natural_join_column.cc \
353 by Brian Aker
Moved Field iterator out to its own definition.
153
		   field_iterator.cc \
187 by Brian Aker
Fixed tab issue
154
		   item.cc \
155
		   item_sum.cc \
156
		   item_buff.cc \
157
		   item_func.cc \
158
		   item_cmpfunc.cc \
159
		   item_strfunc.cc \
160
		   item_timefunc.cc \
161
		   thr_malloc.cc \
162
		   item_create.cc \
163
		   item_subselect.cc \
164
		   item_row.cc \
165
		   field.cc \
166
		   strfunc.cc \
167
		   key.cc \
168
		   sql_class.cc \
169
		   sql_list.cc \
170
		   protocol.cc \
171
		   sql_state.c \
172
		   lock.cc \
173
		   sql_string.cc \
174
		   drizzled.cc \
175
		   sql_connect.cc \
176
		   scheduler.cc \
177
		   sql_parse.cc \
178
		   set_var.cc \
179
		   sql_yacc.yy \
180
		   sql_base.cc \
181
		   table.cc \
182
		   sql_select.cc \
183
		   sql_insert.cc \
184
		   sql_error.cc \
185
		   sql_locale.cc \
186
		   sql_update.cc \
187
		   sql_delete.cc \
188
		   uniques.cc \
189
		   log.cc \
190
		   init.cc \
191
		   derror.cc \
192
		   unireg.cc \
193
		   log_event.cc \
194
		   rpl_record.cc \
195
		   discover.cc \
196
		   time.cc \
197
		   opt_range.cc \
198
		   opt_sum.cc \
199
		   records.cc \
200
		   filesort.cc \
201
		   sql_table.cc \
202
		   sql_rename.cc \
203
		   sql_load.cc \
204
		   mf_iocache.cc \
205
		   field_conv.cc \
206
		   sql_show.cc \
207
		   sql_udf.cc \
208
		   slave.cc \
209
		   sql_repl.cc \
210
		   rpl_filter.cc \
211
		   rpl_tblmap.cc \
212
		   rpl_utility.cc \
213
		   rpl_rli.cc \
214
		   rpl_mi.cc \
215
		   rpl_reporting.cc \
216
		   sql_union.cc \
217
		   sql_derived.cc \
218
		   sql_client.cc \
219
		   stacktrace.c \
220
		   repl_failsafe.h \
221
		   repl_failsafe.cc \
222
		   sql_olap.cc \
223
		   tztime.cc \
224
		   my_decimal.cc\
225
		   sql_plugin.cc \
226
		   sql_binlog.cc \
327.1.2 by Brian Aker
Commiting next pass of Table class cleanup.
227
		   tmp_table.cc \
228
		   sj_tmp_table.cc \
187 by Brian Aker
Fixed tab issue
229
		   sql_builtin.cc 
230
231
libhandler_la_SOURCES = handler.cc
1 by brian
clean slate
232
233
if HAVE_DTRACE
187 by Brian Aker
Fixed tab issue
234
drizzled_SOURCES += probes.d
1 by brian
clean slate
235
endif
236
187 by Brian Aker
Fixed tab issue
237
gen_lex_hash_SOURCES =gen_lex_hash.cc
238
239
gen_lex_hash_LDFLAGS =  
240
319.1.1 by Grant Limberg
renamed all instances of MYSQL_ to DRIZZLE_
241
DEFS =-DDRIZZLE_SERVER \
242
      -DDEFAULT_DRIZZLE_HOME="\"$(MYSQLBASEdir)\"" \
187 by Brian Aker
Fixed tab issue
243
      -DDATADIR="\"$(MYSQLDATAdir)\"" \
244
      -DSHAREDIR="\"$(MYSQLSHAREdir)\"" \
245
      -DPLUGINDIR="\"$(pkgplugindir)\"" \
202.3.8 by Monty Taylor
Actually turn gettext on...
246
      -DLOCALEDIR=\"$(localedir)\" \
187 by Brian Aker
Fixed tab issue
247
      @DEFS@
248
249
BUILT_MAINT_SRC = sql_yacc.cc \
250
		  sql_yacc.h
251
252
BUILT_SOURCES = $(BUILT_MAINT_SRC) \
212.5.36 by Monty Taylor
Moved drizzle_version.
253
		lex_hash.h \
254
		version.h
187 by Brian Aker
Fixed tab issue
255
256
EXTRA_DIST = $(BUILT_MAINT_SRC) \
312.1.14 by Monty Taylor
Fixed bug#257694 - added various files to EXTRA_DIST and noinst_HEADERS to make make distcheck (and with-it out-of-tree builds) work.
257
	     drizzledumpslow \
187 by Brian Aker
Fixed tab issue
258
	     message.mc \
259
	     probes.d
260
261
CLEANFILES = lex_hash.h \
262
	     sql_yacc.output \
263
	     $(nodist_drizzled_SOURCES)
264
265
DISTCLEANFILES = $(EXTRA_PROGRAMS) \
266
		 $(BUILT_MAINT_SRC)
267
268
MAINTAINERCLEANFILES = $(BUILT_MAINT_SRC)
269
270
AM_YFLAGS = -d --verbose
1 by brian
clean slate
271
212.5.36 by Monty Taylor
Moved drizzle_version.
272
273
# These files should not be included in distributions since they are
274
# generated by configure from the .h.in files
275
dist-hook:
276
	$(RM) -f $(distdir)/drizzle_version.h 
277
1 by brian
clean slate
278
# This generates lex_hash.h
279
# NOTE Built sources should depend on their sources not the tool
280
# this avoid the rebuild of the built files in a source dist
187 by Brian Aker
Fixed tab issue
281
lex_hash.h: gen_lex_hash$(EXEEXT) \
282
	$(srcdir)/lex.h
214 by Brian Aker
Rename of fields (fix issue with string and decimal .h clashing).
283
	$(top_builddir)/drizzled/gen_lex_hash$(EXEEXT) > $@
187 by Brian Aker
Fixed tab issue
284
285
probes.h: probes.d
286
	$(DTRACE) $(DTRACEFLAGS) -h -s probes.d
287
	mv probes.h probes.h.bak
288
	sed "s/#include <unistd.h>//g" probes.h.bak > probes.h
289
	rm probes.h.bak
290
291
SUFFIXES = .d
292
293
.d.o : $(DTRACEFILES)
294
	$(DTRACE) $(DTRACEFLAGS) -G -s $< $(DTRACEFILES)