Fix bug in firstversions.awk version range handling.
[glibc.git] / wcsmbs / Makefile
blob5e447f81449de0ddf2b859f5944425088562a4cd
1 # Copyright (C) 1995-2000,2002,2003,2004,2005,2006,2007,2011,2012
2 # Free Software Foundation, Inc.
3 # This file is part of the GNU C Library.
5 # The GNU C Library is free software; you can redistribute it and/or
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.
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
13 # Lesser General Public License for more details.
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.
21 # Sub-makefile for wcsmbs portion of the library.
23 subdir := wcsmbs
25 headers := wchar.h bits/wchar.h bits/wchar2.h bits/wchar-ldbl.h uchar.h
26 distribute := wcwidth.h wcsmbsload.h
28 routines := wcscat wcschr wcscmp wcscpy wcscspn wcsdup wcslen wcsncat \
29 wcsncmp wcsncpy wcspbrk wcsrchr wcsspn wcstok wcsstr wmemchr \
30 wmemcmp wmemcpy wmemmove wmemset wcpcpy wcpncpy wmempcpy \
31 btowc wctob mbsinit \
32 mbrlen mbrtowc wcrtomb mbsrtowcs wcsrtombs \
33 mbsnrtowcs wcsnrtombs wcsnlen wcschrnul \
34 wcstol wcstoul wcstoll wcstoull wcstod wcstold wcstof \
35 wcstol_l wcstoul_l wcstoll_l wcstoull_l \
36 wcstod_l wcstold_l wcstof_l \
37 wcscoll wcsxfrm \
38 wcwidth wcswidth \
39 wcscoll_l wcsxfrm_l \
40 wcscasecmp wcsncase wcscasecmp_l wcsncase_l \
41 wcsmbsload mbsrtowcs_l \
42 isoc99_wscanf isoc99_vwscanf isoc99_fwscanf isoc99_vfwscanf \
43 isoc99_swscanf isoc99_vswscanf \
44 mbrtoc16 c16rtomb
46 strop-tests := wcscmp wmemcmp wcslen wcschr wcsrchr wcscpy
47 tests := tst-wcstof wcsmbs-tst1 tst-wcsnlen tst-btowc tst-mbrtowc \
48 tst-wcrtomb tst-wcpncpy tst-mbsrtowcs tst-wchar-h tst-mbrtowc2 \
49 tst-c16c32-1 \
50 wcsatcliff $(addprefix test-,$(strop-tests))
52 include ../Rules
54 CFLAGS-wcwidth.c = -I../wctype
55 CFLAGS-wcswidth.c = -I../wctype
57 strtox-CFLAGS = -I../include
58 CFLAGS-wcstol.c = $(strtox-CFLAGS)
59 CFLAGS-wcstoul.c = $(strtox-CFLAGS)
60 CFLAGS-wcstoll.c = $(strtox-CFLAGS)
61 CFLAGS-wcstoull.c = $(strtox-CFLAGS)
62 CFLAGS-wcstod.c = $(strtox-CFLAGS)
63 CFLAGS-wcstold.c = $(strtox-CFLAGS)
64 CFLAGS-wcstof.c = $(strtox-CFLAGS)
65 CFLAGS-wcstol_l.c = $(strtox-CFLAGS)
66 CFLAGS-wcstoul_l.c = $(strtox-CFLAGS)
67 CFLAGS-wcstoll_l.c = $(strtox-CFLAGS)
68 CFLAGS-wcstoull_l.c = $(strtox-CFLAGS)
69 CFLAGS-wcstod_l.c = $(strtox-CFLAGS)
70 CFLAGS-wcstold_l.c = $(strtox-CFLAGS)
71 CFLAGS-wcstof_l.c = $(strtox-CFLAGS)
72 CFLAGS-tst-wchar-h.c = -D_FORTIFY_SOURCE=2
74 CFLAGS-isoc99_wscanf.c += $(exceptions)
75 CFLAGS-isoc99_fwscanf.c += $(exceptions)
76 CFLAGS-isoc99_vwscanf.c += $(exceptions)
77 CFLAGS-isoc99_vfwscanf.c += $(exceptions)
78 ifneq (,$(filter %REENTRANT, $(defines)))
79 CPPFLAGS += -D_IO_MTSAFE_IO
80 endif
82 # We need to find the default version of strtold_l in stdlib.
83 CPPFLAGS-wcstold_l.c = -I../stdlib
85 tst-btowc-ENV = LOCPATH=$(common-objpfx)localedata
86 tst-mbrtowc-ENV = LOCPATH=$(common-objpfx)localedata
87 tst-wcrtomb-ENV = LOCPATH=$(common-objpfx)localedata
88 tst-mbrtowc2-ENV = LOCPATH=$(common-objpfx)localedata
89 tst-c16c32-1-ENV = LOCPATH=$(common-objpfx)localedata