~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
236.1.65 by Monty Taylor
Added charsets dir back in. Ooops.
28
SUBDIRS = field  . 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
236.1.14 by Monty Taylor
Merged build changes from Antony.
39
AM_CPPFLAGS = ${GLOBAL_CPPFLAGS} ${LIBEVENT_CPPFLAGS}
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 \
259 by Brian Aker
First pass on PAM auth
55
				plugin_authentication.h \
236.1.38 by Monty Taylor
Fixed header install problem. The now install to the right places.
56
				plugin_audit.h
212.5.10 by Monty Taylor
Moved drizzle/plugin*h to drizzled
57
187 by Brian Aker
Fixed tab issue
58
noinst_LTLIBRARIES = libhandler.la
59
201.2.3 by Monty Taylor
Cleaned up some LIBS bits in the build.
60
LDADD = $(top_builddir)/vio/libviolt.la \
61
	$(top_builddir)/libdrizzle/libsqlcommon.la \
62
	$(top_builddir)/mysys/libmysyslt.la \
212.5.4 by Monty Taylor
Renamed strings to mystrings, for include/lib naming consistency.
63
	$(top_builddir)/mystrings/libmystringslt.la \
201.2.3 by Monty Taylor
Cleaned up some LIBS bits in the build.
64
	$(ZLIB_LIBS)
187 by Brian Aker
Fixed tab issue
65
66
drizzled_LDADD = libhandler.la \
67
		 $(top_builddir)/libdrizzle/libdrizzle.la \
214 by Brian Aker
Rename of fields (fix issue with string and decimal .h clashing).
68
		 $(top_builddir)/drizzled/field/libfield.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 \
85
		 mysql_priv.h \
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
		 unireg.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
134
drizzled_SOURCES = sql_lex.cc \
259 by Brian Aker
First pass on PAM auth
135
		   authentication.cc \
187 by Brian Aker
Fixed tab issue
136
		   sql_handler.cc \
137
		   item.cc \
138
		   item_sum.cc \
139
		   item_buff.cc \
140
		   item_func.cc \
141
		   item_cmpfunc.cc \
142
		   item_strfunc.cc \
143
		   item_timefunc.cc \
144
		   thr_malloc.cc \
145
		   item_create.cc \
146
		   item_subselect.cc \
147
		   item_row.cc \
148
		   field.cc \
149
		   strfunc.cc \
150
		   key.cc \
151
		   sql_class.cc \
152
		   sql_list.cc \
153
		   protocol.cc \
154
		   sql_state.c \
155
		   lock.cc \
156
		   sql_string.cc \
157
		   sql_map.cc \
158
		   drizzled.cc \
159
		   sql_connect.cc \
160
		   scheduler.cc \
161
		   sql_parse.cc \
162
		   set_var.cc \
163
		   sql_yacc.yy \
164
		   sql_base.cc \
165
		   table.cc \
166
		   sql_select.cc \
167
		   sql_insert.cc \
168
		   sql_error.cc \
169
		   sql_locale.cc \
170
		   sql_update.cc \
171
		   sql_delete.cc \
172
		   uniques.cc \
173
		   log.cc \
174
		   init.cc \
175
		   derror.cc \
176
		   unireg.cc \
177
		   log_event.cc \
178
		   rpl_record.cc \
179
		   discover.cc \
180
		   time.cc \
181
		   opt_range.cc \
182
		   opt_sum.cc \
183
		   records.cc \
184
		   filesort.cc \
185
		   sql_db.cc \
186
		   sql_table.cc \
187
		   sql_rename.cc \
188
		   sql_load.cc \
189
		   mf_iocache.cc \
190
		   field_conv.cc \
191
		   sql_show.cc \
192
		   sql_udf.cc \
193
		   slave.cc \
194
		   sql_repl.cc \
195
		   rpl_filter.cc \
196
		   rpl_tblmap.cc \
197
		   rpl_utility.cc \
198
		   rpl_rli.cc \
199
		   rpl_mi.cc \
200
		   rpl_reporting.cc \
201
		   sql_union.cc \
202
		   sql_derived.cc \
203
		   sql_client.cc \
204
		   stacktrace.c \
205
		   repl_failsafe.h \
206
		   repl_failsafe.cc \
207
		   sql_olap.cc \
208
		   tztime.cc \
209
		   my_decimal.cc\
210
		   sql_plugin.cc \
211
		   sql_binlog.cc \
212
		   sql_builtin.cc 
213
214
libhandler_la_SOURCES = handler.cc
1 by brian
clean slate
215
216
if HAVE_DTRACE
187 by Brian Aker
Fixed tab issue
217
drizzled_SOURCES += probes.d
1 by brian
clean slate
218
endif
219
187 by Brian Aker
Fixed tab issue
220
gen_lex_hash_SOURCES =gen_lex_hash.cc
221
222
gen_lex_hash_LDFLAGS =  
223
224
DEFS =-DMYSQL_SERVER \
225
      -DDEFAULT_MYSQL_HOME="\"$(MYSQLBASEdir)\"" \
226
      -DDATADIR="\"$(MYSQLDATAdir)\"" \
227
      -DSHAREDIR="\"$(MYSQLSHAREdir)\"" \
228
      -DPLUGINDIR="\"$(pkgplugindir)\"" \
202.3.8 by Monty Taylor
Actually turn gettext on...
229
      -DLOCALEDIR=\"$(localedir)\" \
187 by Brian Aker
Fixed tab issue
230
      @DEFS@
231
232
BUILT_MAINT_SRC = sql_yacc.cc \
233
		  sql_yacc.h
234
235
BUILT_SOURCES = $(BUILT_MAINT_SRC) \
212.5.36 by Monty Taylor
Moved drizzle_version.
236
		lex_hash.h \
237
		version.h
187 by Brian Aker
Fixed tab issue
238
239
EXTRA_DIST = $(BUILT_MAINT_SRC) \
240
	     message.mc \
241
	     probes.d
242
243
CLEANFILES = lex_hash.h \
244
	     sql_yacc.output \
245
	     $(nodist_drizzled_SOURCES)
246
247
DISTCLEANFILES = $(EXTRA_PROGRAMS) \
248
		 $(BUILT_MAINT_SRC)
249
250
MAINTAINERCLEANFILES = $(BUILT_MAINT_SRC)
251
252
AM_YFLAGS = -d --verbose
1 by brian
clean slate
253
212.5.36 by Monty Taylor
Moved drizzle_version.
254
255
# These files should not be included in distributions since they are
256
# generated by configure from the .h.in files
257
dist-hook:
258
	$(RM) -f $(distdir)/drizzle_version.h 
259
1 by brian
clean slate
260
# This generates lex_hash.h
261
# NOTE Built sources should depend on their sources not the tool
262
# this avoid the rebuild of the built files in a source dist
187 by Brian Aker
Fixed tab issue
263
lex_hash.h: gen_lex_hash$(EXEEXT) \
264
	$(srcdir)/lex.h
214 by Brian Aker
Rename of fields (fix issue with string and decimal .h clashing).
265
	$(top_builddir)/drizzled/gen_lex_hash$(EXEEXT) > $@
187 by Brian Aker
Fixed tab issue
266
267
probes.h: probes.d
268
	$(DTRACE) $(DTRACEFLAGS) -h -s probes.d
269
	mv probes.h probes.h.bak
270
	sed "s/#include <unistd.h>//g" probes.h.bak > probes.h
271
	rm probes.h.bak
272
273
SUFFIXES = .d
274
275
.d.o : $(DTRACEFILES)
276
	$(DTRACE) $(DTRACEFLAGS) -G -s $< $(DTRACEFILES)