1
# Copyright (C) 2000-2006 MySQL AB
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
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.
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,
18
BUILT_SOURCES = $(HEADERS_GEN) link_sources
19
HEADERS_GEN = mysql_version.h my_config.h
20
HEADERS_ABI = mysql.h mysql_com.h mysql_time.h \
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 \
24
my_xml.h mysql_embed.h \
25
my_pthread.h my_no_pthread.h \
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 \
34
my_nosys.h my_alarm.h queues.h sha1.h sha2.h \
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 \
37
mysql_version.h.in my_handler.h my_time.h \
40
# Remove built files and the symlinked directories
41
CLEANFILES = $(BUILT_SOURCES)
43
EXTRA_DIST = mysql_h.ic
45
# Some include files that may be moved and patched by configure
46
DISTCLEANFILES = sched.h $(CLEANFILES)
49
echo timestamp > link_sources
51
# We want both "my_config.h" and "config.h" that are identical, as
52
# MySQL sources assumes the name "my_config.h", and 3rd party sources
53
# assumes the name "config.h".
55
$(CP) config.h my_config.h
57
# These files should not be included in distributions since they are
58
# generated by configure from the .h.in files
60
$(RM) -f $(distdir)/mysql_version.h $(distdir)/my_config.h
63
# Rules for checking that ABI has not changed
66
# Create a icheck file and compare it to the reference
67
abi_check: $(HEADERS_ABI) mysql_version.h mysql_h.ic
69
if [ @ICHECK@ != no ] ; then \
70
@ICHECK@ --canonify --skip-from-re /usr/ -o $@ $(HEADERS_ABI); \
71
@ICHECK@ --compare mysql_h.ic $@; \
75
# Don't update the files from bitkeeper