1
# Copyright (C) 2000-2006 MySQL AB
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.
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.
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
16
# This file is public domain and comes with NO WARRANTY of any kind
18
INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include
19
pkglib_LIBRARIES = libmystrings.a
21
# Exact one of ASSEMBLER_X
23
ASRCS = strings-x86.s longlong2str-x86.s my_strtoll10-x86.s
24
CSRCS = bfill.c bmove.c bmove512.c bchange.c strxnmov.c int2str.c str2int.c r_strinstr.c bcmp.c strtol.c strtoul.c strtoll.c strtoull.c llstr.c strnlen.c ctype.c ctype-simple.c ctype-mb.c ctype-big5.c ctype-cp932.c ctype-czech.c ctype-eucjpms.c ctype-euc_kr.c ctype-gb2312.c ctype-gbk.c ctype-sjis.c ctype-tis620.c ctype-ujis.c ctype-utf8.c ctype-ucs2.c ctype-uca.c ctype-win1250ch.c ctype-bin.c ctype-latin1.c my_vsnprintf.c xml.c decimal.c ctype-extra.c str_alloc.c longlong2str_asm.c my_strchr.c dtoa.c
27
# These file MUST all be on the same line!! Otherwise automake
28
# generats a very broken makefile
29
ASRCS = bmove_upp-sparc.s strappend-sparc.s strend-sparc.s strinstr-sparc.s strmake-sparc.s strmov-sparc.s strnmov-sparc.s strstr-sparc.s
30
CSRCS = strcont.c strfill.c strcend.c is_prefix.c longlong2str.c bfill.c bmove.c bmove512.c bchange.c strxnmov.c int2str.c str2int.c r_strinstr.c bcmp.c strtol.c strtoul.c strtoll.c strtoull.c llstr.c strnlen.c strxmov.c ctype.c ctype-simple.c ctype-mb.c ctype-big5.c ctype-cp932.c ctype-czech.c ctype-eucjpms.c ctype-euc_kr.c ctype-gb2312.c ctype-gbk.c ctype-sjis.c ctype-tis620.c ctype-ujis.c ctype-utf8.c ctype-ucs2.c ctype-uca.c ctype-win1250ch.c ctype-bin.c ctype-latin1.c my_vsnprintf.c xml.c decimal.c ctype-extra.c my_strtoll10.c str_alloc.c my_strchr.c dtoa.c
34
# These file MUST all be on the same line!! Otherwise automake
35
# generats a very broken makefile
36
CSRCS = strxmov.c bmove_upp.c strappend.c strcont.c strend.c strfill.c strcend.c is_prefix.c strstr.c strinstr.c strmake.c strnmov.c strmov.c longlong2str.c bfill.c bmove.c bmove512.c bchange.c strxnmov.c int2str.c str2int.c r_strinstr.c bcmp.c strtol.c strtoul.c strtoll.c strtoull.c llstr.c strnlen.c ctype.c ctype-simple.c ctype-mb.c ctype-big5.c ctype-cp932.c ctype-czech.c ctype-eucjpms.c ctype-euc_kr.c ctype-gb2312.c ctype-gbk.c ctype-sjis.c ctype-tis620.c ctype-ujis.c ctype-utf8.c ctype-ucs2.c ctype-uca.c ctype-win1250ch.c ctype-bin.c ctype-latin1.c my_vsnprintf.c xml.c decimal.c ctype-extra.c my_strtoll10.c str_alloc.c my_strchr.c dtoa.c
40
libmystrings_a_SOURCES = $(ASRCS) $(CSRCS)
41
noinst_PROGRAMS = conf_to_src
42
CLEANFILES = str_test uctypedump test_decimal
43
# Default charset definitions
44
EXTRA_DIST = ctype-big5.c ctype-cp932.c ctype-czech.c ctype-eucjpms.c ctype-euc_kr.c ctype-win1250ch.c \
45
ctype-gb2312.c ctype-gbk.c ctype-sjis.c ctype-utf8.c \
46
ctype-ucs2.c ctype-uca.c ctype-tis620.c ctype-ujis.c \
47
xml.c decimal.c strto.c strings-x86.s \
48
longlong2str.c longlong2str-x86.s longlong2str_asm.c \
49
my_strtoll10.c my_strtoll10-x86.s \
50
strxmov.c bmove_upp.c strappend.c strcont.c strend.c \
51
strfill.c strcend.c is_prefix.c strstr.c strinstr.c \
52
strmake.c strnmov.c strmov.c strnlen.c \
53
bmove_upp-sparc.s strappend-sparc.s strend-sparc.s \
54
strinstr-sparc.s strmake-sparc.s strmov-sparc.s \
55
strnmov-sparc.s strstr-sparc.s strxmov-sparc.s \
56
t_ctype.h my_strchr.c CMakeLists.txt
58
libmystrings_a_LIBADD=
59
conf_to_src_SOURCES = conf_to_src.c xml.c ctype.c bcmp.c
61
#force static linking of conf_to_src - essential when linking against
62
#custom installation of libc
63
conf_to_src_LDFLAGS= @NOINST_LDFLAGS@
65
# This is because the dependency tracking misses @FOO@ vars in sources.
66
#strtoull.o: @CHARSET_OBJS@
69
FLAGS=$(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) @NOINST_LDFLAGS@
71
str_test: str_test.c $(pkglib_LIBRARIES)
72
$(LINK) $(FLAGS) -DMAIN $(INCLUDES) $(srcdir)/str_test.c $(LDADD) $(pkglib_LIBRARIES)
74
uctypedump: uctypedump.c
75
$(LINK) $(INCLUDES) $(srcdir)/uctypedump.c
77
test_decimal$(EXEEXT): decimal.c $(pkglib_LIBRARIES)
78
$(CP) $(srcdir)/decimal.c ./test_decimal.c
79
$(LINK) $(FLAGS) -DMAIN ./test_decimal.c $(LDADD) $(pkglib_LIBRARIES)
80
$(RM) -f ./test_decimal.c
82
# Don't update the files from bitkeeper