Handle long lines in host lookups in the right place.
[glibc.git] / intl / Makefile
blob1511edd490cd9c623fb099217a4a2f3f453a0646
1 # Copyright (C) 1995-2003, 2005, 2008 Free Software Foundation, Inc.
2 # This file is part of the GNU C Library.
4 # The GNU C Library is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU Lesser General Public
6 # License as published by the Free Software Foundation; either
7 # version 2.1 of the License, or (at your option) any later version.
9 # The GNU C Library is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 # Lesser General Public License for more details.
14 # You should have received a copy of the GNU Lesser General Public
15 # License along with the GNU C Library; if not, write to the Free
16 # Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
17 # 02111-1307 USA.
19 # Makefile for intl subdirectory: message handling code from GNU gettext.
21 subdir = intl
22 headers = libintl.h
23 routines = bindtextdom dcgettext dgettext gettext \
24 dcigettext dcngettext dngettext ngettext \
25 finddomain loadmsgcat localealias textdomain
26 aux = l10nflist explodename plural plural-exp hash-string
27 distribute = gmo.h gettextP.h hash-string.h loadinfo.h locale.alias \
28 plural.y plural-exp.h plural-eval.c po2test.sed \
29 tst-gettext.sh \
30 tst-translit.sh translit.po \
31 tst-gettext2.sh tstlang1.po tstlang2.po \
32 tst-codeset.sh tstcodeset.po \
33 tst-gettext3.sh \
34 tst-gettext4.sh tst-gettext4-de.po tst-gettext4-fr.po \
35 tst-gettext5.sh tst-gettext6.sh
37 include ../Makeconfig
39 multithread-test-srcs := tst-gettext4 tst-gettext5 tst-gettext6
40 test-srcs := tst-gettext tst-translit tst-gettext2 tst-codeset tst-gettext3
41 ifeq ($(have-thread-library),yes)
42 test-srcs += $(multithread-test-srcs)
43 endif
44 tests = tst-ngettext
46 before-compile = $(objpfx)msgs.h
48 install-others = $(inst_msgcatdir)/locale.alias
50 generated = msgs.h mtrace-tst-gettext tst-gettext.mtrace
51 generated-dirs := domaindir localedir
53 ifneq (no,$(BISON))
54 plural.c: plural.y
55 $(BISON) $(BISONFLAGS) $@ $^
56 ifeq ($(with-cvs),yes)
57 test ! -d CVS || cvs $(CVSOPTS) commit -m'$(BISON) $(BISONFLAGS) $@ $^' $@
58 endif
59 endif
60 $(objpfx)plural.o: plural.c
62 include ../Rules
64 ifeq (no,$(cross-compiling))
65 ifeq (yes,$(build-shared))
66 ifneq ($(strip $(MSGFMT)),:)
67 tests: $(objpfx)tst-translit.out $(objpfx)tst-gettext2.out \
68 $(objpfx)tst-codeset.out $(objpfx)tst-gettext3.out
69 ifeq ($(have-thread-library),yes)
70 tests: $(objpfx)tst-gettext4.out $(objpfx)tst-gettext5.out \
71 $(objpfx)tst-gettext6.out
72 endif
73 ifneq (no,$(PERL))
74 tests: $(objpfx)mtrace-tst-gettext
75 endif
76 endif
77 $(objpfx)mtrace-tst-gettext: $(objpfx)tst-gettext.out
78 $(common-objpfx)malloc/mtrace $(objpfx)tst-gettext.mtrace > $@
79 $(objpfx)tst-gettext.out: tst-gettext.sh $(objpfx)tst-gettext
80 $(SHELL) -e $< $(common-objpfx) $(common-objpfx)intl/ \
81 $(objpfx)tst-gettext.mtrace
82 $(objpfx)tst-translit.out: tst-translit.sh $(objpfx)tst-translit
83 $(SHELL) -e $< $(common-objpfx) $(common-objpfx)intl/
84 $(objpfx)tst-gettext2.out: tst-gettext2.sh $(objpfx)tst-gettext2
85 $(SHELL) -e $< $(common-objpfx) $(common-objpfx)intl/
86 $(objpfx)tst-codeset.out: tst-codeset.sh $(objpfx)tst-codeset
87 $(SHELL) -e $< $(common-objpfx) $(common-objpfx)intl/
88 $(objpfx)tst-gettext3.out: tst-gettext3.sh $(objpfx)tst-gettext3
89 $(SHELL) -e $< $(common-objpfx) $(common-objpfx)intl/
90 $(objpfx)tst-gettext4.out: tst-gettext4.sh $(objpfx)tst-gettext4
91 $(SHELL) -e $< $(common-objpfx) '$(run-program-prefix)' $(common-objpfx)intl/
92 $(objpfx)tst-gettext5.out: tst-gettext5.sh $(objpfx)tst-gettext5
93 $(SHELL) -e $< $(common-objpfx) '$(run-program-prefix)' $(common-objpfx)intl/
94 $(objpfx)tst-gettext6.out: tst-gettext6.sh $(objpfx)tst-gettext6
95 $(SHELL) -e $< $(common-objpfx) '$(run-program-prefix)' $(common-objpfx)intl/
96 endif
97 endif
99 $(objpfx)msgs.h: po2test.sed ../po/de.po
100 $(make-target-directory)
101 LC_ALL=C sed -f $^ > $@
103 CFLAGS-tst-gettext.c = -DTESTSTRS_H=\"$(objpfx)msgs.h\"
104 CFLAGS-tst-translit.c = -DOBJPFX=\"$(objpfx)\"
105 CFLAGS-tst-gettext2.c = -DOBJPFX=\"$(objpfx)\"
106 CFLAGS-tst-codeset.c = -DOBJPFX=\"$(objpfx)\"
107 CFLAGS-tst-gettext3.c = -DOBJPFX=\"$(objpfx)\"
108 CFLAGS-tst-gettext4.c = -DOBJPFX=\"$(objpfx)\"
109 CFLAGS-tst-gettext5.c = -DOBJPFX=\"$(objpfx)\"
110 CFLAGS-tst-gettext6.c = -DOBJPFX=\"$(objpfx)\"
112 ifeq ($(have-thread-library),yes)
113 ifeq (yes,$(build-shared))
114 $(addprefix $(objpfx),$(multithread-test-srcs)): $(shared-thread-library)
115 else
116 $(addprefix $(objpfx),$(multithread-test-srcs)): $(static-thread-library)
117 endif
118 ifeq (yes,$(build-bounded))
119 $(multithread-test-srcs:%=$(objpfx)%-bp): $(bounded-thread-library)
120 endif
121 endif
123 $(objpfx)tst-translit.out: $(objpfx)tst-gettext.out
124 $(objpfx)tst-gettext2.out: $(objpfx)tst-gettext.out
125 $(objpfx)tst-codeset.out: $(objpfx)tst-gettext.out
126 $(objpfx)tst-gettext3.out: $(objpfx)tst-gettext.out
127 $(objpfx)tst-gettext4.out: $(objpfx)tst-gettext.out
128 $(objpfx)tst-gettext5.out: $(objpfx)tst-gettext.out
129 $(objpfx)tst-gettext6.out: $(objpfx)tst-gettext.out
131 CPPFLAGS += -D'LOCALEDIR="$(msgcatdir)"' \
132 -D'LOCALE_ALIAS_PATH="$(msgcatdir)"'
133 BISONFLAGS = --yacc --name-prefix=__gettext --output
135 $(inst_msgcatdir)/locale.alias: locale.alias $(+force)
136 $(do-install)