~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to strings/Makefile.am

  • Committer: Brian Aker
  • Date: 2008-07-01 20:52:03 UTC
  • mfrom: (28.1.23 libtool-patch)
  • Revision ID: brian@tangent.org-20080701205203-3jm6ga57uzxy8k4t
Merge of taylor's work

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
15
15
 
16
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
 
17
AM_CPPFLAGS =           -I$(top_builddir)/include -I$(top_srcdir)/include
 
18
pkglib_LTLIBRARIES =    libmystrings.la
 
19
libmystrings_la_LDFLAGS = -static
 
20
libmystrings_la_SOURCES = 
 
21
 
 
22
# Force C++ linking - dummy.cxx doesn't have to exist with EXTRA in the name
 
23
nodist_EXTRA_libmystrings_la_SOURCES = dummy.cxx
 
24
# This can't be listed here as $(top_builddir)/strings/libmystingslt.la
 
25
# or it breaks make's dependency track for -j builds
 
26
libmystrings_la_LIBADD = libmystringslt.la
 
27
 
 
28
noinst_LTLIBRARIES =    libmystringslt.la
20
29
 
21
30
# Exact one of ASSEMBLER_X
22
31
if ASSEMBLER_x86
23
32
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
 
33
CSRCS           = longlong2str_asm.c 
25
34
else
26
35
if ASSEMBLER_sparc32
27
36
# These file MUST all be on the same line!! Otherwise automake
28
37
# generats a very broken makefile
29
38
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
 
39
CSRCS   = strcont.c strfill.c strcend.c is_prefix.c longlong2str.c strxmov.c my_strtoll10.c 
31
40
else
32
41
#no assembler
33
42
ASRCS           =
34
43
# These file MUST all be on the same line!! Otherwise automake
35
44
# 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
 
45
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
 
46
endif
 
47
endif
 
48
 
 
49
# C files common to all three cases are included directly below, so that
 
50
# ASRCS and CSRCS can be smaller
 
51
libmystringslt_la_SOURCES =     $(ASRCS) $(CSRCS) bmove.c bmove512.c \
 
52
                                bchange.c strxnmov.c int2str.c str2int.c \
 
53
                                bcmp.c strtoll.c strtoull.c llstr.c strnlen.c \
 
54
                                ctype.c ctype-simple.c ctype-mb.c \
 
55
                                ctype-big5.c ctype-cp932.c ctype-czech.c \
 
56
                                ctype-eucjpms.c ctype-euc_kr.c ctype-gb2312.c \
 
57
                                ctype-gbk.c ctype-sjis.c ctype-tis620.c \
 
58
                                ctype-ujis.c ctype-utf8.c ctype-ucs2.c \
 
59
                                ctype-uca.c ctype-win1250ch.c ctype-bin.c \
 
60
                                ctype-latin1.c my_vsnprintf.c xml.c \
 
61
                                decimal.c ctype-extra.c str_alloc.c \
 
62
                                dtoa.c my_strchr.c
 
63
 
43
64
# 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=
64
 
 
65
 
# This is because the dependency tracking misses @FOO@ vars in sources.
66
 
#strtoull.o:            @CHARSET_OBJS@
67
 
 
 
65
EXTRA_DIST =    ctype-big5.c ctype-cp932.c ctype-czech.c ctype-eucjpms.c \
 
66
                ctype-euc_kr.c ctype-win1250ch.c \
 
67
                ctype-gb2312.c ctype-gbk.c ctype-sjis.c ctype-utf8.c \
 
68
                ctype-ucs2.c ctype-uca.c ctype-tis620.c ctype-ujis.c \
 
69
                xml.c decimal.c strto.c strings-x86.s \
 
70
                longlong2str.c longlong2str-x86.s longlong2str_asm.c \
 
71
                my_strtoll10.c my_strtoll10-x86.s \
 
72
                strxmov.c bmove_upp.c strappend.c strcont.c strend.c \
 
73
                strfill.c strcend.c is_prefix.c strstr.c strinstr.c \
 
74
                strmake.c strnmov.c strmov.c strnlen.c \
 
75
                bmove_upp-sparc.s strappend-sparc.s strend-sparc.s \
 
76
                strinstr-sparc.s strmake-sparc.s strmov-sparc.s \
 
77
                strnmov-sparc.s strstr-sparc.s strxmov-sparc.s \
 
78
                t_ctype.h my_strchr.c
68
79
 
69
80
FLAGS=$(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
70
81
 
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