1
# Copyright (C) 2000-2006 MySQL AB
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
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.
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,
19
BUILT_SOURCES = drizzled_ername.h \
23
pkginclude_HEADERS = $(BUILT_SOURCES)
25
LDADD = $(top_builddir)/mysys/libmysyslt.la \
26
$(top_builddir)/mystrings/libmystringslt.la $(ZLIB_LIBS)
28
EXTRA_PROGRAMS = comp_err
29
comperr_CFLAGS = -I${top_srcdir}/drizzled
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
43
drizzled_ername.h: drizzled_error.h
44
sql_state.h: drizzled_error.h
46
# Remove built files and the symlinked directories
47
CLEANFILES = $(BUILT_SOURCES)
49
EXTRA_DIST = drizzle_h.ic
51
# Some include files that may be moved and patched by configure
52
DISTCLEANFILES = sched.h \
58
# Rules for checking that ABI has not changed
61
# Create a icheck file and compare it to the reference
62
abi_check: $(HEADERS_ABI) drizzle_version.h mysql_h.ic
64
if test "x@ICHECK@" != "xno" ; then \
65
@ICHECK@ --canonify --skip-from-re /usr/ -o $@ $(HEADERS_ABI); \
66
@ICHECK@ --compare drizzle_h.ic $@; \