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 \
150 tst-fgetwc-after-eof \
159 tst-wcstod-nan-locale \
160 tst-wcstod-nan-sign \
163 tst-wcstol-binary-c11 \
164 tst-wcstol-binary-c2x \
165 tst-wcstol-binary-gnu11 \
166 tst-wcstol-binary-gnu2x \
169 tst-wscanf-binary-c11 \
170 tst-wscanf-binary-c2x \
171 tst-wscanf-binary-gnu11 \
172 tst-wscanf-binary-gnu89 \
179 ifeq ($(run-built-tests
),yes
)
183 en_US.ANSI_X3.4
-1968 \
191 include ..
/gen-locales.mk
193 $(objpfx
)tst-btowc.out
: $(gen-locales
)
194 $(objpfx
)tst-c16c32-1.out
: $(gen-locales
)
195 $(objpfx
)tst-mbrtowc.out
: $(gen-locales
)
196 $(objpfx
)tst-mbrtowc2.out
: $(gen-locales
)
197 $(objpfx
)tst-wcrtomb.out
: $(gen-locales
)
198 $(objpfx
)wcsmbs-tst1.out
: $(gen-locales
)
199 $(objpfx
)tst-wcstol-locale.out
: $(gen-locales
)
200 $(objpfx
)tst-wcstod-nan-locale.out
: $(gen-locales
)
201 $(objpfx
)tst-c16-surrogate.out
: $(gen-locales
)
202 $(objpfx
)tst-c32-state.out
: $(gen-locales
)
203 $(objpfx
)test-c8rtomb.out
: $(gen-locales
)
204 $(objpfx
)test-mbrtoc8.out
: $(gen-locales
)
207 $(objpfx
)tst-wcstod-round
: $(libm
)
209 CFLAGS-wcwidth.c
+= -I..
/wctype
210 CFLAGS-wcswidth.c
+= -I..
/wctype
212 strtox-CFLAGS
= -I..
/include
213 CFLAGS-wcstol.c
+= $(strtox-CFLAGS
) $(config-cflags-wno-ignored-attributes
)
214 CFLAGS-wcstoul.c
+= $(strtox-CFLAGS
) $(config-cflags-wno-ignored-attributes
)
215 CFLAGS-wcstoll.c
+= $(strtox-CFLAGS
)
216 CFLAGS-wcstoull.c
+= $(strtox-CFLAGS
)
217 CFLAGS-wcstod.c
+= $(strtox-CFLAGS
) $(config-cflags-wno-ignored-attributes
)
218 CFLAGS-wcstold.c
+= $(strtox-CFLAGS
) $(config-cflags-wno-ignored-attributes
)
219 CFLAGS-wcstof128.c
+= $(strtox-CFLAGS
)
220 CFLAGS-wcstof.c
+= $(strtox-CFLAGS
) $(config-cflags-wno-ignored-attributes
)
221 CFLAGS-wcstol_l.c
+= $(strtox-CFLAGS
)
222 CFLAGS-wcstoul_l.c
+= $(strtox-CFLAGS
)
223 CFLAGS-wcstoll_l.c
+= $(strtox-CFLAGS
)
224 CFLAGS-wcstoull_l.c
+= $(strtox-CFLAGS
)
225 CFLAGS-wcstod_l.c
+= $(strtox-CFLAGS
) $(config-cflags-wno-ignored-attributes
)
226 CFLAGS-wcstold_l.c
+= $(strtox-CFLAGS
) $(config-cflags-wno-ignored-attributes
)
227 CFLAGS-wcstof128_l.c
+= $(strtox-CFLAGS
)
228 CFLAGS-wcstof_l.c
+= $(strtox-CFLAGS
) $(config-cflags-wno-ignored-attributes
)
229 CPPFLAGS-tst-wchar-h.c
+= -D_FORTIFY_SOURCE
=2
231 CFLAGS-wcschr.c
+= $(config-cflags-wno-ignored-attributes
)
232 CFLAGS-wmemchr.c
+= $(config-cflags-wno-ignored-attributes
)
233 CFLAGS-wmemset.c
+= $(config-cflags-wno-ignored-attributes
)
234 CFLAGS-mbrtowc.c
+= $(config-cflags-wno-ignored-attributes
)
235 CFLAGS-wcrtomb.c
+= $(config-cflags-wno-ignored-attributes
)
236 CFLAGS-wcstoll.c
+= $(config-cflags-wno-ignored-attributes
)
237 CFLAGS-wcstoull.c
+= $(config-cflags-wno-ignored-attributes
)
239 CFLAGS-isoc99_wscanf.c
+= -fexceptions
240 CFLAGS-isoc99_fwscanf.c
+= -fexceptions
241 CFLAGS-isoc99_vwscanf.c
+= -fexceptions
242 CFLAGS-isoc99_vfwscanf.c
+= -fexceptions
243 CFLAGS-isoc23_wscanf.c
+= -fexceptions
244 CFLAGS-isoc23_fwscanf.c
+= -fexceptions
245 CFLAGS-isoc23_vwscanf.c
+= -fexceptions
246 CFLAGS-isoc23_vfwscanf.c
+= -fexceptions
248 CPPFLAGS
+= $(libio-mtsafe
)
250 # We need to find the default version of strtold_l in stdlib.
251 CPPFLAGS-wcstold_l.c
+= -I..
/stdlib
253 $(objpfx
)tst-wcstod-nan-locale
: $(libm
)
254 $(objpfx
)tst-wcstod-nan-sign
: $(libm
)
256 # Some versions of GCC supported for building glibc do not support -std=c2x
257 # or -std=gnu2x, so the tests for those versions use -std=c11 and -std=gnu11
258 # and then _ISOC2X_SOURCE is defined in the test as needed.
259 CFLAGS-tst-wcstol-binary-c11.c
+= -std
=c11
260 CFLAGS-tst-wcstol-binary-c2x.c
+= -std
=c11
261 CFLAGS-tst-wcstol-binary-gnu11.c
+= -std
=gnu11
262 CFLAGS-tst-wcstol-binary-gnu2x.c
+= -std
=gnu11
263 CFLAGS-tst-wscanf-binary-c11.c
+= -std
=c11
-DOBJPFX
=\"$(objpfx
)\"
264 CFLAGS-tst-wscanf-binary-c2x.c
+= -std
=c11
-DOBJPFX
=\"$(objpfx
)\"
265 CFLAGS-tst-wscanf-binary-gnu11.c
+= -std
=gnu11
-DOBJPFX
=\"$(objpfx
)\"
266 CFLAGS-tst-wscanf-binary-gnu89.c
+= -std
=gnu89
-DOBJPFX
=\"$(objpfx
)\"