52
52
YFLAGS = --name-prefix=__gettext
54
54
DEFS = -DLOCALEDIR=\"$(localedir)\" -DLOCALE_ALIAS_PATH=\"$(aliaspath)\" \
55
-DLIBDIR=\"$(libdir)\" @DEFS@
55
-DLIBDIR=\"$(libdir)\" -DIN_LIBINTL \
56
-DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DINSTALLDIR=\"$(libdir)\" -DNO_XMALLOC \
57
-Dset_relocation_prefix=libintl_set_relocation_prefix \
58
-Drelocate=libintl_relocate \
59
-DDEPENDS_ON_LIBICONV=1 @DEFS@
56
60
CPPFLAGS = @CPPFLAGS@
58
62
LDFLAGS = @LDFLAGS@
60
65
COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(XCFLAGS)
62
HEADERS = $(COMHDRS) libgnuintl.h libgettext.h loadinfo.h
63
COMHDRS = gettext.h gettextP.h hash-string.h
64
SOURCES = $(COMSRCS) intl-compat.c
65
COMSRCS = bindtextdom.c dcgettext.c dgettext.c gettext.c \
66
finddomain.c loadmsgcat.c localealias.c textdomain.c l10nflist.c \
67
explodename.c dcigettext.c dcngettext.c dngettext.c ngettext.c plural.y \
69
OBJECTS = @INTLOBJS@ bindtextdom.$lo dcgettext.$lo dgettext.$lo gettext.$lo \
70
finddomain.$lo loadmsgcat.$lo localealias.$lo textdomain.$lo l10nflist.$lo \
71
explodename.$lo dcigettext.$lo dcngettext.$lo dngettext.$lo ngettext.$lo \
72
plural.$lo localcharset.$lo
73
GETTOBJS = intl-compat.$lo
74
125
DISTFILES.common = Makefile.in \
75
126
config.charset locale.alias ref-add.sin ref-del.sin $(HEADERS) $(SOURCES)
76
127
DISTFILES.generated = plural.c
77
128
DISTFILES.normal = VERSION
78
DISTFILES.gettext = COPYING.LIB-2 COPYING.LIB-2.1 libintl.glibc
79
DISTFILES.obsolete = xopen-msg.sed linux-msg.sed po2tbl.sed.in cat-compat.c
81
# Libtool's library version information for libintl.
82
# Before making a gettext release, the gettext maintainer must change this
83
# according to the libtool documentation, section "Library interface versions".
84
# Maintainers of other packages that include the intl directory must *not*
85
# change these values.
91
.SUFFIXES: .c .y .o .lo .sin .sed
95
$(LIBTOOL) --mode=compile $(COMPILE) $<
98
$(YACC) $(YFLAGS) --output $@ $<
102
sed -e '/^#/d' -e 's/@''PACKAGE''@/@PACKAGE@/g' $< > t-$@
105
INCLUDES = -I.. -I. -I$(top_srcdir)/intl
129
DISTFILES.gettext = COPYING.LIB-2.0 COPYING.LIB-2.1 libintl.glibc \
130
Makefile.vms libgnuintl.h.msvc-shared README.woe32 Makefile.msvc
131
DISTFILES.obsolete = xopen-msg.sed linux-msg.sed po2tbl.sed.in cat-compat.c \
132
COPYING.LIB-2 gettext.h libgettext.h plural-eval.c libgnuintl.h
107
134
all: all-@USE_INCLUDED_LIBINTL@
108
135
all-yes: libintl.$la libintl.h charset.alias ref-add.sed ref-del.sed
118
145
libintl.la libgnuintl.la: $(OBJECTS)
119
146
$(LIBTOOL) --mode=link \
120
147
$(CC) $(CPPFLAGS) $(CFLAGS) $(XCFLAGS) $(LDFLAGS) -o $@ \
121
$(OBJECTS) @LIBICONV@ \
148
$(OBJECTS) @LTLIBICONV@ $(LIBS) -lc \
122
149
-version-info $(LTV_CURRENT):$(LTV_REVISION):$(LTV_AGE) \
123
150
-rpath $(libdir) \
153
# Libtool's library version information for libintl.
154
# Before making a gettext release, the gettext maintainer must change this
155
# according to the libtool documentation, section "Library interface versions".
156
# Maintainers of other packages that include the intl directory must *not*
157
# change these values.
163
.SUFFIXES: .c .y .o .lo .sin .sed
169
$(YACC) $(YFLAGS) --output $@ $<
172
bindtextdom.lo: $(srcdir)/bindtextdom.c
173
$(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/bindtextdom.c
174
dcgettext.lo: $(srcdir)/dcgettext.c
175
$(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/dcgettext.c
176
dgettext.lo: $(srcdir)/dgettext.c
177
$(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/dgettext.c
178
gettext.lo: $(srcdir)/gettext.c
179
$(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/gettext.c
180
finddomain.lo: $(srcdir)/finddomain.c
181
$(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/finddomain.c
182
loadmsgcat.lo: $(srcdir)/loadmsgcat.c
183
$(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/loadmsgcat.c
184
localealias.lo: $(srcdir)/localealias.c
185
$(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/localealias.c
186
textdomain.lo: $(srcdir)/textdomain.c
187
$(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/textdomain.c
188
l10nflist.lo: $(srcdir)/l10nflist.c
189
$(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/l10nflist.c
190
explodename.lo: $(srcdir)/explodename.c
191
$(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/explodename.c
192
dcigettext.lo: $(srcdir)/dcigettext.c
193
$(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/dcigettext.c
194
dcngettext.lo: $(srcdir)/dcngettext.c
195
$(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/dcngettext.c
196
dngettext.lo: $(srcdir)/dngettext.c
197
$(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/dngettext.c
198
ngettext.lo: $(srcdir)/ngettext.c
199
$(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/ngettext.c
200
plural.lo: $(srcdir)/plural.c
201
$(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/plural.c
202
plural-exp.lo: $(srcdir)/plural-exp.c
203
$(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/plural-exp.c
204
localcharset.lo: $(srcdir)/localcharset.c
205
$(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/localcharset.c
206
relocatable.lo: $(srcdir)/relocatable.c
207
$(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/relocatable.c
208
localename.lo: $(srcdir)/localename.c
209
$(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/localename.c
210
log.lo: $(srcdir)/log.c
211
$(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/log.c
212
osdep.lo: $(srcdir)/osdep.c
213
$(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/osdep.c
214
intl-compat.lo: $(srcdir)/intl-compat.c
215
$(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/intl-compat.c
217
ref-add.sed: $(srcdir)/ref-add.sin
218
sed -e '/^#/d' -e 's/@''PACKAGE''@/@PACKAGE@/g' $(srcdir)/ref-add.sin > t-ref-add.sed
219
mv t-ref-add.sed ref-add.sed
220
ref-del.sed: $(srcdir)/ref-del.sin
221
sed -e '/^#/d' -e 's/@''PACKAGE''@/@PACKAGE@/g' $(srcdir)/ref-del.sin > t-ref-del.sed
222
mv t-ref-del.sed ref-del.sed
224
INCLUDES = -I. -I$(srcdir) -I..
226
libgnuintl.h: $(srcdir)/libgnuintl.h.in
227
cp $(srcdir)/libgnuintl.h.in libgnuintl.h
126
229
libintl.h: libgnuintl.h
127
cp $(srcdir)/libgnuintl.h libintl.h
230
cp libgnuintl.h libintl.h
129
charset.alias: config.charset
232
charset.alias: $(srcdir)/config.charset
130
233
$(SHELL) $(srcdir)/config.charset '@host@' > t-$@
135
# This installation goal is only used in GNU gettext. Packages which
136
# only use the library should use install instead.
138
238
# We must not install the libintl.h/libintl.a files if we are on a
139
239
# system which has the GNU gettext() function in its C library or in a
140
240
# separate library.
142
242
# package, you have to use `configure --with-included-gettext'.
143
243
install: install-exec install-data
144
244
install-exec: all
145
if test "$(PACKAGE)" = "gettext" \
146
&& test '@INTLOBJS@' = '$(GETTOBJS)'; then \
245
if { test "$(PACKAGE)" = "gettext-runtime" || test "$(PACKAGE)" = "gettext-tools"; } \
246
&& test '@USE_INCLUDED_LIBINTL@' = yes; then \
147
247
$(mkinstalldirs) $(DESTDIR)$(libdir) $(DESTDIR)$(includedir); \
148
248
$(INSTALL_DATA) libintl.h $(DESTDIR)$(includedir)/libintl.h; \
149
249
$(LIBTOOL) --mode=install \
150
250
$(INSTALL_DATA) libintl.$la $(DESTDIR)$(libdir)/libintl.$la; \
251
if test "@RELOCATABLE@" = yes; then \
252
dependencies=`sed -n -e 's,^dependency_libs=\(.*\),\1,p' < $(DESTDIR)$(libdir)/libintl.la | sed -e "s,^',," -e "s,'\$$,,"`; \
253
if test -n "$dependencies"; then \
254
rm -f $(DESTDIR)$(libdir)/libintl.la; \
260
if test "$(PACKAGE)" = "gettext-tools" \
261
&& test '@USE_INCLUDED_LIBINTL@' = no; then \
262
$(mkinstalldirs) $(DESTDIR)$(libdir); \
263
$(LIBTOOL) --mode=install \
264
$(INSTALL_DATA) libgnuintl.$la $(DESTDIR)$(libdir)/libgnuintl.$la; \
265
rm -f $(DESTDIR)$(libdir)/preloadable_libintl.so; \
266
$(INSTALL_DATA) $(DESTDIR)$(libdir)/libgnuintl.so $(DESTDIR)$(libdir)/preloadable_libintl.so; \
267
$(LIBTOOL) --mode=uninstall \
268
rm -f $(DESTDIR)$(libdir)/libgnuintl.$la; \
154
272
if test '@USE_INCLUDED_LIBINTL@' = yes; then \
155
$(mkinstalldirs) $(DESTDIR)$(libdir); \
273
test @GLIBC21@ != no || $(mkinstalldirs) $(DESTDIR)$(libdir); \
156
274
temp=$(DESTDIR)$(libdir)/t-charset.alias; \
157
275
dest=$(DESTDIR)$(libdir)/charset.alias; \
158
276
if test -f $(DESTDIR)$(libdir)/charset.alias; then \
326
install-strip: install
329
if { test "$(PACKAGE)" = "gettext-runtime" || test "$(PACKAGE)" = "gettext-tools"; } \
330
&& test '@USE_INCLUDED_LIBINTL@' = yes; then \
331
$(mkinstalldirs) $(DESTDIR)$(libdir) $(DESTDIR)$(includedir); \
335
if test "$(PACKAGE)" = "gettext-tools" \
336
&& test '@USE_INCLUDED_LIBINTL@' = no; then \
337
$(mkinstalldirs) $(DESTDIR)$(libdir); \
341
if test '@USE_INCLUDED_LIBINTL@' = yes; then \
342
test @GLIBC21@ != no || $(mkinstalldirs) $(DESTDIR)$(libdir); \
343
$(mkinstalldirs) $(DESTDIR)$(localedir); \
347
if test "$(PACKAGE)" = "gettext-tools"; then \
348
$(mkinstalldirs) $(DESTDIR)$(gettextsrcdir); \
208
353
# Define this as empty until I found a useful application.
212
if test "$(PACKAGE)" = "gettext" \
213
&& test '@INTLOBJS@' = '$(GETTOBJS)'; then \
357
if { test "$(PACKAGE)" = "gettext-runtime" || test "$(PACKAGE)" = "gettext-tools"; } \
358
&& test '@USE_INCLUDED_LIBINTL@' = yes; then \
214
359
rm -f $(DESTDIR)$(includedir)/libintl.h; \
215
360
$(LIBTOOL) --mode=uninstall \
216
361
rm -f $(DESTDIR)$(libdir)/libintl.$la; \
365
if test "$(PACKAGE)" = "gettext-tools" \
366
&& test '@USE_INCLUDED_LIBINTL@' = no; then \
367
rm -f $(DESTDIR)$(libdir)/preloadable_libintl.so; \
220
371
if test '@USE_INCLUDED_LIBINTL@' = yes; then \
221
372
if test -f $(DESTDIR)$(libdir)/charset.alias; then \
222
373
temp=$(DESTDIR)$(libdir)/t-charset.alias; \
246
if test "$(PACKAGE)" = "gettext"; then \
247
for file in VERSION ChangeLog COPYING.LIB-2 COPYING.LIB-2.1 $(DISTFILES.common) $(DISTFILES.generated); do \
397
if test "$(PACKAGE)" = "gettext-tools"; then \
398
for file in VERSION ChangeLog COPYING.LIB-2.0 COPYING.LIB-2.1 $(DISTFILES.common) $(DISTFILES.generated); do \
248
399
rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \
405
info dvi ps pdf html:
256
407
$(OBJECTS): ../config.h libgnuintl.h
257
bindtextdom.$lo finddomain.$lo loadmsgcat.$lo: gettextP.h gettext.h loadinfo.h
258
dcgettext.$lo: gettextP.h gettext.h hash-string.h loadinfo.h
408
bindtextdom.$lo dcgettext.$lo dcigettext.$lo dcngettext.$lo dgettext.$lo dngettext.$lo finddomain.$lo gettext.$lo intl-compat.$lo loadmsgcat.$lo localealias.$lo ngettext.$lo textdomain.$lo: $(srcdir)/gettextP.h $(srcdir)/gmo.h $(srcdir)/loadinfo.h
409
dcigettext.$lo loadmsgcat.$lo: $(srcdir)/hash-string.h
410
explodename.$lo l10nflist.$lo: $(srcdir)/loadinfo.h
411
dcigettext.$lo loadmsgcat.$lo plural.$lo plural-exp.$lo: $(srcdir)/plural-exp.h
412
dcigettext.$lo: $(srcdir)/eval-plural.h
413
localcharset.$lo: $(srcdir)/localcharset.h
414
localealias.$lo localcharset.$lo relocatable.$lo: $(srcdir)/relocatable.h
262
418
TAGS: $(HEADERS) $(SOURCES)
263
419
here=`pwd`; cd $(srcdir) && etags -o $$here/TAGS $(HEADERS) $(SOURCES)
423
CTAGS: $(HEADERS) $(SOURCES)
424
here=`pwd`; cd $(srcdir) && ctags -o $$here/CTAGS $(HEADERS) $(SOURCES)
267
428
ID: $(HEADERS) $(SOURCES)
292
453
# other files which should not be distributed in other packages.
293
454
distdir = ../$(PACKAGE)-$(VERSION)/$(subdir)
294
455
dist distdir: Makefile
295
if test "$(PACKAGE)" = gettext; then \
296
additional="$(DISTFILES.gettext)"; \
456
if test "$(PACKAGE)" = "gettext-tools"; then \
298
additional="$(DISTFILES.normal)"; \
300
$(MAKE) $(DISTFILES.common) $(DISTFILES.generated) $$additional; \
301
for file in ChangeLog $(DISTFILES.common) $(DISTFILES.generated) $$additional; do \
302
if test -f $$file; then dir=.; else dir=$(srcdir); fi; \
303
ln $$dir/$$file $(distdir) 2> /dev/null \
304
|| cp -p $$dir/$$file $(distdir); \
459
if test "$(PACKAGE)" = "gettext-runtime"; then \
460
additional="$(DISTFILES.gettext)"; \
462
additional="$(DISTFILES.normal)"; \
464
$(MAKE) $(DISTFILES.common) $(DISTFILES.generated) $$additional; \
465
for file in ChangeLog $(DISTFILES.common) $(DISTFILES.generated) $$additional; do \
466
if test -f $$file; then dir=.; else dir=$(srcdir); fi; \
467
cp -p $$dir/$$file $(distdir); \
307
Makefile: Makefile.in ../config.status
309
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
471
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
472
cd $(top_builddir) && $(SHELL) ./config.status
473
# This would be more efficient, but doesn't work any more with autoconf-2.57,
474
# when AC_CONFIG_FILES([intl/Makefile:somedir/Makefile.in]) is used.
475
# cd $(top_builddir) && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
311
477
# Tell versions [3.59,3.63) of GNU make not to export all variables.
312
478
# Otherwise a system limit (for SysV at least) may be exceeded.