]> git.ipfire.org Git - thirdparty/glibc.git/blame - wcsmbs/Makefile
aarch64: Fix DT_AARCH64_VARIANT_PCS handling [BZ #26798]
[thirdparty/glibc.git] / wcsmbs / Makefile
CommitLineData
bfff8b1b 1# Copyright (C) 1995-2017 Free Software Foundation, Inc.
a482b5a5
RM
2# This file is part of the GNU C Library.
3
4# The GNU C Library is free software; you can redistribute it and/or
41bdb6e2
AJ
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.
a482b5a5
RM
8
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
41bdb6e2 12# Lesser General Public License for more details.
a482b5a5 13
41bdb6e2 14# You should have received a copy of the GNU Lesser General Public
59ba27a6
PE
15# License along with the GNU C Library; if not, see
16# <http://www.gnu.org/licenses/>.
a482b5a5
RM
17
18#
19# Sub-makefile for wcsmbs portion of the library.
20#
21subdir := wcsmbs
22
a5f891ac
JM
23include ../Makeconfig
24
199fc19d
ZW
25headers := wchar.h bits/wchar.h bits/wchar2.h bits/wchar-ldbl.h uchar.h \
26 bits/types/__mbstate_t.h bits/types/mbstate_t.h bits/types/wint_t.h
a482b5a5 27
299a95b9
RM
28routines := wcscat wcschr wcscmp wcscpy wcscspn wcsdup wcslen wcsncat \
29 wcsncmp wcsncpy wcspbrk wcsrchr wcsspn wcstok wcsstr wmemchr \
d64b6ad0 30 wmemcmp wmemcpy wmemmove wmemset wcpcpy wcpncpy wmempcpy \
299a95b9 31 btowc wctob mbsinit \
75cd5204 32 mbrlen mbrtowc wcrtomb mbsrtowcs wcsrtombs \
d64b6ad0 33 mbsnrtowcs wcsnrtombs wcsnlen wcschrnul \
2f6d1f1b 34 wcstol wcstoul wcstoll wcstoull wcstod wcstold wcstof \
0501d603
UD
35 wcstol_l wcstoul_l wcstoll_l wcstoull_l \
36 wcstod_l wcstold_l wcstof_l \
e02cabec 37 wcstod_nan wcstold_nan wcstof_nan \
75cd5204 38 wcscoll wcsxfrm \
c84142e8 39 wcwidth wcswidth \
2f6d1f1b 40 wcscoll_l wcsxfrm_l \
4bca4c17 41 wcscasecmp wcsncase wcscasecmp_l wcsncase_l \
874aa523
UD
42 wcsmbsload mbsrtowcs_l \
43 isoc99_wscanf isoc99_vwscanf isoc99_fwscanf isoc99_vfwscanf \
db6af3eb
UD
44 isoc99_swscanf isoc99_vswscanf \
45 mbrtoc16 c16rtomb
a482b5a5 46
8ade3db7 47strop-tests := wcscmp wcsncmp wmemcmp wcslen wcschr wcsrchr wcscpy wcsnlen \
b4c21601 48 wcpcpy wcsncpy wcpncpy wcscat wcsncat wcschrnul wcsspn wcspbrk \
2e9e1667 49 wcscspn wmemchr wmemset
bb2fc850 50tests := tst-wcstof wcsmbs-tst1 tst-wcsnlen tst-btowc tst-mbrtowc \
9cc198f6 51 tst-wcrtomb tst-wcpncpy tst-mbsrtowcs tst-wchar-h tst-mbrtowc2 \
a7f0c5ae 52 tst-c16c32-1 wcsatcliff tst-wcstol-locale tst-wcstod-nan-locale \
46692946 53 tst-wcstod-round \
f5eee5c7 54 $(addprefix test-,$(strop-tests))
55c14926 55
a482b5a5 56include ../Rules
75cd5204 57
f881f6ff
AS
58ifeq ($(run-built-tests),yes)
59LOCALES := de_DE.ISO-8859-1 de_DE.UTF-8 en_US.ANSI_X3.4-1968 hr_HR.ISO-8859-2 \
f5eee5c7 60 ja_JP.EUC-JP zh_TW.EUC-TW tr_TR.UTF-8 tr_TR.ISO-8859-9
f881f6ff
AS
61include ../gen-locales.mk
62
63$(objpfx)tst-btowc.out: $(gen-locales)
64$(objpfx)tst-c16c32-1.out: $(gen-locales)
65$(objpfx)tst-mbrtowc.out: $(gen-locales)
66$(objpfx)tst-mbrtowc2.out: $(gen-locales)
67$(objpfx)tst-wcrtomb.out: $(gen-locales)
68$(objpfx)wcsmbs-tst1.out: $(gen-locales)
f5eee5c7 69$(objpfx)tst-wcstol-locale.out: $(gen-locales)
a7f0c5ae 70$(objpfx)tst-wcstod-nan-locale.out: $(gen-locales)
f881f6ff
AS
71endif
72
46692946
PM
73$(objpfx)tst-wcstod-round: $(libm)
74
75cd5204
RM
75CFLAGS-wcwidth.c = -I../wctype
76CFLAGS-wcswidth.c = -I../wctype
77
b6ab06ce 78strtox-CFLAGS = -I../include
8470bd53
RM
79CFLAGS-wcstol.c = $(strtox-CFLAGS)
80CFLAGS-wcstoul.c = $(strtox-CFLAGS)
81CFLAGS-wcstoll.c = $(strtox-CFLAGS)
82CFLAGS-wcstoull.c = $(strtox-CFLAGS)
83CFLAGS-wcstod.c = $(strtox-CFLAGS)
84CFLAGS-wcstold.c = $(strtox-CFLAGS)
45f39d45 85CFLAGS-wcstof128.c = $(strtox-CFLAGS)
8470bd53
RM
86CFLAGS-wcstof.c = $(strtox-CFLAGS)
87CFLAGS-wcstol_l.c = $(strtox-CFLAGS)
88CFLAGS-wcstoul_l.c = $(strtox-CFLAGS)
89CFLAGS-wcstoll_l.c = $(strtox-CFLAGS)
90CFLAGS-wcstoull_l.c = $(strtox-CFLAGS)
91CFLAGS-wcstod_l.c = $(strtox-CFLAGS)
92CFLAGS-wcstold_l.c = $(strtox-CFLAGS)
45f39d45 93CFLAGS-wcstof128_l.c = $(strtox-CFLAGS)
8470bd53 94CFLAGS-wcstof_l.c = $(strtox-CFLAGS)
fed806c3 95CPPFLAGS-tst-wchar-h.c = -D_FORTIFY_SOURCE=2
0d69b1ac 96
56ab3869
JM
97CFLAGS-isoc99_wscanf.c += -fexceptions
98CFLAGS-isoc99_fwscanf.c += -fexceptions
99CFLAGS-isoc99_vwscanf.c += -fexceptions
100CFLAGS-isoc99_vfwscanf.c += -fexceptions
c75ccd4c
RM
101
102CPPFLAGS += $(libio-mtsafe)
874aa523 103
b6ab06ce
UD
104# We need to find the default version of strtold_l in stdlib.
105CPPFLAGS-wcstold_l.c = -I../stdlib
a7f0c5ae
JM
106
107$(objpfx)tst-wcstod-nan-locale: $(libm)