]> git.ipfire.org Git - thirdparty/glibc.git/blame - wcsmbs/Makefile
Consistently include Makeconfig after defining subdir.
[thirdparty/glibc.git] / wcsmbs / Makefile
CommitLineData
d4697bc9 1# Copyright (C) 1995-2014 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
0c023bb7 25headers := wchar.h bits/wchar.h bits/wchar2.h bits/wchar-ldbl.h uchar.h
a482b5a5 26
299a95b9
RM
27routines := wcscat wcschr wcscmp wcscpy wcscspn wcsdup wcslen wcsncat \
28 wcsncmp wcsncpy wcspbrk wcsrchr wcsspn wcstok wcsstr wmemchr \
d64b6ad0 29 wmemcmp wmemcpy wmemmove wmemset wcpcpy wcpncpy wmempcpy \
299a95b9 30 btowc wctob mbsinit \
75cd5204 31 mbrlen mbrtowc wcrtomb mbsrtowcs wcsrtombs \
d64b6ad0 32 mbsnrtowcs wcsnrtombs wcsnlen wcschrnul \
2f6d1f1b 33 wcstol wcstoul wcstoll wcstoull wcstod wcstold wcstof \
0501d603
UD
34 wcstol_l wcstoul_l wcstoll_l wcstoull_l \
35 wcstod_l wcstold_l wcstof_l \
75cd5204 36 wcscoll wcsxfrm \
c84142e8 37 wcwidth wcswidth \
2f6d1f1b 38 wcscoll_l wcsxfrm_l \
4bca4c17 39 wcscasecmp wcsncase wcscasecmp_l wcsncase_l \
874aa523
UD
40 wcsmbsload mbsrtowcs_l \
41 isoc99_wscanf isoc99_vwscanf isoc99_fwscanf isoc99_vfwscanf \
db6af3eb
UD
42 isoc99_swscanf isoc99_vswscanf \
43 mbrtoc16 c16rtomb
a482b5a5 44
5b330a2d 45strop-tests := wcscmp wmemcmp wcslen wcschr wcsrchr wcscpy
bb2fc850 46tests := tst-wcstof wcsmbs-tst1 tst-wcsnlen tst-btowc tst-mbrtowc \
9cc198f6 47 tst-wcrtomb tst-wcpncpy tst-mbsrtowcs tst-wchar-h tst-mbrtowc2 \
5fefb436 48 tst-c16c32-1 wcsatcliff $(addprefix test-,$(strop-tests))
228cfb01
L
49tests-ifunc := $(strop-tests:%=test-%-ifunc)
50tests += $(tests-ifunc)
55c14926 51
a482b5a5 52include ../Rules
75cd5204
RM
53
54CFLAGS-wcwidth.c = -I../wctype
55CFLAGS-wcswidth.c = -I../wctype
56
b6ab06ce 57strtox-CFLAGS = -I../include
8470bd53
RM
58CFLAGS-wcstol.c = $(strtox-CFLAGS)
59CFLAGS-wcstoul.c = $(strtox-CFLAGS)
60CFLAGS-wcstoll.c = $(strtox-CFLAGS)
61CFLAGS-wcstoull.c = $(strtox-CFLAGS)
62CFLAGS-wcstod.c = $(strtox-CFLAGS)
63CFLAGS-wcstold.c = $(strtox-CFLAGS)
64CFLAGS-wcstof.c = $(strtox-CFLAGS)
65CFLAGS-wcstol_l.c = $(strtox-CFLAGS)
66CFLAGS-wcstoul_l.c = $(strtox-CFLAGS)
67CFLAGS-wcstoll_l.c = $(strtox-CFLAGS)
68CFLAGS-wcstoull_l.c = $(strtox-CFLAGS)
69CFLAGS-wcstod_l.c = $(strtox-CFLAGS)
70CFLAGS-wcstold_l.c = $(strtox-CFLAGS)
71CFLAGS-wcstof_l.c = $(strtox-CFLAGS)
fed806c3 72CPPFLAGS-tst-wchar-h.c = -D_FORTIFY_SOURCE=2
0d69b1ac 73
874aa523
UD
74CFLAGS-isoc99_wscanf.c += $(exceptions)
75CFLAGS-isoc99_fwscanf.c += $(exceptions)
76CFLAGS-isoc99_vwscanf.c += $(exceptions)
77CFLAGS-isoc99_vfwscanf.c += $(exceptions)
c75ccd4c
RM
78
79CPPFLAGS += $(libio-mtsafe)
874aa523 80
b6ab06ce
UD
81# We need to find the default version of strtold_l in stdlib.
82CPPFLAGS-wcstold_l.c = -I../stdlib
83
0d69b1ac 84tst-btowc-ENV = LOCPATH=$(common-objpfx)localedata
bb2fc850
UD
85tst-mbrtowc-ENV = LOCPATH=$(common-objpfx)localedata
86tst-wcrtomb-ENV = LOCPATH=$(common-objpfx)localedata
ebb58ba3 87tst-mbrtowc2-ENV = LOCPATH=$(common-objpfx)localedata
f1d4aa75 88tst-c16c32-1-ENV = LOCPATH=$(common-objpfx)localedata
e64d2de5 89tst-mbsnrtowcs-ENV = LOCPATH=$(common-objpfx)localedata