Makefile.am 2.52 KB
Newer Older
unknown's avatar
unknown committed
1
# Copyright (C) 2000-2006 MySQL AB
unknown's avatar
unknown committed
2
#
unknown's avatar
unknown committed
3 4
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Library General Public
unknown's avatar
unknown committed
5 6
# License as published by the Free Software Foundation; version 2
# of the License.
unknown's avatar
unknown committed
7
#
unknown's avatar
unknown committed
8 9 10 11
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# Library General Public License for more details.
unknown's avatar
unknown committed
12
#
unknown's avatar
unknown committed
13 14 15 16 17
# You should have received a copy of the GNU Library General Public
# License along with this library; if not, write to the Free
# Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
# MA 02111-1307, USA

unknown's avatar
unknown committed
18 19 20 21 22 23
BUILT_SOURCES =		$(HEADERS_GEN) abi_check
HEADERS_GEN =		mysql_version.h my_config.h
HEADERS_ABI =		mysql.h mysql_com.h mysql_time.h \
			my_list.h my_alloc.h typelib.h
pkginclude_HEADERS =	$(HEADERS_ABI) my_dbug.h m_string.h my_sys.h \
			my_xml.h mysql_embed.h \
24
			my_pthread.h my_no_pthread.h raid.h \
unknown's avatar
unknown committed
25 26
			errmsg.h my_global.h my_net.h \
			my_getopt.h sslopt-longopts.h my_dir.h \
unknown's avatar
unknown committed
27
			sslopt-vars.h sslopt-case.h sql_common.h keycache.h \
unknown's avatar
unknown committed
28
			m_ctype.h $(HEADERS_GEN)
unknown's avatar
unknown committed
29
noinst_HEADERS =	config-win.h config-os2.h config-netware.h \
30
			heap.h my_bitmap.h\
unknown's avatar
unknown committed
31
			myisam.h myisampack.h myisammrg.h ft_global.h\
unknown's avatar
unknown committed
32
			mysys_err.h my_base.h help_start.h help_end.h \
33
			my_nosys.h my_alarm.h queues.h rijndael.h sha1.h \
34
			my_aes.h my_tree.h hash.h thr_alarm.h \
unknown's avatar
unknown committed
35
			thr_lock.h t_ctype.h violite.h md5.h base64.h \
36
			mysql_version.h.in my_handler.h my_time.h decimal.h \
37
			my_user.h my_libwrap.h
unknown's avatar
unknown committed
38

39 40
# Remove built files and the symlinked directories
CLEANFILES =            $(BUILT_SOURCES) readline openssl
unknown's avatar
unknown committed
41

42
EXTRA_DIST =            mysql_h.ic
unknown's avatar
unknown committed
43 44

# Some include files that may be moved and patched by configure
unknown's avatar
unknown committed
45
DISTCLEANFILES =	sched.h $(CLEANFILES)
46

unknown's avatar
unknown committed
47
link_sources:
48
	-$(RM) -fr readline
49
	@readline_h_ln_cmd@
50
	@yassl_h_ln_cmd@
unknown's avatar
unknown committed
51

unknown's avatar
unknown committed
52 53 54
my_config.h: ../config.h
	$(CP) ../config.h my_config.h

unknown's avatar
unknown committed
55 56 57
# These files should not be included in distributions since they are
# generated by configure from the .h.in files
dist-hook:
unknown's avatar
unknown committed
58
	$(RM) -f $(distdir)/mysql_version.h $(distdir)/my_config.h
unknown's avatar
unknown committed
59

60 61 62 63
#
# Rules for checking that ABI has not changed
#

unknown's avatar
unknown committed
64
# Create a icheck file and compare it to the reference
unknown's avatar
unknown committed
65
abi_check: $(HEADERS_ABI) mysql_version.h mysql_h.ic
66
	@set -ex; \
67
	if [ @ICHECK@ != no ] ; then \
unknown's avatar
unknown committed
68 69
	  @ICHECK@ --canonify --skip-from-re /usr/ -o $@.ic mysql.h; \
	  @ICHECK@ --compare mysql_h.ic $@.ic; \
70
	  $(RM) -f $@.ic; \
71
	fi; \
unknown's avatar
unknown committed
72
	touch abi_check;
73

unknown's avatar
unknown committed
74 75
# Don't update the files from bitkeeper
%::SCCS/s.%