1 # Copyright (C) 1995-2023 Free Software Foundation, Inc.
2 # This file is part of the GNU C Library.
4 # The GNU C Library is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU Lesser General Public
6 # License as published by the Free Software Foundation; either
7 # version 2.1 of the License, or (at your option) any later version.
9 # The GNU C Library is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 # Lesser General Public License for more details.
14 # You should have received a copy of the GNU Lesser General Public
15 # License along with the GNU C Library; if not, see
16 # <https://www.gnu.org/licenses/>.
19 # Sub-makefile for wcsmbs portion of the library.
26 bits
/types
/__mbstate_t.h \
27 bits
/types
/mbstate_t.h \
152 tst-fgetwc-after-eof \
163 tst-wcstod-nan-locale \
164 tst-wcstod-nan-sign \
167 tst-wcstol-binary-c11 \
168 tst-wcstol-binary-c2x \
169 tst-wcstol-binary-gnu11 \
170 tst-wcstol-binary-gnu2x \
174 tst-wscanf-binary-c11 \
175 tst-wscanf-binary-c2x \
176 tst-wscanf-binary-gnu11 \
177 tst-wscanf-binary-gnu89 \
184 ifeq ($(run-built-tests
),yes
)
188 en_US.ANSI_X3.4
-1968 \
196 include ..
/gen-locales.mk
198 $(objpfx
)tst-btowc.out
: $(gen-locales
)
199 $(objpfx
)tst-c16c32-1.out
: $(gen-locales
)
200 $(objpfx
)tst-mbrtowc.out
: $(gen-locales
)
201 $(objpfx
)tst-mbrtowc2.out
: $(gen-locales
)
202 $(objpfx
)tst-wcrtomb.out
: $(gen-locales
)
203 $(objpfx
)wcsmbs-tst1.out
: $(gen-locales
)
204 $(objpfx
)tst-wcstol-locale.out
: $(gen-locales
)
205 $(objpfx
)tst-wcstod-nan-locale.out
: $(gen-locales
)
206 $(objpfx
)tst-c16-surrogate.out
: $(gen-locales
)
207 $(objpfx
)tst-c32-state.out
: $(gen-locales
)
208 $(objpfx
)test-c8rtomb.out
: $(gen-locales
)
209 $(objpfx
)test-mbrtoc8.out
: $(gen-locales
)
212 $(objpfx
)tst-wcstod-round
: $(libm
)
214 CFLAGS-wcwidth.c
+= -I..
/wctype
215 CFLAGS-wcswidth.c
+= -I..
/wctype
217 strtox-CFLAGS
= -I..
/include
218 CFLAGS-wcstol.c
+= $(strtox-CFLAGS
) $(config-cflags-wno-ignored-attributes
)
219 CFLAGS-wcstoul.c
+= $(strtox-CFLAGS
) $(config-cflags-wno-ignored-attributes
)
220 CFLAGS-wcstoll.c
+= $(strtox-CFLAGS
)
221 CFLAGS-wcstoull.c
+= $(strtox-CFLAGS
)
222 CFLAGS-wcstod.c
+= $(strtox-CFLAGS
) $(config-cflags-wno-ignored-attributes
)
223 CFLAGS-wcstold.c
+= $(strtox-CFLAGS
) $(config-cflags-wno-ignored-attributes
)
224 CFLAGS-wcstof128.c
+= $(strtox-CFLAGS
)
225 CFLAGS-wcstof.c
+= $(strtox-CFLAGS
) $(config-cflags-wno-ignored-attributes
)
226 CFLAGS-wcstol_l.c
+= $(strtox-CFLAGS
)
227 CFLAGS-wcstoul_l.c
+= $(strtox-CFLAGS
)
228 CFLAGS-wcstoll_l.c
+= $(strtox-CFLAGS
)
229 CFLAGS-wcstoull_l.c
+= $(strtox-CFLAGS
)
230 CFLAGS-wcstod_l.c
+= $(strtox-CFLAGS
) $(config-cflags-wno-ignored-attributes
)
231 CFLAGS-wcstold_l.c
+= $(strtox-CFLAGS
) $(config-cflags-wno-ignored-attributes
)
232 CFLAGS-wcstof128_l.c
+= $(strtox-CFLAGS
)
233 CFLAGS-wcstof_l.c
+= $(strtox-CFLAGS
) $(config-cflags-wno-ignored-attributes
)
234 CPPFLAGS-tst-wchar-h.c
+= -D_FORTIFY_SOURCE
=2
236 CFLAGS-wcschr.c
+= $(config-cflags-wno-ignored-attributes
)
237 CFLAGS-wmemchr.c
+= $(config-cflags-wno-ignored-attributes
)
238 CFLAGS-wmemset.c
+= $(config-cflags-wno-ignored-attributes
)
239 CFLAGS-mbrtowc.c
+= $(config-cflags-wno-ignored-attributes
)
240 CFLAGS-wcrtomb.c
+= $(config-cflags-wno-ignored-attributes
)
241 CFLAGS-wcstoll.c
+= $(config-cflags-wno-ignored-attributes
)
242 CFLAGS-wcstoull.c
+= $(config-cflags-wno-ignored-attributes
)
244 CFLAGS-isoc99_wscanf.c
+= -fexceptions
245 CFLAGS-isoc99_fwscanf.c
+= -fexceptions
246 CFLAGS-isoc99_vwscanf.c
+= -fexceptions
247 CFLAGS-isoc99_vfwscanf.c
+= -fexceptions
248 CFLAGS-isoc23_wscanf.c
+= -fexceptions
249 CFLAGS-isoc23_fwscanf.c
+= -fexceptions
250 CFLAGS-isoc23_vwscanf.c
+= -fexceptions
251 CFLAGS-isoc23_vfwscanf.c
+= -fexceptions
253 CPPFLAGS
+= $(libio-mtsafe
)
255 # We need to find the default version of strtold_l in stdlib.
256 CPPFLAGS-wcstold_l.c
+= -I..
/stdlib
258 $(objpfx
)tst-wcstod-nan-locale
: $(libm
)
259 $(objpfx
)tst-wcstod-nan-sign
: $(libm
)
261 # Some versions of GCC supported for building glibc do not support -std=c2x
262 # or -std=gnu2x, so the tests for those versions use -std=c11 and -std=gnu11
263 # and then _ISOC2X_SOURCE is defined in the test as needed.
264 CFLAGS-tst-wcstol-binary-c11.c
+= -std
=c11
265 CFLAGS-tst-wcstol-binary-c2x.c
+= -std
=c11
266 CFLAGS-tst-wcstol-binary-gnu11.c
+= -std
=gnu11
267 CFLAGS-tst-wcstol-binary-gnu2x.c
+= -std
=gnu11
268 CFLAGS-tst-wscanf-binary-c11.c
+= -std
=c11
-DOBJPFX
=\"$(objpfx
)\"
269 CFLAGS-tst-wscanf-binary-c2x.c
+= -std
=c11
-DOBJPFX
=\"$(objpfx
)\"
270 CFLAGS-tst-wscanf-binary-gnu11.c
+= -std
=gnu11
-DOBJPFX
=\"$(objpfx
)\"
271 CFLAGS-tst-wscanf-binary-gnu89.c
+= -std
=gnu89
-DOBJPFX
=\"$(objpfx
)\"