fixes for host gcc 4.6.1
[zpugcc/jano.git] / toolchain / gcc / newlib / libc / string / Makefile.am
blobcac5f1d539cc40e8ec25f48d130cae8e93272b26
1 ## Process this file with automake to generate Makefile.in
3 AUTOMAKE_OPTIONS = cygnus
5 INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS)
7 GENERAL_SOURCES = \
8         bcopy.c \
9         bzero.c \
10         index.c \
11         memchr.c \
12         memcmp.c \
13         memcpy.c \
14         memmove.c \
15         memset.c \
16         rindex.c \
17         strcasecmp.c \
18         strcat.c \
19         strchr.c \
20         strcmp.c \
21         strcoll.c \
22         strcpy.c \
23         strcspn.c \
24         strdup.c \
25         strdup_r.c \
26         strerror.c \
27         strerror_r.c \
28         strlcat.c \
29         strlcpy.c \
30         strlen.c  \
31         strlwr.c \
32         strncasecmp.c \
33         strncat.c \
34         strncmp.c \
35         strncpy.c \
36         strnlen.c \
37         strpbrk.c \
38         strrchr.c \
39         strsep.c \
40         strspn.c \
41         strtok.c \
42         strtok_r.c \
43         strupr.c \
44         strxfrm.c  \
45         strstr.c \
46         swab.c \
47         u_strerr.c \
48         wcscat.c \
49         wcschr.c \
50         wcscmp.c \
51         wcscoll.c \
52         wcscpy.c \
53         wcscspn.c \
54         wcslcat.c \
55         wcslcpy.c \
56         wcslen.c \
57         wcsncat.c \
58         wcsncmp.c \
59         wcsncpy.c \
60         wcsnlen.c \
61         wcspbrk.c \
62         wcsrchr.c \
63         wcsspn.c \
64         wcsstr.c \
65         wcswidth.c \
66         wcwidth.c \
67         wmemchr.c \
68         wmemcmp.c \
69         wmemcpy.c \
70         wmemmove.c \
71         wmemset.c
73 if ELIX_LEVEL_1
74 LIB_OBJS =
75 else
76 LIB_OBJS = \
77         bcmp.$(oext) \
78         memccpy.$(oext) \
79         mempcpy.$(oext) \
80         strndup.$(oext) \
81         strndup_r.$(oext)
82 endif
84 libstring_la_LDFLAGS = -Xcompiler -nostdlib
86 if USE_LIBTOOL
87 noinst_LTLIBRARIES = libstring.la
88 libstring_la_SOURCES = $(GENERAL_SOURCES)
89 libstring_la_LIBADD = $(LIB_OBJS)
90 libstring_la_DEPENDENCIES = $(LIB_OBJS)
91 noinst_DATA = objectlist.awk.in
92 else
93 noinst_LIBRARIES = lib.a
94 lib_a_SOURCES = $(GENERAL_SOURCES)
95 lib_a_LIBADD = $(LIB_OBJS)
96 lib_a_DEPENDENCIES = $(LIB_OBJS)
97 noinst_DATA =
98 endif # USE_LIBTOOL
100 include $(srcdir)/../../Makefile.shared
102 CHEWOUT_FILES=\
103 bcmp.def        memcpy.def      strcmp.def      strncat.def strstr.def \
104 bcopy.def       memmove.def     strcoll.def     strncmp.def strtok.def \
105 bzero.def       memset.def      strcpy.def      strncpy.def strxfrm.def \
106 index.def       rindex.def      strcspn.def     strpbrk.def swab.def \
107 memchr.def      strcat.def      strerror.def    strerror_r.def strrchr.def \
108 memcmp.def      strchr.def      strlen.def      strnlen.def strspn.def \
109 strcasecmp.def  strncasecmp.def strlwr.def      strupr.def  memccpy.def \
110 mempcpy.def \
111 wcscat.def      wcschr.def      wcscmp.def      wcscoll.def \
112 wcscpy.def      wcscspn.def \
113 wcslcat.def     wcslcpy.def     wcslen.def      wcsncat.def \
114 wcsncmp.def     wcsncpy.def     wcsnlen.def     wcspbrk.def \
115 wcsrchr.def     wcsspn.def      wcsstr.def \
116 wcswidth.def    wcwidth.def     wmemchr.def \
117 wmemcmp.def     wmemcpy.def     wmemmove.def    wmemset.def
119 SUFFIXES = .def
121 CHEW = ../../doc/makedoc -f $(srcdir)/../../doc/doc.str
123 .c.def:
124         $(CHEW) < $< > $*.def 2> $*.ref
125         touch stmp-def
127 TARGETDOC = ../tmp.texi
129 doc: $(CHEWOUT_FILES)
130         cat $(srcdir)/strings.tex >> $(TARGETDOC)
131         cat $(srcdir)/wcstrings.tex >> $(TARGETDOC)
133 CLEANFILES = $(CHEWOUT_FILES) *.ref