1
# Copyright (C) 2000-2004 MySQL AB
3
# This program is free software; you can redistribute it and/or modify
4
# it under the terms of version 2 GNU General Public License as
5
# published by the Free Software Foundation.
7
# There are special exceptions to the terms and conditions of the GPL as it
8
# is applied to this software. View the full text of the exception in file
9
# EXCEPTIONS-CLIENT in the directory of this software distribution.
11
# This library is distributed in the hope that it will be useful,
12
# but WITHOUT ANY WARRANTY; without even the implied warranty of
13
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
# Library General Public License for more details.
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,
21
# This file is public domain and comes with NO WARRANTY of any kind
23
MYSQLDATAdir = $(localstatedir)
24
MYSQLSHAREdir = $(pkgdatadir)
25
MYSQLBASEdir= $(prefix)
27
pkglib_LTLIBRARIES = $(target)
29
noinst_PROGRAMS = conf_to_src
32
target_sources = libmysql.c password.c \
33
get_password.c errmsg.c
35
dbugobjects = dbug.lo # IT IS IN SAFEMALLOC.C sanity.lo
36
mysysheaders = mysys_priv.h my_static.h
37
vioheaders = vio_priv.h
38
mysysobjects1 = my_init.lo my_static.lo my_malloc.lo my_realloc.lo \
39
my_create.lo my_delete.lo mf_tempfile.lo my_open.lo \
40
my_file.lo my_read.lo my_write.lo errors.lo \
41
my_error.lo my_getwd.lo my_div.lo \
42
mf_pack.lo my_messnc.lo mf_dirname.lo mf_fn_ext.lo\
43
mf_wcomp.lo typelib.lo my_alloc.lo \
44
mf_format.lo mf_path.lo mf_unixpath.lo my_fopen.lo \
45
my_symlink.lo my_fstream.lo mf_arr_appstr.lo \
46
mf_loadpath.lo my_thr_init.lo \
47
thr_mutex.lo mulalloc.lo string.lo \
48
default.lo default_modify.lo \
49
my_compress.lo array.lo my_once.lo list.lo \
50
charset.lo charset-def.lo hash.lo mf_iocache.lo \
51
mf_iocache2.lo my_seek.lo my_sleep.lo \
52
my_pread.lo mf_cache.lo md5.lo sha1.lo \
54
my_rename.lo my_chsize.lo my_sync.lo my_getsystime.lo
56
sql_cmn_objects = pack.lo client.lo my_time.lo
58
# Not needed in the minimum library
59
mysysobjects2 = my_lib.lo mf_qsort.lo
60
mysysobjects = $(mysysobjects1) $(mysysobjects2)
61
target_libadd = $(mysysobjects) $(dbugobjects) $(sql_cmn_objects) $(vio_objects) $(sqlobjects) $(top_builddir)/strings/libmystringslt.la
62
target_ldflags = -version-info @SHARED_LIB_VERSION@ @LD_VERSION_SCRIPT@
63
vio_objects= vio.lo viosocket.lo
65
BUILT_SOURCES = link_sources
67
CLEANFILES = $(target_libadd) $(SHLIBOBJS) \
68
$(target) $(BUILT_SOURCES)
69
DEFS = -DDEFAULT_CHARSET_HOME="\"$(MYSQLBASEdir)\"" \
70
-DDATADIR="\"$(MYSQLDATAdir)\"" \
71
-DDEFAULT_HOME_ENV=MYSQL_HOME \
72
-DDEFAULT_GROUP_SUFFIX_ENV=MYSQL_GROUP_SUFFIX \
73
-DDEFAULT_SYSCONFDIR="\"$(sysconfdir)\"" \
74
-DSHAREDIR="\"$(MYSQLSHAREdir)\"" $(target_defs)
76
# The automatic dependencies miss this
77
#bmove_upp.lo: $(LTCHARSET_OBJS)
80
rm -f `echo $(dbugobjects) | sed "s;\.lo;.c;g"` \
81
`echo $(mysysobjects) | sed "s;\.lo;.c;g"` \
82
`echo $(vio_objects) | sed "s;\.lo;.c;g"` \
83
`echo $(sql_cmn_objects) | sed "s;\.lo;.c;g"` \
84
$(CHARSET_SRCS) $(CHARSET_OBJS) \
85
$(mysysheaders) $(vioheaders) \
88
conf_to_src_SOURCES = conf_to_src.c
90
#force static linking of conf_to_src - essential when linking against
91
#custom installation of libc
94
# Don't update the files from bitkeeper