fixes for host gcc 4.6.1
[zpugcc/jano.git] / toolchain / gcc / newlib / libc / stdio / Makefile.am
blob37911efb9dad8c41d004c353ca667de72a79bb72
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         clearerr.c                      \
9         fclose.c                        \
10         fdopen.c                        \
11         feof.c                          \
12         ferror.c                        \
13         fflush.c                        \
14         fgetc.c                         \
15         fgetpos.c                       \
16         fgets.c                         \
17         fileno.c                        \
18         findfp.c                        \
19         fiprintf.c                      \
20         flags.c                         \
21         fopen.c                         \
22         fprintf.c                       \
23         fputc.c                         \
24         fputs.c                         \
25         fread.c                         \
26         freopen.c                       \
27         fscanf.c                        \
28         fseek.c                         \
29         fsetpos.c                       \
30         ftell.c                         \
31         fvwrite.c                       \
32         fwalk.c                         \
33         fwrite.c                        \
34         getc.c                          \
35         getchar.c                       \
36         getc_u.c                        \
37         getchar_u.c                     \
38         getdelim.c                      \
39         getline.c                       \
40         gets.c                          \
41         iprintf.c                       \
42         makebuf.c                       \
43         perror.c                        \
44         printf.c                        \
45         putc.c                          \
46         putchar.c                       \
47         putc_u.c                        \
48         putchar_u.c                     \
49         puts.c                          \
50         refill.c                        \
51         remove.c                        \
52         rename.c                        \
53         rewind.c                        \
54         rget.c                          \
55         scanf.c                         \
56         setbuf.c                        \
57         setbuffer.c                     \
58         setlinebuf.c                    \
59         setvbuf.c                       \
60         siprintf.c                      \
61         snprintf.c                      \
62         sprintf.c                       \
63         sscanf.c                        \
64         stdio.c                         \
65         tmpfile.c                       \
66         tmpnam.c                        \
67         ungetc.c                        \
68         vfscanf.c                       \
69         vprintf.c                       \
70         vscanf.c                        \
71         vsnprintf.c                     \
72         vsprintf.c                      \
73         vsscanf.c                       \
74         wbuf.c                          \
75         wsetup.c 
77 ## The following are EL/IX level 2 interfaces
78 if ELIX_LEVEL_1
79 LIB_OBJS =
80 else
81 LIB_OBJS = \
82         asprintf.$(oext)                \
83         fcloseall.$(oext)               \
84         fseeko.$(oext)                  \
85         ftello.$(oext)                  \
86         getw.$(oext)                    \
87         mktemp.$(oext)                  \
88         putw.$(oext)                    \
89         vasprintf.$(oext)
90 endif
92 LIBADD_OBJS = vfiprintf.$(oext) vfprintf.$(oext)
94 libstdio_la_LDFLAGS = -Xcompiler -nostdlib
96 if USE_LIBTOOL
97 noinst_LTLIBRARIES = libstdio.la
98 libstdio_la_SOURCES = $(GENERAL_SOURCES)
99 libstdio_la_LIBADD = $(LIBADD_OBJS) $(LIB_OBJS)
100 libstdio_la_DEPENDENCIES = $(LIBADD_OBJS) $(LIB_OBJS)
101 LIB_COMPILE = $(LTCOMPILE)
102 noinst_DATA = objectlist.awk.in
103 else
104 noinst_LIBRARIES = lib.a
105 lib_a_SOURCES = $(GENERAL_SOURCES)
106 lib_a_LIBADD = $(LIBADD_OBJS) $(LIB_OBJS)
107 lib_a_DEPENDENCIES = $(LIBADD_OBJS) $(LIB_OBJS)
108 LIB_COMPILE = $(COMPILE)
109 noinst_DATA =
110 endif # USE_LIBTOOL
112 include $(srcdir)/../../Makefile.shared
114 # This rule is needed so that libtool compiles vfiprintf before vfprintf. Otherwise
115 # libtool moves vfprintf.o and subsequently can't find it.
117 vfprintf.$(oext): vfprintf.c
118         $(LIB_COMPILE) -fshort-enums -c $(srcdir)/vfprintf.c
120 vfiprintf.$(oext): vfprintf.c
121         $(LIB_COMPILE) -fshort-enums -DINTEGER_ONLY -c $(srcdir)/vfprintf.c -o $@
123 CHEWOUT_FILES = \
124         clearerr.def            \
125         fclose.def              \
126         fcloseall.def           \
127         fdopen.def              \
128         feof.def                \
129         ferror.def              \
130         fflush.def              \
131         fgetc.def               \
132         fgetpos.def             \
133         fgets.def               \
134         fileno.def              \
135         fiprintf.def            \
136         fopen.def               \
137         fputc.def               \
138         fputs.def               \
139         fread.def               \
140         freopen.def             \
141         fseek.def               \
142         fsetpos.def             \
143         ftell.def               \
144         fwrite.def              \
145         getc.def                \
146         getchar.def             \
147         getc_u.def              \
148         getchar_u.def           \
149         getdelim.def            \
150         getline.def             \
151         gets.def                \
152         getw.def                \
153         iprintf.def             \
154         mktemp.def              \
155         perror.def              \
156         putc.def                \
157         putchar.def             \
158         putc_u.def              \
159         putchar_u.def           \
160         puts.def                \
161         putw.def                \
162         remove.def              \
163         rename.def              \
164         rewind.def              \
165         setbuf.def              \
166         setbuffer.def           \
167         setlinebuf.def          \
168         setvbuf.def             \
169         siprintf.def            \
170         sprintf.def             \
171         sscanf.def              \
172         tmpfile.def             \
173         tmpnam.def              \
174         vfprintf.def            \
175         vfscanf.def
177 SUFFIXES = .def
179 CHEW = ../../doc/makedoc -f $(srcdir)/../../doc/doc.str
181 .c.def:
182         $(CHEW) < $< > $*.def 2> $*.ref
183         touch stmp-def
185 TARGETDOC = ../tmp.texi
187 doc: $(CHEWOUT_FILES)
188         cat $(srcdir)/stdio.tex >> $(TARGETDOC)
190 CLEANFILES = $(CHEWOUT_FILES) *.ref
192 fclose.$(oext): local.h
193 fdopen.$(oext): local.h
194 fflush.$(oext): local.h
195 findfp.$(oext): local.h
196 fopen.$(oext): local.h
197 fputs.$(oext): fvwrite.h
198 fread.$(oext): local.h
199 freopen.$(oext): local.h
200 fseek.$(oext): local.h
201 ftell.$(oext): local.h
202 fvwrite.$(oext): local.h fvwrite.h
203 fwalk.$(oext): local.h
204 fwrite.$(oext): local.h fvwrite.h
205 makebuf.$(oext): local.h
206 puts.$(oext): fvwrite.h
207 refill.$(oext): local.h
208 scanf.$(oext): local.h
209 setbuf.$(oext): local.h
210 setvbuf.$(oext): local.h
211 siprintf.$(oext): local.h
212 sprintf.$(oext): local.h
213 sscanf.$(oext): local.h
214 stdio.$(oext): local.h
215 ungetc.$(oext): local.h
216 vfiprintf.$(oext): local.h
217 vfprintf.$(oext): local.h
218 vfscanf.$(oext): local.h floatio.h
219 vscanf.$(oext): local.h
220 vsscanf.$(oext): local.h
221 wbuf.$(oext): local.h fvwrite.h
222 wsetup.$(oext): local.h