~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
53.2.24 by Monty Taylor
Added an automake conditional to not build the dbug dir, since I don't want to keep seeing errors for it while cleaning up other parts of the tree.
16
if BUILD_DBUG
17
  d_dbug = $(top_builddir)/dbug/libdbuglt.la
18
endif
19
28.1.20 by Monty Taylor
Replaced INCLUDES with AM_CPPFLAGS.
20
AM_CPPFLAGS =		-I$(top_builddir)/include -I$(top_srcdir)/include \
1 by brian
clean slate
21
			-I$(top_srcdir)/sql
28.1.2 by Monty Taylor
First stab at back porting libtool convenience lib patch from telco-6.2
22
LDADD =			$(top_builddir)/mysys/libmysyslt.la \
53.2.24 by Monty Taylor
Added an automake conditional to not build the dbug dir, since I don't want to keep seeing errors for it while cleaning up other parts of the tree.
23
 			$(d_dbug) \
28.1.3 by Monty Taylor
Fixed patch application so that the silly thing compiles. :)
24
                        $(top_builddir)/strings/libmystringslt.la \
25
			-lz
28.1.2 by Monty Taylor
First stab at back porting libtool convenience lib patch from telco-6.2
26
1 by brian
clean slate
27
BUILT_SOURCES=		$(top_builddir)/include/mysqld_error.h \
28
                        $(top_builddir)/include/sql_state.h \
29
                        $(top_builddir)/include/mysqld_ername.h
30
pkginclude_HEADERS=	$(BUILT_SOURCES)
31
DISTCLEANFILES =	$(BUILT_SOURCES)
32
SUBDIRS =		
33
DIST_SUBDIRS =		
34
35
# This will build mysqld_error.h, mysqld_ername.h and sql_state.h
36
# NOTE Built files should depend on their sources to avoid
37
# the built files being rebuilt in source dist
38
$(top_builddir)/include/mysqld_error.h: comp_err.c \
39
			$(top_srcdir)/sql/share/errmsg.txt
40
	$(MAKE) $(AM_MAKEFLAGS) comp_err$(EXEEXT)
41
	$(top_builddir)/extra/comp_err$(EXEEXT) \
42
	--charset=$(top_srcdir)/sql/share/charsets \
43
	--out-dir=$(top_builddir)/sql/share/ \
44
	--header_file=$(top_builddir)/include/mysqld_error.h \
45
	--name_file=$(top_builddir)/include/mysqld_ername.h \
46
	--state_file=$(top_builddir)/include/sql_state.h \
47
	--in_file=$(top_srcdir)/sql/share/errmsg.txt
48
$(top_builddir)/include/mysqld_ername.h: $(top_builddir)/include/mysqld_error.h
49
$(top_builddir)/include/sql_state.h: $(top_builddir)/include/mysqld_error.h
50
51
bin_PROGRAMS =		my_print_defaults \
52
			mysql_waitpid innochecksum
17 by Brian Aker
Dead support files, removed gethostbyname_r (we do not use it any longer).
53
noinst_PROGRAMS =	
1 by brian
clean slate
54
EXTRA_PROGRAMS =	comp_err