~linuxjedi/drizzle/trunk-bug-667053

« back to all changes in this revision

Viewing changes to strings/Makefile.am

  • Committer: brian
  • Date: 2008-06-25 05:29:13 UTC
  • Revision ID: brian@localhost.localdomain-20080625052913-6upwo0jsrl4lnapl
clean slate

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Copyright (C) 2000-2006 MySQL AB
 
2
 
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.
 
6
 
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.
 
11
 
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
 
15
 
 
16
# This file is public domain and comes with NO WARRANTY of any kind
 
17
 
 
18
INCLUDES =              -I$(top_builddir)/include -I$(top_srcdir)/include
 
19
pkglib_LIBRARIES =      libmystrings.a
 
20
 
 
21
# Exact one of ASSEMBLER_X
 
22
if ASSEMBLER_x86
 
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
 
25
else
 
26
if ASSEMBLER_sparc32
 
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
 
31
else
 
32
#no assembler
 
33
ASRCS           =
 
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
 
37
endif
 
38
endif
 
39
 
 
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
 
57
 
 
58
libmystrings_a_LIBADD=
 
59
conf_to_src_SOURCES = conf_to_src.c xml.c ctype.c bcmp.c
 
60
conf_to_src_LDADD=
 
61
#force static linking of conf_to_src - essential when linking against
 
62
#custom installation of libc
 
63
conf_to_src_LDFLAGS= @NOINST_LDFLAGS@
 
64
 
 
65
# This is because the dependency tracking misses @FOO@ vars in sources.
 
66
#strtoull.o:            @CHARSET_OBJS@
 
67
 
 
68
 
 
69
FLAGS=$(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) @NOINST_LDFLAGS@
 
70
 
 
71
str_test: str_test.c $(pkglib_LIBRARIES)
 
72
        $(LINK) $(FLAGS) -DMAIN $(INCLUDES) $(srcdir)/str_test.c $(LDADD) $(pkglib_LIBRARIES)
 
73
 
 
74
uctypedump: uctypedump.c
 
75
        $(LINK) $(INCLUDES) $(srcdir)/uctypedump.c
 
76
 
 
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
 
81
 
 
82
# Don't update the files from bitkeeper
 
83
%::SCCS/s.%
 
84