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

« back to all changes in this revision

Viewing changes to libmysqld/examples/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 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
noinst_PROGRAMS = mysql
 
17
bin_PROGRAMS    = mysqltest_embedded mysql_client_test_embedded
 
18
client_sources  = $(nodist_mysqltest_embedded_SOURCES) $(nodist_mysql_SOURCES)
 
19
tests_sources   = $(nodist_mysql_client_test_embedded_SOURCES)
 
20
BUILT_SOURCES   = link_sources
 
21
CLEANFILES      = $(client_sources) $(tests_sources) $(BUILT_SOURCES)
 
22
EXTRA_DIST      = CMakeLists.txt
 
23
 
 
24
link_sources:
 
25
        for f in $(client_sources); do \
 
26
          rm -f $$f; \
 
27
          @LN_CP_F@ $(top_srcdir)/client/$$f $$f; \
 
28
        done; \
 
29
        for f in $(tests_sources); do \
 
30
          rm -f $$f; \
 
31
          @LN_CP_F@ $(top_srcdir)/tests/$$f $$f; \
 
32
        done
 
33
        echo timestamp > link_sources
 
34
 
 
35
DEFS =          -DEMBEDDED_LIBRARY
 
36
INCLUDES =      -I$(top_builddir)/include -I$(top_srcdir)/include -I$(srcdir) \
 
37
                -I$(top_srcdir) -I$(top_srcdir)/client -I$(top_srcdir)/regex \
 
38
                $(openssl_includes)
 
39
LIBS =          @LIBS@ @WRAPLIBS@ @CLIENT_LIBS@ $(yassl_libs)
 
40
LDADD =         @CLIENT_EXTRA_LDFLAGS@ ../libmysqld.a @LIBDL@ $(CXXLDFLAGS) \
 
41
                @NDB_SCI_LIBS@
 
42
 
 
43
mysqltest_embedded_LINK = $(CXXLINK)
 
44
nodist_mysqltest_embedded_SOURCES =     mysqltest.cc
 
45
mysqltest_embedded_LDADD =      $(LDADD) $(top_builddir)/regex/libregex.a
 
46
 
 
47
nodist_mysql_SOURCES = mysql.cc readline.cc completion_hash.cc \
 
48
                my_readline.h sql_string.h completion_hash.h
 
49
mysql_LDADD = @readline_link@ @TERMCAP_LIB@ $(LDADD)
 
50
 
 
51
mysql_client_test_embedded_LINK = $(CXXLINK)
 
52
nodist_mysql_client_test_embedded_SOURCES = mysql_client_test.c
 
53
 
 
54
# Don't update the files from bitkeeper
 
55
%::SCCS/s.%