~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to libmysql/Makefile.am

  • Committer: Monty Taylor
  • Date: 2008-07-05 11:20:18 UTC
  • mto: This revision was merged to the branch mainline in revision 62.
  • Revision ID: monty@inaugust.com-20080705112018-fr12kkmgphtu7m29
Changes so that removal of duplicate curr_dir from my_sys.h work.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2008 Sun Microsystems, Inc.
 
1
# Copyright (C) 2000-2004 MySQL AB
2
2
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of version 2 GNU General Public License as
13
13
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14
14
# Library General Public License for more details.
15
15
16
 
# You should have received a copy of the GNU General Public License
17
 
# along with this program; if not, write to the Free Software
18
 
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
19
 
 
20
 
 
 
16
# You should have received a copy of the GNU Library General Public
 
17
# License along with this library; if not, write to the Free
 
18
# Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
 
19
# MA 02111-1307, USA
 
20
#
 
21
# This file is public domain and comes with NO WARRANTY of any kind
21
22
 
22
23
MYSQLDATAdir =                  $(localstatedir)
23
24
MYSQLSHAREdir =                 $(pkgdatadir)
24
25
MYSQLBASEdir=                   $(prefix)
25
26
 
26
 
libdrizzleincludedir = ${includedir}/libdrizzle
27
 
dist_libdrizzleinclude_HEADERS =        libdrizzle.h \
28
 
                                        drizzle_com.h \
29
 
                                        errmsg.h \
30
 
                                        net_serv.h \
31
 
                                        sql_common.h \
32
 
                                        drizzle.h \
33
 
                                        drizzle_res.h \
34
 
                                        drizzle_field.h \
35
 
                                        drizzle_rows.h \
36
 
                                        drizzle_methods.h \
37
 
                                        drizzle_data.h \
38
 
                                        drizzle_options.h \
39
 
                                        drizzle_parameters.h
40
 
 
41
 
lib_LTLIBRARIES = libdrizzle.la
42
 
libdrizzle_la_SOURCES = client.c \
43
 
                        drizzle.c \
44
 
                        drizzle_data.c \
45
 
                        errmsg.c \
46
 
                        get_password.c \
47
 
                        libdrizzle.c \
48
 
                        libdrizzle_priv.c \
49
 
                        local_infile.c \
50
 
                        net_serv.c \
51
 
                        pack.c \
52
 
                        password.c
53
 
 
54
 
libdrizzle_la_LIBADD =  ${top_builddir}/vio/libviolt.la 
55
 
libdrizzle_la_LDFLAGS = -version-info @SHARED_LIB_VERSION@ @LD_VERSION_SCRIPT@ 
 
27
pkglib_LTLIBRARIES = libmysqlclient.la
 
28
libmysqlclient_la_SOURCES = libmysql.c get_password.c \
 
29
                            client.c net_serv.c
 
30
libmysqlclient_la_LIBADD = ${sql_cmn_objects} ${sqlobjects} \
 
31
                           ${top_builddir}/mysys/libmysyslt.la \
 
32
                           ${top_builddir}/strings/libmystringslt.la \
 
33
                           ${top_builddir}/dbug/libdbuglt.la \
 
34
                           ${top_builddir}/sql-common/libsqlcommon.la \
 
35
                           ${top_builddir}/vio/libviolt.la 
 
36
libmysqlclient_la_LDFLAGS = -version-info @SHARED_LIB_VERSION@ @LD_VERSION_SCRIPT@ 
56
37
 
57
38
DEFS =                  -DDEFAULT_CHARSET_HOME="\"$(MYSQLBASEdir)\"" \
58
39
                        -DDATADIR="\"$(MYSQLDATAdir)\"" \
59
 
                        -DDEFAULT_HOME_ENV=DRIZZLE_HOME \
60
 
                        -DDEFAULT_GROUP_SUFFIX_ENV=DRIZZLE_GROUP_SUFFIX \
 
40
                        -DDEFAULT_HOME_ENV=MYSQL_HOME \
 
41
                        -DDEFAULT_GROUP_SUFFIX_ENV=MYSQL_GROUP_SUFFIX \
61
42
                        -DDEFAULT_SYSCONFDIR="\"$(sysconfdir)\"" \
62
43
                        -DSHAREDIR="\"$(MYSQLSHAREdir)\"" \
63
44
                        -DUNDEF_THREADS_HACK
64
45
 
65
 
noinst_HEADERS =        gettext.h \
66
 
                        libdrizzle_priv.h \
67
 
                        local_infile.h
68
 
 
69
 
EXTRA_DIST =            libdrizzle.ver
 
46
LIBS =          @CLIENT_LIBS@ 
 
47
AM_CPPFLAGS =   -I$(top_builddir)/include -I$(top_srcdir)/vio -I$(top_srcdir)/mysys -I$(top_builddir)/sql-common
 
48
 
 
49
EXTRA_DIST = libmysql.def
 
50
noinst_HEADERS = client_settings.h
 
51
 
70
52
CLEANFILES =            $(target_libadd) $(SHLIBOBJS) \
71
53
                        $(target) $(BUILT_SOURCES)
72
54
 
 
55
 
 
56
# This part requires GNUmake
 
57
#
 
58
# This makes a distribution file with only the files needed to compile
 
59
# a minimal MySQL client library
 
60
#
 
61
# A list of needed headers collected from the deps information 000213
 
62
nh =            my_global.h dbug.h errmsg.h \
 
63
                m_ctype.h m_string.h \
 
64
                my_alarm.h my_config.h my_dir.h my_list.h my_net.h my_sys.h \
 
65
                mysql.h mysql_com.h mysql_version.h mysqld_error.h \
 
66
                mysys_err.h my_pthread.h thr_alarm.h violite.h hash.h \
 
67
                sql_common.h