~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to include/Makefile.am

Giant merge.

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
 
 
19
 
BUILT_SOURCES =         drizzle_version.h \
20
 
                        mysqld_ername.h \
21
 
                        mysqld_error.h \
22
 
                        sql_state.h
23
 
 
24
 
HEADERS_ABI =           drizzle.h \
25
 
                        drizzle_com.h \
26
 
                        drizzle_time.h \
27
 
                        my_list.h \
28
 
                        my_alloc.h \
29
 
                        typelib.h \
30
 
                        drizzle/plugin.h \
31
 
                        drizzle/plugin_audit.h
32
 
 
33
 
pkginclude_HEADERS =    $(HEADERS_ABI) \
34
 
                        m_string.h \
35
 
                        my_sys.h \
36
 
                        my_xml.h \
37
 
                        my_pthread.h \
38
 
                        decimal.h \
39
 
                        errmsg.h \
40
 
                        my_global.h \
41
 
                        my_net.h \
42
 
                        my_getopt.h \
43
 
                        my_dir.h \
44
 
                        sql_common.h \
45
 
                        keycache.h \
46
 
                        m_ctype.h \
47
 
                        my_attribute.h \
48
 
                        $(BUILT_SOURCES)
49
 
 
50
 
noinst_HEADERS =        my_bit.h \
51
 
                        heap.h \
52
 
                        my_bitmap.h \
53
 
                        my_uctype.h \
54
 
                        myisam.h \
55
 
                        myisampack.h \
56
 
                        myisammrg.h \
57
 
                        mysys_err.h \
58
 
                        my_base.h \
59
 
                        my_nosys.h \
60
 
                        queues.h \
61
 
                        sha1.h \
62
 
                        sha2.h \
63
 
                        my_tree.h \
64
 
                        my_trie.h \
65
 
                        hash.h \
66
 
                        thr_alarm.h \
67
 
                        thr_lock.h \
68
 
                        t_ctype.h \
69
 
                        violite.h \
70
 
                        my_md5.h \
71
 
                        base64.h \
72
 
                        drizzle_version.h.in \
73
 
                        my_handler.h \
74
 
                        my_time.h \
75
 
                        drizzle/server/field/blob.h \
76
 
                        drizzle/server/field/date.h \
77
 
                        drizzle/server/field/datetime.h \
78
 
                        drizzle/server/field/decimal.h \
79
 
                        drizzle/server/field/double.h \
80
 
                        drizzle/server/field/int64_t.h \
81
 
                        drizzle/server/field/long.h \
82
 
                        drizzle/server/field/null.h \
83
 
                        drizzle/server/field/set.h \
84
 
                        drizzle/server/field/short.h \
85
 
                        drizzle/server/field/string.h \
86
 
                        drizzle/server/field/timestamp.h \
87
 
                        drizzle/server/field/timetype.h \
88
 
                        drizzle/server/field/varstring.h \
89
 
                        drizzle/server/field/year.h
90
 
 
91
 
LDADD = $(top_builddir)/mysys/libmysyslt.la \
92
 
        $(top_builddir)/strings/libmystringslt.la $(ZLIB_LIBS)
93
 
 
94
 
EXTRA_PROGRAMS = comp_err
95
 
comperr_CFLAGS = -I${top_srcdir}/server
96
 
 
97
 
# This will build mysqld_error.h, mysqld_ername.h and sql_state.h
98
 
# NOTE Built files should depend on their sources to avoid
99
 
# the built files being rebuilt in source dist
100
 
mysqld_error.h: comp_err$(EXEEXT) $(top_srcdir)/server/share/errmsg.txt
101
 
        $(top_builddir)/include/comp_err$(EXEEXT) \
102
 
        --charset=$(top_srcdir)/server/share/charsets \
103
 
        --out-dir=$(top_builddir)/server/share/ \
104
 
        --header_file=$(top_builddir)/include/mysqld_error.h \
105
 
        --name_file=$(top_builddir)/include/mysqld_ername.h \
106
 
        --state_file=$(top_builddir)/include/sql_state.h \
107
 
        --in_file=$(top_srcdir)/server/share/errmsg.txt
108
 
 
109
 
mysqld_ername.h: mysqld_error.h
110
 
sql_state.h: mysqld_error.h
111
 
 
112
 
# Remove built files and the symlinked directories
113
 
CLEANFILES =            $(BUILT_SOURCES)
114
 
 
115
 
EXTRA_DIST =            drizzle_h.ic
116
 
 
117
 
# Some include files that may be moved and patched by configure
118
 
DISTCLEANFILES =        sched.h \
119
 
                        $(CLEANFILES)
120
 
 
121
 
# These files should not be included in distributions since they are
122
 
# generated by configure from the .h.in files
123
 
dist-hook:
124
 
        $(RM) -f $(distdir)/drizzle_version.h 
125
 
 
126
 
#
127
 
# Rules for checking that ABI has not changed
128
 
#
129
 
 
130
 
# Create a icheck file and compare it to the reference
131
 
abi_check:      $(HEADERS_ABI) drizzle_version.h mysql_h.ic
132
 
        @set -ex; \
133
 
        if test "x@ICHECK@" != "xno"  ; then \
134
 
                @ICHECK@ --canonify --skip-from-re /usr/ -o $@ $(HEADERS_ABI); \
135
 
                @ICHECK@ --compare drizzle_h.ic $@; \
136
 
        fi; \
137
 
        touch abi_check;
138