2000-01-08 04:46:10 +00:00
|
|
|
# Copyright (C) 1996, 1997, 1998, 1999, 2000 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
|
|
|
|
# modify it under the terms of the GNU Library General Public License
|
|
|
|
# as published by the Free Software Foundation; either version 2 of
|
|
|
|
# the License, or (at your option) any later version.
|
|
|
|
|
|
|
|
# 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
|
|
|
|
# Library General Public License for more details.
|
|
|
|
|
|
|
|
# You should have received a copy of the GNU Library General Public
|
|
|
|
# License along with the GNU C Library; see the file COPYING.LIB. If not,
|
|
|
|
# write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
|
|
# Boston, MA 02111-1307, USA.
|
|
|
|
|
|
|
|
# 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/*))
|
|
|
|
|
1998-04-30 16:57:48 +00:00
|
|
|
# List of repertoire maps.
|
1999-06-18 19:04:23 +00:00
|
|
|
repertoiremaps := $(filter-out $(addprefix repertoiremaps/, CVS RCS SCCS %~), \
|
1998-05-08 15:16:22 +00:00
|
|
|
$(wildcard repertoiremaps/*))
|
1998-04-30 16:57:48 +00:00
|
|
|
|
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 \
|
|
|
|
tst-ctype
|
2000-06-26 00:38:37 +00:00
|
|
|
#test-input := de_DE.ISO-8859-1 da_DK.ISO-8859-1 fr_CA,2.13.ISO-8859-1 \
|
|
|
|
# hr_HR.ISO-8859-2 # once it is fixed: cs_CZ.ISO-8859-2
|
2000-06-26 20:07:09 +00:00
|
|
|
test-input := de_DE.ISO-8859-1 en_US.ISO-8859-1
|
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))))
|
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
|
|
|
ld-test-names := test1 test2 test3 test4 test5 test6
|
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
|
|
|
|
|
1998-05-08 15:16:22 +00:00
|
|
|
generated := $(test-input) $(test-output)
|
2000-06-28 04:27:24 +00:00
|
|
|
generated-dirs := $(basename $(test-input)) $(ld-test-names) tt_TT \
|
|
|
|
de_DE.437 $(addprefix tstfmon_,$(fmon-tests)) \
|
|
|
|
en_US.ANSI_X3.4-1968 ja_JP.EUC-JP
|
1998-05-08 15:16:22 +00:00
|
|
|
|
1998-12-21 12:25:07 +00:00
|
|
|
distribute := CHECKSUMS README SUPPORTED ChangeLog \
|
|
|
|
$(charmaps) $(locales) $(repertoiremaps) \
|
|
|
|
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-07-01 06:34:10 +00:00
|
|
|
tst-ctype-de_DE.in $(wildcard tests-mbwc/*.[ch]) \
|
|
|
|
$(addprefix tst-fmon-locales/tstfmon_,$(fmon-tests)) \
|
|
|
|
gen-locale.sh show-ucs-data.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))
|
|
|
|
ifeq (yes,$(build-shared))
|
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
|
|
|
|
2000-06-28 04:27:24 +00:00
|
|
|
tests = $(locale_test_suite)
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
1997-03-05 00:35:19 +00:00
|
|
|
# Files to install.
|
1998-04-30 16:57:48 +00:00
|
|
|
install-others := $(addprefix $(inst_i18ndir)/, $(charmaps) $(locales) \
|
|
|
|
$(repertoiremaps))
|
1997-03-05 00:35:19 +00:00
|
|
|
|
|
|
|
include ../Rules
|
|
|
|
|
1998-01-25 19:46:25 +00:00
|
|
|
# Install the source files in the appropriate directories.
|
1998-04-09 10:14:17 +00:00
|
|
|
$(inst_i18ndir)/charmaps/%: charmaps/% $(+force); $(do-install)
|
|
|
|
$(inst_i18ndir)/locales/%: locales/% $(+force); $(do-install)
|
1998-04-30 16:57:48 +00:00
|
|
|
$(inst_i18ndir)/repertoiremaps/%: repertoiremaps/% $(+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))
|
1999-03-20 17:16:44 +00:00
|
|
|
ifeq (yes,$(build-shared))
|
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 \
|
|
|
|
en_US.ISO-8859-1 ja_JP.EUC-JP
|
|
|
|
LOCALE_SRCS := $(shell echo "$(LOCALES)"|sed 's/\([^ .]*\)[^ ]*/\1/g')
|
|
|
|
CHARMAPS := $(shell echo "$(LOCALES)"|sed 's/[^ .]*[.]\([^ ]*\)/\1/g')
|
|
|
|
CTYPE_FILES = $(addsuffix /LC_CTYPE,$(LOCALES))
|
|
|
|
|
|
|
|
# Dependency for the locale files. We actually make it depend only on
|
|
|
|
# one of the files.
|
|
|
|
$(addprefix $(objpfx),$(CTYPE_FILES)): %: \
|
|
|
|
gen-locale.sh Makefile $(common-objpfx)locale/localedef \
|
|
|
|
$(addprefix charmaps/,$(CHARMAPS)) $(addprefix locales/,$(LOCALE_SRCS))
|
|
|
|
@$(SHELL) -e gen-locale.sh $(common-objpfx) $@
|
|
|
|
|
|
|
|
$(addsuffix .out,$(addprefix $(objpfx),$(locale_test_suite))): %: \
|
|
|
|
$(addprefix $(objpfx),$(CTYPE_FILES))
|
|
|
|
|
2000-04-27 05:42:19 +00:00
|
|
|
.PHONY: do-collate-test do-tst-fmon do-tst-locale do-tst-rpmatch do-tst-trans \
|
2000-06-27 01:03:13 +00:00
|
|
|
do-tst-mbswcs do-tst-ctype
|
2000-04-27 05:42:19 +00:00
|
|
|
tests: do-collate-test do-tst-fmon do-tst-locale do-tst-rpmatch do-tst-trans \
|
2000-06-27 01:03:13 +00:00
|
|
|
do-tst-mbswcs do-tst-ctype
|
1998-03-30 17:24:28 +00:00
|
|
|
do-collate-test: sort-test.sh $(objpfx)collate-test $(objpfx)xfrm-test \
|
2000-07-01 05:19:18 +00:00
|
|
|
$(test-input-data) $(addprefix $(objpfx),$(CTYPE_FILES))
|
1998-03-30 13:01:46 +00:00
|
|
|
$(SHELL) -e $< $(common-objpfx) $(test-input)
|
2000-07-01 05:19:18 +00:00
|
|
|
do-tst-fmon: tst-fmon.sh $(objpfx)tst-fmon tst-fmon.data do-collate-test \
|
|
|
|
$(addprefix $(objpfx),$(CTYPE_FILES))
|
1998-04-02 12:44:17 +00:00
|
|
|
$(SHELL) -e $< $(common-objpfx) tst-fmon.data
|
2000-07-01 05:19:18 +00:00
|
|
|
do-tst-locale: tst-locale.sh $(ld-test-srcs) \
|
|
|
|
$(addprefix $(objpfx),$(CTYPE_FILES))
|
1998-03-30 13:01:46 +00:00
|
|
|
$(SHELL) -e $< $(common-objpfx)
|
2000-07-01 05:19:18 +00:00
|
|
|
do-tst-rpmatch: tst-rpmatch.sh $(objpfx)tst-rpmatch do-tst-fmon \
|
|
|
|
$(addprefix $(objpfx),$(CTYPE_FILES))
|
1998-03-30 13:01:46 +00:00
|
|
|
$(SHELL) -e $< $(common-objpfx)
|
2000-07-01 05:19:18 +00:00
|
|
|
do-tst-trans: tst-trans.sh $(objpfx)tst-trans \
|
|
|
|
$(addprefix $(objpfx),$(CTYPE_FILES))
|
1999-11-21 06:51:06 +00:00
|
|
|
$(SHELL) -e $< $(common-objpfx)
|
2000-04-27 07:19:36 +00:00
|
|
|
do-tst-mbswcs: tst-mbswcs.sh $(objpfx)tst-mbswcs1 $(objpfx)tst-mbswcs2 \
|
2000-07-01 05:19:18 +00:00
|
|
|
$(objpfx)tst-mbswcs3 $(objpfx)tst-mbswcs4 $(objpfx)tst-mbswcs5 \
|
|
|
|
$(addprefix $(objpfx),$(CTYPE_FILES))
|
2000-04-27 05:42:19 +00:00
|
|
|
$(SHELL) -e $< $(common-objpfx)
|
2000-07-01 05:19:18 +00:00
|
|
|
do-tst-ctype: tst-ctype.sh $(objpfx)tst-ctype do-collate-test \
|
|
|
|
$(addprefix $(objpfx),$(CTYPE_FILES))
|
2000-06-27 01:03:13 +00:00
|
|
|
$(SHELL) -e $< $(common-objpfx)
|
1997-03-05 00:35:19 +00:00
|
|
|
endif
|
1999-03-20 17:16:44 +00:00
|
|
|
endif
|
1998-03-24 12:21:06 +00:00
|
|
|
|
|
|
|
# Sometimes the whole collection of locale files should be installed.
|
1999-05-18 11:05:41 +00:00
|
|
|
LOCALEDEF=I18NPATH=. $(common-objpfx)elf/ld.so --library-path $(rpath-link) $(common-objpfx)locale/localedef
|
1998-03-24 12:21:06 +00:00
|
|
|
install-locales:
|
2000-01-08 04:46:10 +00:00
|
|
|
$(..)./scripts/mkinstalldirs $(inst_localedir)
|
1998-03-30 13:01:46 +00:00
|
|
|
while read locale charset; do \
|
|
|
|
case $$locale in \#*) continue;; esac; \
|
1999-04-29 15:04:27 +00:00
|
|
|
$(LOCALEDEF) -i locales/`echo $$locale | sed 's/\([^.]*\).*/\1/'` \
|
|
|
|
-c -f charmaps/$$charset \
|
1998-09-23 14:26:51 +00:00
|
|
|
$(inst_localedir)/$$locale; \
|
1998-03-30 13:01:46 +00:00
|
|
|
done < SUPPORTED
|
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)
|