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)
26
## We'll use CLIENT_EXTRA_LDFLAGS for threaded and non-threaded
27
## until someone complains that they need separate options.
28
LDADD = @CLIENT_EXTRA_LDFLAGS@ $(target)
29
pkglib_LTLIBRARIES = $(target)
31
noinst_PROGRAMS = conf_to_src
34
target_sources = libmysql.c password.c \
35
get_password.c errmsg.c
37
mystringsobjects = strmov.lo strxmov.lo strxnmov.lo strnmov.lo \
38
strmake.lo strend.lo \
39
strnlen.lo strfill.lo is_prefix.lo \
40
int2str.lo str2int.lo strinstr.lo strcont.lo \
41
strcend.lo bcmp.lo ctype-latin1.lo \
42
bchange.lo bmove.lo bmove_upp.lo longlong2str.lo \
43
strtoull.lo strtoll.lo llstr.lo my_vsnprintf.lo \
44
ctype.lo ctype-simple.lo ctype-bin.lo ctype-mb.lo \
45
ctype-big5.lo ctype-czech.lo ctype-cp932.lo ctype-eucjpms.lo ctype-euc_kr.lo \
46
ctype-win1250ch.lo ctype-utf8.lo ctype-extra.lo \
47
ctype-ucs2.lo ctype-gb2312.lo ctype-gbk.lo \
48
ctype-sjis.lo ctype-tis620.lo ctype-ujis.lo \
49
ctype-uca.lo xml.lo my_strtoll10.lo str_alloc.lo dtoa.lo
51
mystringsextra= strto.c
52
dbugobjects = dbug.lo # IT IS IN SAFEMALLOC.C sanity.lo
53
mysysheaders = mysys_priv.h my_static.h
54
vioheaders = vio_priv.h
55
mysysobjects1 = my_init.lo my_static.lo my_malloc.lo my_realloc.lo \
56
my_create.lo my_delete.lo mf_tempfile.lo my_open.lo \
57
my_file.lo my_read.lo my_write.lo errors.lo \
58
my_error.lo my_getwd.lo my_div.lo \
59
mf_pack.lo my_messnc.lo mf_dirname.lo mf_fn_ext.lo\
60
mf_wcomp.lo typelib.lo my_alloc.lo \
61
mf_format.lo mf_path.lo mf_unixpath.lo my_fopen.lo \
62
my_symlink.lo my_fstream.lo mf_arr_appstr.lo \
63
mf_loadpath.lo my_pthread.lo my_thr_init.lo \
64
thr_mutex.lo mulalloc.lo string.lo \
65
default.lo default_modify.lo \
66
my_compress.lo array.lo my_once.lo list.lo \
67
charset.lo charset-def.lo hash.lo mf_iocache.lo \
68
mf_iocache2.lo my_seek.lo my_sleep.lo \
69
my_pread.lo mf_cache.lo md5.lo sha1.lo \
71
my_rename.lo my_chsize.lo my_sync.lo my_getsystime.lo
73
sql_cmn_objects = pack.lo client.lo my_time.lo
75
# Not needed in the minimum library
76
mysysobjects2 = my_lib.lo mf_qsort.lo
77
mysysobjects = $(mysysobjects1) $(mysysobjects2)
78
target_libadd = $(mysysobjects) $(mystringsobjects) $(dbugobjects) \
79
$(sql_cmn_objects) $(vio_objects) $(sqlobjects)
80
target_ldflags = -version-info @SHARED_LIB_VERSION@ @LD_VERSION_SCRIPT@
81
vio_objects= vio.lo viosocket.lo
83
BUILT_SOURCES = link_sources
85
CLEANFILES = $(target_libadd) $(SHLIBOBJS) \
86
$(target) $(BUILT_SOURCES)
87
DEFS = -DDEFAULT_CHARSET_HOME="\"$(MYSQLBASEdir)\"" \
88
-DDATADIR="\"$(MYSQLDATAdir)\"" \
89
-DDEFAULT_HOME_ENV=MYSQL_HOME \
90
-DDEFAULT_GROUP_SUFFIX_ENV=MYSQL_GROUP_SUFFIX \
91
-DDEFAULT_SYSCONFDIR="\"$(sysconfdir)\"" \
92
-DSHAREDIR="\"$(MYSQLSHAREdir)\"" $(target_defs)
94
# The automatic dependencies miss this
95
#bmove_upp.lo: $(LTCHARSET_OBJS)
98
rm -f `echo $(mystringsobjects) | sed "s;\.lo;.c;g"` \
99
`echo $(dbugobjects) | sed "s;\.lo;.c;g"` \
100
`echo $(mysysobjects) | sed "s;\.lo;.c;g"` \
101
`echo $(vio_objects) | sed "s;\.lo;.c;g"` \
102
`echo $(sql_cmn_objects) | sed "s;\.lo;.c;g"` \
103
$(CHARSET_SRCS) $(CHARSET_OBJS) \
104
$(mystringsextra) $(mysysheaders) $(vioheaders) \
107
conf_to_src_SOURCES = conf_to_src.c
109
#force static linking of conf_to_src - essential when linking against
110
#custom installation of libc
111
conf_to_src_LDFLAGS=@NOINST_LDFLAGS@
113
# Don't update the files from bitkeeper