2006-12-31 01:02:27 +01:00
|
|
|
# Copyright (C) 2000-2006 MySQL AB
|
2000-07-31 21:29:14 +02:00
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
2006-12-23 20:17:15 +01:00
|
|
|
# the Free Software Foundation; version 2 of the License.
|
2000-07-31 21:29:14 +02:00
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program; if not, write to the Free Software
|
|
|
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
|
|
|
|
# This file is public domain and comes with NO WARRANTY of any kind
|
|
|
|
|
2005-07-06 00:06:11 +02:00
|
|
|
INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include
|
2000-07-31 21:29:14 +02:00
|
|
|
pkglib_LIBRARIES = libmystrings.a
|
|
|
|
|
|
|
|
# Exact one of ASSEMBLER_X
|
|
|
|
if ASSEMBLER_x86
|
2003-11-03 13:01:59 +01:00
|
|
|
ASRCS = strings-x86.s longlong2str-x86.s my_strtoll10-x86.s
|
2005-11-05 12:20:35 +01:00
|
|
|
CSRCS = bfill.c bmove.c bmove512.c bchange.c strxnmov.c int2str.c str2int.c r_strinstr.c strtod.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
|
2000-07-31 21:29:14 +02:00
|
|
|
else
|
2002-11-07 02:54:00 +01:00
|
|
|
if ASSEMBLER_sparc32
|
2000-07-31 21:29:14 +02:00
|
|
|
# These file MUST all be on the same line!! Otherwise automake
|
|
|
|
# generats a very broken makefile
|
2002-11-07 02:54:00 +01:00
|
|
|
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
|
2005-11-05 12:20:35 +01:00
|
|
|
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 strtod.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
|
2000-07-31 21:29:14 +02:00
|
|
|
else
|
|
|
|
#no assembler
|
|
|
|
ASRCS =
|
|
|
|
# These file MUST all be on the same line!! Otherwise automake
|
|
|
|
# generats a very broken makefile
|
2005-11-05 12:20:35 +01:00
|
|
|
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 strtod.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
|
2000-07-31 21:29:14 +02:00
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2002-10-01 21:57:10 +02:00
|
|
|
libmystrings_a_SOURCES = $(ASRCS) $(CSRCS)
|
2000-07-31 21:29:14 +02:00
|
|
|
noinst_PROGRAMS = conf_to_src
|
WL#1386 - CTYPE table for unicode character sets
A prerequisite for several fulltext and XML bugs.
MY_CHARSET_HANDLER now has a new function "ctype"
to detect a type of the next character in a string
(i.e. digit, letter, space, punctuation, control, etc),
which now works correctly for both 8bit and multibyte charsets.
Previously only 8bit charsets worked correctly,
while any multibyte character was considered as letter
in multibyte charsets.
Many files:
Adding new function
Makefile.am:
Adding build rules for uctypedump,
a dump tool to create my_uctype.h
using Unicode Character Database file.
m_ctype.h:
Adding declaration of my_uni_ctype,
ctype data for Unicode.
Adding new member into MY_CHARSET_HANDLER
Makefile.am:
Adding my_uctype.h into noinst_HEADERS
my_uctype.h, uctypedump.c:
new files:
ctype data for unicode,
and the tool to generate it from
a Unicode Character Database file.
2006-02-02 07:07:47 +01:00
|
|
|
CLEANFILES = str_test uctypedump test_decimal
|
2000-07-31 21:29:14 +02:00
|
|
|
# Default charset definitions
|
2005-01-12 11:58:15 +01:00
|
|
|
EXTRA_DIST = ctype-big5.c ctype-cp932.c ctype-czech.c ctype-eucjpms.c ctype-euc_kr.c ctype-win1250ch.c \
|
2004-10-18 14:06:46 +02:00
|
|
|
ctype-gb2312.c ctype-gbk.c ctype-sjis.c ctype-utf8.c \
|
|
|
|
ctype-ucs2.c ctype-uca.c ctype-tis620.c ctype-ujis.c \
|
|
|
|
xml.c decimal.c strto.c strings-x86.s \
|
2005-08-08 12:18:18 +02:00
|
|
|
longlong2str.c longlong2str-x86.s longlong2str_asm.c \
|
2003-11-03 13:01:59 +01:00
|
|
|
my_strtoll10.c my_strtoll10-x86.s \
|
2000-07-31 21:29:14 +02:00
|
|
|
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 strnlen.c \
|
|
|
|
bmove_upp-sparc.s strappend-sparc.s strend-sparc.s \
|
|
|
|
strinstr-sparc.s strmake-sparc.s strmov-sparc.s \
|
2002-02-16 19:32:06 +01:00
|
|
|
strnmov-sparc.s strstr-sparc.s strxmov-sparc.s \
|
2006-05-12 10:51:07 +02:00
|
|
|
t_ctype.h my_strchr.c CMakeLists.txt
|
2000-07-31 21:29:14 +02:00
|
|
|
|
2002-03-19 17:03:10 +01:00
|
|
|
libmystrings_a_LIBADD=
|
2004-10-20 00:28:42 +02:00
|
|
|
conf_to_src_SOURCES = conf_to_src.c xml.c ctype.c bcmp.c
|
2000-07-31 21:29:14 +02:00
|
|
|
conf_to_src_LDADD=
|
2001-04-03 03:01:15 +02:00
|
|
|
#force static linking of conf_to_src - essential when linking against
|
|
|
|
#custom installation of libc
|
|
|
|
conf_to_src_LDFLAGS= @NOINST_LDFLAGS@
|
2000-07-31 21:29:14 +02:00
|
|
|
|
|
|
|
# This is because the dependency tracking misses @FOO@ vars in sources.
|
2002-03-19 17:03:10 +01:00
|
|
|
#strtoull.o: @CHARSET_OBJS@
|
2000-07-31 21:29:14 +02:00
|
|
|
|
|
|
|
|
2004-10-18 14:06:46 +02:00
|
|
|
FLAGS=$(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) @NOINST_LDFLAGS@
|
|
|
|
|
2004-10-19 14:38:54 +02:00
|
|
|
str_test: str_test.c $(pkglib_LIBRARIES)
|
|
|
|
$(LINK) $(FLAGS) -DMAIN $(INCLUDES) $(srcdir)/str_test.c $(LDADD) $(pkglib_LIBRARIES)
|
2004-10-18 14:06:46 +02:00
|
|
|
|
WL#1386 - CTYPE table for unicode character sets
A prerequisite for several fulltext and XML bugs.
MY_CHARSET_HANDLER now has a new function "ctype"
to detect a type of the next character in a string
(i.e. digit, letter, space, punctuation, control, etc),
which now works correctly for both 8bit and multibyte charsets.
Previously only 8bit charsets worked correctly,
while any multibyte character was considered as letter
in multibyte charsets.
Many files:
Adding new function
Makefile.am:
Adding build rules for uctypedump,
a dump tool to create my_uctype.h
using Unicode Character Database file.
m_ctype.h:
Adding declaration of my_uni_ctype,
ctype data for Unicode.
Adding new member into MY_CHARSET_HANDLER
Makefile.am:
Adding my_uctype.h into noinst_HEADERS
my_uctype.h, uctypedump.c:
new files:
ctype data for unicode,
and the tool to generate it from
a Unicode Character Database file.
2006-02-02 07:07:47 +01:00
|
|
|
uctypedump: uctypedump.c
|
|
|
|
$(LINK) $(INCLUDES) $(srcdir)/uctypedump.c
|
|
|
|
|
2004-10-19 14:38:54 +02:00
|
|
|
test_decimal$(EXEEXT): decimal.c $(pkglib_LIBRARIES)
|
2004-10-18 14:06:46 +02:00
|
|
|
$(CP) $(srcdir)/decimal.c ./test_decimal.c
|
2004-10-19 14:38:54 +02:00
|
|
|
$(LINK) $(FLAGS) -DMAIN ./test_decimal.c $(LDADD) $(pkglib_LIBRARIES)
|
2004-10-18 14:06:46 +02:00
|
|
|
$(RM) -f ./test_decimal.c
|
2002-11-07 02:54:00 +01:00
|
|
|
|
2000-08-18 11:48:00 +02:00
|
|
|
# Don't update the files from bitkeeper
|
|
|
|
%::SCCS/s.%
|
2004-10-18 14:06:46 +02:00
|
|
|
|