2000-07-31 21:29:14 +02:00
|
|
|
# Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
2000-08-31 11:05:41 +02:00
|
|
|
#
|
2000-07-31 21:29:14 +02:00
|
|
|
# This library is free software; you can redistribute it and/or
|
|
|
|
# modify it under the terms of the GNU Library General Public
|
|
|
|
# License as published by the Free Software Foundation; either
|
|
|
|
# version 2 of the License, or (at your option) any later version.
|
2000-08-31 11:05:41 +02:00
|
|
|
#
|
2000-07-31 21:29:14 +02:00
|
|
|
# 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.
|
2000-08-31 11:05:41 +02:00
|
|
|
#
|
2000-07-31 21:29:14 +02:00
|
|
|
# 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
|
|
|
|
|
2006-10-27 15:57:00 +02:00
|
|
|
BUILT_SOURCES = mysql_version.h my_config.h abi_check
|
2003-03-19 21:25:44 +01:00
|
|
|
pkginclude_HEADERS = my_dbug.h m_string.h my_sys.h my_list.h my_xml.h \
|
2001-09-22 16:40:57 +02:00
|
|
|
mysql.h mysql_com.h mysqld_error.h mysql_embed.h \
|
2007-03-12 13:12:42 +01:00
|
|
|
my_pthread.h my_no_pthread.h raid.h \
|
2002-09-05 15:17:08 +02:00
|
|
|
errmsg.h my_global.h my_net.h my_alloc.h \
|
2003-03-16 18:17:54 +01:00
|
|
|
my_getopt.h sslopt-longopts.h my_dir.h typelib.h \
|
2003-11-21 11:22:51 +01:00
|
|
|
sslopt-vars.h sslopt-case.h sql_common.h keycache.h \
|
2006-10-27 15:57:00 +02:00
|
|
|
sql_state.h mysql_time.h m_ctype.h $(BUILT_SOURCES)
|
2003-01-28 07:38:28 +01:00
|
|
|
noinst_HEADERS = config-win.h config-os2.h config-netware.h \
|
2001-02-03 17:18:58 +01:00
|
|
|
nisam.h heap.h merge.h my_bitmap.h\
|
2000-07-31 21:29:14 +02:00
|
|
|
myisam.h myisampack.h myisammrg.h ft_global.h\
|
2004-05-25 23:01:23 +02:00
|
|
|
mysys_err.h my_base.h help_start.h help_end.h \
|
2002-06-23 17:42:29 +02:00
|
|
|
my_nosys.h my_alarm.h queues.h rijndael.h sha1.h \
|
2002-09-05 15:17:08 +02:00
|
|
|
my_aes.h my_tree.h hash.h thr_alarm.h \
|
2002-08-30 11:40:40 +02:00
|
|
|
thr_lock.h t_ctype.h violite.h md5.h \
|
2004-06-25 08:30:24 +02:00
|
|
|
mysql_version.h.in my_handler.h my_time.h
|
2000-07-31 21:29:14 +02:00
|
|
|
|
2006-10-27 15:57:00 +02:00
|
|
|
CLEANFILES = abi_check
|
|
|
|
EXTRA_DIST = mysql_h.ic
|
2006-10-24 20:32:07 +02:00
|
|
|
|
2000-07-31 21:29:14 +02:00
|
|
|
# mysql_version.h are generated
|
2006-10-24 20:32:07 +02:00
|
|
|
SUPERCLEANFILES = mysql_version.h my_config.h $(CLEANFILES)
|
2000-07-31 21:29:14 +02:00
|
|
|
|
|
|
|
# Some include files that may be moved and patched by configure
|
2003-04-23 12:44:00 +02:00
|
|
|
DISTCLEANFILES = sched.h $(SUPERCLEANFILES)
|
2000-07-31 21:29:14 +02:00
|
|
|
|
2005-09-24 15:51:45 +02:00
|
|
|
clean-local:
|
2004-04-26 13:27:23 +02:00
|
|
|
$(RM) -fr readline
|
2005-09-24 15:51:45 +02:00
|
|
|
distclean-local:
|
2004-04-26 13:27:23 +02:00
|
|
|
$(RM) -fr readline
|
2003-01-18 17:28:48 +01:00
|
|
|
|
2001-01-21 15:30:16 +01:00
|
|
|
my_config.h: ../config.h
|
|
|
|
$(CP) ../config.h my_config.h
|
2005-09-24 15:51:45 +02:00
|
|
|
|
|
|
|
link_sources:
|
2004-04-26 13:27:23 +02:00
|
|
|
-$(RM) -fr readline
|
2003-01-18 17:28:48 +01:00
|
|
|
@readline_h_ln_cmd@
|
2001-01-21 15:30:16 +01:00
|
|
|
|
2000-07-31 21:29:14 +02:00
|
|
|
# These files should not be included in distributions since they are
|
|
|
|
# generated by configure from the .h.in files
|
|
|
|
dist-hook:
|
2000-12-08 16:04:57 +01:00
|
|
|
$(RM) -f $(distdir)/mysql_version.h $(distdir)/my_config.h
|
2000-08-16 04:14:02 +02:00
|
|
|
|
2006-10-24 20:32:07 +02:00
|
|
|
#
|
|
|
|
# Rules for checking that ABI has not changed
|
|
|
|
#
|
|
|
|
|
2006-10-27 15:57:00 +02:00
|
|
|
# Create a icheck file and compare it to the reference
|
|
|
|
abi_check: mysql.h mysql_version.h mysql_com.h mysql_time.h my_list.h \
|
|
|
|
my_alloc.h typelib.h
|
|
|
|
@set -ex; \
|
2006-10-24 20:32:07 +02:00
|
|
|
if [ @ICHECK@ != no ] ; then \
|
2006-10-27 15:57:00 +02:00
|
|
|
@ICHECK@ --canonify --skip-from-re /usr/ -o $@.ic mysql.h; \
|
|
|
|
@ICHECK@ --compare mysql_h.ic $@.ic; \
|
2006-11-13 13:32:39 +01:00
|
|
|
$(RM) -f $@.ic; \
|
2006-10-24 20:32:07 +02:00
|
|
|
fi; \
|
2006-10-27 15:57:00 +02:00
|
|
|
touch abi_check;
|
2006-10-24 20:32:07 +02:00
|
|
|
|
2006-10-27 15:57:00 +02:00
|
|
|
all: abi_check
|
2006-10-24 20:32:07 +02:00
|
|
|
|
|
|
|
|
2000-08-16 04:14:02 +02:00
|
|
|
# Don't update the files from bitkeeper
|
|
|
|
%::SCCS/s.%
|