~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
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@ \
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 \
187 by Brian Aker
Fixed tab issue
91
		 sql_map.h \
212.5.42 by Monty Taylor
Ding dong include is dead.
92
		 sql_state.h \
187 by Brian Aker
Fixed tab issue
93
		 sql_string.h \
94
		 sql_error.h \
95
		 field.h \
96
		 handler.h \
97
		 mysqld_suffix.h \
98
		 rpl_constants.h \
99
		 opt_range.h \
100
		 protocol.h \
101
		 rpl_tblmap.h \
102
		 rpl_utility.h \
103
		 rpl_reporting.h \
104
		 log.h \
105
		 sql_show.h \
106
		 rpl_rli.h \
107
		 rpl_mi.h \
108
		 sql_select.h \
109
		 structs.h \
110
		 table.h \
111
		 sql_udf.h \
112
		 lex.h \
113
		 lex_symbol.h \
114
		 sql_repl.h \
115
		 slave.h \
116
		 rpl_filter.h \
117
		 log_event.h \
118
		 rpl_record.h \
119
		 stacktrace.h \
120
		 sql_sort.h \
121
		 set_var.h \
122
		 tzfile.h \
123
		 client_settings.h \
124
		 tztime.h \
125
		 my_decimal.h\
126
		 sql_array.h \
127
		 scheduler.h \
128
		 sql_plugin.h \
212.5.39 by Monty Taylor
Phew. Moved my_base and my_global.
129
		 global.h \
130
		 base.h \
187 by Brian Aker
Fixed tab issue
131
		 probes.h
132
133
drizzled_SOURCES = sql_lex.cc \
259 by Brian Aker
First pass on PAM auth
134
		   authentication.cc \
187 by Brian Aker
Fixed tab issue
135
		   sql_handler.cc \
136
		   item.cc \
137
		   item_sum.cc \
138
		   item_buff.cc \
139
		   item_func.cc \
140
		   item_cmpfunc.cc \
141
		   item_strfunc.cc \
142
		   item_timefunc.cc \
143
		   thr_malloc.cc \
144
		   item_create.cc \
145
		   item_subselect.cc \
146
		   item_row.cc \
147
		   field.cc \
148
		   strfunc.cc \
149
		   key.cc \
150
		   sql_class.cc \
151
		   sql_list.cc \
152
		   protocol.cc \
153
		   sql_state.c \
154
		   lock.cc \
155
		   sql_string.cc \
156
		   sql_map.cc \
157
		   drizzled.cc \
158
		   sql_connect.cc \
159
		   scheduler.cc \
160
		   sql_parse.cc \
161
		   set_var.cc \
162
		   sql_yacc.yy \
163
		   sql_base.cc \
164
		   table.cc \
165
		   sql_select.cc \
166
		   sql_insert.cc \
167
		   sql_error.cc \
168
		   sql_locale.cc \
169
		   sql_update.cc \
170
		   sql_delete.cc \
171
		   uniques.cc \
172
		   log.cc \
173
		   init.cc \
174
		   derror.cc \
175
		   unireg.cc \
176
		   log_event.cc \
177
		   rpl_record.cc \
178
		   discover.cc \
179
		   time.cc \
180
		   opt_range.cc \
181
		   opt_sum.cc \
182
		   records.cc \
183
		   filesort.cc \
184
		   sql_db.cc \
185
		   sql_table.cc \
186
		   sql_rename.cc \
187
		   sql_load.cc \
188
		   mf_iocache.cc \
189
		   field_conv.cc \
190
		   sql_show.cc \
191
		   sql_udf.cc \
192
		   slave.cc \
193
		   sql_repl.cc \
194
		   rpl_filter.cc \
195
		   rpl_tblmap.cc \
196
		   rpl_utility.cc \
197
		   rpl_rli.cc \
198
		   rpl_mi.cc \
199
		   rpl_reporting.cc \
200
		   sql_union.cc \
201
		   sql_derived.cc \
202
		   sql_client.cc \
203
		   stacktrace.c \
204
		   repl_failsafe.h \
205
		   repl_failsafe.cc \
206
		   sql_olap.cc \
207
		   tztime.cc \
208
		   my_decimal.cc\
209
		   sql_plugin.cc \
210
		   sql_binlog.cc \
211
		   sql_builtin.cc 
212
213
libhandler_la_SOURCES = handler.cc
1 by brian
clean slate
214
215
if HAVE_DTRACE
187 by Brian Aker
Fixed tab issue
216
drizzled_SOURCES += probes.d
1 by brian
clean slate
217
endif
218
187 by Brian Aker
Fixed tab issue
219
gen_lex_hash_SOURCES =gen_lex_hash.cc
220
221
gen_lex_hash_LDFLAGS =  
222
223
DEFS =-DMYSQL_SERVER \
224
      -DDEFAULT_MYSQL_HOME="\"$(MYSQLBASEdir)\"" \
225
      -DDATADIR="\"$(MYSQLDATAdir)\"" \
226
      -DSHAREDIR="\"$(MYSQLSHAREdir)\"" \
227
      -DPLUGINDIR="\"$(pkgplugindir)\"" \
202.3.8 by Monty Taylor
Actually turn gettext on...
228
      -DLOCALEDIR=\"$(localedir)\" \
187 by Brian Aker
Fixed tab issue
229
      @DEFS@
230
231
BUILT_MAINT_SRC = sql_yacc.cc \
232
		  sql_yacc.h
233
234
BUILT_SOURCES = $(BUILT_MAINT_SRC) \
212.5.36 by Monty Taylor
Moved drizzle_version.
235
		lex_hash.h \
236
		version.h
187 by Brian Aker
Fixed tab issue
237
238
EXTRA_DIST = $(BUILT_MAINT_SRC) \
239
	     message.mc \
240
	     probes.d
241
242
CLEANFILES = lex_hash.h \
243
	     sql_yacc.output \
244
	     $(nodist_drizzled_SOURCES)
245
246
DISTCLEANFILES = $(EXTRA_PROGRAMS) \
247
		 $(BUILT_MAINT_SRC)
248
249
MAINTAINERCLEANFILES = $(BUILT_MAINT_SRC)
250
251
AM_YFLAGS = -d --verbose
1 by brian
clean slate
252
212.5.36 by Monty Taylor
Moved drizzle_version.
253
254
# These files should not be included in distributions since they are
255
# generated by configure from the .h.in files
256
dist-hook:
257
	$(RM) -f $(distdir)/drizzle_version.h 
258
1 by brian
clean slate
259
# This generates lex_hash.h
260
# NOTE Built sources should depend on their sources not the tool
261
# this avoid the rebuild of the built files in a source dist
187 by Brian Aker
Fixed tab issue
262
lex_hash.h: gen_lex_hash$(EXEEXT) \
263
	$(srcdir)/lex.h
214 by Brian Aker
Rename of fields (fix issue with string and decimal .h clashing).
264
	$(top_builddir)/drizzled/gen_lex_hash$(EXEEXT) > $@
187 by Brian Aker
Fixed tab issue
265
266
probes.h: probes.d
267
	$(DTRACE) $(DTRACEFLAGS) -h -s probes.d
268
	mv probes.h probes.h.bak
269
	sed "s/#include <unistd.h>//g" probes.h.bak > probes.h
270
	rm probes.h.bak
271
272
SUFFIXES = .d
273
274
.d.o : $(DTRACEFILES)
275
	$(DTRACE) $(DTRACEFLAGS) -G -s $< $(DTRACEFILES)