Makefile.am 2.1 KB
Newer Older
unknown's avatar
unknown committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
# Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
# 
# 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
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
# 
# 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
17
INCLUDES =		-I$(top_builddir)/include -I$(top_srcdir)/include \
18
			-I$(top_srcdir)/sql
unknown's avatar
unknown committed
19 20
LDADD =			@CLIENT_EXTRA_LDFLAGS@ ../mysys/libmysys.a \
			../dbug/libdbug.a ../strings/libmystrings.a
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)
unknown's avatar
unknown committed
25
CLEANFILES =		$(BUILT_SOURCES)
26
SUBDIRS =		@yassl_dir@
27 28

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

unknown's avatar
unknown committed
40
bin_PROGRAMS =		replace comp_err perror resolveip my_print_defaults \
41
			resolve_stack_dump mysql_waitpid innochecksum
42
noinst_PROGRAMS =	charset2html
43
EXTRA_DIST =		CMakeLists.txt
unknown's avatar
unknown committed
44

45 46 47
perror.o: perror.c 
	$(COMPILE) @ndbcluster_includes@ $(LM_CFLAGS) -c $<

48 49
# Don't update the files from bitkeeper
%::SCCS/s.%