Cygwin: mmap: allow remapping part of an existing anonymous mapping
[newlib-cygwin.git] / newlib / libc / stdio / Makefile.inc
blobce298e5cb36068c367eca486eb81d5914c936fdd
1 if HAVE_STDIO_DIR
3 if NEWLIB_NANO_FORMATTED_IO
4 libc_a_SOURCES += \
5         %D%/nano-vfprintf_float.c \
6         %D%/nano-svfprintf.c \
7         %D%/nano-svfscanf.c \
8         %D%/nano-vfprintf.c \
9         %D%/nano-vfprintf_i.c \
10         %D%/nano-vfscanf.c \
11         %D%/nano-vfscanf_i.c \
12         %D%/nano-vfscanf_float.c
13 else
14 libc_a_SOURCES += \
15         %D%/fiprintf.c \
16         %D%/fiscanf.c \
17         %D%/iprintf.c \
18         %D%/iscanf.c \
19         %D%/siprintf.c \
20         %D%/siscanf.c \
21         %D%/sniprintf.c \
22         %D%/svfiprintf.c \
23         %D%/svfiscanf.c \
24         %D%/svfprintf.c \
25         %D%/svfscanf.c \
26         %D%/vdiprintf.c \
27         %D%/vfprintf.c \
28         %D%/vfiprintf.c \
29         %D%/vfiscanf.c \
30         %D%/vfscanf.c \
31         %D%/vfwprintf.c \
32         %D%/viprintf.c \
33         %D%/viscanf.c \
34         %D%/vsiprintf.c \
35         %D%/vsiscanf.c \
36         %D%/vsniprintf.c \
37         %D%/sfputs_r.c \
38         %D%/sfputws_r.c \
39         %D%/sprint_r.c \
40         %D%/swprint_r.c \
41         %D%/ssputs_r.c \
42         %D%/ssputws_r.c \
43         %D%/ssprint_r.c \
44         %D%/sswprint_r.c \
45         %D%/svfiwprintf.c \
46         %D%/svfiwscanf.c \
47         %D%/svfwprintf.c \
48         %D%/svfwscanf.c \
49         %D%/vfiwprintf.c \
50         %D%/vfiwscanf.c \
51         %D%/vfwscanf.c
52 endif
54 libc_a_SOURCES += \
55         %D%/clearerr.c \
56         %D%/fclose.c \
57         %D%/fdopen.c \
58         %D%/feof.c \
59         %D%/ferror.c \
60         %D%/fflush.c \
61         %D%/fgetc.c \
62         %D%/fgetpos.c \
63         %D%/fgets.c \
64         %D%/fileno.c \
65         %D%/findfp.c \
66         %D%/flags.c \
67         %D%/fopen.c \
68         %D%/fprintf.c \
69         %D%/fputc.c \
70         %D%/fputs.c \
71         %D%/fread.c \
72         %D%/freopen.c \
73         %D%/fscanf.c \
74         %D%/fseek.c \
75         %D%/fsetpos.c \
76         %D%/ftell.c \
77         %D%/fvwrite.c \
78         %D%/fwalk.c \
79         %D%/fwrite.c \
80         %D%/getc.c \
81         %D%/getchar.c \
82         %D%/getc_u.c \
83         %D%/getchar_u.c \
84         %D%/getdelim.c \
85         %D%/getline.c \
86         %D%/gets.c \
87         %D%/makebuf.c \
88         %D%/perror.c \
89         %D%/printf.c \
90         %D%/putc.c \
91         %D%/putchar.c \
92         %D%/putc_u.c \
93         %D%/putchar_u.c \
94         %D%/puts.c \
95         %D%/refill.c \
96         %D%/remove.c \
97         %D%/rename.c \
98         %D%/rewind.c \
99         %D%/rget.c \
100         %D%/scanf.c \
101         %D%/sccl.c \
102         %D%/setbuf.c \
103         %D%/setbuffer.c \
104         %D%/setlinebuf.c \
105         %D%/setvbuf.c \
106         %D%/snprintf.c \
107         %D%/sprintf.c \
108         %D%/sscanf.c \
109         %D%/stdio.c \
110         %D%/tmpfile.c \
111         %D%/tmpnam.c \
112         %D%/ungetc.c \
113         %D%/vdprintf.c \
114         %D%/vprintf.c \
115         %D%/vscanf.c \
116         %D%/vsnprintf.c \
117         %D%/vsprintf.c \
118         %D%/vsscanf.c \
119         %D%/wbuf.c \
120         %D%/wbufw.c \
121         %D%/wsetup.c
123 ## The following are EL/IX level 2 interfaces
124 if !ELIX_LEVEL_1
125 %C%_ELIX_2_SOURCES = \
126         %D%/asprintf.c \
127         %D%/fcloseall.c \
128         %D%/fseeko.c \
129         %D%/ftello.c \
130         %D%/mktemp.c \
131         %D%/vasprintf.c
132 if !NEWLIB_NANO_FORMATTED_IO
133 %C%_ELIX_2_SOURCES += \
134         %D%/asiprintf.c \
135         %D%/getw.c \
136         %D%/putw.c \
137         %D%/vasiprintf.c
138 endif !NEWLIB_NANO_FORMATTED_IO
139 endif !ELIX_LEVEL_1
141 ## The following are EL/IX level 2 interfaces
142 if ELIX_LEVEL_1
143 %C%_ELIX_4_SOURCES =
144 else
145 if ELIX_LEVEL_2
146 %C%_ELIX_4_SOURCES =
147 else
148 if ELIX_LEVEL_3
149 %C%_ELIX_4_SOURCES =
150 else
151 %C%_ELIX_4_SOURCES = \
152         %D%/asnprintf.c \
153         %D%/clearerr_u.c \
154         %D%/dprintf.c \
155         %D%/feof_u.c \
156         %D%/ferror_u.c \
157         %D%/fflush_u.c \
158         %D%/fgetc_u.c \
159         %D%/fgets_u.c \
160         %D%/fileno_u.c \
161         %D%/fmemopen.c \
162         %D%/fopencookie.c \
163         %D%/fpurge.c \
164         %D%/fputc_u.c \
165         %D%/fputs_u.c \
166         %D%/fread_u.c \
167         %D%/fsetlocking.c \
168         %D%/funopen.c \
169         %D%/fwrite_u.c \
170         %D%/open_memstream.c \
171         %D%/stdio_ext.c \
172         %D%/vasnprintf.c
173 if !NEWLIB_NANO_FORMATTED_IO
174 %C%_ELIX_4_SOURCES += \
175         %D%/asniprintf.c \
176         %D%/diprintf.c \
177         %D%/fgetwc.c \
178         %D%/fgetwc_u.c \
179         %D%/fgetws.c \
180         %D%/fgetws_u.c \
181         %D%/fputwc.c \
182         %D%/fputwc_u.c \
183         %D%/fputws.c \
184         %D%/fputws_u.c \
185         %D%/fwide.c \
186         %D%/fwprintf.c \
187         %D%/fwscanf.c \
188         %D%/getwc.c \
189         %D%/getwc_u.c \
190         %D%/getwchar.c \
191         %D%/getwchar_u.c \
192         %D%/putwc.c \
193         %D%/putwc_u.c \
194         %D%/putwchar.c \
195         %D%/putwchar_u.c \
196         %D%/swprintf.c \
197         %D%/swscanf.c \
198         %D%/ungetwc.c \
199         %D%/vasniprintf.c \
200         %D%/vswprintf.c \
201         %D%/vswscanf.c \
202         %D%/vwprintf.c \
203         %D%/vwscanf.c \
204         %D%/wprintf.c \
205         %D%/wscanf.c
206 endif !NEWLIB_NANO_FORMATTED_IO
207 endif !ELIX_LEVEL_3
208 endif !ELIX_LEVEL_2
209 endif !ELIX_LEVEL_1
211 libc_a_SOURCES += $(%C%_ELIX_2_SOURCES) $(%C%_ELIX_4_SOURCES)
213 endif
215 LIBC_CHEWOUT_FILES += \
216         %D%/clearerr.def \
217         %D%/diprintf.def \
218         %D%/dprintf.def \
219         %D%/fcloseall.def \
220         %D%/fclose.def \
221         %D%/fdopen.def \
222         %D%/feof.def \
223         %D%/ferror.def \
224         %D%/fflush.def \
225         %D%/fgetc.def \
226         %D%/fgetpos.def \
227         %D%/fgets.def \
228         %D%/fgetwc.def \
229         %D%/fgetws.def \
230         %D%/fileno.def \
231         %D%/fmemopen.def \
232         %D%/fopen.def \
233         %D%/fopencookie.def \
234         %D%/fpurge.def \
235         %D%/fputc.def \
236         %D%/fputs.def \
237         %D%/fputwc.def \
238         %D%/fputws.def \
239         %D%/fread.def \
240         %D%/freopen.def \
241         %D%/fseek.def \
242         %D%/fsetlocking.def \
243         %D%/fsetpos.def \
244         %D%/ftell.def \
245         %D%/funopen.def \
246         %D%/fwide.def \
247         %D%/fwrite.def \
248         %D%/getc.def \
249         %D%/getc_u.def \
250         %D%/getchar.def \
251         %D%/getchar_u.def \
252         %D%/getdelim.def \
253         %D%/getline.def \
254         %D%/gets.def \
255         %D%/getw.def \
256         %D%/getwchar.def \
257         %D%/mktemp.def \
258         %D%/nano-vfprintf.def \
259         %D%/nano-vfscanf.def \
260         %D%/open_memstream.def \
261         %D%/perror.def \
262         %D%/putc.def \
263         %D%/putc_u.def \
264         %D%/putchar.def \
265         %D%/putchar_u.def \
266         %D%/puts.def \
267         %D%/putw.def \
268         %D%/putwchar.def \
269         %D%/remove.def \
270         %D%/rename.def \
271         %D%/rewind.def \
272         %D%/setbuf.def \
273         %D%/setbuffer.def \
274         %D%/setlinebuf.def \
275         %D%/setvbuf.def \
276         %D%/siprintf.def \
277         %D%/siscanf.def \
278         %D%/sprintf.def \
279         %D%/sscanf.def \
280         %D%/stdio_ext.def \
281         %D%/swprintf.def \
282         %D%/swscanf.def \
283         %D%/tmpfile.def \
284         %D%/tmpnam.def \
285         %D%/ungetc.def \
286         %D%/ungetwc.def \
287         %D%/vfprintf.def \
288         %D%/vfscanf.def \
289         %D%/vfwprintf.def \
290         %D%/vfwscanf.def \
291         %D%/viprintf.def \
292         %D%/viscanf.def
294 LIBC_CHAPTERS += %D%/stdio.tex