Cygwin: mmap: allow remapping part of an existing anonymous mapping
[newlib-cygwin.git] / newlib / libc / stdlib / Makefile.inc
blob9812add766cf3fd9758e96e4c0e4b08174098495
1 libc_a_SOURCES += \
2         %D%/__adjust.c \
3         %D%/__atexit.c \
4         %D%/__call_atexit.c \
5         %D%/__exp10.c \
6         %D%/__ten_mu.c \
7         %D%/_Exit.c \
8         %D%/abort.c \
9         %D%/abs.c \
10         %D%/aligned_alloc.c \
11         %D%/assert.c \
12         %D%/atexit.c \
13         %D%/atof.c \
14         %D%/atoff.c \
15         %D%/atoi.c \
16         %D%/atol.c \
17         %D%/calloc.c \
18         %D%/callocr.c \
19         %D%/cfreer.c \
20         %D%/div.c \
21         %D%/dtoa.c \
22         %D%/dtoastub.c \
23         %D%/environ.c \
24         %D%/envlock.c \
25         %D%/eprintf.c \
26         %D%/exit.c \
27         %D%/freer.c \
28         %D%/gdtoa-gethex.c \
29         %D%/gdtoa-hexnan.c \
30         %D%/getenv.c \
31         %D%/getenv_r.c \
32         %D%/imaxabs.c \
33         %D%/imaxdiv.c \
34         %D%/itoa.c \
35         %D%/labs.c \
36         %D%/ldiv.c \
37         %D%/ldtoa.c \
38         %D%/gdtoa-ldtoa.c \
39         %D%/gdtoa-gdtoa.c \
40         %D%/gdtoa-dmisc.c \
41         %D%/gdtoa-gmisc.c \
42         %D%/mallinfor.c \
43         %D%/malloc.c \
44         %D%/mallocr.c \
45         %D%/mallstatsr.c \
46         %D%/mblen.c \
47         %D%/mblen_r.c \
48         %D%/mbstowcs.c \
49         %D%/mbstowcs_r.c \
50         %D%/mbtowc.c \
51         %D%/mbtowc_r.c \
52         %D%/mlock.c \
53         %D%/mprec.c \
54         %D%/msizer.c \
55         %D%/mstats.c \
56         %D%/on_exit_args.c \
57         %D%/quick_exit.c \
58         %D%/rand.c \
59         %D%/rand_r.c \
60         %D%/random.c \
61         %D%/realloc.c \
62         %D%/reallocarray.c \
63         %D%/reallocf.c \
64         %D%/reallocr.c \
65         %D%/sb_charsets.c \
66         %D%/strtod.c \
67         %D%/strtoimax.c \
68         %D%/strtol.c \
69         %D%/strtoul.c \
70         %D%/strtoumax.c \
71         %D%/utoa.c \
72         %D%/wcstod.c \
73         %D%/wcstoimax.c \
74         %D%/wcstol.c \
75         %D%/wcstoul.c \
76         %D%/wcstoumax.c \
77         %D%/wcstombs.c \
78         %D%/wcstombs_r.c \
79         %D%/wctomb.c \
80         %D%/wctomb_r.c
82 if HAVE_LONG_DOUBLE
83 libc_a_SOURCES += \
84         %D%/strtodg.c \
85         %D%/strtold.c \
86         %D%/strtorx.c \
87         %D%/wcstold.c
88 endif # HAVE_LONG_DOUBLE
90 if NEWLIB_NANO_MALLOC
91 MALIGNR = nano-malignr
92 MALLOPTR = nano-malloptr
93 PVALLOCR = nano-pvallocr
94 VALLOCR = nano-vallocr
95 FREER = nano-freer
96 REALLOCR = nano-reallocr
97 CALLOCR = nano-callocr
98 CFREER = nano-cfreer
99 MALLINFOR = nano-mallinfor
100 MALLSTATSR = nano-mallstatsr
101 MSIZER = nano-msizer
102 MALLOCR = nano-mallocr
103 else
104 MALIGNR = malignr
105 MALLOPTR = malloptr
106 PVALLOCR = pvallocr
107 VALLOCR = vallocr
108 FREER = freer
109 REALLOCR = reallocr
110 CALLOCR = callocr
111 CFREER = cfreer
112 MALLINFOR = mallinfor
113 MALLSTATSR = mallstatsr
114 MSIZER = msizer
115 MALLOCR = mallocr
116 endif
118 libc_a_SOURCES += \
119         %D%/arc4random.c \
120         %D%/arc4random_uniform.c \
121         %D%/cxa_atexit.c \
122         %D%/cxa_finalize.c \
123         %D%/drand48.c \
124         %D%/ecvtbuf.c \
125         %D%/efgcvt.c \
126         %D%/erand48.c \
127         %D%/jrand48.c \
128         %D%/lcong48.c \
129         %D%/lrand48.c \
130         %D%/mrand48.c \
131         %D%/msize.c \
132         %D%/mtrim.c \
133         %D%/nrand48.c \
134         %D%/rand48.c \
135         %D%/seed48.c \
136         %D%/srand48.c \
137         %D%/strtoll.c \
138         %D%/strtoll_r.c \
139         %D%/strtoull.c \
140         %D%/strtoull_r.c \
141         %D%/wcstoll.c \
142         %D%/wcstoll_r.c \
143         %D%/wcstoull.c \
144         %D%/wcstoull_r.c \
145         %D%/atoll.c \
146         %D%/llabs.c \
147         %D%/lldiv.c
149 %C%_ELIX_2_SOURCES = \
150         %D%/a64l.c \
151         %D%/btowc.c \
152         %D%/getopt.c \
153         %D%/getsubopt.c \
154         %D%/l64a.c \
155         %D%/malign.c \
156         %D%/malignr.c \
157         %D%/malloptr.c \
158         %D%/mbrlen.c \
159         %D%/mbrtowc.c \
160         %D%/mbsinit.c \
161         %D%/mbsnrtowcs.c \
162         %D%/mbsrtowcs.c \
163         %D%/on_exit.c \
164         %D%/pvallocr.c \
165         %D%/valloc.c \
166         %D%/vallocr.c \
167         %D%/wcrtomb.c \
168         %D%/wcsnrtombs.c \
169         %D%/wcsrtombs.c \
170         %D%/wctob.c
172 %C%_ELIX_3_SOURCES = \
173         %D%/putenv.c \
174         %D%/putenv_r.c \
175         %D%/setenv.c \
176         %D%/setenv_r.c
178 %C%_ELIX_4_SOURCES = \
179         %D%/rpmatch.c \
180         %D%/system.c
182 if ELIX_LEVEL_1
183 %C%_ELIX_SOURCES =
184 else
185 if ELIX_LEVEL_2
186 %C%_ELIX_SOURCES = $(%C%_ELIX_2_SOURCES)
187 else
188 if ELIX_LEVEL_3
189 %C%_ELIX_SOURCES = $(%C%_ELIX_2_SOURCES) $(%C%_ELIX_3_SOURCES)
190 else
191 %C%_ELIX_SOURCES = $(%C%_ELIX_2_SOURCES) $(%C%_ELIX_3_SOURCES) $(%C%_ELIX_4_SOURCES)
192 endif
193 endif
194 endif
195 libc_a_SOURCES += $(%C%_ELIX_SOURCES)
197 LIBC_CHEWOUT_FILES += \
198         %D%/_Exit.def \
199         %D%/a64l.def \
200         %D%/abort.def \
201         %D%/abs.def \
202         %D%/assert.def \
203         %D%/atexit.def \
204         %D%/atof.def \
205         %D%/atoi.def \
206         %D%/atoll.def \
207         %D%/calloc.def \
208         %D%/div.def \
209         %D%/ecvtbuf.def \
210         %D%/efgcvt.def \
211         %D%/envlock.def \
212         %D%/exit.def \
213         %D%/getenv.def \
214         %D%/itoa.def \
215         %D%/labs.def \
216         %D%/ldiv.def \
217         %D%/llabs.def \
218         %D%/lldiv.def \
219         %D%/malloc.def \
220         %D%/mblen.def \
221         %D%/mbsnrtowcs.def \
222         %D%/mbstowcs.def \
223         %D%/mbtowc.def \
224         %D%/mlock.def \
225         %D%/mstats.def \
226         %D%/on_exit.def \
227         %D%/rand.def \
228         %D%/rand48.def \
229         %D%/random.def \
230         %D%/rpmatch.def \
231         %D%/strtod.def \
232         %D%/strtol.def \
233         %D%/strtoll.def \
234         %D%/strtoul.def \
235         %D%/strtoull.def \
236         %D%/utoa.def \
237         %D%/wcsnrtombs.def \
238         %D%/wcstod.def \
239         %D%/wcstol.def \
240         %D%/wcstoll.def \
241         %D%/wcstoul.def \
242         %D%/wcstoull.def \
243         %D%/system.def \
244         %D%/wcstombs.def \
245         %D%/wctomb.def
247 LIBC_CHAPTERS += %D%/stdlib.tex