~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to client/Makefile.am

  • Committer: brian
  • Date: 2008-06-25 05:29:13 UTC
  • Revision ID: brian@localhost.localdomain-20080625052913-6upwo0jsrl4lnapl
clean slate

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
# This file is public domain and comes with NO WARRANTY of any kind
 
17
 
 
18
if THREAD_SAFE_CLIENT
 
19
LIBMYSQLCLIENT_LA =             $(top_builddir)/libmysql_r/libmysqlclient_r.la
 
20
else
 
21
LIBMYSQLCLIENT_LA =             $(top_builddir)/libmysql/libmysqlclient.la
 
22
endif
 
23
 
 
24
INCLUDES =                      -I$(top_builddir)/include \
 
25
                                -I$(top_srcdir)/include \
 
26
                                -I$(top_srcdir)/regex
 
27
 
 
28
LIBS =                          @CLIENT_LIBS@ -lz
 
29
 
 
30
LDADD=                          @CLIENT_EXTRA_LDFLAGS@ $(CLIENT_THREAD_LIBS) \
 
31
                                $(top_builddir)/libmysql/libmysqlclient.la -lz
 
32
 
 
33
noinst_HEADERS =                sql_string.h completion_hash.h my_readline.h \
 
34
                                client_priv.h
 
35
 
 
36
EXTRA_DIST =                    get_password.c CMakeLists.txt echo.c
 
37
 
 
38
BUILT_SOURCES =                 link_sources
 
39
 
 
40
CLEANFILES =                    $(BUILT_SOURCES)
 
41
 
 
42
bin_PROGRAMS =                  mysql \
 
43
                                mysqladmin \
 
44
                                mysqlbinlog \
 
45
                                mysqlcheck \
 
46
                                mysqldump \
 
47
                                mysqlimport \
 
48
                                mysqlshow \
 
49
                                mysqlslap \
 
50
                                mysqltest \
 
51
                                mysql_upgrade
 
52
 
 
53
mysql_SOURCES =                 mysql.cc readline.cc sql_string.cc \
 
54
                                completion_hash.cc
 
55
mysql_LDADD =                   -lreadline @TERMCAP_LIB@ \
 
56
                                $(LDADD) $(CXXLDFLAGS)
 
57
mysqladmin_SOURCES =            mysqladmin.cc
 
58
 
 
59
mysqlbinlog_SOURCES =           mysqlbinlog.cc \
 
60
                                $(top_srcdir)/mysys/mf_tempdir.c \
 
61
                                $(top_srcdir)/mysys/my_new.cc \
 
62
                                $(top_srcdir)/mysys/my_bit.c \
 
63
                                $(top_srcdir)/mysys/my_bitmap.c \
 
64
                                $(top_srcdir)/mysys/base64.c
 
65
mysqlbinlog_LDADD =             $(LDADD) $(CXXLDFLAGS)
 
66
 
 
67
mysqldump_SOURCES=              mysqldump.c \
 
68
                                my_user.c \
 
69
                                $(top_srcdir)/mysys/mf_getdate.c
 
70
 
 
71
mysqlimport_SOURCES=            mysqlimport.c
 
72
 
 
73
mysqlimport_LDADD =             $(CXXLDFLAGS) $(CLIENT_THREAD_LIBS) \
 
74
                                @CLIENT_EXTRA_LDFLAGS@ \
 
75
                                $(LIBMYSQLCLIENT_LA) \
 
76
                                $(top_builddir)/mysys/libmysys.a
 
77
 
 
78
mysqlshow_SOURCES=              mysqlshow.c
 
79
 
 
80
mysqlslap_SOURCES=              mysqlslap.c
 
81
mysqlslap_CFLAGS=               -DTHREAD -UUNDEF_THREADS_HACK
 
82
mysqlslap_LDADD =               $(CXXLDFLAGS) $(CLIENT_THREAD_LIBS) \
 
83
                                @CLIENT_EXTRA_LDFLAGS@ \
 
84
                                $(LIBMYSQLCLIENT_LA) \
 
85
                                $(top_builddir)/mysys/libmysys.a
 
86
 
 
87
mysqltest_SOURCES=              mysqltest.c \
 
88
                                $(top_srcdir)/mysys/my_getsystime.c \
 
89
                                $(top_srcdir)/mysys/my_copy.c \
 
90
                                $(top_srcdir)/mysys/my_mkdir.c
 
91
mysqltest_LDADD =               $(top_builddir)/regex/libregex.a $(LDADD)
 
92
 
 
93
mysql_upgrade_SOURCES=          mysql_upgrade.c \
 
94
                                $(top_srcdir)/mysys/my_getpagesize.c
 
95
 
 
96
# Fix for mit-threads
 
97
DEFS =                  -DUNDEF_THREADS_HACK \
 
98
                        -DDEFAULT_MYSQL_HOME="\"$(prefix)\"" \
 
99
                        -DDATADIR="\"$(localstatedir)\""
 
100
 
 
101
sql_src=log_event.h mysql_priv.h rpl_constants.h \
 
102
        log_event.cc my_decimal.h my_decimal.cc \
 
103
        log_event_old.h log_event_old.cc \
 
104
        rpl_record_old.h rpl_record_old.cc
 
105
strings_src=decimal.c dtoa.c
 
106
 
 
107
link_sources:
 
108
        for f in $(sql_src) ; do \
 
109
          rm -f $$f; \
 
110
          @LN_CP_F@ $(top_srcdir)/sql/$$f $$f; \
 
111
        done; \
 
112
        for f in $(strings_src) ; do \
 
113
          rm -f $(srcdir)/$$f; \
 
114
          @LN_CP_F@ $(top_srcdir)/strings/$$f $$f; \
 
115
        done; \
 
116
        rm -f $(srcdir)/my_user.c; \
 
117
        @LN_CP_F@ $(top_srcdir)/sql-common/my_user.c my_user.c;
 
118
        echo timestamp > link_sources;
 
119
 
 
120
# Don't update the files from bitkeeper
 
121
%::SCCS/s.%