~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
18
BUILT_SOURCES =		$(HEADERS_GEN) link_sources
77.1.39 by Monty Taylor
More mysql->drizzle renaming.
19
HEADERS_GEN =		drizzle_version.h
20
HEADERS_ABI =		drizzle.h drizzle_com.h drizzle_time.h \
1 by brian
clean slate
21
			my_list.h my_alloc.h typelib.h mysql/plugin.h \
22
			mysql/plugin_audit.h mysql/plugin_ftparser.h
23
pkginclude_HEADERS =	$(HEADERS_ABI) my_dbug.h m_string.h my_sys.h \
18 by Brian Aker
Incoming merge, took the opportunity to remove mysql_embed.h while I was at
24
			my_xml.h \
28.1.35 by Monty Taylor
Removed all references to THREAD.
25
		  	my_pthread.h \
1 by brian
clean slate
26
			decimal.h errmsg.h my_global.h my_net.h \
27
			my_getopt.h my_dir.h \
28
			sql_common.h keycache.h \
29
			m_ctype.h my_attribute.h $(HEADERS_GEN)
30
noinst_HEADERS =	my_bit.h \
31
			heap.h my_bitmap.h my_uctype.h \
32
			myisam.h myisampack.h myisammrg.h ft_global.h\
33
			mysys_err.h my_base.h help_start.h help_end.h \
53.2.16 by Monty Taylor
Removed my_alarm. Made my_lock only do the non-alarm version. Moved my_lock to MyISAM where it belongs.
34
			my_nosys.h queues.h sha1.h sha2.h \
1 by brian
clean slate
35
			my_tree.h my_trie.h hash.h thr_alarm.h \
36
			thr_lock.h t_ctype.h violite.h my_md5.h base64.h \
77.1.39 by Monty Taylor
More mysql->drizzle renaming.
37
			drizzle_version.h.in my_handler.h my_time.h
1 by brian
clean slate
38
39
# Remove built files and the symlinked directories
40
CLEANFILES =            $(BUILT_SOURCES)
41
77.1.39 by Monty Taylor
More mysql->drizzle renaming.
42
EXTRA_DIST =            drizzle_h.ic
1 by brian
clean slate
43
44
# Some include files that may be moved and patched by configure
45
DISTCLEANFILES =	sched.h $(CLEANFILES)
46
47
link_sources:
48
	echo timestamp > link_sources
49
50
# These files should not be included in distributions since they are
51
# generated by configure from the .h.in files
52
dist-hook:
77.1.39 by Monty Taylor
More mysql->drizzle renaming.
53
	$(RM) -f $(distdir)/drizzle_version.h 
1 by brian
clean slate
54
55
#
56
# Rules for checking that ABI has not changed
57
#
58
59
# Create a icheck file and compare it to the reference
77.1.39 by Monty Taylor
More mysql->drizzle renaming.
60
abi_check: $(HEADERS_ABI) drizzle_version.h mysql_h.ic
1 by brian
clean slate
61
	@set -ex; \
62
	if [ @ICHECK@ != no ] ; then \
63
	  @ICHECK@ --canonify --skip-from-re /usr/ -o $@ $(HEADERS_ABI); \
77.1.39 by Monty Taylor
More mysql->drizzle renaming.
64
	  @ICHECK@ --compare drizzle_h.ic $@; \
1 by brian
clean slate
65
	fi; \
66
	touch abi_check;
67