~ubuntu-branches/ubuntu/precise/mysql-5.1/precise

« back to all changes in this revision

Viewing changes to extra/Makefile.am

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Tretkowski
  • Date: 2010-03-17 14:56:02 UTC
  • Revision ID: james.westby@ubuntu.com-20100317145602-x7e30l1b2sb5s6w6
Tags: upstream-5.1.45
ImportĀ upstreamĀ versionĀ 5.1.45

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Copyright (C) 2000-2006 MySQL AB
 
2
 
3
# This program is free software; you can redistribute it and/or modify
 
4
# it under the terms of the GNU General Public License as published by
 
5
# the Free Software Foundation; version 2 of the License.
 
6
 
7
# This program is distributed in the hope that it will be useful,
 
8
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
9
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
10
# GNU General Public License for more details.
 
11
 
12
# You should have received a copy of the GNU General Public License
 
13
# along with this program; if not, write to the Free Software
 
14
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
15
 
 
16
INCLUDES =              -I$(top_builddir)/include -I$(top_srcdir)/include \
 
17
                        -I$(top_srcdir)/sql
 
18
LDADD =                 @CLIENT_EXTRA_LDFLAGS@ ../mysys/libmysys.a \
 
19
                        ../dbug/libdbug.a ../strings/libmystrings.a \
 
20
                        $(ZLIB_LIBS)
 
21
BUILT_SOURCES=          $(top_builddir)/include/mysqld_error.h \
 
22
                        $(top_builddir)/include/sql_state.h \
 
23
                        $(top_builddir)/include/mysqld_ername.h
 
24
pkginclude_HEADERS=     $(BUILT_SOURCES)
 
25
DISTCLEANFILES =        $(BUILT_SOURCES)
 
26
SUBDIRS =               @yassl_dir@
 
27
DIST_SUBDIRS =          yassl
 
28
 
 
29
# This will build mysqld_error.h, mysqld_ername.h and sql_state.h
 
30
# NOTE Built files should depend on their sources to avoid
 
31
# the built files being rebuilt in source dist
 
32
$(top_builddir)/include/mysqld_error.h: comp_err.c \
 
33
                        $(top_srcdir)/sql/share/errmsg.txt
 
34
        $(MAKE) $(AM_MAKEFLAGS) comp_err$(EXEEXT)
 
35
        $(top_builddir)/extra/comp_err$(EXEEXT) \
 
36
        --charset=$(top_srcdir)/sql/share/charsets \
 
37
        --out-dir=$(top_builddir)/sql/share/ \
 
38
        --header_file=$(top_builddir)/include/mysqld_error.h \
 
39
        --name_file=$(top_builddir)/include/mysqld_ername.h \
 
40
        --state_file=$(top_builddir)/include/sql_state.h \
 
41
        --in_file=$(top_srcdir)/sql/share/errmsg.txt
 
42
$(top_builddir)/include/mysqld_ername.h: $(top_builddir)/include/mysqld_error.h
 
43
$(top_builddir)/include/sql_state.h: $(top_builddir)/include/mysqld_error.h
 
44
 
 
45
bin_PROGRAMS =          replace perror resolveip my_print_defaults \
 
46
                        resolve_stack_dump mysql_waitpid 
 
47
# "innochecksum" should be switched
 
48
if BUILD_INNODB_TOOLS
 
49
bin_PROGRAMS += innochecksum
 
50
endif
 
51
 
 
52
noinst_PROGRAMS =       charset2html
 
53
EXTRA_PROGRAMS =        comp_err
 
54
EXTRA_DIST =            CMakeLists.txt
 
55
 
 
56
perror.o: perror.c 
 
57
        $(COMPILE) @ndbcluster_includes@ $(LM_CFLAGS) -c $<
 
58
 
 
59
# Don't update the files from bitkeeper
 
60
%::SCCS/s.%