20
20
MYSQLBASEdir= $(prefix)
21
21
MYSQLLIBdir= $(pkglibdir)
22
22
pkgplugindir = $(pkglibdir)/plugin
23
INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include \
23
AM_CPPFLAGS = -I$(top_builddir)/include -I$(top_srcdir)/include \
24
24
-I$(srcdir) $(openssl_includes) \
25
25
$(libevent_includes)
41
SUPPORTING_LIBS = $(top_builddir)/vio/libvio.a \
42
$(top_builddir)/mysys/libmysys.a \
43
$(top_builddir)/dbug/libdbug.a \
44
$(top_builddir)/strings/libmystrings.a
41
SUPPORTING_LIBS = $(top_builddir)/vio/libviolt.la \
42
$(top_builddir)/mysys/libmysyslt.la \
43
$(top_builddir)/dbug/libdbuglt.la \
44
$(top_builddir)/strings/libmystringslt.la
45
45
mysqld_DEPENDENCIES= @mysql_plugin_libs@ $(SUPPORTING_LIBS)
46
46
LDADD = $(SUPPORTING_LIBS) -lz -levent
47
mysqld_LDADD = $(libevent_libs) \
47
mysqld_LDADD = $(top_builddir)/sql-common/libsqlcommon.la \
48
49
@mysql_plugin_libs@ \
49
50
$(LDADD) $(CXXLDFLAGS) @LIBDL@
64
65
sql_repl.h slave.h rpl_filter.h \
65
66
log_event.h rpl_record.h \
66
67
stacktrace.h sql_sort.h set_var.h \
67
client_settings.h tzfile.h \
68
69
tztime.h my_decimal.h\
69
70
sql_array.h scheduler.h \
76
77
thr_malloc.cc item_create.cc item_subselect.cc \
78
79
field.cc strfunc.cc key.cc sql_class.cc sql_list.cc \
79
net_serv.cc protocol.cc sql_state.c \
80
protocol.cc sql_state.c \
80
81
lock.cc my_lock.c \
81
82
sql_string.cc sql_manager.cc sql_map.cc \
82
mysqld.cc password.c hash_filo.cc \
83
mysqld.cc hash_filo.cc \
83
84
sql_connect.cc scheduler.cc sql_parse.cc \
84
85
set_var.cc sql_yacc.yy \
85
86
sql_base.cc table.cc sql_select.cc sql_insert.cc \
104
105
tztime.cc my_decimal.cc\
105
106
sql_plugin.cc sql_binlog.cc \
109
nodist_mysqld_SOURCES = client.c net_serv.c
109
112
mysqld_SOURCES += probes.d
112
nodist_mysqld_SOURCES = mini_client_errors.c pack.c client.c my_time.c
114
115
gen_lex_hash_SOURCES = gen_lex_hash.cc
115
116
gen_lex_hash_LDFLAGS =
129
130
EXTRA_DIST = $(BUILT_MAINT_SRC) \
132
CLEANFILES = lex_hash.h sql_yacc.output link_sources
133
CLEANFILES = lex_hash.h sql_yacc.output link_sources $(nodist_mysqld_SOURCES)
133
134
DISTCLEANFILES = $(EXTRA_PROGRAMS)
134
135
MAINTAINERCLEANFILES = $(BUILT_MAINT_SRC)
135
136
AM_YFLAGS = -d --verbose
137
138
# These are listed in 'nodist_mysqld_SOURCES'
139
rm -f mini_client_errors.c
140
@LN_CP_F@ $(top_srcdir)/libmysql/errmsg.c mini_client_errors.c
142
@LN_CP_F@ $(top_srcdir)/sql-common/pack.c pack.c
144
@LN_CP_F@ $(top_srcdir)/sql-common/client.c client.c
146
@LN_CP_F@ $(top_srcdir)/sql-common/my_time.c my_time.c
141
@LN_CP_F@ $(top_srcdir)/libmysql/client.c client.c
143
@LN_CP_F@ $(top_srcdir)/libmysql/net_serv.c net_serv.c
147
144
echo timestamp > link_sources
149
147
# This generates lex_hash.h
150
148
# NOTE Built sources should depend on their sources not the tool
151
149
# this avoid the rebuild of the built files in a source dist
152
lex_hash.h: gen_lex_hash.cc lex.h
153
$(MAKE) $(AM_MAKEFLAGS) gen_lex_hash$(EXEEXT)
154
./gen_lex_hash$(EXEEXT) > $@-t
150
lex_hash.h: $(builddir)/gen_lex_hash$(EXEEXT) $(srcdir)/lex.h
151
$(builddir)/gen_lex_hash$(EXEEXT) > $@
157
153
probes.h: probes.d
158
154
$(DTRACE) $(DTRACEFLAGS) -h -s probes.d