~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
50
noinst_LTLIBRARIES = libhandler.la
51
214 by Brian Aker
Rename of fields (fix issue with string and decimal .h clashing).
52
AM_CPPFLAGS =	-I$(top_srcdir)/strings \
53
		-I$(top_srcdir)/include \
54
		-I$(top_srcdir)/drizzled \
55
		-I$(top_srcdir)
56
201.2.3 by Monty Taylor
Cleaned up some LIBS bits in the build.
57
LDADD = $(top_builddir)/vio/libviolt.la \
58
	$(top_builddir)/libdrizzle/libsqlcommon.la \
59
	$(top_builddir)/mysys/libmysyslt.la \
60
	$(top_builddir)/strings/libmystringslt.la \
61
	$(ZLIB_LIBS)
187 by Brian Aker
Fixed tab issue
62
63
drizzled_LDADD = libhandler.la \
64
		 $(top_builddir)/libdrizzle/libdrizzle.la \
214 by Brian Aker
Rename of fields (fix issue with string and decimal .h clashing).
65
		 $(top_builddir)/drizzled/field/libfield.la \
187 by Brian Aker
Fixed tab issue
66
		 $(libevent_libs) \
67
		 @mysql_plugin_libs@ \
68
		 $(LDADD) \
69
		 $(CXXLDFLAGS) \
201.2.3 by Monty Taylor
Cleaned up some LIBS bits in the build.
70
		 $(LIBDL_LIBS) $(LIBEVENT_LIBS)
187 by Brian Aker
Fixed tab issue
71
72
noinst_HEADERS = item.h \
73
		 item_func.h \
74
		 item_sum.h \
75
		 item_cmpfunc.h \
76
		 item_strfunc.h \
77
		 item_timefunc.h \
78
		 item_create.h \
79
		 item_subselect.h \
80
		 item_row.h \
81
		 mysql_priv.h \
82
		 sql_bitmap.h \
83
		 sql_class.h \
84
		 sql_lex.h \
85
		 sql_list.h \
86
		 sql_map.h \
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 \
125
		 probes.h
126
127
drizzled_SOURCES = sql_lex.cc \
128
		   sql_handler.cc \
129
		   item.cc \
130
		   item_sum.cc \
131
		   item_buff.cc \
132
		   item_func.cc \
133
		   item_cmpfunc.cc \
134
		   item_strfunc.cc \
135
		   item_timefunc.cc \
136
		   thr_malloc.cc \
137
		   item_create.cc \
138
		   item_subselect.cc \
139
		   item_row.cc \
140
		   field.cc \
141
		   strfunc.cc \
142
		   key.cc \
143
		   sql_class.cc \
144
		   sql_list.cc \
145
		   protocol.cc \
146
		   sql_state.c \
147
		   lock.cc \
148
		   sql_string.cc \
149
		   sql_map.cc \
150
		   drizzled.cc \
151
		   sql_connect.cc \
152
		   scheduler.cc \
153
		   sql_parse.cc \
154
		   set_var.cc \
155
		   sql_yacc.yy \
156
		   sql_base.cc \
157
		   table.cc \
158
		   sql_select.cc \
159
		   sql_insert.cc \
160
		   sql_error.cc \
161
		   sql_locale.cc \
162
		   sql_update.cc \
163
		   sql_delete.cc \
164
		   uniques.cc \
165
		   log.cc \
166
		   init.cc \
167
		   derror.cc \
168
		   unireg.cc \
169
		   log_event.cc \
170
		   rpl_record.cc \
171
		   discover.cc \
172
		   time.cc \
173
		   opt_range.cc \
174
		   opt_sum.cc \
175
		   records.cc \
176
		   filesort.cc \
177
		   sql_db.cc \
178
		   sql_table.cc \
179
		   sql_rename.cc \
180
		   sql_crypt.cc \
181
		   sql_load.cc \
182
		   mf_iocache.cc \
183
		   field_conv.cc \
184
		   sql_show.cc \
185
		   sql_udf.cc \
186
		   slave.cc \
187
		   sql_repl.cc \
188
		   rpl_filter.cc \
189
		   rpl_tblmap.cc \
190
		   rpl_utility.cc \
191
		   rpl_rli.cc \
192
		   rpl_mi.cc \
193
		   rpl_reporting.cc \
194
		   sql_union.cc \
195
		   sql_derived.cc \
196
		   sql_client.cc \
197
		   stacktrace.c \
198
		   repl_failsafe.h \
199
		   repl_failsafe.cc \
200
		   sql_olap.cc \
201
		   tztime.cc \
202
		   my_decimal.cc\
203
		   sql_plugin.cc \
204
		   sql_binlog.cc \
205
		   sql_builtin.cc 
206
207
libhandler_la_SOURCES = handler.cc
1 by brian
clean slate
208
209
if HAVE_DTRACE
187 by Brian Aker
Fixed tab issue
210
drizzled_SOURCES += probes.d
1 by brian
clean slate
211
endif
212
187 by Brian Aker
Fixed tab issue
213
gen_lex_hash_SOURCES =gen_lex_hash.cc
214
215
gen_lex_hash_LDFLAGS =  
216
217
DEFS =-DMYSQL_SERVER \
218
      -DDEFAULT_MYSQL_HOME="\"$(MYSQLBASEdir)\"" \
219
      -DDATADIR="\"$(MYSQLDATAdir)\"" \
220
      -DSHAREDIR="\"$(MYSQLSHAREdir)\"" \
221
      -DPLUGINDIR="\"$(pkgplugindir)\"" \
222
      @DEFS@
223
224
BUILT_MAINT_SRC = sql_yacc.cc \
225
		  sql_yacc.h
226
227
BUILT_SOURCES = $(BUILT_MAINT_SRC) \
228
		lex_hash.h 
229
230
EXTRA_DIST = $(BUILT_MAINT_SRC) \
231
	     message.mc \
232
	     probes.d
233
234
CLEANFILES = lex_hash.h \
235
	     sql_yacc.output \
236
	     $(nodist_drizzled_SOURCES)
237
238
DISTCLEANFILES = $(EXTRA_PROGRAMS) \
239
		 $(BUILT_MAINT_SRC)
240
241
MAINTAINERCLEANFILES = $(BUILT_MAINT_SRC)
242
243
AM_YFLAGS = -d --verbose
1 by brian
clean slate
244
245
# This generates lex_hash.h
246
# NOTE Built sources should depend on their sources not the tool
247
# this avoid the rebuild of the built files in a source dist
187 by Brian Aker
Fixed tab issue
248
lex_hash.h: gen_lex_hash$(EXEEXT) \
249
	$(srcdir)/lex.h
214 by Brian Aker
Rename of fields (fix issue with string and decimal .h clashing).
250
	$(top_builddir)/drizzled/gen_lex_hash$(EXEEXT) > $@
187 by Brian Aker
Fixed tab issue
251
252
probes.h: probes.d
253
	$(DTRACE) $(DTRACEFLAGS) -h -s probes.d
254
	mv probes.h probes.h.bak
255
	sed "s/#include <unistd.h>//g" probes.h.bak > probes.h
256
	rm probes.h.bak
257
258
SUFFIXES = .d
259
260
.d.o : $(DTRACEFILES)
261
	$(DTRACE) $(DTRACEFLAGS) -G -s $< $(DTRACEFILES)