OSDN Git Service

2006-04-11 Jeff Johnston <jjohnstn@redhat.com>
[pf3gnuchains/pf3gnuchains3x.git] / newlib / libc / stdio / Makefile.am
1 ## Process this file with automake to generate Makefile.in
2
3 AUTOMAKE_OPTIONS = cygnus
4
5 INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS)
6
7 GENERAL_SOURCES = \
8         clearerr.c                      \
9         dprintf.c                       \
10         fclose.c                        \
11         fdopen.c                        \
12         feof.c                          \
13         ferror.c                        \
14         fflush.c                        \
15         fgetc.c                         \
16         fgetpos.c                       \
17         fgets.c                         \
18         fileno.c                        \
19         findfp.c                        \
20         fiprintf.c                      \
21         flags.c                         \
22         fopen.c                         \
23         fprintf.c                       \
24         fputc.c                         \
25         fputs.c                         \
26         fread.c                         \
27         freopen.c                       \
28         fscanf.c                        \
29         fiscanf.c                       \
30         fseek.c                         \
31         fsetpos.c                       \
32         ftell.c                         \
33         fvwrite.c                       \
34         fwalk.c                         \
35         fwrite.c                        \
36         getc.c                          \
37         getchar.c                       \
38         getc_u.c                        \
39         getchar_u.c                     \
40         getdelim.c                      \
41         getline.c                       \
42         gets.c                          \
43         iprintf.c                       \
44         iscanf.c                        \
45         makebuf.c                       \
46         perror.c                        \
47         printf.c                        \
48         putc.c                          \
49         putchar.c                       \
50         putc_u.c                        \
51         putchar_u.c                     \
52         puts.c                          \
53         refill.c                        \
54         remove.c                        \
55         rename.c                        \
56         rewind.c                        \
57         rget.c                          \
58         scanf.c                         \
59         sccl.c                          \
60         setbuf.c                        \
61         setbuffer.c                     \
62         setlinebuf.c                    \
63         setvbuf.c                       \
64         siprintf.c                      \
65         siscanf.c                       \
66         sniprintf.c                     \
67         snprintf.c                      \
68         sprintf.c                       \
69         sscanf.c                        \
70         stdio.c                         \
71         tmpfile.c                       \
72         tmpnam.c                        \
73         ungetc.c                        \
74         vdprintf.c                      \
75         viprintf.c                      \
76         viscanf.c                       \
77         vprintf.c                       \
78         vscanf.c                        \
79         vsiprintf.c                     \
80         vsiscanf.c                      \
81         vsnprintf.c                     \
82         vsniprintf.c                    \
83         vsprintf.c                      \
84         vsscanf.c                       \
85         wbuf.c                          \
86         wsetup.c 
87
88 ## The following are EL/IX level 2 interfaces
89 if ELIX_LEVEL_1
90 LIB_OBJS =
91 else
92 LIB_OBJS = \
93         asiprintf.$(oext)               \
94         asprintf.$(oext)                \
95         fcloseall.$(oext)               \
96         fseeko.$(oext)                  \
97         ftello.$(oext)                  \
98         getw.$(oext)                    \
99         mktemp.$(oext)                  \
100         putw.$(oext)                    \
101         vasiprintf.$(oext)              \
102         vasprintf.$(oext)
103 endif
104
105 LIBADD_OBJS = vfiprintf.$(oext) vfprintf.$(oext) vfscanf.$(oext) vfiscanf.$(oext)
106
107 libstdio_la_LDFLAGS = -Xcompiler -nostdlib
108
109 if USE_LIBTOOL
110 noinst_LTLIBRARIES = libstdio.la
111 libstdio_la_SOURCES = $(GENERAL_SOURCES)
112 libstdio_la_LIBADD = $(LIBADD_OBJS) $(LIB_OBJS)
113 libstdio_la_DEPENDENCIES = $(LIBADD_OBJS) $(LIB_OBJS)
114 LIB_COMPILE = $(LTCOMPILE)
115 noinst_DATA = objectlist.awk.in
116 else
117 noinst_LIBRARIES = lib.a
118 lib_a_SOURCES = $(GENERAL_SOURCES)
119 lib_a_LIBADD = $(LIBADD_OBJS) $(LIB_OBJS)
120 lib_a_CFLAGS = $(AM_CFLAGS)
121 lib_a_DEPENDENCIES = $(LIBADD_OBJS) $(LIB_OBJS)
122 LIB_COMPILE = $(COMPILE)
123 noinst_DATA =
124 endif # USE_LIBTOOL
125
126 include $(srcdir)/../../Makefile.shared
127
128 # This rule is needed so that libtool compiles vfiprintf before vfprintf. Otherwise
129 # libtool moves vfprintf.o and subsequently can't find it.
130
131 vfprintf.$(oext): vfprintf.c
132         $(LIB_COMPILE) -fshort-enums -c $(srcdir)/vfprintf.c
133
134 vfiprintf.$(oext): vfprintf.c
135         $(LIB_COMPILE) -fshort-enums -DINTEGER_ONLY -c $(srcdir)/vfprintf.c -o $@
136
137 vfscanf.$(oext): vfscanf.c
138         $(LIB_COMPILE) -c $(srcdir)/vfscanf.c
139
140 vfiscanf.$(oext): vfscanf.c
141         $(LIB_COMPILE) -DINTEGER_ONLY -c $(srcdir)/vfscanf.c -o $@
142
143 CHEWOUT_FILES = \
144         clearerr.def            \
145         dprintf.def             \
146         fclose.def              \
147         fcloseall.def           \
148         fdopen.def              \
149         feof.def                \
150         ferror.def              \
151         fflush.def              \
152         fgetc.def               \
153         fgetpos.def             \
154         fgets.def               \
155         fileno.def              \
156         fiprintf.def            \
157         fopen.def               \
158         fputc.def               \
159         fputs.def               \
160         fread.def               \
161         freopen.def             \
162         fseek.def               \
163         fsetpos.def             \
164         ftell.def               \
165         fwrite.def              \
166         getc.def                \
167         getchar.def             \
168         getc_u.def              \
169         getchar_u.def           \
170         getdelim.def            \
171         getline.def             \
172         gets.def                \
173         getw.def                \
174         mktemp.def              \
175         perror.def              \
176         putc.def                \
177         putchar.def             \
178         putc_u.def              \
179         putchar_u.def           \
180         puts.def                \
181         putw.def                \
182         remove.def              \
183         rename.def              \
184         rewind.def              \
185         setbuf.def              \
186         setbuffer.def           \
187         setlinebuf.def          \
188         setvbuf.def             \
189         siprintf.def            \
190         siscanf.def             \
191         sprintf.def             \
192         sscanf.def              \
193         tmpfile.def             \
194         tmpnam.def              \
195         vfprintf.def            \
196         vfscanf.def             \
197         viprintf.def            \
198         viscanf.def
199
200 SUFFIXES = .def
201
202 CHEW = ../../doc/makedoc -f $(srcdir)/../../doc/doc.str
203
204 .c.def:
205         $(CHEW) < $< > $*.def 2> $*.ref
206         touch stmp-def
207
208 TARGETDOC = ../tmp.texi
209
210 doc: $(CHEWOUT_FILES)
211         cat $(srcdir)/stdio.tex >> $(TARGETDOC)
212
213 CLEANFILES = $(CHEWOUT_FILES) *.ref
214
215 fclose.$(oext): local.h
216 fdopen.$(oext): local.h
217 fflush.$(oext): local.h
218 findfp.$(oext): local.h
219 fopen.$(oext): local.h
220 fputs.$(oext): fvwrite.h
221 fread.$(oext): local.h
222 freopen.$(oext): local.h
223 fseek.$(oext): local.h
224 ftell.$(oext): local.h
225 fvwrite.$(oext): local.h fvwrite.h
226 fwalk.$(oext): local.h
227 fwrite.$(oext): local.h fvwrite.h
228 iscanf.$(oext): local.h
229 makebuf.$(oext): local.h
230 puts.$(oext): fvwrite.h
231 refill.$(oext): local.h
232 scanf.$(oext): local.h
233 setbuf.$(oext): local.h
234 setvbuf.$(oext): local.h
235 siprintf.$(oext): local.h
236 sniprintf.$(oext): local.h
237 sprintf.$(oext): local.h
238 siscanf.$(oext): local.h
239 sscanf.$(oext): local.h
240 stdio.$(oext): local.h
241 ungetc.$(oext): local.h
242 vfiprintf.$(oext): local.h
243 vfprintf.$(oext): local.h
244 vfiscanf.$(oext): local.h floatio.h
245 vfscanf.$(oext): local.h floatio.h
246 viscanf.$(oext): local.h
247 vscanf.$(oext): local.h
248 vsniprintf.$(oext): local.h
249 vsiscanf.$(oext): local.h
250 vsscanf.$(oext): local.h
251 wbuf.$(oext): local.h fvwrite.h
252 wsetup.$(oext): local.h