~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
202.1.6 by Monty Taylor
Added Makefile.am to server/field and build as libtool noinst lib.
28
SUBDIRS = field . share
187 by Brian Aker
Fixed tab issue
29
30
libexec_PROGRAMS =drizzled
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
39
DTRACE = @DTRACE@
40
41
DTRACEFLAGS = @DTRACEFLAGS@
42
43
DTRACEFILES = handler.o \
44
	      filesort.o \
45
	      sql_insert.o \
46
	      sql_delete.o \
47
	      sql_select.o \
48
	      sql_update.o
49
212.5.42 by Monty Taylor
Ding dong include is dead.
50
pkginclude_HEADERS =	error.h \
51
			plugin.h \
212.5.10 by Monty Taylor
Moved drizzle/plugin*h to drizzled
52
			plugin_audit.h
53
187 by Brian Aker
Fixed tab issue
54
noinst_LTLIBRARIES = libhandler.la
55
201.2.3 by Monty Taylor
Cleaned up some LIBS bits in the build.
56
LDADD = $(top_builddir)/vio/libviolt.la \
57
	$(top_builddir)/libdrizzle/libsqlcommon.la \
58
	$(top_builddir)/mysys/libmysyslt.la \
212.5.4 by Monty Taylor
Renamed strings to mystrings, for include/lib naming consistency.
59
	$(top_builddir)/mystrings/libmystringslt.la \
201.2.3 by Monty Taylor
Cleaned up some LIBS bits in the build.
60
	$(ZLIB_LIBS)
187 by Brian Aker
Fixed tab issue
61
62
drizzled_LDADD = libhandler.la \
63
		 $(top_builddir)/libdrizzle/libdrizzle.la \
214 by Brian Aker
Rename of fields (fix issue with string and decimal .h clashing).
64
		 $(top_builddir)/drizzled/field/libfield.la \
187 by Brian Aker
Fixed tab issue
65
		 $(libevent_libs) \
66
		 @mysql_plugin_libs@ \
67
		 $(LDADD) \
68
		 $(CXXLDFLAGS) \
201.2.3 by Monty Taylor
Cleaned up some LIBS bits in the build.
69
		 $(LIBDL_LIBS) $(LIBEVENT_LIBS)
187 by Brian Aker
Fixed tab issue
70
71
noinst_HEADERS = item.h \
72
		 item_func.h \
73
		 item_sum.h \
74
		 item_cmpfunc.h \
75
		 item_strfunc.h \
76
		 item_timefunc.h \
77
		 item_create.h \
78
		 item_subselect.h \
79
		 item_row.h \
80
		 mysql_priv.h \
81
		 sql_bitmap.h \
82
		 sql_class.h \
83
		 sql_lex.h \
84
		 sql_list.h \
85
		 sql_map.h \
212.5.42 by Monty Taylor
Ding dong include is dead.
86
		 sql_state.h \
187 by Brian Aker
Fixed tab issue
87
		 sql_string.h \
88
		 unireg.h \
89
		 sql_error.h \
90
		 field.h \
91
		 handler.h \
92
		 mysqld_suffix.h \
93
		 rpl_constants.h \
94
		 opt_range.h \
95
		 protocol.h \
96
		 rpl_tblmap.h \
97
		 rpl_utility.h \
98
		 rpl_reporting.h \
99
		 log.h \
100
		 sql_show.h \
101
		 rpl_rli.h \
102
		 rpl_mi.h \
103
		 sql_select.h \
104
		 structs.h \
105
		 table.h \
106
		 sql_udf.h \
107
		 lex.h \
108
		 lex_symbol.h \
109
		 sql_crypt.h  \
110
		 sql_repl.h \
111
		 slave.h \
112
		 rpl_filter.h \
113
		 log_event.h \
114
		 rpl_record.h \
115
		 stacktrace.h \
116
		 sql_sort.h \
117
		 set_var.h \
118
		 tzfile.h \
119
		 client_settings.h \
120
		 tztime.h \
121
		 my_decimal.h\
122
		 sql_array.h \
123
		 scheduler.h \
124
		 sql_plugin.h \
212.5.39 by Monty Taylor
Phew. Moved my_base and my_global.
125
		 global.h \
126
		 base.h \
187 by Brian Aker
Fixed tab issue
127
		 probes.h
128
129
drizzled_SOURCES = sql_lex.cc \
130
		   sql_handler.cc \
131
		   item.cc \
132
		   item_sum.cc \
133
		   item_buff.cc \
134
		   item_func.cc \
135
		   item_cmpfunc.cc \
136
		   item_strfunc.cc \
137
		   item_timefunc.cc \
138
		   thr_malloc.cc \
139
		   item_create.cc \
140
		   item_subselect.cc \
141
		   item_row.cc \
142
		   field.cc \
143
		   strfunc.cc \
144
		   key.cc \
145
		   sql_class.cc \
146
		   sql_list.cc \
147
		   protocol.cc \
148
		   sql_state.c \
149
		   lock.cc \
150
		   sql_string.cc \
151
		   sql_map.cc \
152
		   drizzled.cc \
153
		   sql_connect.cc \
154
		   scheduler.cc \
155
		   sql_parse.cc \
156
		   set_var.cc \
157
		   sql_yacc.yy \
158
		   sql_base.cc \
159
		   table.cc \
160
		   sql_select.cc \
161
		   sql_insert.cc \
162
		   sql_error.cc \
163
		   sql_locale.cc \
164
		   sql_update.cc \
165
		   sql_delete.cc \
166
		   uniques.cc \
167
		   log.cc \
168
		   init.cc \
169
		   derror.cc \
170
		   unireg.cc \
171
		   log_event.cc \
172
		   rpl_record.cc \
173
		   discover.cc \
174
		   time.cc \
175
		   opt_range.cc \
176
		   opt_sum.cc \
177
		   records.cc \
178
		   filesort.cc \
179
		   sql_db.cc \
180
		   sql_table.cc \
181
		   sql_rename.cc \
182
		   sql_crypt.cc \
183
		   sql_load.cc \
184
		   mf_iocache.cc \
185
		   field_conv.cc \
186
		   sql_show.cc \
187
		   sql_udf.cc \
188
		   slave.cc \
189
		   sql_repl.cc \
190
		   rpl_filter.cc \
191
		   rpl_tblmap.cc \
192
		   rpl_utility.cc \
193
		   rpl_rli.cc \
194
		   rpl_mi.cc \
195
		   rpl_reporting.cc \
196
		   sql_union.cc \
197
		   sql_derived.cc \
198
		   sql_client.cc \
199
		   stacktrace.c \
200
		   repl_failsafe.h \
201
		   repl_failsafe.cc \
202
		   sql_olap.cc \
203
		   tztime.cc \
204
		   my_decimal.cc\
205
		   sql_plugin.cc \
206
		   sql_binlog.cc \
207
		   sql_builtin.cc 
208
209
libhandler_la_SOURCES = handler.cc
1 by brian
clean slate
210
211
if HAVE_DTRACE
187 by Brian Aker
Fixed tab issue
212
drizzled_SOURCES += probes.d
1 by brian
clean slate
213
endif
214
187 by Brian Aker
Fixed tab issue
215
gen_lex_hash_SOURCES =gen_lex_hash.cc
216
217
gen_lex_hash_LDFLAGS =  
218
219
DEFS =-DMYSQL_SERVER \
220
      -DDEFAULT_MYSQL_HOME="\"$(MYSQLBASEdir)\"" \
221
      -DDATADIR="\"$(MYSQLDATAdir)\"" \
222
      -DSHAREDIR="\"$(MYSQLSHAREdir)\"" \
223
      -DPLUGINDIR="\"$(pkgplugindir)\"" \
224
      @DEFS@
225
226
BUILT_MAINT_SRC = sql_yacc.cc \
227
		  sql_yacc.h
228
229
BUILT_SOURCES = $(BUILT_MAINT_SRC) \
212.5.36 by Monty Taylor
Moved drizzle_version.
230
		lex_hash.h \
231
		version.h
187 by Brian Aker
Fixed tab issue
232
233
EXTRA_DIST = $(BUILT_MAINT_SRC) \
234
	     message.mc \
235
	     probes.d
236
237
CLEANFILES = lex_hash.h \
238
	     sql_yacc.output \
239
	     $(nodist_drizzled_SOURCES)
240
241
DISTCLEANFILES = $(EXTRA_PROGRAMS) \
242
		 $(BUILT_MAINT_SRC)
243
244
MAINTAINERCLEANFILES = $(BUILT_MAINT_SRC)
245
246
AM_YFLAGS = -d --verbose
1 by brian
clean slate
247
212.5.36 by Monty Taylor
Moved drizzle_version.
248
249
# These files should not be included in distributions since they are
250
# generated by configure from the .h.in files
251
dist-hook:
252
	$(RM) -f $(distdir)/drizzle_version.h 
253
1 by brian
clean slate
254
# This generates lex_hash.h
255
# NOTE Built sources should depend on their sources not the tool
256
# this avoid the rebuild of the built files in a source dist
187 by Brian Aker
Fixed tab issue
257
lex_hash.h: gen_lex_hash$(EXEEXT) \
258
	$(srcdir)/lex.h
214 by Brian Aker
Rename of fields (fix issue with string and decimal .h clashing).
259
	$(top_builddir)/drizzled/gen_lex_hash$(EXEEXT) > $@
187 by Brian Aker
Fixed tab issue
260
261
probes.h: probes.d
262
	$(DTRACE) $(DTRACEFLAGS) -h -s probes.d
263
	mv probes.h probes.h.bak
264
	sed "s/#include <unistd.h>//g" probes.h.bak > probes.h
265
	rm probes.h.bak
266
267
SUFFIXES = .d
268
269
.d.o : $(DTRACEFILES)
270
	$(DTRACE) $(DTRACEFLAGS) -G -s $< $(DTRACEFILES)