Radix cross Linux Toolchains

Toolchains for all supported by Radix cross Linux devices

80 Commits   2 Branches   13 Tags
    11         kx # Copyright (C) 1996-2023 Free Software Foundation, Inc.
    11         kx # This file is part of the GNU C Library.
    11         kx 
    11         kx # The GNU C Library is free software; you can redistribute it and/or
    11         kx # modify it under the terms of the GNU Lesser General Public
    11         kx # License as published by the Free Software Foundation; either
    11         kx # version 2.1 of the License, or (at your option) any later version.
    11         kx 
    11         kx # The GNU C Library is distributed in the hope that it will be useful,
    11         kx # but WITHOUT ANY WARRANTY; without even the implied warranty of
    11         kx # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    11         kx # Lesser General Public License for more details.
    11         kx 
    11         kx # You should have received a copy of the GNU Lesser General Public
    11         kx # License along with the GNU C Library; if not, see
    11         kx # <https://www.gnu.org/licenses/>.
    11         kx 
    11         kx # Makefile for installing locale data source files.
    11         kx 
    11         kx subdir := localedata
    11         kx 
    11         kx include ../Makeconfig
    11         kx 
    11         kx # List with all available character set descriptions.
    11         kx charmaps := $(wildcard charmaps/[A-I]*) $(wildcard charmaps/[J-Z]*)
    11         kx 
    11         kx # List with all available character set descriptions.
    11         kx locales := $(wildcard locales/*)
    11         kx 
    11         kx 
    11         kx subdir-dirs = tests-mbwc
    11         kx vpath %.c tests-mbwc
    11         kx vpath %.h tests-mbwc
    11         kx 
    11         kx 
    11         kx test-srcs := collate-test xfrm-test tst-fmon tst-rpmatch tst-trans \
    11         kx 	     tst-ctype tst-langinfo-newlocale tst-langinfo-setlocale \
    11         kx 	     tst-langinfo-newlocale-static tst-langinfo-setlocale-static \
    11         kx 	     tst-numeric
    11         kx # List of test input files (list sorted alphabetically):
    11         kx test-input := \
    11         kx 	am_ET.UTF-8 \
    11         kx 	az_AZ.UTF-8 \
    11         kx 	be_BY.UTF-8 \
    11         kx 	ber_DZ.UTF-8 \
    11         kx 	ber_MA.UTF-8 \
    11         kx 	bg_BG.UTF-8 \
    11         kx 	br_FR.UTF-8 \
    11         kx 	bs_BA.UTF-8 \
    11         kx 	C.UTF-8 \
    11         kx 	ckb_IQ.UTF-8 \
    11         kx 	cmn_TW.UTF-8 \
    11         kx 	crh_UA.UTF-8 \
    11         kx 	cs_CZ.UTF-8 \
    11         kx 	csb_PL.UTF-8 \
    11         kx 	cv_RU.UTF-8 \
    11         kx 	cy_GB.UTF-8 \
    11         kx 	da_DK.ISO-8859-1 \
    11         kx 	de_DE.ISO-8859-1 \
    11         kx 	dsb_DE.UTF-8 \
    11         kx 	dz_BT.UTF-8 \
    11         kx 	en_US.ISO-8859-1 \
    11         kx 	en_US.UTF-8 \
    11         kx 	eo.UTF-8 \
    11         kx 	es_ES.UTF-8 \
    11         kx 	et_EE.UTF-8 \
    11         kx 	fa_IR.UTF-8 \
    11         kx 	fi_FI.UTF-8 \
    11         kx 	fil_PH.UTF-8 \
    11         kx 	fr_CA.UTF-8 \
    11         kx 	fr_FR.UTF-8 \
    11         kx 	fur_IT.UTF-8 \
    11         kx 	gez_ER.UTF-8@abegede \
    11         kx 	ha_NG.UTF-8 \
    11         kx 	hr_HR.ISO-8859-2 \
    11         kx 	hr_HR.UTF-8 \
    11         kx 	hsb_DE.UTF-8 \
    11         kx 	hu_HU.UTF-8 \
    11         kx 	ig_NG.UTF-8 \
    11         kx 	ik_CA.UTF-8 \
    11         kx 	is_IS.UTF-8 \
    11         kx 	kk_KZ.UTF-8 \
    11         kx 	ku_TR.UTF-8 \
    11         kx 	ky_KG.UTF-8 \
    11         kx 	ln_CD.UTF-8 \
    11         kx 	lt_LT.UTF-8 \
    11         kx 	lv_LV.UTF-8 \
    11         kx 	mi_NZ.UTF-8 \
    11         kx 	ml_IN.UTF-8 \
    11         kx 	mn_MN.UTF-8 \
    11         kx 	mr_IN.UTF-8 \
    11         kx 	mt_MT.UTF-8 \
    11         kx 	nan_TW.UTF-8@latin \
    11         kx 	nb_NO.UTF-8 \
    11         kx 	om_KE.UTF-8 \
    11         kx 	or_IN.UTF-8 \
    11         kx 	os_RU.UTF-8 \
    11         kx 	pl_PL.UTF-8 \
    11         kx 	ps_AF.UTF-8 \
    11         kx 	rif_MA.UTF-8 \
    11         kx 	ro_RO.UTF-8 \
    11         kx 	ru_RU.UTF-8 \
    11         kx 	sah_RU.UTF-8 \
    11         kx 	sc_IT.UTF-8 \
    11         kx 	se_NO.UTF-8 \
    11         kx 	si_LK.UTF-8 \
    11         kx 	sq_AL.UTF-8 \
    11         kx 	sr_RS.UTF-8 \
    11         kx 	sv_SE.ISO-8859-1 \
    11         kx 	sv_SE.UTF-8 \
    11         kx 	syr.UTF-8 \
    11         kx 	szl_PL.UTF-8 \
    11         kx 	tg_TJ.UTF-8 \
    11         kx 	tk_TM.UTF-8 \
    11         kx 	tr_TR.UTF-8 \
    11         kx 	tt_RU.UTF-8 \
    11         kx 	tt_RU.UTF-8@iqtelif \
    11         kx 	ug_CN.UTF-8 \
    11         kx 	uk_UA.UTF-8 \
    11         kx 	uz_UZ.UTF-8 \
    11         kx 	vi_VN.UTF-8 \
    11         kx 	yi_US.UTF-8 \
    11         kx 	yo_NG.UTF-8 \
    11         kx 	zh_CN.UTF-8 \
    11         kx 	$(NULL)
    11         kx 
    11         kx test-input-data = $(addsuffix .in, $(test-input))
    11         kx test-output := $(foreach s, .out .xout, \
    11         kx 			 $(addsuffix $s, $(basename $(test-input))))
    11         kx ld-test-names := test1 test2 test3 test4 test5 test6 test7
    11         kx ld-test-srcs := $(addprefix tests/,$(addsuffix .cm,$(ld-test-names)) \
    11         kx 				   $(addsuffix .def,$(ld-test-names)) \
    11         kx 				   $(addsuffix .ds,test5 test6) \
    11         kx 				   test6.c trans.def)
    11         kx 
    11         kx fmon-tests = n01y12 n02n40 n10y31 n11y41 n12y11 n20n32 n30y20 n41n00 \
    11         kx 	     y01y10 y02n22 y22n42 y30y21 y32n31 y40y00 y42n21
    11         kx 
    11         kx generated += $(test-input) $(test-output) sort-test.out tst-locale.out \
    11         kx 	     tst-leaks.mtrace mtrace-tst-leaks.out
    11         kx generated-dirs += $(ld-test-names) tt_TT de_DE.437			\
    11         kx 		  $(addprefix tstfmon_,$(fmon-tests))			\
    11         kx 
    11         kx ifeq ($(run-built-tests),yes)
    11         kx locale_test_suite := tst_iswalnum tst_iswalpha tst_iswcntrl            \
    11         kx 		     tst_iswctype tst_iswdigit tst_iswgraph            \
    11         kx 		     tst_iswlower tst_iswprint tst_iswpunct            \
    11         kx 		     tst_iswspace tst_iswupper tst_iswxdigit tst_mblen \
    11         kx 		     tst_mbrlen tst_mbrtowc tst_mbsrtowcs tst_mbstowcs \
    11         kx 		     tst_mbtowc tst_strcoll tst_strfmon tst_strxfrm    \
    11         kx 		     tst_swscanf tst_towctrans tst_towlower            \
    11         kx 		     tst_towupper tst_wcrtomb tst_wcscat tst_wcschr    \
    11         kx 		     tst_wcscmp tst_wcscoll tst_wcscpy tst_wcscspn     \
    11         kx 		     tst_wcslen tst_wcsncat tst_wcsncmp tst_wcsncpy    \
    11         kx 		     tst_wcspbrk tst_wcsrtombs tst_wcsspn tst_wcsstr   \
    11         kx 		     tst_wcstod tst_wcstok tst_wcstombs tst_wcswidth   \
    11         kx 		     tst_wcsxfrm tst_wctob tst_wctomb tst_wctrans      \
    11         kx 		     tst_wctype tst_wcwidth
    11         kx 
    11         kx tests = \
    11         kx   $(locale_test_suite) \
    11         kx   bug-iconv-trans \
    11         kx   bug-setlocale1 \
    11         kx   bug-usesetlocale \
    11         kx   tst-c-utf8-consistency \
    11         kx   tst-digits \
    11         kx   tst-iconv-math-trans \
    11         kx   tst-leaks \
    11         kx   tst-mbswcs1 \
    11         kx   tst-mbswcs2 \
    11         kx   tst-mbswcs3 \
    11         kx   tst-mbswcs4 \
    11         kx   tst-mbswcs5 \
    11         kx   tst-mbswcs6 \
    11         kx   tst-setlocale \
    11         kx   tst-setlocale2 \
    11         kx   tst-setlocale3 \
    11         kx   tst-sscanf \
    11         kx   tst-strfmon1 \
    11         kx   tst-wctype \
    11         kx   tst-xlocale1 \
    11         kx   tst-xlocale2 \
    11         kx   # tests
    11         kx 
    11         kx tests-static = bug-setlocale1-static
    11         kx tests += $(tests-static)
    11         kx ifeq (yes,$(build-shared))
    11         kx ifneq (no,$(PERL))
    11         kx tests-special += $(objpfx)mtrace-tst-leaks.out
    11         kx endif
    11         kx endif
    11         kx endif
    11         kx tests-container = \
    11         kx 			tst-localedef-hardlinks
    11         kx 
    11         kx # Files to install.
    11         kx ifeq ($(INSTALL_UNCOMPRESSED),yes)
    11         kx # This option is for testing inside the testroot container, as the
    11         kx # container does not include a working gunzip program.
    11         kx install-others := $(addprefix $(inst_i18ndir)/, \
    11         kx 			      $(charmaps) \
    11         kx 			      $(locales))
    11         kx else
    11         kx install-others := $(addprefix $(inst_i18ndir)/, \
    11         kx 			      $(addsuffix .gz, $(charmaps)) \
    11         kx 			      $(locales))
    11         kx endif
    11         kx 
    11         kx tests: $(objdir)/iconvdata/gconv-modules
    11         kx 
    11         kx tests-static += tst-langinfo-newlocale-static tst-langinfo-setlocale-static
    11         kx 
    11         kx ifeq ($(run-built-tests),yes)
    11         kx tests-special += $(objpfx)sort-test.out $(objpfx)tst-fmon.out \
    11         kx 		 $(objpfx)tst-locale.out $(objpfx)tst-rpmatch.out \
    11         kx 		 $(objpfx)tst-trans.out $(objpfx)tst-ctype.out \
    11         kx 		 $(objpfx)tst-langinfo-newlocale.out \
    11         kx 		 $(objpfx)tst-langinfo-setlocale.out \
    11         kx 		 $(objpfx)tst-langinfo-newlocale-static.out \
    11         kx 		 $(objpfx)tst-langinfo-setlocale-static.out \
    11         kx 		 $(objpfx)tst-numeric.out
    11         kx # We have to generate locales (list sorted alphabetically)
    11         kx LOCALES := \
    11         kx 	am_ET.UTF-8 \
    11         kx 	az_AZ.UTF-8 \
    11         kx 	be_BY.UTF-8 \
    11         kx 	ber_DZ.UTF-8 \
    11         kx 	ber_MA.UTF-8 \
    11         kx 	bg_BG.UTF-8 \
    11         kx 	br_FR.UTF-8 \
    11         kx 	bs_BA.UTF-8 \
    11         kx 	C.UTF-8 \
    11         kx 	ckb_IQ.UTF-8 \
    11         kx 	cmn_TW.UTF-8 \
    11         kx 	crh_UA.UTF-8 \
    11         kx 	cs_CZ.UTF-8 \
    11         kx 	csb_PL.UTF-8 \
    11         kx 	cv_RU.UTF-8 \
    11         kx 	cy_GB.UTF-8 \
    11         kx 	da_DK.ISO-8859-1 \
    11         kx 	de_DE.ISO-8859-1 \
    11         kx 	de_DE.UTF-8 \
    11         kx 	dsb_DE.UTF-8 \
    11         kx 	dz_BT.UTF-8 \
    11         kx 	en_GB.UTF-8 \
    11         kx 	en_US.ANSI_X3.4-1968 \
    11         kx 	en_US.ISO-8859-1\
    11         kx 	en_US.UTF-8 \
    11         kx 	eo.UTF-8 \
    11         kx 	es_ES.UTF-8 \
    11         kx 	et_EE.UTF-8 \
    11         kx 	fa_IR.UTF-8 \
    11         kx 	fi_FI.UTF-8 \
    11         kx 	fil_PH.UTF-8 \
    11         kx 	fr_CA.UTF-8 \
    11         kx 	fr_FR.ISO-8859-1 \
    11         kx 	fr_FR.UTF-8 \
    11         kx 	fur_IT.UTF-8 \
    11         kx 	gez_ER.UTF-8@abegede \
    11         kx 	ha_NG.UTF-8 \
    11         kx 	hr_HR.ISO-8859-2 \
    11         kx 	hr_HR.UTF-8 \
    11         kx 	hsb_DE.UTF-8 \
    11         kx 	hu_HU.UTF-8 \
    11         kx 	ig_NG.UTF-8 \
    11         kx 	ik_CA.UTF-8 \
    11         kx 	is_IS.UTF-8 \
    11         kx 	ja_JP.EUC-JP \
    11         kx 	ja_JP.SJIS \
    11         kx 	ja_JP.UTF-8 \
    11         kx 	kk_KZ.UTF-8 \
    11         kx 	ku_TR.UTF-8 \
    11         kx 	ky_KG.UTF-8 \
    11         kx 	ln_CD.UTF-8 \
    11         kx 	lt_LT.UTF-8 \
    11         kx 	lv_LV.UTF-8 \
    11         kx 	mi_NZ.UTF-8 \
    11         kx 	ml_IN.UTF-8 \
    11         kx 	mn_MN.UTF-8 \
    11         kx 	mr_IN.UTF-8 \
    11         kx 	mt_MT.UTF-8 \
    11         kx 	nan_TW.UTF-8@latin \
    11         kx 	nb_NO.ISO-8859-1 \
    11         kx 	nb_NO.UTF-8 \
    11         kx 	nl_NL.UTF-8 \
    11         kx 	nn_NO.ISO-8859-1 \
    11         kx 	om_KE.UTF-8 \
    11         kx 	or_IN.UTF-8 \
    11         kx 	os_RU.UTF-8 \
    11         kx 	pl_PL.UTF-8 \
    11         kx 	ps_AF.UTF-8 \
    11         kx 	rif_MA.UTF-8 \
    11         kx 	ro_RO.UTF-8 \
    11         kx 	ru_RU.UTF-8 \
    11         kx 	sah_RU.UTF-8 \
    11         kx 	sc_IT.UTF-8 \
    11         kx 	se_NO.UTF-8 \
    11         kx 	si_LK.UTF-8 \
    11         kx 	sq_AL.UTF-8 \
    11         kx 	sr_RS.UTF-8 \
    11         kx 	sv_SE.ISO-8859-1 \
    11         kx 	sv_SE.UTF-8 \
    11         kx 	syr.UTF-8 \
    11         kx 	szl_PL.UTF-8 \
    11         kx 	tg_TJ.UTF-8 \
    11         kx 	tk_TM.UTF-8 \
    11         kx 	tr_TR.ISO-8859-9 \
    11         kx 	tr_TR.UTF-8 \
    11         kx 	tt_RU.UTF-8 \
    11         kx 	tt_RU.UTF-8@iqtelif \
    11         kx 	ug_CN.UTF-8 \
    11         kx 	uk_UA.UTF-8 \
    11         kx 	uz_UZ.UTF-8 \
    11         kx 	vi_VN.UTF-8 \
    11         kx 	yi_US.UTF-8 \
    11         kx 	yo_NG.UTF-8 \
    11         kx 	zh_CN.UTF-8 \
    11         kx 	zh_TW.EUC-TW \
    11         kx 	$(NULL)
    11         kx 
    11         kx include ../gen-locales.mk
    11         kx 
    11         kx $(objpfx)tst-iconv-math-trans.out: $(gen-locales)
    11         kx endif
    11         kx 
    11         kx include ../Rules
    11         kx 
    11         kx ifeq ($(INSTALL_UNCOMPRESSED),yes)
    11         kx # Install the charmap files as-is.  This option is for testing inside
    11         kx # the testroot container, as the container does not include a working
    11         kx # gunzip program.
    11         kx $(inst_i18ndir)/charmaps/%: charmaps/% $(+force)
    11         kx 	$(make-target-directory)
    11         kx 	rm -f $@
    11         kx 	$(INSTALL_DATA) $< $@
    11         kx else
    11         kx # Install the charmap files in gzipped format.
    11         kx $(inst_i18ndir)/charmaps/%.gz: charmaps/% $(+force)
    11         kx 	$(make-target-directory)
    11         kx 	rm -f $(@:.gz=) $@
    11         kx 	$(INSTALL_DATA) $< $(@:.gz=)
    11         kx 	gzip -9n $(@:.gz=)
    11         kx endif
    11         kx 
    11         kx # Install the locale source files in the appropriate directory.
    11         kx $(inst_i18ndir)/locales/%: locales/% $(+force); $(do-install)
    11         kx 
    11         kx ifeq ($(run-built-tests),yes)
    11         kx generated-dirs += $(LOCALES)
    11         kx 
    11         kx $(addsuffix .out,$(addprefix $(objpfx),$(tests))): %: \
    11         kx   $(addprefix $(objpfx),$(CTYPE_FILES))
    11         kx 
    11         kx $(objpfx)sort-test.out: sort-test.sh $(objpfx)collate-test $(objpfx)xfrm-test \
    11         kx 		       $(test-input-data) $(addprefix $(objpfx),$(CTYPE_FILES))
    11         kx 	$(SHELL) $< $(common-objpfx) '$(test-program-prefix-before-env)' \
    11         kx 	  '$(run-program-env)' '$(test-program-prefix-after-env)' \
    11         kx 	  $(test-input) \
    11         kx 	  > $@; \
    11         kx 	$(evaluate-test)
    11         kx $(objpfx)tst-fmon.out: tst-fmon.sh $(objpfx)tst-fmon tst-fmon.data \
    11         kx 		       $(objpfx)sort-test.out \
    11         kx 		       $(addprefix $(objpfx),$(CTYPE_FILES))
    11         kx 	$(SHELL) $< $(common-objpfx) '$(run-program-prefix-before-env)' \
    11         kx 		 '$(run-program-env)' '$(run-program-prefix-after-env)' \
    11         kx 		 '$(test-program-prefix)' tst-fmon.data \
    11         kx 	  > $@; \
    11         kx 	$(evaluate-test)
    11         kx $(objpfx)tst-numeric.out: tst-numeric.sh $(objpfx)tst-numeric tst-numeric.data \
    11         kx 		       $(objpfx)sort-test.out \
    11         kx 		       $(addprefix $(objpfx),$(CTYPE_FILES))
    11         kx 	$(SHELL) $< $(common-objpfx) '$(test-program-prefix)' tst-numeric.data \
    11         kx 	  > $@; \
    11         kx 	$(evaluate-test)
    11         kx $(objpfx)tst-locale.out: tst-locale.sh $(common-objpfx)locale/localedef \
    11         kx 			 $(ld-test-srcs) $(addprefix $(objpfx),$(CTYPE_FILES))
    11         kx 	$(SHELL) $< $(common-objpfx) '$(built-program-cmd-before-env)' \
    11         kx 		 '$(run-program-env)' '$(built-program-cmd-after-env)' > $@; \
    11         kx 	$(evaluate-test)
    11         kx $(objpfx)tst-rpmatch.out: tst-rpmatch.sh $(objpfx)tst-rpmatch \
    11         kx 			  $(objpfx)tst-fmon.out \
    11         kx 			  $(addprefix $(objpfx),$(CTYPE_FILES))
    11         kx 	$(SHELL) $< $(common-objpfx) '$(test-program-cmd)' > $@; \
    11         kx 	$(evaluate-test)
    11         kx $(objpfx)tst-trans.out: tst-trans.sh $(objpfx)tst-trans \
    11         kx 			$(addprefix $(objpfx),$(CTYPE_FILES))
    11         kx 	$(SHELL) $< $(common-objpfx) '$(run-program-prefix-before-env)' \
    11         kx 		 '$(run-program-env)' '$(run-program-prefix-after-env)' \
    11         kx 		 '$(test-program-prefix-before-env)' \
    11         kx 		 '$(test-program-prefix-after-env)'; \
    11         kx 	$(evaluate-test)
    11         kx $(objpfx)tst-ctype.out: tst-ctype.sh $(objpfx)tst-ctype \
    11         kx 			$(objpfx)sort-test.out \
    11         kx 			$(addprefix $(objpfx),$(CTYPE_FILES))
    11         kx 	$(SHELL) $< $(common-objpfx) '$(test-program-cmd-before-env)' \
    11         kx 		 '$(run-program-env)' '$(test-program-cmd-after-env)'; \
    11         kx 	$(evaluate-test)
    11         kx $(objpfx)tst-langinfo-newlocale.out: tst-langinfo.sh \
    11         kx 			$(objpfx)tst-langinfo-newlocale \
    11         kx 			$(objpfx)sort-test.out \
    11         kx 			$(addprefix $(objpfx),$(CTYPE_FILES))
    11         kx 	$(SHELL) $< $(common-objpfx) '$(test-program-cmd-before-env)' \
    11         kx 		 '$(run-program-env)' '$(test-program-cmd-after-env)' > $@; \
    11         kx 	$(evaluate-test)
    11         kx $(objpfx)tst-langinfo-newlocale-static.out: tst-langinfo.sh \
    11         kx 			$(objpfx)tst-langinfo-newlocale-static \
    11         kx 			$(objpfx)sort-test.out \
    11         kx 			$(addprefix $(objpfx),$(CTYPE_FILES))
    11         kx 	$(SHELL) $< $(common-objpfx) '$(test-program-cmd-before-env)' \
    11         kx 		 '$(run-program-env)' '$(test-program-cmd-after-env)' > $@; \
    11         kx 	$(evaluate-test)
    11         kx # Static use of newlocale is known not to work. See Bug 23164.
    11         kx test-xfail-tst-langinfo-newlocale-static = yes
    11         kx 
    11         kx $(objpfx)tst-langinfo-setlocale.out: tst-langinfo.sh \
    11         kx 			$(objpfx)tst-langinfo-setlocale \
    11         kx 			$(objpfx)sort-test.out \
    11         kx 			$(addprefix $(objpfx),$(CTYPE_FILES))
    11         kx 	$(SHELL) $< $(common-objpfx) '$(test-program-cmd-before-env)' \
    11         kx 		 '$(run-program-env)' '$(test-program-cmd-after-env)' > $@; \
    11         kx 	$(evaluate-test)
    11         kx $(objpfx)tst-langinfo-setlocale-static.out: tst-langinfo.sh \
    11         kx 			$(objpfx)tst-langinfo-setlocale-static \
    11         kx 			$(objpfx)sort-test.out \
    11         kx 			$(addprefix $(objpfx),$(CTYPE_FILES))
    11         kx 	$(SHELL) $< $(common-objpfx) '$(test-program-cmd-before-env)' \
    11         kx 		 '$(run-program-env)' '$(test-program-cmd-after-env)' > $@; \
    11         kx 	$(evaluate-test)
    11         kx 
    11         kx $(objpfx)tst-digits.out: $(objpfx)tst-locale.out
    11         kx $(objpfx)tst-mbswcs6.out: $(addprefix $(objpfx),$(CTYPE_FILES))
    11         kx endif
    11         kx 
    11         kx include SUPPORTED
    11         kx 
    11         kx INSTALL-SUPPORTED-LOCALE-ARCHIVE=$(addprefix install-archive-, $(SUPPORTED-LOCALES))
    11         kx INSTALL-SUPPORTED-LOCALE-FILES=$(addprefix install-files-, $(SUPPORTED-LOCALES))
    11         kx 
    11         kx # Sometimes the whole collection of locale files should be installed.
    11         kx LOCALEDEF=I18NPATH=. GCONV_PATH=$(common-objpfx)iconvdata LC_ALL=C \
    11         kx $(rtld-prefix) $(common-objpfx)locale/localedef
    11         kx install-locales: install-locale-archive
    11         kx 
    11         kx # Create and install the locale-archive file.
    11         kx install-locale-archive: $(INSTALL-SUPPORTED-LOCALE-ARCHIVE)
    11         kx # Create and install the locales individually (no archive).
    11         kx install-locale-files: $(INSTALL-SUPPORTED-LOCALE-FILES)
    11         kx 
    11         kx install-locales-dir:
    11         kx 	$(..)./scripts/mkinstalldirs $(inst_complocaledir)
    11         kx 
    11         kx # The SHIFT_JIS and SHIFT_JISX0213 character maps are not ASCII compatible,
    11         kx # therefore we have to use --no-warnings=ascii to disable the ASCII check.
    11         kx # See localedata/gen-locale.sh for the same logic.
    11         kx define build-one-locale
    11         kx 	locale=`echo $@ | sed -e 's/^install-[a-z]*-//'`; \
    11         kx 	charset=`echo $$locale | sed -e 's,.*/,,'`; \
    11         kx 	locale=`echo $$locale | sed -e 's,/[^/]*,,'`; \
    11         kx 	if [ "$$charset" = 'SHIFT_JIS' ] \
    11         kx 	   || [ "$$charset" = 'SHIFT_JISX0213' ]; then \
    11         kx 	   flags="$$flags --no-warnings=ascii"; \
    11         kx 	fi; \
    11         kx 	echo -n `echo $$locale | sed 's/\([^.\@]*\).*/\1/'`; \
    11         kx 	echo -n ".$$charset"; \
    11         kx 	echo -n `echo $$locale | sed 's/\([^\@]*\)\(\@.*\)*/\2/'`; \
    11         kx 	echo -n '...'; \
    11         kx 	input=`echo $$locale | sed 's/\([^.]*\)[^@]*\(.*\)/\1\2/'`; \
    11         kx 	$(LOCALEDEF) $$flags --alias-file=../intl/locale.alias \
    11         kx 		     --no-archive \
    11         kx 		     -i locales/$$input -f charmaps/$$charset \
    11         kx 		     $(addprefix --prefix=,$(install_root)) $$locale \
    11         kx 	&& echo ' done';
    11         kx endef
    11         kx 
    11         kx $(INSTALL-SUPPORTED-LOCALE-ARCHIVE): install-locales-dir
    11         kx 	@flags=""; \
    11         kx 	$(build-one-locale)
    11         kx 
    11         kx $(INSTALL-SUPPORTED-LOCALE-FILES): install-locales-dir
    11         kx 	@flags="--no-archive --no-hard-links"; \
    11         kx 	$(build-one-locale)
    11         kx 
    11         kx tst-setlocale-ENV = LC_ALL=ja_JP.EUC-JP
    11         kx tst-wctype-ENV = LC_ALL=ja_JP.EUC-JP
    11         kx 
    11         kx tst-leaks-ENV = MALLOC_TRACE=$(objpfx)tst-leaks.mtrace \
    11         kx 		LD_PRELOAD=$(common-objpfx)/malloc/libc_malloc_debug.so
    11         kx $(objpfx)mtrace-tst-leaks.out: $(objpfx)tst-leaks.out
    11         kx 	$(common-objpfx)malloc/mtrace $(objpfx)tst-leaks.mtrace > $@; \
    11         kx 	$(evaluate-test)
    11         kx 
    11         kx bug-setlocale1-ENV-only = LOCPATH=$(objpfx) LC_CTYPE=de_DE.UTF-8
    11         kx bug-setlocale1-static-ENV-only = $(bug-setlocale1-ENV-only)
    11         kx 
    11         kx $(objdir)/iconvdata/gconv-modules:
    11         kx 	$(MAKE) -C ../iconvdata subdir=iconvdata $@