diff options
author | cmiller@zippy.cornsilk.net <> | 2006-11-02 17:27:42 -0500 |
---|---|---|
committer | cmiller@zippy.cornsilk.net <> | 2006-11-02 17:27:42 -0500 |
commit | c34f3219b31dd2038d5060bf14dc30dafbab2cb8 (patch) | |
tree | 891a17ee42daa1b5e18cf363d182b94fef6aedf3 /include/Makefile.am | |
parent | 27f3bb10654927e50f362eea0364aa77559f63ae (diff) | |
parent | 15835edddd742bef8101d129715ce74dc2fdb6b7 (diff) | |
download | mariadb-git-c34f3219b31dd2038d5060bf14dc30dafbab2cb8.tar.gz |
Merge bk-internal.mysql.com:/home/bk/mysql-4.1
into zippy.cornsilk.net:/home/cmiller/work/mysql/mysql-4.1-maint
Diffstat (limited to 'include/Makefile.am')
-rw-r--r-- | include/Makefile.am | 26 |
1 files changed, 23 insertions, 3 deletions
diff --git a/include/Makefile.am b/include/Makefile.am index 3fa7b04d69a..a17ef377e78 100644 --- a/include/Makefile.am +++ b/include/Makefile.am @@ -15,14 +15,14 @@ # Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, # MA 02111-1307, USA -BUILT_SOURCES = mysql_version.h m_ctype.h my_config.h +BUILT_SOURCES = mysql_version.h my_config.h abi_check pkginclude_HEADERS = my_dbug.h m_string.h my_sys.h my_list.h my_xml.h \ mysql.h mysql_com.h mysqld_error.h mysql_embed.h \ my_semaphore.h my_pthread.h my_no_pthread.h raid.h \ errmsg.h my_global.h my_net.h my_alloc.h \ my_getopt.h sslopt-longopts.h my_dir.h typelib.h \ sslopt-vars.h sslopt-case.h sql_common.h keycache.h \ - sql_state.h mysql_time.h $(BUILT_SOURCES) + sql_state.h mysql_time.h m_ctype.h $(BUILT_SOURCES) noinst_HEADERS = config-win.h config-os2.h config-netware.h \ nisam.h heap.h merge.h my_bitmap.h\ myisam.h myisampack.h myisammrg.h ft_global.h\ @@ -32,8 +32,11 @@ noinst_HEADERS = config-win.h config-os2.h config-netware.h \ thr_lock.h t_ctype.h violite.h md5.h \ mysql_version.h.in my_handler.h my_time.h +CLEANFILES = abi_check +EXTRA_DIST = mysql_h.ic + # mysql_version.h are generated -SUPERCLEANFILES = mysql_version.h my_config.h +SUPERCLEANFILES = mysql_version.h my_config.h $(CLEANFILES) # Some include files that may be moved and patched by configure DISTCLEANFILES = sched.h $(SUPERCLEANFILES) @@ -55,5 +58,22 @@ link_sources: dist-hook: $(RM) -f $(distdir)/mysql_version.h $(distdir)/my_config.h +# +# Rules for checking that ABI has not changed +# + +# 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; \ + if [ @ICHECK@ != no ] ; then \ + @ICHECK@ --canonify --skip-from-re /usr/ -o $@.ic mysql.h; \ + @ICHECK@ --compare mysql_h.ic $@.ic; \ + fi; \ + touch abi_check; + +all: abi_check + + # Don't update the files from bitkeeper %::SCCS/s.% |