1 TESTS = ascii.t iso.t utf8.t misc.t
3 d2u_os=$(shell uname -s)
6 # Checking WIN32 version in MSYS shell.
7 ifeq ($(findstring MINGW,$(d2u_os)),MINGW)
11 ifneq ($(findstring FreeBSD,$(d2u_os)),FreeBSD)
12 # Unix/Linux/Cygwin. Check if zh_CN.gb18030 locale is supported.
13 ifeq ($(shell ./chk_loc.sh zh_CN.gb18030),yes)
18 # DOS and Windows version do not support symlinks like the Unix version.
20 ifneq ($(findstring MINGW,$(d2u_os)),MINGW)
60 $(CC) -Wall -Wextra wcstombs_test.c -o wcstombs_test
61 @echo "====> test wcstombs() UTF-8"
62 LC_ALL=en_US.UTF-8 ./wcstombs_test
63 @echo "====> test wcstombs() GB18030"
64 LC_ALL=zh_CN.GB18030 ./wcstombs_test
70 rm -f out*.txt in_link.txt wcstombs_test