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 = drizzle_version.h \
24
HEADERS_ABI = drizzle.h \
31
drizzle/plugin_audit.h
33
pkginclude_HEADERS = $(HEADERS_ABI) \
50
noinst_HEADERS = my_bit.h \
72
drizzle_version.h.in \
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
91
LDADD = $(top_builddir)/mysys/libmysyslt.la \
92
$(top_builddir)/strings/libmystringslt.la $(ZLIB_LIBS)
94
EXTRA_PROGRAMS = comp_err
95
comperr_CFLAGS = -I${top_srcdir}/server
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
109
mysqld_ername.h: mysqld_error.h
110
sql_state.h: mysqld_error.h
112
# Remove built files and the symlinked directories
113
CLEANFILES = $(BUILT_SOURCES)
115
EXTRA_DIST = drizzle_h.ic
117
# Some include files that may be moved and patched by configure
118
DISTCLEANFILES = sched.h \
121
# These files should not be included in distributions since they are
122
# generated by configure from the .h.in files
124
$(RM) -f $(distdir)/drizzle_version.h
127
# Rules for checking that ABI has not changed
130
# Create a icheck file and compare it to the reference
131
abi_check: $(HEADERS_ABI) drizzle_version.h mysql_h.ic
133
if test "x@ICHECK@" != "xno" ; then \
134
@ICHECK@ --canonify --skip-from-re /usr/ -o $@ $(HEADERS_ABI); \
135
@ICHECK@ --compare drizzle_h.ic $@; \