13
13
# along with this program; if not, write to the Free Software
14
14
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16
AM_CPPFLAGS = -I$(top_builddir)/include -I$(top_srcdir)/include \
17
-I$(top_srcdir)/server
19
LDADD = $(top_builddir)/mysys/libmysyslt.la \
20
$(top_builddir)/strings/libmystringslt.la \
23
BUILT_SOURCES= $(top_builddir)/include/mysqld_error.h \
24
$(top_builddir)/include/sql_state.h \
25
$(top_builddir)/include/mysqld_ername.h
27
pkginclude_HEADERS= $(BUILT_SOURCES)
29
DISTCLEANFILES = $(BUILT_SOURCES) comp_err
35
# This will build mysqld_error.h, mysqld_ername.h and sql_state.h
36
# NOTE Built files should depend on their sources to avoid
37
# the built files being rebuilt in source dist
38
$(top_builddir)/include/mysqld_error.h: comp_err.c \
39
$(top_srcdir)/server/share/errmsg.txt
40
$(MAKE) $(AM_MAKEFLAGS) comp_err$(EXEEXT)
41
$(top_builddir)/extra/comp_err$(EXEEXT) \
42
--charset=$(top_srcdir)/server/share/charsets \
43
--out-dir=$(top_builddir)/server/share/ \
44
--header_file=$(top_builddir)/include/mysqld_error.h \
45
--name_file=$(top_builddir)/include/mysqld_ername.h \
46
--state_file=$(top_builddir)/include/sql_state.h \
47
--in_file=$(top_srcdir)/server/share/errmsg.txt
49
$(top_builddir)/include/mysqld_ername.h: $(top_builddir)/include/mysqld_error.h
50
$(top_builddir)/include/sql_state.h: $(top_builddir)/include/mysqld_error.h
52
bin_PROGRAMS = my_print_defaults \
58
EXTRA_PROGRAMS = comp_err
16
LDADD = $(top_builddir)/mysys/libmysyslt.la \
17
$(top_builddir)/strings/libmystringslt.la
20
bin_PROGRAMS = my_print_defaults \