| @@ -1,251 +1,253 @@ | | | @@ -1,251 +1,253 @@ |
1 | # Makefile for directory with message catalog handling library of GNU gettext | | 1 | # Makefile for directory with message catalog handling library of GNU gettext |
2 | # Copyright (C) 1995-1998, 2000-2003 Free Software Foundation, Inc. | | 2 | # Copyright (C) 1995-1998, 2000-2003 Free Software Foundation, Inc. |
3 | # | | 3 | # |
4 | # This program is free software; you can redistribute it and/or modify it | | 4 | # This program is free software; you can redistribute it and/or modify it |
5 | # under the terms of the GNU Library General Public License as published | | 5 | # under the terms of the GNU Library General Public License as published |
6 | # by the Free Software Foundation; either version 2, or (at your option) | | 6 | # by the Free Software Foundation; either version 2, or (at your option) |
7 | # any later version. | | 7 | # any later version. |
8 | # | | 8 | # |
9 | # This program is distributed in the hope that it will be useful, | | 9 | # This program is distributed in the hope that it will be useful, |
10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | | 10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | | 11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
12 | # Library General Public License for more details. | | 12 | # Library General Public License for more details. |
13 | # | | 13 | # |
14 | # You should have received a copy of the GNU Library General Public | | 14 | # You should have received a copy of the GNU Library General Public |
15 | # License along with this program; if not, write to the Free Software | | 15 | # License along with this program; if not, write to the Free Software |
16 | # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, | | 16 | # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, |
17 | # USA. | | 17 | # USA. |
18 | | | 18 | |
19 | # This Makefile has been modified from the original shipped with | | 19 | # This Makefile has been modified from the original shipped with |
20 | # gettext 0.12.1 to remove the ability to install libintl (which | | 20 | # gettext 0.12.1 to remove the ability to install libintl (which |
21 | # we do not need nor want), the ability to build a shared library | | 21 | # we do not need nor want), the ability to build a shared library |
22 | # (likewise), and a large number of heinous kludges. | | 22 | # (likewise), and a large number of heinous kludges. |
23 | | | 23 | |
24 | SHELL = @SHELL@ | | 24 | SHELL = @SHELL@ |
25 | | | 25 | |
26 | srcdir = @srcdir@ | | 26 | srcdir = @srcdir@ |
27 | VPATH = $(srcdir) | | 27 | VPATH = $(srcdir) |
28 | | | 28 | |
29 | prefix = @prefix@ | | 29 | prefix = @prefix@ |
30 | exec_prefix = @exec_prefix@ | | 30 | exec_prefix = @exec_prefix@ |
31 | transform = @program_transform_name@ | | 31 | transform = @program_transform_name@ |
32 | libdir = @libdir@ | | 32 | libdir = @libdir@ |
33 | includedir = @includedir@ | | 33 | includedir = @includedir@ |
34 | datarootdir = @datarootdir@ | | 34 | datarootdir = @datarootdir@ |
35 | datadir = @datadir@ | | 35 | datadir = @datadir@ |
36 | localedir = $(datadir)/locale | | 36 | localedir = $(datadir)/locale |
37 | aliaspath = $(localedir) | | 37 | aliaspath = $(localedir) |
38 | | | 38 | |
39 | AR = ar | | 39 | AR = ar |
40 | ACLOCAL = @ACLOCAL@ | | 40 | ACLOCAL = @ACLOCAL@ |
41 | AUTOCONF = @AUTOCONF@ | | 41 | AUTOCONF = @AUTOCONF@ |
42 | AUTOHEADER = @AUTOHEADER@ | | 42 | AUTOHEADER = @AUTOHEADER@ |
43 | CC = @CC@ | | 43 | CC = @CC@ |
44 | RANLIB = @RANLIB@ | | 44 | RANLIB = @RANLIB@ |
45 | YACC = @INTLBISON@ -y -d | | 45 | YACC = @INTLBISON@ -y -d |
46 | YFLAGS = --name-prefix=__gettext | | 46 | YFLAGS = --name-prefix=__gettext |
47 | CPPFLAGS = @CPPFLAGS@ | | 47 | CPPFLAGS = @CPPFLAGS@ |
48 | CFLAGS = @CFLAGS@ | | 48 | CFLAGS = @CFLAGS@ |
49 | LDFLAGS = @LDFLAGS@ | | 49 | LDFLAGS = @LDFLAGS@ |
50 | LIBS = @LIBS@ | | 50 | LIBS = @LIBS@ |
51 | DEFS = -DHAVE_CONFIG_H | | 51 | DEFS = -DHAVE_CONFIG_H |
52 | | | 52 | |
53 | COMPILE = $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(DEFS-$@) $(INCLUDES) | | 53 | COMPILE = $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(DEFS-$@) $(INCLUDES) |
54 | | | 54 | |
55 | HEADERS = \ | | 55 | HEADERS = \ |
56 | gmo.h \ | | 56 | gmo.h \ |
57 | gettextP.h \ | | 57 | gettextP.h \ |
58 | hash-string.h \ | | 58 | hash-string.h \ |
59 | loadinfo.h \ | | 59 | loadinfo.h \ |
60 | plural-exp.h \ | | 60 | plural-exp.h \ |
61 | eval-plural.h \ | | 61 | eval-plural.h \ |
62 | localcharset.h \ | | 62 | localcharset.h \ |
63 | relocatable.h \ | | 63 | relocatable.h \ |
64 | libgnuintl.h | | 64 | libgnuintl.h |
65 | SOURCES = \ | | 65 | SOURCES = \ |
66 | bindtextdom.c \ | | 66 | bindtextdom.c \ |
67 | dcgettext.c \ | | 67 | dcgettext.c \ |
68 | dgettext.c \ | | 68 | dgettext.c \ |
69 | gettext.c \ | | 69 | gettext.c \ |
70 | finddomain.c \ | | 70 | finddomain.c \ |
71 | loadmsgcat.c \ | | 71 | loadmsgcat.c \ |
72 | localealias.c \ | | 72 | localealias.c \ |
73 | textdomain.c \ | | 73 | textdomain.c \ |
74 | l10nflist.c \ | | 74 | l10nflist.c \ |
75 | explodename.c \ | | 75 | explodename.c \ |
76 | dcigettext.c \ | | 76 | dcigettext.c \ |
77 | dcngettext.c \ | | 77 | dcngettext.c \ |
78 | dngettext.c \ | | 78 | dngettext.c \ |
79 | ngettext.c \ | | 79 | ngettext.c \ |
80 | plural.y \ | | 80 | plural.y \ |
81 | plural-exp.c \ | | 81 | plural-exp.c \ |
82 | localcharset.c \ | | 82 | localcharset.c \ |
83 | relocatable.c \ | | 83 | relocatable.c \ |
84 | localename.c \ | | 84 | localename.c \ |
85 | log.c \ | | 85 | log.c \ |
86 | osdep.c \ | | 86 | osdep.c \ |
87 | intl-compat.c | | 87 | intl-compat.c |
88 | OBJECTS = \ | | 88 | OBJECTS = \ |
89 | bindtextdom.o \ | | 89 | bindtextdom.o \ |
90 | dcgettext.o \ | | 90 | dcgettext.o \ |
91 | dgettext.o \ | | 91 | dgettext.o \ |
92 | gettext.o \ | | 92 | gettext.o \ |
93 | finddomain.o \ | | 93 | finddomain.o \ |
94 | loadmsgcat.o \ | | 94 | loadmsgcat.o \ |
95 | localealias.o \ | | 95 | localealias.o \ |
96 | textdomain.o \ | | 96 | textdomain.o \ |
97 | l10nflist.o \ | | 97 | l10nflist.o \ |
98 | explodename.o \ | | 98 | explodename.o \ |
99 | dcigettext.o \ | | 99 | dcigettext.o \ |
100 | dcngettext.o \ | | 100 | dcngettext.o \ |
101 | dngettext.o \ | | 101 | dngettext.o \ |
102 | ngettext.o \ | | 102 | ngettext.o \ |
103 | plural.o \ | | 103 | plural.o \ |
104 | plural-exp.o \ | | 104 | plural-exp.o \ |
105 | localcharset.o \ | | 105 | localcharset.o \ |
106 | relocatable.o \ | | 106 | relocatable.o \ |
107 | localename.o \ | | 107 | localename.o \ |
108 | log.o \ | | 108 | log.o \ |
109 | osdep.o \ | | 109 | osdep.o \ |
110 | intl-compat.o | | 110 | intl-compat.o |
111 | | | 111 | |
112 | DEFS-dcigettext.o = -DLOCALEDIR="\"$(localedir)\"" | | 112 | DEFS-dcigettext.o = -DLOCALEDIR="\"$(localedir)\"" |
113 | DEFS-localealias.o = -DLOCALE_ALIAS_PATH="\"$(aliaspath)\"" | | 113 | DEFS-localealias.o = -DLOCALE_ALIAS_PATH="\"$(aliaspath)\"" |
114 | DEFS-localcharset.o = -DLIBDIR="\"$(libdir)\"" | | 114 | DEFS-localcharset.o = -DLIBDIR="\"$(libdir)\"" |
115 | DEFS-relocatable.o = -DINSTALLDIR="\"$(libdir)\"" | | 115 | DEFS-relocatable.o = -DINSTALLDIR="\"$(libdir)\"" |
116 | | | 116 | |
117 | all: all-@USE_INCLUDED_LIBINTL@ | | 117 | all: all-@USE_INCLUDED_LIBINTL@ |
118 | all-yes: libintl.a libintl.h config.intl | | 118 | all-yes: libintl.a libintl.h config.intl |
119 | all-no: # nothing | | 119 | all-no: # nothing |
120 | | | 120 | |
121 | libintl.a: $(OBJECTS) | | 121 | libintl.a: $(OBJECTS) |
122 | rm -f $@ | | 122 | rm -f $@ |
123 | $(AR) cru $@ $(OBJECTS) | | 123 | $(AR) cru $@ $(OBJECTS) |
124 | $(RANLIB) $@ | | 124 | $(RANLIB) $@ |
125 | | | 125 | |
126 | libintl.h: $(srcdir)/libgnuintl.h | | 126 | libintl.h: $(srcdir)/libgnuintl.h |
127 | cp $(srcdir)/libgnuintl.h $@ | | 127 | cp $(srcdir)/libgnuintl.h $@ |
128 | | | 128 | |
129 | .SUFFIXES: | | 129 | .SUFFIXES: |
130 | .SUFFIXES: .c .y .o | | 130 | .SUFFIXES: .c .y .o |
131 | | | 131 | |
132 | .c.o: | | 132 | .c.o: |
133 | $(COMPILE) $< | | 133 | $(COMPILE) $< |
134 | | | 134 | |
135 | .y.c: | | 135 | .y.c: |
| | | 136 | @echo "Not rebuilding yacc output" |
| | | 137 | cp -p $(srcdir)/$@ $@ |
136 | # $(YACC) $(YFLAGS) --output $@ $< | | 138 | # $(YACC) $(YFLAGS) --output $@ $< |
137 | # rm -f $*.h | | 139 | # rm -f $*.h |
138 | | | 140 | |
139 | INCLUDES = -I. -I$(srcdir) | | 141 | INCLUDES = -I. -I$(srcdir) |
140 | | | 142 | |
141 | check: all | | 143 | check: all |
142 | | | 144 | |
143 | # The installation targets have been disabled. | | 145 | # The installation targets have been disabled. |
144 | install: install-exec install-data | | 146 | install: install-exec install-data |
145 | install-exec: all | | 147 | install-exec: all |
146 | install-data: all | | 148 | install-data: all |
147 | install-strip: install | | 149 | install-strip: install |
148 | installdirs: | | 150 | installdirs: |
149 | installcheck: | | 151 | installcheck: |
150 | uninstall: | | 152 | uninstall: |
151 | | | 153 | |
152 | .PHONY: info dvi ps pdf html | | 154 | .PHONY: info dvi ps pdf html |
153 | .PHONY: install-info install-dvi install-ps install-pdf install-html | | 155 | .PHONY: install-info install-dvi install-ps install-pdf install-html |
154 | | | 156 | |
155 | info dvi ps pdf html: | | 157 | info dvi ps pdf html: |
156 | install-info install-dvi install-ps install-pdf install-html: | | 158 | install-info install-dvi install-ps install-pdf install-html: |
157 | | | 159 | |
158 | $(OBJECTS): config.h libintl.h | | 160 | $(OBJECTS): config.h libintl.h |
159 | bindtextdom.o dcgettext.o dcigettext.o dcngettext.o dgettext.o \ | | 161 | bindtextdom.o dcgettext.o dcigettext.o dcngettext.o dgettext.o \ |
160 | dngettext.o finddomain.o gettext.o intl-compat.o loadmsgcat.o \ | | 162 | dngettext.o finddomain.o gettext.o intl-compat.o loadmsgcat.o \ |
161 | localealias.o ngettext.o textdomain.o: gettextP.h gmo.h loadinfo.h | | 163 | localealias.o ngettext.o textdomain.o: gettextP.h gmo.h loadinfo.h |
162 | dcigettext.o loadmsgcat.o: hash-string.h | | 164 | dcigettext.o loadmsgcat.o: hash-string.h |
163 | explodename.o l10nflist.o: loadinfo.h | | 165 | explodename.o l10nflist.o: loadinfo.h |
164 | dcigettext.o loadmsgcat.o plural.o plural-exp.o: plural-exp.h | | 166 | dcigettext.o loadmsgcat.o plural.o plural-exp.o: plural-exp.h |
165 | dcigettext.o: eval-plural.h | | 167 | dcigettext.o: eval-plural.h |
166 | localcharset.o: localcharset.h | | 168 | localcharset.o: localcharset.h |
167 | localealias.o localcharset.o relocatable.o: relocatable.h | | 169 | localealias.o localcharset.o relocatable.o: relocatable.h |
168 | | | 170 | |
169 | tags: TAGS | | 171 | tags: TAGS |
170 | TAGS: $(HEADERS) $(SOURCES) | | 172 | TAGS: $(HEADERS) $(SOURCES) |
171 | here=`pwd`; cd $(srcdir) && \ | | 173 | here=`pwd`; cd $(srcdir) && \ |
172 | etags -o $$here/TAGS $(HEADERS) $(SOURCES) | | 174 | etags -o $$here/TAGS $(HEADERS) $(SOURCES) |
173 | | | 175 | |
174 | ctags: CTAGS | | 176 | ctags: CTAGS |
175 | CTAGS: $(HEADERS) $(SOURCES) | | 177 | CTAGS: $(HEADERS) $(SOURCES) |
176 | here=`pwd`; cd $(srcdir) && \ | | 178 | here=`pwd`; cd $(srcdir) && \ |
177 | ctags -o $$here/CTAGS $(HEADERS) $(SOURCES) | | 179 | ctags -o $$here/CTAGS $(HEADERS) $(SOURCES) |
178 | | | 180 | |
179 | id: ID | | 181 | id: ID |
180 | ID: $(HEADERS) $(SOURCES) | | 182 | ID: $(HEADERS) $(SOURCES) |
181 | here=`pwd`; cd $(srcdir) && \ | | 183 | here=`pwd`; cd $(srcdir) && \ |
182 | mkid -f$$here/ID $(HEADERS) $(SOURCES) | | 184 | mkid -f$$here/ID $(HEADERS) $(SOURCES) |
183 | | | 185 | |
184 | mostlyclean: | | 186 | mostlyclean: |
185 | rm -f *.a *.la *.o *.obj *.lo core core.* libintl.h | | 187 | rm -f *.a *.la *.o *.obj *.lo core core.* libintl.h |
186 | | | 188 | |
187 | clean: mostlyclean | | 189 | clean: mostlyclean |
188 | | | 190 | |
189 | distclean: clean | | 191 | distclean: clean |
190 | rm -f config.status config.cache config.log config.intl config.h | | 192 | rm -f config.status config.cache config.log config.intl config.h |
191 | rm -f Makefile ID TAGS | | 193 | rm -f Makefile ID TAGS |
192 | | | 194 | |
193 | maintainer-clean: distclean | | 195 | maintainer-clean: distclean |
194 | | | 196 | |
195 | # The 'make dist' targets have been disabled; the GNU toolchain handles this | | 197 | # The 'make dist' targets have been disabled; the GNU toolchain handles this |
196 | # with a script maintained separately from the Makefile. | | 198 | # with a script maintained separately from the Makefile. |
197 | dist: | | 199 | dist: |
198 | distdir: | | 200 | distdir: |
199 | | | 201 | |
200 | # Rules to rebuild the configuration | | 202 | # Rules to rebuild the configuration |
201 | | | 203 | |
202 | Makefile: $(srcdir)/Makefile.in config.status | | 204 | Makefile: $(srcdir)/Makefile.in config.status |
203 | $(SHELL) ./config.status Makefile | | 205 | $(SHELL) ./config.status Makefile |
204 | | | 206 | |
205 | config.intl: $(srcdir)/config.intl.in config.status | | 207 | config.intl: $(srcdir)/config.intl.in config.status |
206 | $(SHELL) ./config.status config.intl | | 208 | $(SHELL) ./config.status config.intl |
207 | | | 209 | |
208 | config.status: $(srcdir)/configure | | 210 | config.status: $(srcdir)/configure |
209 | $(SHELL) ./config.status --recheck | | 211 | $(SHELL) ./config.status --recheck |
210 | | | 212 | |
211 | $(srcdir)/configure: @MAINT@ $(srcdir)/aclocal.m4 $(srcdir)/configure.ac | | 213 | $(srcdir)/configure: @MAINT@ $(srcdir)/aclocal.m4 $(srcdir)/configure.ac |
212 | cd $(srcdir) && $(AUTOCONF) | | 214 | cd $(srcdir) && $(AUTOCONF) |
213 | | | 215 | |
214 | aclocal_deps = \ | | 216 | aclocal_deps = \ |
215 | $(srcdir)/configure.ac \ | | 217 | $(srcdir)/configure.ac \ |
216 | $(srcdir)/../config/codeset.m4 \ | | 218 | $(srcdir)/../config/codeset.m4 \ |
217 | $(srcdir)/../config/gettext.m4 \ | | 219 | $(srcdir)/../config/gettext.m4 \ |
218 | $(srcdir)/../config/glibc21.m4 \ | | 220 | $(srcdir)/../config/glibc21.m4 \ |
219 | $(srcdir)/../config/iconv.m4 \ | | 221 | $(srcdir)/../config/iconv.m4 \ |
220 | $(srcdir)/../config/intdiv0.m4 \ | | 222 | $(srcdir)/../config/intdiv0.m4 \ |
221 | $(srcdir)/../config/inttypes-pri.m4 \ | | 223 | $(srcdir)/../config/inttypes-pri.m4 \ |
222 | $(srcdir)/../config/inttypes.m4 \ | | 224 | $(srcdir)/../config/inttypes.m4 \ |
223 | $(srcdir)/../config/inttypes_h.m4 \ | | 225 | $(srcdir)/../config/inttypes_h.m4 \ |
224 | $(srcdir)/../config/lcmessage.m4 \ | | 226 | $(srcdir)/../config/lcmessage.m4 \ |
225 | $(srcdir)/../config/lib-ld.m4 \ | | 227 | $(srcdir)/../config/lib-ld.m4 \ |
226 | $(srcdir)/../config/lib-link.m4 \ | | 228 | $(srcdir)/../config/lib-link.m4 \ |
227 | $(srcdir)/../config/lib-prefix.m4 \ | | 229 | $(srcdir)/../config/lib-prefix.m4 \ |
228 | $(srcdir)/../config/nls.m4 \ | | 230 | $(srcdir)/../config/nls.m4 \ |
229 | $(srcdir)/../config/po.m4 \ | | 231 | $(srcdir)/../config/po.m4 \ |
230 | $(srcdir)/../config/progtest.m4 \ | | 232 | $(srcdir)/../config/progtest.m4 \ |
231 | $(srcdir)/../config/stdint_h.m4 \ | | 233 | $(srcdir)/../config/stdint_h.m4 \ |
232 | $(srcdir)/../config/uintmax_t.m4 \ | | 234 | $(srcdir)/../config/uintmax_t.m4 \ |
233 | $(srcdir)/../config/ulonglong.m4 | | 235 | $(srcdir)/../config/ulonglong.m4 |
234 | | | 236 | |
235 | $(srcdir)/aclocal.m4: @MAINT@ $(aclocal_deps) | | 237 | $(srcdir)/aclocal.m4: @MAINT@ $(aclocal_deps) |
236 | cd $(srcdir) && $(ACLOCAL) -I ../config | | 238 | cd $(srcdir) && $(ACLOCAL) -I ../config |
237 | | | 239 | |
238 | config.h: stamp-h1 | | 240 | config.h: stamp-h1 |
239 | test -f config.h || (rm -f stamp-h1 && $(MAKE) stamp-h1) | | 241 | test -f config.h || (rm -f stamp-h1 && $(MAKE) stamp-h1) |
240 | | | 242 | |
241 | stamp-h1: $(srcdir)/config.h.in config.status | | 243 | stamp-h1: $(srcdir)/config.h.in config.status |
242 | -rm -f stamp-h1 | | 244 | -rm -f stamp-h1 |
243 | $(SHELL) ./config.status config.h | | 245 | $(SHELL) ./config.status config.h |
244 | | | 246 | |
245 | $(srcdir)/config.h.in: @MAINT@ $(srcdir)/aclocal.m4 $(srcdir)/configure.ac | | 247 | $(srcdir)/config.h.in: @MAINT@ $(srcdir)/aclocal.m4 $(srcdir)/configure.ac |
246 | cd $(srcdir) && $(AUTOHEADER) | | 248 | cd $(srcdir) && $(AUTOHEADER) |
247 | -rm -f stamp-h1 | | 249 | -rm -f stamp-h1 |
248 | | | 250 | |
249 | # Tell versions [3.59,3.63) of GNU make not to export all variables. | | 251 | # Tell versions [3.59,3.63) of GNU make not to export all variables. |
250 | # Otherwise a system limit (for SysV at least) may be exceeded. | | 252 | # Otherwise a system limit (for SysV at least) may be exceeded. |
251 | .NOEXPORT: | | 253 | .NOEXPORT: |