19
19
libmystrings_la_LDFLAGS = -static
20
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
22
# These are the symbols we don't use in mysqlclient. Do we still need them?
23
libmystringsextra_la_SOURCES = bfill.c r_strinstr.c strtol.c strtoul.c
24
24
# Force C++ linking - dummy.cxx doesn't have to exist with EXTRA in the name
25
25
nodist_EXTRA_libmystrings_la_SOURCES = dummy.cxx
26
26
# This can't be listed here as $(top_builddir)/strings/libmystingslt.la
27
27
# or it breaks make's dependency track for -j builds
28
libmystrings_la_LIBADD = libmystringslt.la libmystringsextra.la
28
libmystrings_la_LIBADD = libmystringslt.la
30
30
noinst_LTLIBRARIES = libmystringslt.la libmystringsextra.la
32
32
# Exact one of ASSEMBLER_X
34
34
ASRCS = strings-x86.s longlong2str-x86.s my_strtoll10-x86.s
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
35
CSRCS = longlong2str_asm.c
37
37
if ASSEMBLER_sparc32
38
38
# These file MUST all be on the same line!! Otherwise automake
39
39
# generats a very broken makefile
40
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
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
41
CSRCS = strcont.c strfill.c strcend.c is_prefix.c longlong2str.c strxmov.c my_strtoll10.c
45
45
# These file MUST all be on the same line!! Otherwise automake
46
46
# generats a very broken makefile
47
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 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
51
libmystringslt_la_SOURCES = $(ASRCS) $(CSRCS)
52
CLEANFILES = str_test uctypedump test_decimal
47
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 my_strtoll10.c
51
# C files common to all three cases are included directly below, so that
52
# ASRCS and CSRCS can be smaller
53
libmystringslt_la_SOURCES = $(ASRCS) $(CSRCS) bmove.c bmove512.c \
54
bchange.c strxnmov.c int2str.c str2int.c \
55
bcmp.c strtoll.c strtoull.c llstr.c strnlen.c \
56
ctype.c ctype-simple.c ctype-mb.c \
57
ctype-big5.c ctype-cp932.c ctype-czech.c \
58
ctype-eucjpms.c ctype-euc_kr.c ctype-gb2312.c \
59
ctype-gbk.c ctype-sjis.c ctype-tis620.c \
60
ctype-ujis.c ctype-utf8.c ctype-ucs2.c \
61
ctype-uca.c ctype-win1250ch.c ctype-bin.c \
62
ctype-latin1.c my_vsnprintf.c xml.c \
63
decimal.c ctype-extra.c str_alloc.c \
53
66
# Default charset definitions
54
67
EXTRA_DIST = ctype-big5.c ctype-cp932.c ctype-czech.c ctype-eucjpms.c \
55
68
ctype-euc_kr.c ctype-win1250ch.c \
66
79
strnmov-sparc.s strstr-sparc.s strxmov-sparc.s \
67
80
t_ctype.h my_strchr.c
70
82
FLAGS=$(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
72
str_test$(EXEEXT): str_test.c $(noinst_LTLIBRARIES)
73
$(LINK) $(FLAGS) -DMAIN $(INCLUDES) $(srcdir)/str_test.c $(LDADD) $(noinst_LTLIBRARIES)
75
uctypedump$(EXEEXT): uctypedump.c
76
$(LINK) $(INCLUDES) $(srcdir)/uctypedump.c
78
test_decimal$(EXEEXT): decimal.c $(noinst_LTLIBRARIES)
79
$(CP) $(srcdir)/decimal.c ./test_decimal.c
80
$(LINK) $(FLAGS) -DMAIN ./test_decimal.c $(LDADD) $(noinst_LTLIBRARIES)
81
$(RM) -f ./test_decimal.c