14
14
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16
16
# This file is public domain and comes with NO WARRANTY of any kind
18
17
INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include
19
pkglib_LIBRARIES = libmystrings.a
18
pkglib_LTLIBRARIES = libmystrings.la
19
libmystrings_la_LDFLAGS = -static
20
libmystrings_la_SOURCES =
22
# These are the symbols we don't use in mysqlclient
23
libmystringsextra_la_SOURCES = bfill.c r_strinstr.c strtol.c strtoul.c my_strchr.c
24
# Force C++ linking - dummy.cxx doesn't have to exist with EXTRA in the name
25
nodist_EXTRA_libmystrings_la_SOURCES = dummy.cxx
26
# This can't be listed here as $(top_builddir)/strings/libmystingslt.la
27
# or it breaks make's dependency track for -j builds
28
libmystrings_la_LIBADD = libmystringslt.la libmystringsextra.la
30
noinst_LTLIBRARIES = libmystringslt.la libmystringsextra.la
21
32
# Exact one of ASSEMBLER_X
23
34
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
35
CSRCS = bmove.c bmove512.c bchange.c strxnmov.c int2str.c str2int.c bcmp.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 dtoa.c
26
37
if ASSEMBLER_sparc32
27
38
# These file MUST all be on the same line!! Otherwise automake
28
39
# generats a very broken makefile
29
40
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
41
CSRCS = strcont.c strfill.c strcend.c is_prefix.c longlong2str.c bmove.c bmove512.c bchange.c strxnmov.c int2str.c str2int.c bcmp.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 dtoa.c
34
45
# These file MUST all be on the same line!! Otherwise automake
35
46
# 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
47
SRCS = 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 bmove.c bmove512.c bchange.c strxnmov.c int2str.c str2int.c bcmp.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 dtoa.c
40
libmystrings_a_SOURCES = $(ASRCS) $(CSRCS)
51
libmystringslt_la_SOURCES = $(ASRCS) $(CSRCS)
41
52
noinst_PROGRAMS = conf_to_src
42
53
CLEANFILES = str_test uctypedump test_decimal
43
54
# 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
55
EXTRA_DIST = ctype-big5.c ctype-cp932.c ctype-czech.c ctype-eucjpms.c \
56
ctype-euc_kr.c ctype-win1250ch.c \
57
ctype-gb2312.c ctype-gbk.c ctype-sjis.c ctype-utf8.c \
58
ctype-ucs2.c ctype-uca.c ctype-tis620.c ctype-ujis.c \
59
xml.c decimal.c strto.c strings-x86.s \
60
longlong2str.c longlong2str-x86.s longlong2str_asm.c \
61
my_strtoll10.c my_strtoll10-x86.s \
62
strxmov.c bmove_upp.c strappend.c strcont.c strend.c \
63
strfill.c strcend.c is_prefix.c strstr.c strinstr.c \
64
strmake.c strnmov.c strmov.c strnlen.c \
65
bmove_upp-sparc.s strappend-sparc.s strend-sparc.s \
66
strinstr-sparc.s strmake-sparc.s strmov-sparc.s \
67
strnmov-sparc.s strstr-sparc.s strxmov-sparc.s \
58
libmystrings_a_LIBADD=
59
conf_to_src_SOURCES = conf_to_src.c xml.c ctype.c bcmp.c
70
conf_to_src_SOURCES = conf_to_src.c
71
conf_to_src_LDADD= libmystringslt.la
61
72
#force static linking of conf_to_src - essential when linking against
62
73
#custom installation of libc
63
74
conf_to_src_LDFLAGS=
65
# This is because the dependency tracking misses @FOO@ vars in sources.
66
#strtoull.o: @CHARSET_OBJS@
69
76
FLAGS=$(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
71
str_test: str_test.c $(pkglib_LIBRARIES)
72
$(LINK) $(FLAGS) -DMAIN $(INCLUDES) $(srcdir)/str_test.c $(LDADD) $(pkglib_LIBRARIES)
78
str_test$(EXEEXT): str_test.c $(noinst_LTLIBRARIES)
79
$(LINK) $(FLAGS) -DMAIN $(INCLUDES) $(srcdir)/str_test.c $(LDADD) $(noinst_LTLIBRARIES)
74
uctypedump: uctypedump.c
81
uctypedump$(EXEEXT): uctypedump.c
75
82
$(LINK) $(INCLUDES) $(srcdir)/uctypedump.c
77
test_decimal$(EXEEXT): decimal.c $(pkglib_LIBRARIES)
84
test_decimal$(EXEEXT): decimal.c $(noinst_LTLIBRARIES)
78
85
$(CP) $(srcdir)/decimal.c ./test_decimal.c
79
$(LINK) $(FLAGS) -DMAIN ./test_decimal.c $(LDADD) $(pkglib_LIBRARIES)
86
$(LINK) $(FLAGS) -DMAIN ./test_decimal.c $(LDADD) $(noinst_LTLIBRARIES)
80
87
$(RM) -f ./test_decimal.c
82
# Don't update the files from bitkeeper