~drizzle-trunk/drizzle/development

1 by brian
clean slate
1
# Copyright (C) 2000-2006 MySQL AB
2
# 
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.
6
# 
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.
11
# 
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., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
15
16
INCLUDES =		-I$(top_builddir)/include -I$(top_srcdir)/include \
17
			-I$(top_srcdir)/sql
18
LDADD =			@CLIENT_EXTRA_LDFLAGS@ ../mysys/libmysys.a \
19
			../dbug/libdbug.a ../strings/libmystrings.a \
20
			-lz
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)
26
SUBDIRS =		
27
DIST_SUBDIRS =		
28
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)/extra/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
44
45
bin_PROGRAMS =		my_print_defaults \
46
			mysql_waitpid innochecksum
47
noinst_PROGRAMS =	charset2html
48
EXTRA_PROGRAMS =	comp_err
49
EXTRA_DIST =		CMakeLists.txt
50
51
# Don't update the files from bitkeeper
52
%::SCCS/s.%