~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/Makefile.am

  • Committer: Brian Aker
  • Date: 2008-09-04 19:31:00 UTC
  • Revision ID: brian@tangent.org-20080904193100-l849hgghfy4urj43
Changing default character set from this point on.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#  Copyright (C) 2008 Sun Microsystems
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., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 
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
15
17
 
16
18
MYSQLDATAdir =$(localstatedir)
17
19
 
23
25
 
24
26
pkgplugindir =$(pkglibdir)/plugin
25
27
 
26
 
SUBDIRS = util field serialize functions .
 
28
SUBDIRS = field serialize  . share
27
29
 
28
30
sbin_PROGRAMS =drizzled
29
31
 
34
36
bin_SCRIPTS =   drizzledumpslow \
35
37
                drizzled_safe 
36
38
 
37
 
AM_CPPFLAGS = ${GLOBAL_CPPFLAGS} ${LIBEVENT_CPPFLAGS} ${PROTOBUF_CPPFLAGS}
 
39
AM_CPPFLAGS = ${GLOBAL_CPPFLAGS} ${LIBEVENT_CPPFLAGS} 
38
40
 
39
41
DTRACE = @DTRACE@
40
42
 
42
44
 
43
45
DTRACEFILES = handler.o \
44
46
              filesort.o \
 
47
              sql_insert.o \
45
48
              sql_delete.o \
46
 
              sql_insert.o \
47
49
              sql_select.o \
48
50
              sql_update.o
49
51
 
50
52
drizzledincludedir = ${includedir}/drizzled
51
 
dist_drizzledinclude_HEADERS =  common.h \
52
 
                                error.h \
53
 
                                korr.h \
54
 
                                lex_string.h \
 
53
dist_drizzledinclude_HEADERS =  error.h \
55
54
                                plugin.h \
56
 
                                plugin_authentication.h \
57
 
                                plugin_configvar.h \
58
 
                                plugin_errmsg.h \
59
 
                                plugin_logging.h \
60
 
                                plugin_qcache.h \
61
 
                                plugin_parser.h \
62
 
                                plugin_scheduling.h \
63
 
                                xid.h
64
 
 
65
 
noinst_LTLIBRARIES = libhandler.la libyacc.la
66
 
 
67
 
LDADD = $(top_builddir)/libdrizzle/libdrizzle.la \
 
55
                                plugin_authentication.h
 
56
 
 
57
noinst_LTLIBRARIES = libhandler.la
 
58
 
 
59
LDADD = $(top_builddir)/vio/libviolt.la \
 
60
        $(top_builddir)/libdrizzle/libsqlcommon.la \
68
61
        $(top_builddir)/mysys/libmysys.la \
69
62
        $(top_builddir)/mystrings/libmystrings.la \
70
63
        $(ZLIB_LIBS) $(LIBINTL)
71
64
 
72
 
drizzled_LDADD = libhandler.la libyacc.la \
 
65
drizzled_LDADD = libhandler.la \
73
66
                 $(top_builddir)/libdrizzle/libdrizzle.la \
74
67
                 $(top_builddir)/drizzled/field/libfield.la \
75
68
                 $(top_builddir)/drizzled/serialize/libserialize.la \
76
 
                 $(top_builddir)/drizzled/functions/libfunctions.la \
77
 
                 $(top_builddir)/drizzled/util/libutil.la \
78
69
                 $(libevent_libs) \
79
70
                 @mysql_plugin_libs@ \
80
71
                 -lprotobuf \
81
72
                 $(LDADD) \
82
73
                 $(CXXLDFLAGS) \
83
 
                 $(LIBDL_LIBS) $(LIBEVENT_LIBS) $(PROTOBUF_LIBS)
84
 
drizzled_DEPENDENCIES = @mysql_plugin_libs@
85
 
 
86
 
drizzled_LDFLAGS =
87
 
 
88
 
noinst_HEADERS = \
89
 
                authentication.h \
90
 
                base.h \
91
 
                client_settings.h \
92
 
                common_includes.h \
93
 
                configvar.h \
94
 
                connect.h \
95
 
                data_home.h \
96
 
                definitions.h \
97
 
                errmsg.h \
98
 
                error_injection.h \
99
 
                field.h \
100
 
                field_iterator.h \
101
 
                filesort_info.h \
102
 
                gettext.h \
103
 
                global.h \
104
 
                handler.h \
105
 
                item_cmpfunc.h \
106
 
                item_create.h \
107
 
                item_func.h \
108
 
                item.h \
109
 
                item_row.h \
110
 
                item_strfunc.h \
111
 
                item_subselect.h \
112
 
                item_sum.h \
113
 
                item_timefunc.h \
114
 
                key_map.h \
115
 
                lex.h \
116
 
                lex_symbol.h \
117
 
                log_event.h \
118
 
                logging.h \
119
 
                log.h \
120
 
                my_decimal.h\
121
 
                opt_range.h \
122
 
                order.h \
123
 
                parser.h \
124
 
                probes.h \
125
 
                protocol.h \
126
 
                qcache.h \
127
 
                query_id.h \
128
 
                rpl_constants.h \
129
 
                rpl_filter.h \
130
 
                rpl_mi.h \
131
 
                rpl_record.h \
132
 
                rpl_reporting.h \
133
 
                rpl_rli.h \
134
 
                rpl_tblmap.h \
135
 
                rpl_utility.h \
136
 
                scheduler.h \
137
 
                scheduling.h \
138
 
                server_includes.h \
139
 
                set_var.h \
140
 
                show.h \
141
 
                sj_tmp_table.h \
142
 
                slave.h \
143
 
                sql_alloc.h \
144
 
                sql_array.h \
145
 
                sql_bitmap.h \
146
 
                sql_class.h \
147
 
                sql_error.h \
148
 
                sql_lex.h \
149
 
                sql_list.h \
150
 
                sql_locale.h \
151
 
                sql_parse.h \
152
 
                sql_plugin.h \
153
 
                sql_repl.h \
154
 
                sql_select.h \
155
 
                sql_show.h \
156
 
                sql_sort.h \
157
 
                sql_state.h \
158
 
                sql_string.h \
159
 
                sql_table.h \
160
 
                sql_udf.h \
161
 
                stacktrace.h \
162
 
                structs.h \
163
 
                table.h \
164
 
                table_list.h \
165
 
                table_map_iterator.h \
166
 
                tmp_table.h \
167
 
                tzfile.h \
168
 
                tztime.h
 
74
                 $(LIBDL_LIBS) $(LIBEVENT_LIBS)
 
75
 
 
76
noinst_HEADERS = item.h \
 
77
                 authentication.h \
 
78
                 item_func.h \
 
79
                 item_sum.h \
 
80
                 item_cmpfunc.h \
 
81
                 item_strfunc.h \
 
82
                 item_timefunc.h \
 
83
                 item_create.h \
 
84
                 item_subselect.h \
 
85
                 item_row.h \
 
86
                 server_includes.h \
 
87
                 sql_bitmap.h \
 
88
                 sql_class.h \
 
89
                 sql_lex.h \
 
90
                 sql_list.h \
 
91
                 sql_locale.h \
 
92
                 sql_state.h \
 
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 \
 
129
                 global.h \
 
130
                 base.h \
 
131
                 probes.h \
 
132
                 definitions.h \
 
133
                 sql_alloc.h \
 
134
                 sql_parse.h \
 
135
                 error_injection.h \
 
136
                 connect.h \
 
137
                 sql_table.h \
 
138
                 show.h \
 
139
                 tmp_table.h \
 
140
                 sj_tmp_table.h \
 
141
                 table_list.h \
 
142
                 drizzled_error_messages.h \
 
143
                 order.h \
 
144
                 filesort_info.h \
 
145
                 field_iterator.h \
 
146
                 common_includes.h 
169
147
 
170
148
drizzled_SOURCES = \
171
 
                authentication.cc \
172
 
                configvar.cc \
173
 
                discover.cc \
174
 
                drizzled.cc \
175
 
                errmsg.cc \
176
 
                error.cc \
177
 
                field.cc \
178
 
                field_conv.cc \
179
 
                field_iterator.cc \
180
 
                filesort.cc \
181
 
                init.cc \
182
 
                item_buff.cc \
183
 
                item.cc \
184
 
                item_cmpfunc.cc \
185
 
                item_create.cc \
186
 
                item_func.cc \
187
 
                item_row.cc \
188
 
                item_strfunc.cc \
189
 
                item_subselect.cc \
190
 
                item_sum.cc \
191
 
                item_timefunc.cc \
192
 
                key.cc \
193
 
                key_map.cc \
194
 
                lock.cc \
195
 
                log.cc \
196
 
                log_event.cc \
197
 
                logging.cc \
198
 
                mf_iocache.cc \
199
 
                my_decimal.cc\
200
 
                natural_join_column.cc \
201
 
                opt_range.cc \
202
 
                opt_sum.cc \
203
 
                parser.cc \
204
 
                protocol.cc \
205
 
                qcache.cc \
206
 
                query_id.cc \
207
 
                records.cc \
208
 
                rpl_filter.cc \
209
 
                rpl_mi.cc \
210
 
                rpl_record.cc \
211
 
                rpl_reporting.cc \
212
 
                rpl_rli.cc \
213
 
                rpl_tblmap.cc \
214
 
                rpl_utility.cc \
215
 
                scheduler.cc \
216
 
                scheduling.cc \
217
 
                set_var.cc \
218
 
                sj_tmp_table.cc \
219
 
                slave.cc \
220
 
                sql_base.cc \
221
 
                sql_binlog.cc \
222
 
                sql_builtin.cc \
223
 
                sql_class.cc \
224
 
                sql_client.cc \
225
 
                sql_connect.cc \
226
 
                sql_db.cc \
227
 
                sql_delete.cc \
228
 
                sql_derived.cc \
229
 
                sql_error.cc \
230
 
                sql_handler.cc \
231
 
                sql_insert.cc \
232
 
                sql_lex.cc \
233
 
                sql_list.cc \
234
 
                sql_load.cc \
235
 
                sql_locale.cc \
236
 
                sql_olap.cc \
237
 
                sql_parse.cc \
238
 
                sql_plugin.cc \
239
 
                sql_rename.cc \
240
 
                sql_repl.cc \
241
 
                sql_select.cc \
242
 
                sql_show.cc \
243
 
                sql_state.cc \
244
 
                sql_string.cc \
245
 
                sql_table.cc \
246
 
                sql_udf.cc \
247
 
                sql_union.cc \
248
 
                sql_update.cc \
249
 
                stacktrace.cc \
250
 
                strfunc.cc \
251
 
                table.cc \
252
 
                table_map_iterator.cc \
253
 
                thr_malloc.cc \
254
 
                time.cc \
255
 
                tmp_table.cc \
256
 
                tztime.cc \
257
 
                uniques.cc \
258
 
                unireg.cc \
259
 
                xid.cc
 
149
                   sql_db.cc \
 
150
                   sql_lex.cc \
 
151
                   authentication.cc \
 
152
                   sql_handler.cc \
 
153
                   natural_join_column.cc \
 
154
                   field_iterator.cc \
 
155
                   item.cc \
 
156
                   item_sum.cc \
 
157
                   item_buff.cc \
 
158
                   item_func.cc \
 
159
                   item_cmpfunc.cc \
 
160
                   item_strfunc.cc \
 
161
                   item_timefunc.cc \
 
162
                   thr_malloc.cc \
 
163
                   item_create.cc \
 
164
                   item_subselect.cc \
 
165
                   item_row.cc \
 
166
                   field.cc \
 
167
                   strfunc.cc \
 
168
                   key.cc \
 
169
                   sql_class.cc \
 
170
                   sql_list.cc \
 
171
                   protocol.cc \
 
172
                   sql_state.c \
 
173
                   lock.cc \
 
174
                   sql_string.cc \
 
175
                   drizzled.cc \
 
176
                   sql_connect.cc \
 
177
                   scheduler.cc \
 
178
                   sql_parse.cc \
 
179
                   set_var.cc \
 
180
                   sql_yacc.yy \
 
181
                   sql_base.cc \
 
182
                   table.cc \
 
183
                   sql_select.cc \
 
184
                   sql_insert.cc \
 
185
                   sql_error.cc \
 
186
                   sql_locale.cc \
 
187
                   sql_update.cc \
 
188
                   sql_delete.cc \
 
189
                   uniques.cc \
 
190
                   log.cc \
 
191
                   init.cc \
 
192
                   derror.cc \
 
193
                   unireg.cc \
 
194
                   log_event.cc \
 
195
                   rpl_record.cc \
 
196
                   discover.cc \
 
197
                   time.cc \
 
198
                   opt_range.cc \
 
199
                   opt_sum.cc \
 
200
                   records.cc \
 
201
                   filesort.cc \
 
202
                   sql_table.cc \
 
203
                   sql_rename.cc \
 
204
                   sql_load.cc \
 
205
                   mf_iocache.cc \
 
206
                   field_conv.cc \
 
207
                   sql_show.cc \
 
208
                   sql_udf.cc \
 
209
                   slave.cc \
 
210
                   sql_repl.cc \
 
211
                   rpl_filter.cc \
 
212
                   rpl_tblmap.cc \
 
213
                   rpl_utility.cc \
 
214
                   rpl_rli.cc \
 
215
                   rpl_mi.cc \
 
216
                   rpl_reporting.cc \
 
217
                   sql_union.cc \
 
218
                   sql_derived.cc \
 
219
                   sql_client.cc \
 
220
                   stacktrace.c \
 
221
                   repl_failsafe.h \
 
222
                   repl_failsafe.cc \
 
223
                   sql_olap.cc \
 
224
                   tztime.cc \
 
225
                   my_decimal.cc\
 
226
                   sql_plugin.cc \
 
227
                   sql_binlog.cc \
 
228
                   tmp_table.cc \
 
229
                   sj_tmp_table.cc \
 
230
                   sql_builtin.cc 
260
231
 
261
232
libhandler_la_SOURCES = handler.cc
262
 
libyacc_la_SOURCES = sql_yacc.yy
263
 
# Code output from YACC contains GOBS of unused macros, and I can't
264
 
# figure out how to turn it off.
265
 
libyacc_la_CXXFLAGS = ${AM_CXXFLAGS} -Wno-unused-macros
266
 
 
267
233
 
268
234
if HAVE_DTRACE
269
235
drizzled_SOURCES += probes.d
281
247
      -DLOCALEDIR=\"$(localedir)\" \
282
248
      @DEFS@
283
249
 
284
 
if GCC_PCH
285
 
PCHHEADERS =
286
 
else
287
 
PCHHEADERS =
288
 
endif
289
 
 
290
250
BUILT_MAINT_SRC = sql_yacc.cc \
291
251
                  sql_yacc.h
292
252
 
293
253
BUILT_SOURCES = $(BUILT_MAINT_SRC) \
294
254
                lex_hash.h \
295
 
                $(PCHHEADERS)
 
255
                version.h
296
256
 
297
257
EXTRA_DIST = $(BUILT_MAINT_SRC) \
298
258
             drizzledumpslow \
311
271
AM_YFLAGS = -d --verbose
312
272
 
313
273
 
 
274
# These files should not be included in distributions since they are
 
275
# generated by configure from the .h.in files
 
276
dist-hook:
 
277
        $(RM) -f $(distdir)/drizzle_version.h 
 
278
 
314
279
# This generates lex_hash.h
315
280
# NOTE Built sources should depend on their sources not the tool
316
281
# this avoid the rebuild of the built files in a source dist
324
289
        sed "s/#include <unistd.h>//g" probes.h.bak > probes.h
325
290
        rm probes.h.bak
326
291
 
327
 
if GCC_PCH
328
 
%.h.gch: %.h
329
 
        $(CXXCOMPILE) -include config.h -c $<
330
 
endif
331
 
 
332
292
SUFFIXES = .d
333
293
 
334
294
.d.o : $(DTRACEFILES)