~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to server/Makefile.am

Removed dead variable, sorted authors file.

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
15
 
 
16
 
MYSQLDATAdir =$(localstatedir)
17
 
 
18
 
MYSQLSHAREdir =$(pkgdatadir)
19
 
 
20
 
MYSQLBASEdir=$(prefix)
21
 
 
 
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
 
 
18
MYSQLDATAdir =          $(localstatedir)
 
19
MYSQLSHAREdir =         $(pkgdatadir)
 
20
MYSQLBASEdir=           $(prefix)
22
21
MYSQLLIBdir=            $(pkglibdir)
23
 
 
24
 
pkgplugindir =$(pkglibdir)/plugin
25
 
 
26
 
SUBDIRS = util field serialize functions .
27
 
 
28
 
sbin_PROGRAMS =drizzled
29
 
 
30
 
EXTRA_PROGRAMS =gen_lex_hash
31
 
 
32
 
bin_PROGRAMS =
33
 
 
34
 
bin_SCRIPTS =   drizzledumpslow \
35
 
                drizzled_safe 
36
 
 
37
 
AM_CPPFLAGS = ${GLOBAL_CPPFLAGS} ${LIBEVENT_CPPFLAGS} 
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
 
drizzledincludedir = ${includedir}/drizzled
51
 
dist_drizzledinclude_HEADERS =  error.h \
52
 
                                plugin.h \
53
 
                                plugin_logging.h \
54
 
                                plugin_authentication.h
55
 
 
56
 
noinst_LTLIBRARIES = libhandler.la
57
 
 
58
 
LDADD = $(top_builddir)/libdrizzle/libdrizzle.la \
59
 
        $(top_builddir)/mysys/libmysys.la \
60
 
        $(top_builddir)/mystrings/libmystrings.la \
61
 
        $(ZLIB_LIBS) $(LIBINTL)
62
 
 
63
 
drizzled_LDADD = libhandler.la \
64
 
                 $(top_builddir)/libdrizzle/libdrizzle.la \
65
 
                 $(top_builddir)/drizzled/field/libfield.la \
66
 
                 $(top_builddir)/drizzled/serialize/libserialize.la \
67
 
                 $(top_builddir)/drizzled/functions/libfunctions.la \
68
 
                 $(libevent_libs) \
69
 
                 @mysql_plugin_libs@ \
70
 
                 -lprotobuf \
71
 
                 $(LDADD) \
72
 
                 $(CXXLDFLAGS) \
73
 
                 $(LIBDL_LIBS) $(LIBEVENT_LIBS)
74
 
 
75
 
drizzled_LDFLAGS =
76
 
 
77
 
noinst_HEADERS = item.h \
78
 
                 authentication.h \
79
 
                 logging.h \
80
 
                 key_map.h \
81
 
                 item_func.h \
82
 
                 item_sum.h \
83
 
                 item_cmpfunc.h \
84
 
                 item_strfunc.h \
85
 
                 item_timefunc.h \
86
 
                 item_create.h \
87
 
                 item_subselect.h \
88
 
                 item_row.h \
89
 
                 server_includes.h \
90
 
                 sql_bitmap.h \
91
 
                 table_map_iterator.h \
92
 
                 sql_class.h \
93
 
                 sql_lex.h \
94
 
                 sql_list.h \
95
 
                 sql_locale.h \
96
 
                 sql_state.h \
97
 
                 sql_string.h \
98
 
                 sql_error.h \
99
 
                 field.h \
100
 
                 handler.h \
101
 
                 rpl_constants.h \
102
 
                 opt_range.h \
103
 
                 protocol.h \
104
 
                 rpl_tblmap.h \
105
 
                 rpl_utility.h \
106
 
                 rpl_reporting.h \
107
 
                 log.h \
108
 
                 sql_show.h \
109
 
                 rpl_rli.h \
110
 
                 rpl_mi.h \
111
 
                 sql_select.h \
112
 
                 structs.h \
113
 
                 table.h \
114
 
                 sql_udf.h \
115
 
                 lex.h \
116
 
                 lex_symbol.h \
117
 
                 sql_repl.h \
118
 
                 slave.h \
119
 
                 rpl_filter.h \
120
 
                 log_event.h \
121
 
                 rpl_record.h \
122
 
                 stacktrace.h \
123
 
                 sql_sort.h \
124
 
                 set_var.h \
125
 
                 tzfile.h \
126
 
                 client_settings.h \
127
 
                 tztime.h \
128
 
                 my_decimal.h\
129
 
                 sql_array.h \
130
 
                 scheduler.h \
131
 
                 sql_plugin.h \
132
 
                 global.h \
133
 
                 base.h \
134
 
                 probes.h \
135
 
                 definitions.h \
136
 
                 sql_alloc.h \
137
 
                 sql_parse.h \
138
 
                 error_injection.h \
139
 
                 connect.h \
140
 
                 sql_table.h \
141
 
                 show.h \
142
 
                 tmp_table.h \
143
 
                 sj_tmp_table.h \
144
 
                 table_list.h \
145
 
                 drizzled_error_messages.h \
146
 
                 innodb_plugin_extras.h \
147
 
                 order.h \
148
 
                 filesort_info.h \
149
 
                 field_iterator.h \
150
 
                 common_includes.h
151
 
 
152
 
drizzled_SOURCES = \
153
 
                   sql_db.cc \
154
 
                   sql_lex.cc \
155
 
                   authentication.cc \
156
 
                   logging.cc \
157
 
                   sql_handler.cc \
158
 
                   natural_join_column.cc \
159
 
                   table_map_iterator.cc \
160
 
                   field_iterator.cc \
161
 
                   key_map.cc \
162
 
                   item.cc \
163
 
                   item_sum.cc \
164
 
                   item_buff.cc \
165
 
                   item_func.cc \
166
 
                   item_cmpfunc.cc \
167
 
                   item_strfunc.cc \
168
 
                   item_timefunc.cc \
169
 
                   thr_malloc.cc \
170
 
                   item_create.cc \
171
 
                   item_subselect.cc \
172
 
                   item_row.cc \
173
 
                   field.cc \
174
 
                   strfunc.cc \
175
 
                   key.cc \
176
 
                   sql_class.cc \
177
 
                   sql_list.cc \
178
 
                   protocol.cc \
179
 
                   sql_state.cc \
180
 
                   lock.cc \
181
 
                   sql_string.cc \
182
 
                   drizzled.cc \
183
 
                   sql_connect.cc \
184
 
                   scheduler.cc \
185
 
                   sql_parse.cc \
186
 
                   set_var.cc \
187
 
                   sql_yacc.yy \
188
 
                   sql_base.cc \
189
 
                   table.cc \
190
 
                   sql_select.cc \
191
 
                   sql_insert.cc \
192
 
                   sql_error.cc \
193
 
                   sql_locale.cc \
194
 
                   sql_update.cc \
195
 
                   sql_delete.cc \
196
 
                   uniques.cc \
197
 
                   log.cc \
198
 
                   init.cc \
199
 
                   derror.cc \
200
 
                   unireg.cc \
201
 
                   log_event.cc \
202
 
                   rpl_record.cc \
203
 
                   discover.cc \
204
 
                   time.cc \
205
 
                   opt_range.cc \
206
 
                   opt_sum.cc \
207
 
                   records.cc \
208
 
                   filesort.cc \
209
 
                   sql_table.cc \
210
 
                   sql_rename.cc \
211
 
                   sql_load.cc \
212
 
                   mf_iocache.cc \
213
 
                   field_conv.cc \
214
 
                   sql_show.cc \
215
 
                   sql_udf.cc \
216
 
                   slave.cc \
217
 
                   sql_repl.cc \
218
 
                   rpl_filter.cc \
219
 
                   rpl_tblmap.cc \
220
 
                   rpl_utility.cc \
221
 
                   rpl_rli.cc \
222
 
                   rpl_mi.cc \
223
 
                   rpl_reporting.cc \
224
 
                   sql_union.cc \
225
 
                   sql_derived.cc \
226
 
                   sql_client.cc \
227
 
                   stacktrace.cc \
228
 
                   sql_olap.cc \
229
 
                   tztime.cc \
230
 
                   my_decimal.cc\
231
 
                   sql_plugin.cc \
232
 
                   sql_binlog.cc \
233
 
                   tmp_table.cc \
234
 
                   sj_tmp_table.cc \
235
 
                   sql_builtin.cc 
 
22
pkgplugindir =          $(pkglibdir)/plugin
 
23
AM_CPPFLAGS =           -I$(top_builddir)/include -I$(top_srcdir)/include \
 
24
                        -I$(srcdir) $(openssl_includes) \
 
25
                        $(libevent_includes) \
 
26
                        -ggdb
 
27
SUBDIRS =               . share
 
28
libexec_PROGRAMS =      drizzled
 
29
EXTRA_PROGRAMS =        gen_lex_hash
 
30
bin_PROGRAMS =          
 
31
bin_SCRIPTS =           drizzledumpslow drizzled_safe 
 
32
 
 
33
DTRACE =                @DTRACE@
 
34
DTRACEFLAGS =           @DTRACEFLAGS@
 
35
DTRACEFILES =           handler.o \
 
36
                        filesort.o \
 
37
                        sql_insert.o \
 
38
                        sql_delete.o \
 
39
                        sql_select.o \
 
40
                        sql_update.o
 
41
 
 
42
noinst_LTLIBRARIES =    libhandler.la
 
43
 
 
44
SUPPORTING_LIBS =       $(top_builddir)/vio/libviolt.la \
 
45
                        $(top_builddir)/libdrizzle/libsqlcommon.la \
 
46
                        $(top_builddir)/mysys/libmysyslt.la \
 
47
                        $(d_dbug) \
 
48
                        $(top_builddir)/strings/libmystringslt.la 
 
49
LDADD = $(SUPPORTING_LIBS) -lz -levent
 
50
drizzled_LDADD =        libhandler.la \
 
51
                        $(top_builddir)/libdrizzle/libdrizzle.la \
 
52
                        $(libevent_libs) \
 
53
                        @mysql_plugin_libs@ \
 
54
                        $(LDADD)  $(CXXLDFLAGS) @LIBDL@
 
55
 
 
56
noinst_HEADERS =        item.h item_func.h item_sum.h item_cmpfunc.h \
 
57
                        item_strfunc.h item_timefunc.h \
 
58
                        item_create.h item_subselect.h item_row.h \
 
59
                        mysql_priv.h sql_bitmap.h \
 
60
                        sql_class.h sql_lex.h sql_list.h \
 
61
                        sql_map.h sql_string.h unireg.h \
 
62
                        sql_error.h field.h handler.h mysqld_suffix.h \
 
63
                        rpl_constants.h \
 
64
                        opt_range.h protocol.h rpl_tblmap.h rpl_utility.h \
 
65
                        rpl_reporting.h \
 
66
                        log.h sql_show.h rpl_rli.h rpl_mi.h \
 
67
                        sql_select.h structs.h table.h sql_udf.h \
 
68
                        lex.h lex_symbol.h sql_crypt.h  \
 
69
                        sql_repl.h slave.h rpl_filter.h \
 
70
                        log_event.h rpl_record.h \
 
71
                        stacktrace.h sql_sort.h set_var.h \
 
72
                        tzfile.h client_settings.h \
 
73
                        tztime.h my_decimal.h\
 
74
                        sql_array.h scheduler.h \
 
75
                        sql_plugin.h \
 
76
                        probes.h
 
77
 
 
78
drizzled_SOURCES =      sql_lex.cc sql_handler.cc \
 
79
                        item.cc item_sum.cc item_buff.cc item_func.cc \
 
80
                        item_cmpfunc.cc item_strfunc.cc item_timefunc.cc \
 
81
                        thr_malloc.cc item_create.cc item_subselect.cc \
 
82
                        item_row.cc \
 
83
                        field.cc strfunc.cc key.cc sql_class.cc sql_list.cc \
 
84
                        protocol.cc sql_state.c \
 
85
                        lock.cc \
 
86
                        sql_string.cc sql_map.cc \
 
87
                        drizzled.cc \
 
88
                        sql_connect.cc scheduler.cc sql_parse.cc \
 
89
                        set_var.cc sql_yacc.yy \
 
90
                        sql_base.cc table.cc sql_select.cc sql_insert.cc \
 
91
                        sql_error.cc sql_locale.cc \
 
92
                        sql_update.cc sql_delete.cc uniques.cc \
 
93
                        log.cc init.cc derror.cc \
 
94
                        unireg.cc \
 
95
                        log_event.cc rpl_record.cc \
 
96
                        discover.cc time.cc opt_range.cc opt_sum.cc \
 
97
                        records.cc filesort.cc \
 
98
                        sql_db.cc sql_table.cc sql_rename.cc sql_crypt.cc \
 
99
                        sql_load.cc mf_iocache.cc field_conv.cc sql_show.cc \
 
100
                        sql_udf.cc \
 
101
                        slave.cc sql_repl.cc rpl_filter.cc rpl_tblmap.cc \
 
102
                        rpl_utility.cc rpl_rli.cc rpl_mi.cc \
 
103
                        rpl_reporting.cc \
 
104
                        sql_union.cc sql_derived.cc \
 
105
                        sql_client.cc \
 
106
                        stacktrace.c repl_failsafe.h repl_failsafe.cc \
 
107
                        sql_olap.cc \
 
108
                        tztime.cc my_decimal.cc\
 
109
                        sql_plugin.cc sql_binlog.cc \
 
110
                        sql_builtin.cc 
236
111
 
237
112
libhandler_la_SOURCES = handler.cc
238
113
 
239
114
if HAVE_DTRACE
240
 
drizzled_SOURCES += probes.d
 
115
  drizzled_SOURCES += probes.d
241
116
endif
242
117
 
243
 
gen_lex_hash_SOURCES =gen_lex_hash.cc
244
 
 
 
118
gen_lex_hash_SOURCES =  gen_lex_hash.cc
245
119
gen_lex_hash_LDFLAGS =  
246
120
 
247
 
DEFS =-DDRIZZLE_SERVER \
248
 
      -DDEFAULT_DRIZZLE_HOME="\"$(MYSQLBASEdir)\"" \
249
 
      -DDATADIR="\"$(MYSQLDATAdir)\"" \
250
 
      -DSHAREDIR="\"$(MYSQLSHAREdir)\"" \
251
 
      -DPLUGINDIR="\"$(pkgplugindir)\"" \
252
 
      -DLOCALEDIR=\"$(localedir)\" \
253
 
      @DEFS@
254
 
 
255
 
if GCC_PCH
256
 
PCHHEADERS =
257
 
else
258
 
PCHHEADERS =
259
 
endif
260
 
 
261
 
BUILT_MAINT_SRC = sql_yacc.cc \
262
 
                  sql_yacc.h
263
 
 
264
 
BUILT_SOURCES = $(BUILT_MAINT_SRC) \
265
 
                lex_hash.h \
266
 
                version.h \
267
 
                $(PCHHEADERS)
268
 
 
269
 
EXTRA_DIST = $(BUILT_MAINT_SRC) \
270
 
             drizzledumpslow \
271
 
             message.mc \
272
 
             probes.d
273
 
 
274
 
CLEANFILES = lex_hash.h \
275
 
             sql_yacc.output \
276
 
             $(nodist_drizzled_SOURCES)
277
 
 
278
 
DISTCLEANFILES = $(EXTRA_PROGRAMS) \
279
 
                 $(BUILT_MAINT_SRC)
280
 
 
281
 
MAINTAINERCLEANFILES = $(BUILT_MAINT_SRC)
282
 
 
283
 
AM_YFLAGS = -d --verbose
284
 
 
285
 
 
286
 
# These files should not be included in distributions since they are
287
 
# generated by configure from the .h.in files
288
 
dist-hook:
289
 
        $(RM) -f $(distdir)/drizzle_version.h 
 
121
DEFS =                  -DMYSQL_SERVER \
 
122
                        -DDEFAULT_MYSQL_HOME="\"$(MYSQLBASEdir)\"" \
 
123
                        -DDATADIR="\"$(MYSQLDATAdir)\"" \
 
124
                        -DSHAREDIR="\"$(MYSQLSHAREdir)\"" \
 
125
                        -DPLUGINDIR="\"$(pkgplugindir)\"" \
 
126
                        @DEFS@
 
127
 
 
128
BUILT_MAINT_SRC =       sql_yacc.cc sql_yacc.h
 
129
BUILT_SOURCES =         $(BUILT_MAINT_SRC) lex_hash.h 
 
130
EXTRA_DIST =            $(BUILT_MAINT_SRC) \
 
131
                        message.mc \
 
132
                        probes.d
 
133
CLEANFILES =            lex_hash.h sql_yacc.output $(nodist_drizzled_SOURCES)
 
134
DISTCLEANFILES =        $(EXTRA_PROGRAMS) $(BUILT_MAINT_SRC)
 
135
MAINTAINERCLEANFILES =  $(BUILT_MAINT_SRC)
 
136
AM_YFLAGS =             -d --verbose
290
137
 
291
138
# This generates lex_hash.h
292
139
# NOTE Built sources should depend on their sources not the tool
293
140
# this avoid the rebuild of the built files in a source dist
294
 
lex_hash.h: gen_lex_hash$(EXEEXT) \
295
 
        $(srcdir)/lex.h
296
 
        $(top_builddir)/drizzled/gen_lex_hash$(EXEEXT) > $@
 
141
lex_hash.h: gen_lex_hash$(EXEEXT) $(srcdir)/lex.h
 
142
                $(top_builddir)/server/gen_lex_hash$(EXEEXT) > $@
297
143
 
298
144
probes.h: probes.d
299
145
        $(DTRACE) $(DTRACEFLAGS) -h -s probes.d
301
147
        sed "s/#include <unistd.h>//g" probes.h.bak > probes.h
302
148
        rm probes.h.bak
303
149
 
304
 
if GCC_PCH
305
 
%.h.gch: %.h
306
 
        $(CXXCOMPILE) -include config.h -c $<
307
 
endif
308
 
 
309
150
SUFFIXES = .d
310
151
 
311
152
.d.o : $(DTRACEFILES)