~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to include/Makefile.am

MergedĀ inĀ remove-include-dir

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 =         drizzled_ername.h \
20
 
                        drizzled_error.h \
21
 
                        sql_state.h
22
 
 
23
 
pkginclude_HEADERS =    $(BUILT_SOURCES)
24
 
 
25
 
LDADD = $(top_builddir)/mysys/libmysyslt.la \
26
 
        $(top_builddir)/mystrings/libmystringslt.la $(ZLIB_LIBS)
27
 
 
28
 
EXTRA_PROGRAMS = comp_err
29
 
comperr_CFLAGS = -I${top_srcdir}/drizzled
30
 
 
31
 
# This will build drizzled_error.h, drizzled_ername.h and sql_state.h
32
 
# NOTE Built files should depend on their sources to avoid
33
 
# the built files being rebuilt in source dist
34
 
drizzled_error.h: comp_err$(EXEEXT) $(top_srcdir)/drizzled/share/errmsg.txt
35
 
        $(top_builddir)/include/comp_err$(EXEEXT) \
36
 
        --charset=$(top_srcdir)/drizzled/share/charsets \
37
 
        --out-dir=$(top_builddir)/drizzled/share/ \
38
 
        --header_file=$(top_builddir)/include/drizzled_error.h \
39
 
        --name_file=$(top_builddir)/include/drizzled_ername.h \
40
 
        --state_file=$(top_builddir)/include/sql_state.h \
41
 
        --in_file=$(top_srcdir)/drizzled/share/errmsg.txt
42
 
 
43
 
drizzled_ername.h: drizzled_error.h
44
 
sql_state.h: drizzled_error.h
45
 
 
46
 
# Remove built files and the symlinked directories
47
 
CLEANFILES =            $(BUILT_SOURCES)
48
 
 
49
 
EXTRA_DIST =            drizzle_h.ic
50
 
 
51
 
# Some include files that may be moved and patched by configure
52
 
DISTCLEANFILES =        sched.h \
53
 
                        comp_err \
54
 
                        $(CLEANFILES)
55
 
 
56
 
 
57
 
#
58
 
# Rules for checking that ABI has not changed
59
 
#
60
 
 
61
 
# Create a icheck file and compare it to the reference
62
 
abi_check:      $(HEADERS_ABI) drizzle_version.h mysql_h.ic
63
 
        @set -ex; \
64
 
        if test "x@ICHECK@" != "xno"  ; then \
65
 
                @ICHECK@ --canonify --skip-from-re /usr/ -o $@ $(HEADERS_ABI); \
66
 
                @ICHECK@ --compare drizzle_h.ic $@; \
67
 
        fi; \
68
 
        touch abi_check;
69