Makefile.am 2.31 KB
Newer Older
unknown's avatar
unknown committed
1
# Copyright (C) 2000-2006 MySQL AB
unknown's avatar
unknown committed
2 3 4
# 
# 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
unknown's avatar
unknown committed
5
# the Free Software Foundation; version 2 of the License.
unknown's avatar
unknown committed
6 7 8 9 10 11 12 13 14 15
# 
# 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

unknown's avatar
Merge  
unknown committed
16
INCLUDES =		-I$(top_builddir)/include -I$(top_srcdir)/include \
17
			-I$(top_srcdir)/sql
unknown's avatar
unknown committed
18
LDADD =			@CLIENT_EXTRA_LDFLAGS@ ../mysys/libmysys.a \
19 20
			../dbug/libdbug.a ../strings/libmystrings.a \
			$(ZLIB_LIBS)
unknown's avatar
unknown committed
21 22 23
BUILT_SOURCES=		$(top_builddir)/include/mysqld_error.h \
                        $(top_builddir)/include/sql_state.h \
                        $(top_builddir)/include/mysqld_ername.h
24
pkginclude_HEADERS=	$(BUILT_SOURCES)
25
DISTCLEANFILES =	$(BUILT_SOURCES)
26
SUBDIRS =		@yassl_dir@
unknown's avatar
unknown committed
27
DIST_SUBDIRS =		yassl
28

29 30 31 32
# 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 \
33
			$(top_srcdir)/sql/share/errmsg-utf8.txt
34
	$(MAKE) $(AM_MAKEFLAGS) comp_err$(EXEEXT)
unknown's avatar
unknown committed
35
	$(top_builddir)/extra/comp_err$(EXEEXT) \
unknown's avatar
unknown committed
36 37 38 39 40
	--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 \
41
	--in_file=$(top_srcdir)/sql/share/errmsg-utf8.txt
unknown's avatar
unknown committed
42 43
$(top_builddir)/include/mysqld_ername.h: $(top_builddir)/include/mysqld_error.h
$(top_builddir)/include/sql_state.h: $(top_builddir)/include/mysqld_error.h
44

45
bin_PROGRAMS =		replace perror resolveip my_print_defaults \
46 47 48 49 50 51
			resolve_stack_dump mysql_waitpid 
# "innochecksum" should be switched
if BUILD_INNODB_TOOLS
bin_PROGRAMS += innochecksum
endif

52
noinst_PROGRAMS =	charset2html
53
EXTRA_PROGRAMS =	comp_err
54
EXTRA_DIST =		CMakeLists.txt
unknown's avatar
unknown committed
55

56 57
perror.o: perror.c 
	$(COMPILE) @ndbcluster_includes@ $(LM_CFLAGS) -c $<