2006-12-31 01:02:27 +01:00
|
|
|
# Copyright (C) 2000-2006 MySQL AB
|
2000-07-31 21:29:14 +02:00
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
2006-12-23 20:17:15 +01:00
|
|
|
# the Free Software Foundation; version 2 of the License.
|
2000-07-31 21:29:14 +02:00
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program; if not, write to the Free Software
|
|
|
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
|
2005-07-06 00:06:11 +02:00
|
|
|
INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include \
|
2005-11-07 16:25:06 +01:00
|
|
|
-I$(top_srcdir)/sql
|
2000-07-31 21:29:14 +02:00
|
|
|
LDADD = @CLIENT_EXTRA_LDFLAGS@ ../mysys/libmysys.a \
|
2007-02-22 16:41:51 +01:00
|
|
|
../dbug/libdbug.a ../strings/libmystrings.a \
|
|
|
|
$(ZLIB_LIBS)
|
2005-01-28 17:14:03 +01:00
|
|
|
BUILT_SOURCES= $(top_builddir)/include/mysqld_error.h \
|
|
|
|
$(top_builddir)/include/sql_state.h \
|
|
|
|
$(top_builddir)/include/mysqld_ername.h
|
2004-12-14 00:54:16 +01:00
|
|
|
pkginclude_HEADERS= $(BUILT_SOURCES)
|
2006-09-18 21:11:34 +02:00
|
|
|
DISTCLEANFILES = $(BUILT_SOURCES)
|
2006-04-12 14:08:24 +02:00
|
|
|
SUBDIRS = @yassl_dir@
|
2007-09-26 18:47:55 +02:00
|
|
|
DIST_SUBDIRS = yassl
|
2004-12-14 00:54:16 +01:00
|
|
|
|
2006-09-18 21:11:34 +02:00
|
|
|
# This will build mysqld_error.h, mysqld_ername.h and sql_state.h
|
|
|
|
# NOTE Built files should depend on their sources to avoid
|
|
|
|
# the built files being rebuilt in source dist
|
|
|
|
$(top_builddir)/include/mysqld_error.h: comp_err.c \
|
2009-10-15 14:23:43 +02:00
|
|
|
$(top_srcdir)/sql/share/errmsg-utf8.txt
|
2006-09-18 21:11:34 +02:00
|
|
|
$(MAKE) $(AM_MAKEFLAGS) comp_err$(EXEEXT)
|
2005-12-14 02:08:59 +01:00
|
|
|
$(top_builddir)/extra/comp_err$(EXEEXT) \
|
2005-01-28 17:14:03 +01:00
|
|
|
--charset=$(top_srcdir)/sql/share/charsets \
|
|
|
|
--out-dir=$(top_builddir)/sql/share/ \
|
|
|
|
--header_file=$(top_builddir)/include/mysqld_error.h \
|
|
|
|
--name_file=$(top_builddir)/include/mysqld_ername.h \
|
|
|
|
--state_file=$(top_builddir)/include/sql_state.h \
|
2009-10-15 14:23:43 +02:00
|
|
|
--in_file=$(top_srcdir)/sql/share/errmsg-utf8.txt
|
2005-01-28 17:14:03 +01:00
|
|
|
$(top_builddir)/include/mysqld_ername.h: $(top_builddir)/include/mysqld_error.h
|
|
|
|
$(top_builddir)/include/sql_state.h: $(top_builddir)/include/mysqld_error.h
|
2004-12-13 21:51:54 +01:00
|
|
|
|
2006-09-20 09:28:12 +02:00
|
|
|
bin_PROGRAMS = replace perror resolveip my_print_defaults \
|
2008-08-25 21:07:41 +02:00
|
|
|
resolve_stack_dump mysql_waitpid
|
|
|
|
# "innochecksum" should be switched
|
|
|
|
if BUILD_INNODB_TOOLS
|
|
|
|
bin_PROGRAMS += innochecksum
|
|
|
|
endif
|
|
|
|
|
2004-11-04 22:29:00 +01:00
|
|
|
noinst_PROGRAMS = charset2html
|
2006-09-20 09:28:12 +02:00
|
|
|
EXTRA_PROGRAMS = comp_err
|
2006-05-12 10:51:07 +02:00
|
|
|
EXTRA_DIST = CMakeLists.txt
|
2000-07-31 21:29:14 +02:00
|
|
|
|
2005-12-05 14:17:53 +01:00
|
|
|
perror.o: perror.c
|
|
|
|
$(COMPILE) @ndbcluster_includes@ $(LM_CFLAGS) -c $<
|