]> git.ipfire.org Git - thirdparty/glibc.git/blame - wcsmbs/Makefile
2.5-18.1
[thirdparty/glibc.git] / wcsmbs / Makefile
CommitLineData
0ecb606c
JJ
1# Copyright (C) 1995-2000,2002,2003,2004,2005,2006
2# Free Software Foundation, Inc.
a482b5a5
RM
3# This file is part of the GNU C Library.
4
5# The GNU C Library is free software; you can redistribute it and/or
41bdb6e2
AJ
6# modify it under the terms of the GNU Lesser General Public
7# License as published by the Free Software Foundation; either
8# version 2.1 of the License, or (at your option) any later version.
a482b5a5
RM
9
10# The GNU C Library is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY; without even the implied warranty of
12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
41bdb6e2 13# Lesser General Public License for more details.
a482b5a5 14
41bdb6e2
AJ
15# You should have received a copy of the GNU Lesser General Public
16# License along with the GNU C Library; if not, write to the Free
17# Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
18# 02111-1307 USA.
a482b5a5
RM
19
20#
21# Sub-makefile for wcsmbs portion of the library.
22#
23subdir := wcsmbs
24
0ecb606c 25headers := wchar.h bits/wchar.h bits/wchar2.h bits/wchar-ldbl.h
4bca4c17 26distribute := wcwidth.h wcsmbsload.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 \
75cd5204 37 wcscoll wcsxfrm \
c84142e8 38 wcwidth wcswidth \
2f6d1f1b 39 wcscoll_l wcsxfrm_l \
4bca4c17 40 wcscasecmp wcsncase wcscasecmp_l wcsncase_l \
01beb5b9 41 wcsmbsload mbsrtowcs_l
a482b5a5 42
bb2fc850 43tests := tst-wcstof wcsmbs-tst1 tst-wcsnlen tst-btowc tst-mbrtowc \
0ecb606c 44 tst-wcrtomb tst-wcpncpy tst-mbsrtowcs tst-wchar-h tst-mbrtowc2
55c14926 45
a482b5a5 46include ../Rules
75cd5204
RM
47
48CFLAGS-wcwidth.c = -I../wctype
49CFLAGS-wcswidth.c = -I../wctype
50
0ecb606c 51strtox-CFLAGS = -I../include
8470bd53
RM
52CFLAGS-wcstol.c = $(strtox-CFLAGS)
53CFLAGS-wcstoul.c = $(strtox-CFLAGS)
54CFLAGS-wcstoll.c = $(strtox-CFLAGS)
55CFLAGS-wcstoull.c = $(strtox-CFLAGS)
56CFLAGS-wcstod.c = $(strtox-CFLAGS)
57CFLAGS-wcstold.c = $(strtox-CFLAGS)
58CFLAGS-wcstof.c = $(strtox-CFLAGS)
59CFLAGS-wcstol_l.c = $(strtox-CFLAGS)
60CFLAGS-wcstoul_l.c = $(strtox-CFLAGS)
61CFLAGS-wcstoll_l.c = $(strtox-CFLAGS)
62CFLAGS-wcstoull_l.c = $(strtox-CFLAGS)
63CFLAGS-wcstod_l.c = $(strtox-CFLAGS)
64CFLAGS-wcstold_l.c = $(strtox-CFLAGS)
65CFLAGS-wcstof_l.c = $(strtox-CFLAGS)
0ecb606c
JJ
66CFLAGS-tst-wchar-h.c = -D_FORTIFY_SOURCE=2
67
68# We need to find the default version of strtold_l in stdlib.
69CPPFLAGS-wcstold_l.c = -I../stdlib
0d69b1ac
UD
70
71tst-btowc-ENV = LOCPATH=$(common-objpfx)localedata
bb2fc850
UD
72tst-mbrtowc-ENV = LOCPATH=$(common-objpfx)localedata
73tst-wcrtomb-ENV = LOCPATH=$(common-objpfx)localedata
0ecb606c 74tst-mbrtowc2-ENV = LOCPATH=$(common-objpfx)localedata