1 # Copyright (c) 2000-2008 MySQL AB
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.
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.
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 Street, Fifth Floor, Boston, MA 02110-1301, USA
16 INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include \
18 LDADD = @CLIENT_EXTRA_LDFLAGS@ ../mysys/libmysys.a \
19 ../dbug/libdbug.a ../strings/libmystrings.a \
21 BUILT_SOURCES= $(top_builddir)/include/mysqld_error.h \
22 $(top_builddir)/include/sql_state.h \
23 $(top_builddir)/include/mysqld_ername.h
24 pkginclude_HEADERS= $(BUILT_SOURCES)
25 DISTCLEANFILES = $(BUILT_SOURCES)
29 # This will build mysqld_error.h, mysqld_ername.h and sql_state.h
30 # NOTE Built files should depend on their sources to avoid
31 # the built files being rebuilt in source dist
32 $(top_builddir)/include/mysqld_error.h: comp_err.c \
33 $(top_srcdir)/sql/share/errmsg.txt
34 $(MAKE) $(AM_MAKEFLAGS) comp_err$(EXEEXT)
35 $(top_builddir)/host/comp_err$(EXEEXT) \
36 --charset=$(top_srcdir)/sql/share/charsets \
37 --out-dir=$(top_builddir)/sql/share/ \
38 --header_file=$(top_builddir)/include/mysqld_error.h \
39 --name_file=$(top_builddir)/include/mysqld_ername.h \
40 --state_file=$(top_builddir)/include/sql_state.h \
41 --in_file=$(top_srcdir)/sql/share/errmsg.txt
42 $(top_builddir)/include/mysqld_ername.h: $(top_builddir)/include/mysqld_error.h
43 $(top_builddir)/include/sql_state.h: $(top_builddir)/include/mysqld_error.h
45 bin_PROGRAMS = replace perror resolveip my_print_defaults \
46 resolve_stack_dump mysql_waitpid
47 # "innochecksum" should be switched
49 bin_PROGRAMS += innochecksum
52 noinst_PROGRAMS = charset2html
53 EXTRA_PROGRAMS = comp_err
54 EXTRA_DIST = CMakeLists.txt
57 $(COMPILE) @ndbcluster_includes@ $(LM_CFLAGS) -c $<
59 # Don't update the files from bitkeeper