~drizzle-trunk/drizzle/development

1 by brian
clean slate
1
# Copyright (C) 2000-2006 MySQL AB
2
#
3
# This library is free software; you can redistribute it and/or
4
# modify it under the terms of the GNU Library General Public
5
# License as published by the Free Software Foundation; version 2
6
# of the License.
7
#
8
# This library is distributed in the hope that it will be useful,
9
# but WITHOUT ANY WARRANTY; without even the implied warranty of
10
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11
# Library General Public License for more details.
12
#
13
# You should have received a copy of the GNU Library General Public
14
# License along with this library; if not, write to the Free
15
# Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
16
# MA 02111-1307, USA
17
202.1.5 by Monty Taylor
Fixed crazy bazillion-extra-tabs problem.
18
202.1.19 by Monty Taylor
Moved comp_err into include, since it is used to create files in include. Hopefully will make it easier to find/understand.
19
BUILT_SOURCES =		drizzle_version.h \
212.5.5 by Monty Taylor
Moved mysqld_err* -> drizzled_err*
20
			drizzled_ername.h \
21
			drizzled_error.h \
202.1.19 by Monty Taylor
Moved comp_err into include, since it is used to create files in include. Hopefully will make it easier to find/understand.
22
			sql_state.h
202.1.5 by Monty Taylor
Fixed crazy bazillion-extra-tabs problem.
23
24
HEADERS_ABI =		drizzle.h \
25
			drizzle_com.h \
26
			drizzle_time.h \
27
			my_list.h \
212.5.10 by Monty Taylor
Moved drizzle/plugin*h to drizzled
28
			typelib.h
202.1.5 by Monty Taylor
Fixed crazy bazillion-extra-tabs problem.
29
30
pkginclude_HEADERS =	$(HEADERS_ABI) \
31
			m_string.h \
32
			errmsg.h \
33
			my_global.h \
34
			my_net.h \
35
			my_getopt.h \
36
			my_dir.h \
37
			sql_common.h \
38
			m_ctype.h \
39
			my_attribute.h \
202.1.19 by Monty Taylor
Moved comp_err into include, since it is used to create files in include. Hopefully will make it easier to find/understand.
40
			$(BUILT_SOURCES)
202.1.5 by Monty Taylor
Fixed crazy bazillion-extra-tabs problem.
41
42
noinst_HEADERS =	my_bit.h \
43
			my_bitmap.h \
44
			my_uctype.h \
45
			my_base.h \
46
			queues.h \
47
			my_tree.h \
48
			my_trie.h \
49
			hash.h \
50
			t_ctype.h \
51
			drizzle_version.h.in \
52
			my_handler.h \
214 by Brian Aker
Rename of fields (fix issue with string and decimal .h clashing).
53
			my_time.h
202.1.6 by Monty Taylor
Added Makefile.am to server/field and build as libtool noinst lib.
54
202.1.19 by Monty Taylor
Moved comp_err into include, since it is used to create files in include. Hopefully will make it easier to find/understand.
55
LDADD = $(top_builddir)/mysys/libmysyslt.la \
212.5.4 by Monty Taylor
Renamed strings to mystrings, for include/lib naming consistency.
56
        $(top_builddir)/mystrings/libmystringslt.la $(ZLIB_LIBS)
202.1.19 by Monty Taylor
Moved comp_err into include, since it is used to create files in include. Hopefully will make it easier to find/understand.
57
58
EXTRA_PROGRAMS = comp_err
214 by Brian Aker
Rename of fields (fix issue with string and decimal .h clashing).
59
comperr_CFLAGS = -I${top_srcdir}/drizzled
202.1.19 by Monty Taylor
Moved comp_err into include, since it is used to create files in include. Hopefully will make it easier to find/understand.
60
212.5.5 by Monty Taylor
Moved mysqld_err* -> drizzled_err*
61
# This will build drizzled_error.h, drizzled_ername.h and sql_state.h
202.1.19 by Monty Taylor
Moved comp_err into include, since it is used to create files in include. Hopefully will make it easier to find/understand.
62
# NOTE Built files should depend on their sources to avoid
63
# the built files being rebuilt in source dist
212.5.5 by Monty Taylor
Moved mysqld_err* -> drizzled_err*
64
drizzled_error.h: comp_err$(EXEEXT) $(top_srcdir)/drizzled/share/errmsg.txt
202.1.19 by Monty Taylor
Moved comp_err into include, since it is used to create files in include. Hopefully will make it easier to find/understand.
65
	$(top_builddir)/include/comp_err$(EXEEXT) \
214 by Brian Aker
Rename of fields (fix issue with string and decimal .h clashing).
66
	--charset=$(top_srcdir)/drizzled/share/charsets \
67
	--out-dir=$(top_builddir)/drizzled/share/ \
212.5.5 by Monty Taylor
Moved mysqld_err* -> drizzled_err*
68
	--header_file=$(top_builddir)/include/drizzled_error.h \
69
	--name_file=$(top_builddir)/include/drizzled_ername.h \
202.1.19 by Monty Taylor
Moved comp_err into include, since it is used to create files in include. Hopefully will make it easier to find/understand.
70
	--state_file=$(top_builddir)/include/sql_state.h \
214 by Brian Aker
Rename of fields (fix issue with string and decimal .h clashing).
71
	--in_file=$(top_srcdir)/drizzled/share/errmsg.txt
202.1.19 by Monty Taylor
Moved comp_err into include, since it is used to create files in include. Hopefully will make it easier to find/understand.
72
212.5.5 by Monty Taylor
Moved mysqld_err* -> drizzled_err*
73
drizzled_ername.h: drizzled_error.h
74
sql_state.h: drizzled_error.h
1 by brian
clean slate
75
76
# Remove built files and the symlinked directories
202.1.5 by Monty Taylor
Fixed crazy bazillion-extra-tabs problem.
77
CLEANFILES = 		$(BUILT_SOURCES)
1 by brian
clean slate
78
202.1.5 by Monty Taylor
Fixed crazy bazillion-extra-tabs problem.
79
EXTRA_DIST = 		drizzle_h.ic
1 by brian
clean slate
80
81
# Some include files that may be moved and patched by configure
202.1.5 by Monty Taylor
Fixed crazy bazillion-extra-tabs problem.
82
DISTCLEANFILES =	sched.h \
83
			$(CLEANFILES)
1 by brian
clean slate
84
85
# These files should not be included in distributions since they are
86
# generated by configure from the .h.in files
87
dist-hook:
202.1.5 by Monty Taylor
Fixed crazy bazillion-extra-tabs problem.
88
	$(RM) -f $(distdir)/drizzle_version.h 
1 by brian
clean slate
89
90
#
91
# Rules for checking that ABI has not changed
92
#
93
94
# Create a icheck file and compare it to the reference
202.1.5 by Monty Taylor
Fixed crazy bazillion-extra-tabs problem.
95
abi_check:	$(HEADERS_ABI) drizzle_version.h mysql_h.ic
96
	@set -ex; \
97
	if test "x@ICHECK@" != "xno"  ; then \
98
		@ICHECK@ --canonify --skip-from-re /usr/ -o $@ $(HEADERS_ABI); \
99
		@ICHECK@ --compare drizzle_h.ic $@; \
100
	fi; \
101
	touch abi_check;
1 by brian
clean slate
102