2007-02-19 04:40:58 +00:00
|
|
|
# Copyright (C) 1996-2002, 2003, 2005, 2007 Free Software Foundation, Inc.
|
1997-03-05 00:35:19 +00:00
|
|
|
# This file is part of the GNU C Library.
|
|
|
|
|
|
|
|
# The GNU C Library is free software; you can redistribute it and/or
|
2001-07-06 04:58:11 +00:00
|
|
|
# modify it under the terms of the GNU Lesser General Public
|
|
|
|
# License as published by the Free Software Foundation; either
|
|
|
|
# version 2.1 of the License, or (at your option) any later version.
|
1997-03-05 00:35:19 +00:00
|
|
|
|
|
|
|
# The GNU C Library is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
2001-07-06 04:58:11 +00:00
|
|
|
# Lesser General Public License for more details.
|
1997-03-05 00:35:19 +00:00
|
|
|
|
2001-07-06 04:58:11 +00:00
|
|
|
# You should have received a copy of the GNU Lesser General Public
|
|
|
|
# License along with the GNU C Library; if not, write to the Free
|
|
|
|
# Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
|
|
|
# 02111-1307 USA.
|
1997-03-05 00:35:19 +00:00
|
|
|
|
|
|
|
# Makefile for installing locale data source files.
|
|
|
|
|
|
|
|
subdir := localedata
|
|
|
|
|
|
|
|
all: # Make this the default target; it will be defined in Rules.
|
|
|
|
|
|
|
|
# List with all available character set descriptions.
|
1999-06-18 19:04:23 +00:00
|
|
|
charmaps := $(filter-out $(addprefix charmaps/, CVS RCS SCCS %~), \
|
1998-12-26 09:30:54 +00:00
|
|
|
$(wildcard charmaps/[A-I]*) \
|
|
|
|
$(wildcard charmaps/[J-Z]*))
|
1997-03-05 00:35:19 +00:00
|
|
|
|
|
|
|
# List with all available character set descriptions.
|
1999-06-18 19:04:23 +00:00
|
|
|
locales := $(filter-out $(addprefix locales/, CVS RCS SCCS %~), \
|
1997-03-05 00:35:19 +00:00
|
|
|
$(wildcard locales/*))
|
|
|
|
|
2000-06-27 12:14:09 +00:00
|
|
|
|
|
|
|
subdir-dirs = tests-mbwc
|
|
|
|
vpath %.c tests-mbwc
|
|
|
|
vpath %.h tests-mbwc
|
|
|
|
|
|
|
|
|
2000-04-27 05:42:19 +00:00
|
|
|
test-srcs := collate-test xfrm-test tst-fmon tst-rpmatch tst-trans \
|
2000-06-27 01:03:13 +00:00
|
|
|
tst-mbswcs1 tst-mbswcs2 tst-mbswcs3 tst-mbswcs4 tst-mbswcs5 \
|
2003-04-27 09:02:51 +00:00
|
|
|
tst-ctype tst-wctype tst-langinfo tst-numeric
|
2000-08-22 08:00:17 +00:00
|
|
|
test-input := de_DE.ISO-8859-1 en_US.ISO-8859-1 da_DK.ISO-8859-1 \
|
2004-08-07 23:38:40 +00:00
|
|
|
hr_HR.ISO-8859-2 sv_SE.ISO-8859-1 tr_TR.UTF-8
|
1998-12-21 12:25:07 +00:00
|
|
|
test-input-data = $(addsuffix .in, $(basename $(test-input)))
|
Update.
1998-02-10 23:57 Ulrich Drepper <drepper@happy.cygnus.com>
* misc/tst-efgcvt.c: Add more tests.
* misc/efgcvt_r.c: Correct result for above new tests.
1998-02-06 17:22 H.J. Lu <hjl@gnu.org>
* misc/efgcvt_r.c (fcvt_r, ecvt_r): Correctly handle
NDIGIT <= 0.
1998-02-10 16:48 Philip Blundell <pb@nexus.co.uk>
* Makerules (install-no-libc.a-nosubdir): Don't install-bin (etc)
if the programs weren't built.
1998-02-09 10:12 Philip Blundell <pb@nexus.co.uk>
* sysdeps/libm-ieee754/s_exp2.c (__ieee754_exp2): If we don't have
FE_TONEAREST, soldier on regardless and do the best we can.
* sysdeps/libm-ieee754/s_exp2f.c (__ieee754_exp2f): likewise.
1998-02-5 17:20 Philip Blundell <pb@nexus.co.uk>
* sysdeps/standalone/filedesc.h: Define __need_FOPEN_MAX, not
_STDIO_H, before including <bits/stdio_lim.h>.
* sysdeps/standalone/arm/bits/errno.h (EOVERFLOW): Added.
* io/fts.c (fts_build): Don't try to use d_type if it doesn't
exist.
* sysdeps/arm/sys/ucontext.h: New file.
1998-02-04 10:11 Philip Blundell <pb@nexus.co.uk>
* manual/stdio.texi (Formatted Output Functions): Explicitly say
that the return value from snprintf() does not count the
terminating NUL as a character.
1998-02-10 16:57 Ulrich Drepper <drepper@happy.cygnus.com>
* manual/users.texi: Rewrite to describe correct POSIX behaviour,
add description for sete[ug]id and general cleanup.
Patch by Zack Weinberg <zack@rabi.phys.columbia.edu>.
1998-01-04 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* Makefile (parent-clean): Don't remove makefile fragments here.
(postclean): New variable.
(clean): Remove makefile fragments here.
(realclean distclean): Likewise. Pass sysdep-subdirs to sub-make.
(generated): Add isomac and isomanc.out.
* Makeconfig ($(common-objpfx)soversions.mk): Don't generate if
avoid-generated is set.
(postclean-generated): Add soversion.mk.
($(common-objpfx)version.mk): Don't include if avoid-generated is
set.
* Makerules: Still need to include $(+sysdir_pfx)sysd-Makefile if
avoid-generated is set.
(common-generated): Add libc.so and libc.so$(libc.so-version).
(generated): Add versioned libraries.
(common-mostlyclean): Also remove %.so and %_pic.a.
* csu/Makefile (generated): Add abi-tag.h.
* db2/Makefile (extra-objs): Add getlong.o.
* elf/Makefile (generated): Add ld.so, ldd and
$(rtld-installed-name).
(others): Add ldconfig here instead of ldconfig.o to extra-objs.
* malloc/Makefile (generated): Add mtrace.
* po/Makefile: Don't include version.mk, not needed any more.
* sunrpc/Makefile (generated): Add rpc-proto.d and rpcgen.
* sysdeps/unix/Makefile: Fix local_lim.h -> bits/local_lim.h,
syscall.h -> sys/syscall.h.
(common-generated): Add s-proto.d.
(postclean-generated): Add sysd-syscalls.
* localedata/Makefile (test-output): Add all output files.
(generated): Add test-input and test-output.
(generated-dirs): Add all the dirs.
1998-01-04 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* Makefile (test-output, generated, generated-dirs): New
variables.
1998-02-10 16:57 Ulrich Drepper <drepper@happy.cygnus.com>
* resolv/nss_dns/dns-host.c: Various code cleanups.
1998-02-09 08:10 H.J. Lu <hjl@gnu.org>
* resolv/gethnamaddr.c (getanswer): Fix the PTR/CNAME bug.
From Philip Blundell <pb@nexus.co.uk>.
* resolv/nss_dns/dns-host.c (getanswer_r): Ditto.
1998-02-08 Andreas Jaeger <aj@arthur.rhein-neckar.de>
* libc.map: Add .rem, .div, .mul, .udiv, .umul, .urem for Sparc.
Suggested by debian/sparc porters.
1998-02-07 Andreas Jaeger <aj@arthur.rhein-neckar.de>
* misc/tst-efgcvt.c: Totally rewritten, added a lot of new tests
for ecvt and fcvt.
1998-02-10 16:32 Ulrich Drepper <drepper@happy.cygnus.com>
* sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): Use __xstat and
__fxstat instead of stat and fstat. Use namespace clean __stpcpy.
* signal/signal.h: Always define sigset_t if __need_sigset_t is
defined even if __USE_POSIX is not defined.
1998-02-02 20:51 Zack Weinberg <zack@rabi.phys.columbia.edu>
* sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): Correct last patch
to support obsolete tty major numbers correctly.
1998-02-02 08:47 H.J. Lu <hjl@gnu.org>
* login/Makefile ($(inst_libexecdir)/pt_chown): Make the target
directory first and ignore install error.
* sysdeps/unix/sysv/linux/ptsname.c (__ptsname_r): Substract
128 from ptyno and fix a typo for the BSD style pty.
1998-02-01 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* sysdeps/unix/Makefile ($(common-objpfx)s-proto.d): Depend on all
syscalls.list's.
1998-02-01 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
getresuid and getresgid.
* sysdeps/unix/sysv/linux/getresuid.c: New file.
* sysdeps/unix/sysv/linux/getresgid.c: New file.
* sysdeps/unix/sysv/linux/syscalls.list: Remove getres[ug]id, add
s_getres[ug]id.
* sysdeps/unix/sysv/linux/alpha/syscalls.list: Add getres[ug]id.
* sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
* sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
* sysdeps/unix/sysv/linux/powerpc/syscalls.list: Likewise.
1998-02-02 08:11 H.J. Lu <hjl@gnu.org>
* nscd/grpcache.c: Include <stdlib.h>.
1998-02-01 16:01 H.J. Lu <hjl@gnu.org>
* stdlib/atoll.c: Fix comments.
* sysdeps/posix/ttyname.c: Ignore stdin/stdout/stderr.
* sysdeps/posix/ttyname_r.c: Ditto.
1998-02-03 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* io/sys/stat.h: Define S_IFLNK and S_IFSOCK if __USE_BSD or
__USE_MISC, independent of __USE_UNIX98.
1998-02-10 19:18 Ulrich Drepper <drepper@happy.cygnus.com>
* sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_missing_rt_sigs):
Rename from __libc_have_rt_sigs and leave as COMMON data.
1998-02-04 11:58 Richard Henderson <rth@twiddle.rth.home>
* Makeconfig (CFLAGS-.os): Kill -fno-common.
* Makerules (libc.so): Prelink libc_pic.a, allocating commons.
* libc.map (GLIBC_2.1): Add Linux/Alpha tv64 symbols.
* elf/rtld.map: New file. Needed to define the GLIBC_2.*
version symbols.
* include/libc-symbols.h (symbol_version, default_symbol_version):
Provide asm versions and correct !DO_VERSIONING versions.
* sysdeps/unix/make-syscalls.sh: Recognize version symbols in
the weak symbol list.
* sysdeps/unix/sysv/linux/sigaction.c (__libc_missing_rt_sigs):
Rename from __libc_have_rt_sigs and leave as COMMON data.
* sysdeps/unix/sysv/linux/sigpending.c: Likewise.
* sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
* sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
1998-02-04 16:41 Zack Weinberg <zack@rabi.phys.columbia.edu>
* sunrpc/Makefile: Correct dependencies of rpcgen.
1998-02-10 03:00 Ulrich Drepper <drepper@happy.cygnus.com>
* nscd/Makefile: Fix test for available linuxthreads add-on.
Patch by Zack Weinberg <zack@rabi.phys.columbia.edu>.
1998-02-05 Andreas Jaeger <aj@arthur.rhein-neckar.de>
* sysdeps/unix/sysv/linux/syscalls.list: Fix typo in lchown.
1998-02-03 Andreas Jaeger <aj@arthur.rhein-neckar.de>
* sysdeps/gnu/Makefile: Respect with-cvs variable.
* manual/errno.texi (Error Messages): Correct description of
strerror_r. Pointed out by jonas@bagge.se.
1998-01-29 Andreas Jaeger <aj@arthur.rhein-neckar.de>
* manual/socket.texi (Host Address Functions): Clarify description
of inet_network.
1998-02-07 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* sysdeps/unix/grantpt.c (argv): Move const to toplevel.
(grantpt): Delete superfluous cast.
1998-02-06 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* Makefile ($(inst_slibdir)/libc-$(version).so): Depend on
elf/ldso_install instead of elf/subdir_install.
(elf/ldso_install): New target.
* elf/Makefile (ldso_install): New target.
1998-02-07 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* sysdeps/unix/sysv/linux/powerpc/socket.S: Really do the change
of 1998-01-06.
1998-02-07 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* string/bits/string2.h (strcmp): Use __string2_1bptr_p only for
constant expressions.
1998-02-07 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* nss/test-netdb.c: Include <unistd.h> for gethostname and "nss.h"
for __nss_configure_lookup.
(output_hostent): Remove unused variable.
1998-02-07 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* string/tst-inlcall.c: Fix format string.
1998-02-09 Andreas Jaeger <aj@arthur.rhein-neckar.de>
* inet/netinet/in.h: Rename second parameter of bindresvport to
avoid buggy gcc warning. [PR libc/412]
1998-02-10 20:06:30 +00:00
|
|
|
test-output := $(foreach s, .out .xout, \
|
|
|
|
$(addsuffix $s, $(basename $(test-input))))
|
2000-07-29 06:45:51 +00:00
|
|
|
ld-test-names := test1 test2 test3 test4 test5 test6 test7
|
1998-02-17 15:15:51 +00:00
|
|
|
ld-test-srcs := $(addprefix tests/,$(addsuffix .cm,$(ld-test-names)) \
|
Update.
* crypt/Makefile (distribute): Add ufc-crypt.h, crypt-private.h,
ufc.c, speeds.c, README.ufc-crypt, and Banner.
* sysdeps/sparc/Subdirs: New file.
* locale/Makefile (distribute): Add weightwc.h and
programs/localedef.h.
* time/Makefile (distribute): Add datemsk.
* sysdeps/ia64/Dist: Add softpipe.h.
* sysdeps/unix/sysv/aix/Dist: New file.
* posix/setpgrp.c: Moved to...
* sysdeps/generic/setpgrp.c: ...here. New file.
* io/mknod.c: Moved to...
* sysdeps/generic/mknod.c: ...here. New file.
* sysdeps/unix/sysv/linux/ia64/Dist: New file.
* sysdeps/unix/sysv/linux/sparc/Dist: Add sys/procfs.h.
* sysdeps/unix/sysv/linux/arm/Dist: Add oldgetrlimit64.c.
* sysdeps/powerpc/Dist: Add fprrest.S, fprsave.S, gprsave1.S,
gprsave0.S, gprrest1.S, and gprrest0.S.
* sysdeps/generic/Dist: Add bp-thunks.h, bp-sym.h, and bp-start.h.
* posix/Makefile (routines): Add spawnattr_getsigmask,
spawnattr_getschedpolicy, spawnattr_getschedparam,
spawnattr_setsigmask, spawnattr_setschedpolicy, and
spawnattr_setschedparam.
* posix/Versions: Add posix_spawnattr_getschedpolicy,
posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam, and
posix_spawnattr_setschedparam.
* posix/spawnattr_setschedparam.c: Fix typo.
* posix/spawnattr_setsigmask.c (posix_spawnattr_setsigmask):
Correct typo.
* login/programs/utmpd.c: Removed.
* login/programs/utmpd.h: Removed.
* login/programs/utmpd-private.h: Removed.
* Makefile (distribute): Add include/db_185.h and include/db.h.
* iconvdata/Makefile (distribute): Add iso-ir-165.c and
iso-ir-165.h.
* elf/Makefile (distribute): Add missing files.
* dlfcn/Makefile: Add back rules to include eval in libdl.so.
* elf/eval.c: Moved to...
* dlfcn/eval.c: ...here. New file.
* Makefile (distribute): Also distribute ChangeLog.1?.
2000-06-14 00:55:24 +00:00
|
|
|
$(addsuffix .def,$(ld-test-names)) \
|
2000-06-14 03:46:36 +00:00
|
|
|
$(addsuffix .ds,test5 test6) \
|
|
|
|
test6.c trans.def)
|
Update.
1998-02-16 17:33 Ulrich Drepper <drepper@cygnus.com>
* elf/rtld.c (dl_main): Recognize --library-path parameter and
pass value (or NULL) to _dl_init_paths.
* elf/dl-load.c (_dl_init_paths): Change to take one parameter,
replacing local variable llp. If llp is NULL examine LD_LIBRARY_PATH
environment variable.
* elf/link.h: Change prototype for _dl_init_paths.
* elf/dl-support.c: Pass NULL in _dl_init_paths call.
* localedata/Makefile (distribute): Add test files.
1998-02-17 Andreas Jaeger <aj@arthur.rhein-neckar.de>
* localedata/tests/{test1.cm, test2.cm, test3.cm, test4.cm,
test1.def, test2.def, test3.def, test4.def}: Simple input files
for localedef. Contributed by Yung-Ching Hsiao
<yhsiao@cae.wisc.edu>.
* localedata/Makefile (tests): Call tst-locale.sh.
* localedata/tst-locale.sh: New file, regression tests for some
localedef problems.
1998-02-15 Thorsten Kukuk <kukuk@vt.uni-paderborn.de>
* nis/nss_nisplus/nisplus-alias.c: Use __stpncpy.
* nis/nss_nisplus/nisplus-hosts.c: Make sure buffer is always NUL
terminated.
* nis/nss_nisplus/nisplus-network.c: Likewise.
* nis/nss_nisplus/nisplus-proto.c: Likewise.
* nis/nss_nisplus/nisplus-rpc.c: Likewise.
* nis/nss_nisplus/nisplus-service.c: Likewise.
Add more changes from TI-RPC 2.3 for rpcgen to fix include/C++ bug
and support generating thread safe RPC code.
* sunrpc/rpc_main.c: Add changes.
* sunrpc/rpc_clntout.c: Likewise.
* sunrpc/rpc_cout.c: Likewise.
* sunrpc/rpc_hout.c: Likewise.
* sunrpc/rpc_parse.c: Likewise.
* sunrpc/rpc_sample.c: Likewise.
* sunrpc/rpc_scan.c: Likewise.
* sunrpc/rpc_svcout.c: Likewise.
* sunrpc/rpc_util.c: Likewise.
* sunrpc/rpc_util.h: Add new structs and prototypes.
* sunrpc/proto.h: Remove prototypes for static functions.
1998-02-15 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* locale/programs/ld-messages.c (messages_finish): Don't skip
error checking when being quiet.
* locale/programs/ld-ctype.c (ctype_finish): Likewise.
(set_class_defaults): Likewise.
* locale/programs/charmap.c (parse_charmap): Likewise.
* locale/programs/ld-collate.c (collate_finish): Likewise.
* locale/programs/ld-monetary.c (monetary_finish): Likewise.
* locale/programs/ld-time.c (time_finish): Likewise.
* locale/programs/locfile.c (write_locale_data): Likewise.
* locale/programs/ld-ctype.c (ctype_class_to): Silently ignore
unknown characters and empty ranges.
* locale/programs/ld-collate.c (collate_order_elem): When
processing an ellipsis properly form a linked list in the result
table, fix typo when allocating ordering array.
[PR libc/419]
1998-02-13 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* elf/Makefile (ld-map): Define.
(rtld-ldscript): Define. Change all `$(objpfx)rtld-ldscript' to
`$(rtld-ldscript)'.
($(objpfx)ld.so): Combine the two versions of this rule. Depend
on $(ld-map).
(rtld-link): Combine the two versions of this definition. Fixed
to make it work when no symbol versioning is used.
1998-02-16 Ulrich Drepper <drepper@cygnus.com>
* Makeconfig (build-program-cmd): Use --library-path parameter to
ld.so instead of environment variable.
* sunrpc/Makefile (rpcgen-cmd): Don't use -$ parameter.
* sunrpc/rpc_main.c: Remove support for -$$ option again.
1998-02-16 Andreas Jaeger <aj@arthur.rhein-neckar.de>
* Make-dist: Respect with-cvs setting.
* MakeTAGS (all-pot): Likewise.
* sysdeps/sparc/sparc32/Makefile: Likewise.
* sysdeps/mach/hurd/Makefile: Likewise.
* stdlib/Makefile: Likewise.
* posix/Makefile: Likewise.
* intl/Makefile: Likewise.
* po/Makefile (linguas): Likewise
1998-02-16 17:42:46 +00:00
|
|
|
|
2000-04-10 05:13:54 +00:00
|
|
|
fmon-tests = n01y12 n02n40 n10y31 n11y41 n12y11 n20n32 n30y20 n41n00 \
|
|
|
|
y01y10 y02n22 y22n42 y30y21 y32n31 y40y00 y42n21
|
|
|
|
|
2000-08-24 08:57:04 +00:00
|
|
|
generated := $(test-input) $(test-output) sort-test.out tst-locale.out \
|
2001-06-27 07:59:20 +00:00
|
|
|
tst-mbswcs.out tst-leaks.mtrace mtrace-tst-leaks
|
2000-07-01 15:41:36 +00:00
|
|
|
generated-dirs := $(ld-test-names) tt_TT de_DE.437 \
|
|
|
|
$(addprefix tstfmon_,$(fmon-tests)) \
|
1998-05-08 15:16:22 +00:00
|
|
|
|
1998-12-21 12:25:07 +00:00
|
|
|
distribute := CHECKSUMS README SUPPORTED ChangeLog \
|
2000-10-01 19:08:30 +00:00
|
|
|
$(charmaps) $(locales) \
|
1998-12-21 12:25:07 +00:00
|
|
|
tst-rpmatch.sh tst-locale.sh tst-fmon.sh sort-test.sh \
|
1999-05-03 12:41:01 +00:00
|
|
|
tst-fmon.data $(test-input-data) $(ld-test-srcs) \
|
2000-06-27 04:01:28 +00:00
|
|
|
th_TH.in cs_CZ.in tst-mbswcs.sh tst-trans.sh tst-ctype.sh \
|
2000-08-24 08:57:04 +00:00
|
|
|
tst-ctype-de_DE.ISO-8859-1.in \
|
2003-04-27 09:02:51 +00:00
|
|
|
tst-numeric.sh tst-numeric.data \
|
2000-08-01 09:29:48 +00:00
|
|
|
$(wildcard tests-mbwc/*.[ch]) \
|
2000-07-01 06:34:10 +00:00
|
|
|
$(addprefix tst-fmon-locales/tstfmon_,$(fmon-tests)) \
|
2000-07-25 03:54:45 +00:00
|
|
|
gen-locale.sh show-ucs-data.c tst-langinfo.sh \
|
2000-09-26 00:05:52 +00:00
|
|
|
tst-wctype.sh tst-wctype.input gen-unicode-ctype.c \
|
|
|
|
dump-ctype.c
|
1997-03-05 00:35:19 +00:00
|
|
|
|
|
|
|
# Get $(inst_i18ndir) defined.
|
|
|
|
include ../Makeconfig
|
|
|
|
|
2000-06-28 04:27:24 +00:00
|
|
|
ifeq (no,$(cross-compiling))
|
2000-06-29 10:36:12 +00:00
|
|
|
locale_test_suite := tst_iswalnum tst_iswalpha tst_iswcntrl \
|
|
|
|
tst_iswctype tst_iswdigit tst_iswgraph \
|
|
|
|
tst_iswlower tst_iswprint tst_iswpunct \
|
|
|
|
tst_iswspace tst_iswupper tst_iswxdigit tst_mblen \
|
|
|
|
tst_mbrlen tst_mbrtowc tst_mbsrtowcs tst_mbstowcs \
|
|
|
|
tst_mbtowc tst_strcoll tst_strfmon tst_strxfrm \
|
|
|
|
tst_swscanf tst_towctrans tst_towlower \
|
|
|
|
tst_towupper tst_wcrtomb tst_wcscat tst_wcschr \
|
|
|
|
tst_wcscmp tst_wcscoll tst_wcscpy tst_wcscspn \
|
|
|
|
tst_wcslen tst_wcsncat tst_wcsncmp tst_wcsncpy \
|
|
|
|
tst_wcspbrk tst_wcsrtombs tst_wcsspn tst_wcsstr \
|
|
|
|
tst_wcstod tst_wcstok tst_wcstombs tst_wcswidth \
|
|
|
|
tst_wcsxfrm tst_wctob tst_wctomb tst_wctrans \
|
|
|
|
tst_wctype tst_wcwidth
|
2000-06-29 07:13:12 +00:00
|
|
|
|
2001-06-27 07:59:20 +00:00
|
|
|
tests = $(locale_test_suite) tst-digits tst-setlocale bug-iconv-trans \
|
2006-04-26 05:52:58 +00:00
|
|
|
tst-leaks tst-mbswcs6 tst-xlocale1 tst-xlocale2 bug-usesetlocale \
|
2007-07-10 22:14:12 +00:00
|
|
|
tst-strfmon1 tst-sscanf tst-strptime
|
2001-06-27 07:59:20 +00:00
|
|
|
ifeq (yes,$(build-shared))
|
|
|
|
ifneq (no,$(PERL))
|
|
|
|
tests: $(objpfx)mtrace-tst-leaks
|
|
|
|
endif
|
|
|
|
endif
|
2000-06-28 04:27:24 +00:00
|
|
|
endif
|
|
|
|
|
1997-03-05 00:35:19 +00:00
|
|
|
# Files to install.
|
2000-10-01 19:08:30 +00:00
|
|
|
install-others := $(addprefix $(inst_i18ndir)/, \
|
|
|
|
$(addsuffix .gz, $(charmaps)) \
|
|
|
|
$(locales))
|
1997-03-05 00:35:19 +00:00
|
|
|
|
|
|
|
include ../Rules
|
|
|
|
|
2000-10-01 19:08:30 +00:00
|
|
|
# Install the charmap files in gzipped format.
|
|
|
|
$(inst_i18ndir)/charmaps/%.gz: charmaps/% $(+force)
|
|
|
|
$(make-target-directory)
|
|
|
|
rm -f $(@:.gz=) $@
|
|
|
|
$(INSTALL_DATA) $< $(@:.gz=)
|
|
|
|
gzip -9 $(@:.gz=)
|
|
|
|
|
|
|
|
# Install the locale source files in the appropriate directory.
|
1998-04-09 10:14:17 +00:00
|
|
|
$(inst_i18ndir)/locales/%: locales/% $(+force); $(do-install)
|
1997-03-05 00:35:19 +00:00
|
|
|
|
2000-06-19 21:12:06 +00:00
|
|
|
# gcc does not know all the format specifiers we are using here.
|
|
|
|
CFLAGS-tst-mbswcs1.c = -Wno-format
|
|
|
|
CFLAGS-tst-mbswcs2.c = -Wno-format
|
|
|
|
CFLAGS-tst-mbswcs3.c = -Wno-format
|
|
|
|
CFLAGS-tst-mbswcs4.c = -Wno-format
|
|
|
|
CFLAGS-tst-mbswcs5.c = -Wno-format
|
|
|
|
CFLAGS-tst-trans.c = -Wno-format
|
1997-03-05 00:35:19 +00:00
|
|
|
|
2000-06-28 04:27:24 +00:00
|
|
|
|
1997-03-05 00:35:19 +00:00
|
|
|
ifeq (no,$(cross-compiling))
|
2000-07-01 05:19:18 +00:00
|
|
|
# We have to generate locales
|
|
|
|
LOCALES := de_DE.ISO-8859-1 de_DE.UTF-8 en_US.ANSI_X3.4-1968 \
|
2001-08-09 17:15:56 +00:00
|
|
|
en_US.ISO-8859-1 ja_JP.EUC-JP da_DK.ISO-8859-1 \
|
2003-01-30 20:26:38 +00:00
|
|
|
hr_HR.ISO-8859-2 sv_SE.ISO-8859-1 ja_JP.SJIS fr_FR.ISO-8859-1 \
|
2003-11-12 06:13:10 +00:00
|
|
|
vi_VN.TCVN5712-1 nb_NO.ISO-8859-1 nn_NO.ISO-8859-1 \
|
2007-02-19 04:40:58 +00:00
|
|
|
tr_TR.UTF-8 cs_CZ.UTF-8 zh_TW.EUC-TW fa_IR.UTF-8
|
2000-07-01 05:19:18 +00:00
|
|
|
LOCALE_SRCS := $(shell echo "$(LOCALES)"|sed 's/\([^ .]*\)[^ ]*/\1/g')
|
2001-06-17 22:44:18 +00:00
|
|
|
CHARMAPS := $(shell echo "$(LOCALES)" | \
|
|
|
|
sed -e 's/[^ .]*[.]\([^ ]*\)/\1/g' -e s/SJIS/SHIFT_JIS/g)
|
2000-07-01 05:19:18 +00:00
|
|
|
CTYPE_FILES = $(addsuffix /LC_CTYPE,$(LOCALES))
|
|
|
|
|
2000-07-01 15:41:36 +00:00
|
|
|
generated-dirs += $(LOCALES)
|
|
|
|
|
2000-07-01 05:19:18 +00:00
|
|
|
# Dependency for the locale files. We actually make it depend only on
|
|
|
|
# one of the files.
|
|
|
|
$(addprefix $(objpfx),$(CTYPE_FILES)): %: \
|
2000-07-12 20:06:44 +00:00
|
|
|
gen-locale.sh $(common-objpfx)locale/localedef Makefile \
|
2000-07-01 05:19:18 +00:00
|
|
|
$(addprefix charmaps/,$(CHARMAPS)) $(addprefix locales/,$(LOCALE_SRCS))
|
2000-07-12 20:06:44 +00:00
|
|
|
@$(SHELL) -e gen-locale.sh $(common-objpfx) '$(built-program-cmd)' $@
|
2000-07-01 05:19:18 +00:00
|
|
|
|
2001-07-08 05:57:47 +00:00
|
|
|
$(addsuffix .out,$(addprefix $(objpfx),$(tests))): %: \
|
2000-07-01 05:19:18 +00:00
|
|
|
$(addprefix $(objpfx),$(CTYPE_FILES))
|
|
|
|
|
2000-07-16 07:30:42 +00:00
|
|
|
tests: $(objpfx)sort-test.out $(objpfx)tst-fmon.out $(objpfx)tst-locale.out \
|
|
|
|
$(objpfx)tst-rpmatch.out $(objpfx)tst-trans.out \
|
2000-07-25 03:54:45 +00:00
|
|
|
$(objpfx)tst-mbswcs.out $(objpfx)tst-ctype.out $(objpfx)tst-wctype.out \
|
2003-04-27 09:02:51 +00:00
|
|
|
$(objpfx)tst-langinfo.out $(objpfx)tst-numeric.out
|
2000-07-16 07:30:42 +00:00
|
|
|
|
|
|
|
$(objpfx)sort-test.out: sort-test.sh $(objpfx)collate-test $(objpfx)xfrm-test \
|
|
|
|
$(test-input-data) $(addprefix $(objpfx),$(CTYPE_FILES))
|
|
|
|
$(SHELL) -e $< $(common-objpfx) '$(run-program-prefix)' $(test-input) \
|
|
|
|
> $@
|
|
|
|
$(objpfx)tst-fmon.out: tst-fmon.sh $(objpfx)tst-fmon tst-fmon.data \
|
|
|
|
$(objpfx)sort-test.out \
|
|
|
|
$(addprefix $(objpfx),$(CTYPE_FILES))
|
|
|
|
$(SHELL) -e $< $(common-objpfx) '$(run-program-prefix)' tst-fmon.data \
|
|
|
|
> $@
|
2003-04-27 09:02:51 +00:00
|
|
|
$(objpfx)tst-numeric.out: tst-numeric.sh $(objpfx)tst-numeric tst-numeric.data \
|
|
|
|
$(objpfx)sort-test.out \
|
|
|
|
$(addprefix $(objpfx),$(CTYPE_FILES))
|
|
|
|
$(SHELL) -e $< $(common-objpfx) '$(run-program-prefix)' tst-numeric.data \
|
|
|
|
> $@
|
2000-07-16 07:30:42 +00:00
|
|
|
$(objpfx)tst-locale.out: tst-locale.sh $(common-objpfx)locale/localedef \
|
|
|
|
$(ld-test-srcs) $(addprefix $(objpfx),$(CTYPE_FILES))
|
|
|
|
$(SHELL) -e $< $(common-objpfx) '$(built-program-cmd)' > $@
|
|
|
|
$(objpfx)tst-rpmatch.out: tst-rpmatch.sh $(objpfx)tst-rpmatch \
|
|
|
|
$(objpfx)tst-fmon.out \
|
|
|
|
$(addprefix $(objpfx),$(CTYPE_FILES))
|
|
|
|
$(SHELL) -e $< $(common-objpfx) '$(built-program-cmd)' > $@
|
|
|
|
$(objpfx)tst-trans.out: tst-trans.sh $(objpfx)tst-trans \
|
|
|
|
$(addprefix $(objpfx),$(CTYPE_FILES))
|
2000-07-12 20:06:44 +00:00
|
|
|
$(SHELL) -e $< $(common-objpfx) '$(run-program-prefix)'
|
2000-07-16 07:30:42 +00:00
|
|
|
$(objpfx)tst-mbswcs.out: tst-mbswcs.sh $(objpfx)tst-mbswcs1 \
|
|
|
|
$(objpfx)tst-mbswcs2 $(objpfx)tst-mbswcs3 \
|
|
|
|
$(objpfx)tst-mbswcs4 $(objpfx)tst-mbswcs5 \
|
|
|
|
$(addprefix $(objpfx),$(CTYPE_FILES))
|
2000-07-12 20:06:44 +00:00
|
|
|
$(SHELL) -e $< $(common-objpfx) '$(run-program-prefix)'
|
2000-07-16 07:30:42 +00:00
|
|
|
$(objpfx)tst-ctype.out: tst-ctype.sh $(objpfx)tst-ctype \
|
|
|
|
$(objpfx)sort-test.out \
|
|
|
|
$(addprefix $(objpfx),$(CTYPE_FILES))
|
2000-07-12 20:06:44 +00:00
|
|
|
$(SHELL) -e $< $(common-objpfx) '$(built-program-cmd)'
|
2000-07-25 00:38:27 +00:00
|
|
|
$(objpfx)tst-wctype.out: tst-wctype.sh $(objpfx)tst-wctype \
|
|
|
|
$(objpfx)sort-test.out tst-wctype.input \
|
|
|
|
$(addprefix $(objpfx),$(CTYPE_FILES))
|
|
|
|
$(SHELL) -e $< $(common-objpfx) '$(built-program-cmd)'
|
2000-07-25 03:54:45 +00:00
|
|
|
$(objpfx)tst-langinfo.out: tst-langinfo.sh $(objpfx)tst-langinfo \
|
|
|
|
$(objpfx)sort-test.out \
|
|
|
|
$(addprefix $(objpfx),$(CTYPE_FILES))
|
|
|
|
$(SHELL) -e $< $(common-objpfx) '$(built-program-cmd)'
|
2000-07-29 06:45:51 +00:00
|
|
|
$(objpfx)tst-digits.out: $(objpfx)tst-locale.out
|
2001-08-03 22:09:42 +00:00
|
|
|
$(objpfx)tst-mbswcs6.out: $(addprefix $(objpfx),$(CTYPE_FILES))
|
1999-03-20 17:16:44 +00:00
|
|
|
endif
|
1998-03-24 12:21:06 +00:00
|
|
|
|
2001-06-29 01:19:02 +00:00
|
|
|
include SUPPORTED
|
|
|
|
|
|
|
|
INSTALL-SUPPORTED-LOCALES=$(addprefix install-, $(SUPPORTED-LOCALES))
|
|
|
|
|
1998-03-24 12:21:06 +00:00
|
|
|
# Sometimes the whole collection of locale files should be installed.
|
2000-08-21 17:06:55 +00:00
|
|
|
LOCALEDEF=I18NPATH=. GCONV_PATH=$(common-objpfx)iconvdata LC_ALL=C \
|
|
|
|
$(common-objpfx)elf/ld.so --library-path $(rpath-link) $(common-objpfx)locale/localedef
|
2001-06-29 01:19:02 +00:00
|
|
|
install-locales: $(INSTALL-SUPPORTED-LOCALES)
|
|
|
|
|
|
|
|
install-locales-dir:
|
2000-01-08 04:46:10 +00:00
|
|
|
$(..)./scripts/mkinstalldirs $(inst_localedir)
|
2001-06-29 01:19:02 +00:00
|
|
|
|
|
|
|
$(INSTALL-SUPPORTED-LOCALES): install-locales-dir
|
|
|
|
@locale=`echo $@ | sed -e 's/^install-//'`; \
|
|
|
|
charset=`echo $$locale | sed -e 's,.*/,,'`; \
|
|
|
|
locale=`echo $$locale | sed -e 's,/[^/]*,,'`; \
|
|
|
|
echo -n `echo $$locale | sed 's/\([^.\@]*\).*/\1/'`; \
|
|
|
|
echo -n ".$$charset"; \
|
|
|
|
echo -n `echo $$locale | sed 's/\([^\@]*\)\(\@.*\)*/\2/'`; \
|
|
|
|
echo -n '...'; \
|
|
|
|
input=`echo $$locale | sed 's/\([^.]*\)[^@]*\(.*\)/\1\2/'`; \
|
2002-08-10 06:47:30 +00:00
|
|
|
$(LOCALEDEF) --alias-file=../intl/locale.alias \
|
|
|
|
-i locales/$$input -c -f charmaps/$$charset \
|
|
|
|
$(addprefix --prefix=,$(install_root)) $$locale; \
|
2001-06-29 01:19:02 +00:00
|
|
|
echo ' done'; \
|
2000-06-27 12:14:09 +00:00
|
|
|
|
2000-06-29 07:13:12 +00:00
|
|
|
# The mbwc-tests need some environment setup to find the locale data files
|
2000-06-28 21:38:03 +00:00
|
|
|
TEST_MBWC_ENV:= LOCPATH=$(common-objpfx)localedata
|
2000-06-27 17:37:42 +00:00
|
|
|
tst_iswalnum-ENV = $(TEST_MBWC_ENV)
|
|
|
|
tst_iswalpha-ENV = $(TEST_MBWC_ENV)
|
|
|
|
tst_iswcntrl-ENV = $(TEST_MBWC_ENV)
|
|
|
|
tst_iswctype-ENV = $(TEST_MBWC_ENV)
|
|
|
|
tst_iswdigit-ENV = $(TEST_MBWC_ENV)
|
|
|
|
tst_iswgraph-ENV = $(TEST_MBWC_ENV)
|
|
|
|
tst_iswlower-ENV = $(TEST_MBWC_ENV)
|
|
|
|
tst_iswprint-ENV = $(TEST_MBWC_ENV)
|
|
|
|
tst_iswpunct-ENV = $(TEST_MBWC_ENV)
|
|
|
|
tst_iswspace-ENV = $(TEST_MBWC_ENV)
|
|
|
|
tst_iswupper-ENV = $(TEST_MBWC_ENV)
|
|
|
|
tst_iswxdigit-ENV = $(TEST_MBWC_ENV)
|
2000-06-29 07:13:12 +00:00
|
|
|
tst_mblen-ENV = $(TEST_MBWC_ENV)
|
2000-06-28 13:05:23 +00:00
|
|
|
tst_mbrlen-ENV = $(TEST_MBWC_ENV)
|
2000-06-29 10:36:12 +00:00
|
|
|
tst_mbrtowc-ENV = $(TEST_MBWC_ENV)
|
|
|
|
tst_mbsrtowcs-ENV = $(TEST_MBWC_ENV)
|
|
|
|
tst_mbstowcs-ENV = $(TEST_MBWC_ENV)
|
2000-06-29 07:13:12 +00:00
|
|
|
tst_mbtowc-ENV = $(TEST_MBWC_ENV)
|
|
|
|
tst_strcoll-ENV = $(TEST_MBWC_ENV)
|
2000-06-29 10:36:12 +00:00
|
|
|
tst_strfmon-ENV = $(TEST_MBWC_ENV)
|
2000-06-29 07:13:12 +00:00
|
|
|
tst_strxfrm-ENV = $(TEST_MBWC_ENV)
|
2000-06-27 17:37:42 +00:00
|
|
|
tst_swscanf-ENV = $(TEST_MBWC_ENV)
|
|
|
|
tst_towctrans-ENV = $(TEST_MBWC_ENV)
|
|
|
|
tst_towlower-ENV = $(TEST_MBWC_ENV)
|
|
|
|
tst_towupper-ENV = $(TEST_MBWC_ENV)
|
2000-06-29 10:36:12 +00:00
|
|
|
tst_wcrtomb-ENV = $(TEST_MBWC_ENV)
|
2000-06-27 17:37:42 +00:00
|
|
|
tst_wcscat-ENV = $(TEST_MBWC_ENV)
|
|
|
|
tst_wcschr-ENV = $(TEST_MBWC_ENV)
|
|
|
|
tst_wcscmp-ENV = $(TEST_MBWC_ENV)
|
|
|
|
tst_wcscoll-ENV = $(TEST_MBWC_ENV)
|
|
|
|
tst_wcscpy-ENV = $(TEST_MBWC_ENV)
|
|
|
|
tst_wcscspn-ENV = $(TEST_MBWC_ENV)
|
|
|
|
tst_wcslen-ENV = $(TEST_MBWC_ENV)
|
|
|
|
tst_wcsncat-ENV = $(TEST_MBWC_ENV)
|
|
|
|
tst_wcsncmp-ENV = $(TEST_MBWC_ENV)
|
|
|
|
tst_wcsncpy-ENV = $(TEST_MBWC_ENV)
|
|
|
|
tst_wcspbrk-ENV = $(TEST_MBWC_ENV)
|
2000-06-29 10:36:12 +00:00
|
|
|
tst_wcsrtombs-ENV = $(TEST_MBWC_ENV)
|
2000-06-27 17:37:42 +00:00
|
|
|
tst_wcsspn-ENV = $(TEST_MBWC_ENV)
|
|
|
|
tst_wcsstr-ENV = $(TEST_MBWC_ENV)
|
2000-06-29 10:36:12 +00:00
|
|
|
tst_wcstod-ENV = $(TEST_MBWC_ENV)
|
|
|
|
tst_wcstok-ENV = $(TEST_MBWC_ENV)
|
|
|
|
tst_wcstombs-ENV = $(TEST_MBWC_ENV)
|
2000-06-27 17:37:42 +00:00
|
|
|
tst_wcswidth-ENV = $(TEST_MBWC_ENV)
|
|
|
|
tst_wcsxfrm-ENV = $(TEST_MBWC_ENV)
|
|
|
|
tst_wctob-ENV = $(TEST_MBWC_ENV)
|
2000-06-29 07:13:12 +00:00
|
|
|
tst_wctomb-ENV = $(TEST_MBWC_ENV)
|
2000-06-27 17:37:42 +00:00
|
|
|
tst_wctrans-ENV = $(TEST_MBWC_ENV)
|
|
|
|
tst_wctype-ENV = $(TEST_MBWC_ENV)
|
|
|
|
tst_wcwidth-ENV = $(TEST_MBWC_ENV)
|
2000-07-29 06:45:51 +00:00
|
|
|
tst-digits-ENV = $(TEST_MBWC_ENV)
|
2001-08-03 22:09:42 +00:00
|
|
|
tst-mbswcs6-ENV = $(TEST_MBWC_ENV)
|
2001-08-14 22:29:43 +00:00
|
|
|
tst-xlocale1-ENV = $(TEST_MBWC_ENV)
|
2001-08-18 02:46:36 +00:00
|
|
|
tst-xlocale2-ENV = $(TEST_MBWC_ENV)
|
2006-04-26 05:52:58 +00:00
|
|
|
tst-strfmon1-ENV = $(TEST_MBWC_ENV)
|
2007-07-10 22:14:12 +00:00
|
|
|
tst-strptime-ENV = $(TEST_MBWC_ENV)
|
2000-12-01 00:43:32 +00:00
|
|
|
|
|
|
|
tst-setlocale-ENV = LOCPATH=$(common-objpfx)localedata LC_ALL=ja_JP.EUC-JP
|
2001-02-06 04:20:37 +00:00
|
|
|
|
|
|
|
bug-iconv-trans-ENV = LOCPATH=$(common-objpfx)localedata
|
2001-06-27 07:59:20 +00:00
|
|
|
|
2007-03-14 22:32:50 +00:00
|
|
|
tst-sscanf-ENV = LOCPATH=$(common-objpfx)localedata
|
|
|
|
|
2003-11-16 07:14:28 +00:00
|
|
|
tst-leaks-ENV = MALLOC_TRACE=$(objpfx)tst-leaks.mtrace \
|
|
|
|
LOCPATH=$(common-objpfx)localedata
|
2001-06-27 07:59:20 +00:00
|
|
|
$(objpfx)mtrace-tst-leaks: $(objpfx)tst-leaks.out
|
|
|
|
$(common-objpfx)malloc/mtrace $(objpfx)tst-leaks.mtrace > $@
|