~linuxjedi/drizzle/trunk-bug-667053

« back to all changes in this revision

Viewing changes to include/Makefile.am

  • Committer: brian
  • Date: 2008-06-25 05:29:13 UTC
  • Revision ID: brian@localhost.localdomain-20080625052913-6upwo0jsrl4lnapl
clean slate

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 
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 \
 
38
                        my_user.h
 
39
 
 
40
# Remove built files and the symlinked directories
 
41
CLEANFILES =            $(BUILT_SOURCES)
 
42
 
 
43
EXTRA_DIST =            mysql_h.ic
 
44
 
 
45
# Some include files that may be moved and patched by configure
 
46
DISTCLEANFILES =        sched.h $(CLEANFILES)
 
47
 
 
48
link_sources:
 
49
        echo timestamp > link_sources
 
50
 
 
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".
 
54
my_config.h: config.h
 
55
        $(CP) config.h my_config.h
 
56
 
 
57
# These files should not be included in distributions since they are
 
58
# generated by configure from the .h.in files
 
59
dist-hook:
 
60
        $(RM) -f $(distdir)/mysql_version.h $(distdir)/my_config.h
 
61
 
 
62
#
 
63
# Rules for checking that ABI has not changed
 
64
#
 
65
 
 
66
# Create a icheck file and compare it to the reference
 
67
abi_check: $(HEADERS_ABI) mysql_version.h mysql_h.ic
 
68
        @set -ex; \
 
69
        if [ @ICHECK@ != no ] ; then \
 
70
          @ICHECK@ --canonify --skip-from-re /usr/ -o $@ $(HEADERS_ABI); \
 
71
          @ICHECK@ --compare mysql_h.ic $@; \
 
72
        fi; \
 
73
        touch abi_check;
 
74
 
 
75
# Don't update the files from bitkeeper
 
76
%::SCCS/s.%