1 # Makefile for directory with message catalog handling library of GNU gettext
2 # Copyright (C) 1995-1998, 2000-2003 Free Software Foundation, Inc.
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
6 # by the Free Software Foundation; either version 2, or (at your option)
9 # This program 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 # Library General Public License for more details.
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
16 # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301,
19 # This Makefile has been modified from the original shipped with
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
22 # (likewise), and a large number of heinous kludges.
30 exec_prefix = @
exec_prefix@
31 transform
= @program_transform_name@
33 includedir = @
includedir@
34 datarootdir
= @datarootdir@
36 localedir
= $(datadir)/locale
37 aliaspath
= $(localedir
)
42 AUTOHEADER
= @AUTOHEADER@
45 YACC
= @INTLBISON@
-y
-d
46 YFLAGS
= --name-prefix
=__gettext
51 DEFS
= -DHAVE_CONFIG_H
53 COMPILE
= $(CC
) -c
$(CPPFLAGS
) $(CFLAGS
) $(DEFS
) $(DEFS-
$@
) $(INCLUDES
)
112 DEFS-dcigettext.o
= -DLOCALEDIR
="\"$(localedir)\""
113 DEFS-localealias.o
= -DLOCALE_ALIAS_PATH
="\"$(aliaspath)\""
114 DEFS-localcharset.o
= -DLIBDIR
="\"$(libdir)\""
115 DEFS-relocatable.o
= -DINSTALLDIR
="\"$(libdir)\""
117 all: all-@USE_INCLUDED_LIBINTL@
118 all-yes
: libintl.a libintl.h config.intl
121 libintl.a
: $(OBJECTS
)
123 $(AR
) cru
$@
$(OBJECTS
)
126 libintl.h
: $(srcdir)/libgnuintl.h
127 cp
$(srcdir)/libgnuintl.h
$@
136 $(YACC
) $(YFLAGS
) --output
$@
$<
139 INCLUDES
= -I.
-I
$(srcdir)
143 # The installation targets have been disabled.
144 install: install-exec install-data
147 install-strip
: install
152 .PHONY
: info dvi ps pdf html
153 .PHONY
: install-info install-dvi install-ps install-pdf install-html
155 info dvi ps pdf html
:
156 install-info install-dvi install-ps install-pdf install-html
:
158 $(OBJECTS
): config.h libintl.h
159 bindtextdom.o dcgettext.o dcigettext.o dcngettext.o dgettext.o \
160 dngettext.o finddomain.o gettext.o intl-compat.o loadmsgcat.o \
161 localealias.o ngettext.o textdomain.o
: gettextP.h gmo.h loadinfo.h
162 dcigettext.o loadmsgcat.o
: hash-string.h
163 explodename.o l10nflist.o
: loadinfo.h
164 dcigettext.o loadmsgcat.o plural.o plural-exp.o
: plural-exp.h
165 dcigettext.o
: eval-plural.h
166 localcharset.o
: localcharset.h
167 localealias.o localcharset.o relocatable.o
: relocatable.h
170 TAGS
: $(HEADERS
) $(SOURCES
)
171 here
=`pwd`; cd
$(srcdir) && \
172 etags
-o
$$here/TAGS
$(HEADERS
) $(SOURCES
)
175 CTAGS
: $(HEADERS
) $(SOURCES
)
176 here
=`pwd`; cd
$(srcdir) && \
177 ctags
-o
$$here/CTAGS
$(HEADERS
) $(SOURCES
)
180 ID
: $(HEADERS
) $(SOURCES
)
181 here
=`pwd`; cd
$(srcdir) && \
182 mkid
-f
$$here/ID
$(HEADERS
) $(SOURCES
)
185 rm -f
*.a
*.la
*.o
*.obj
*.lo core core.
* libintl.h
190 rm -f config.status config.cache config.log config.intl config.h
191 rm -f Makefile ID TAGS
193 maintainer-clean
: distclean
195 # The 'make dist' targets have been disabled; the GNU toolchain handles this
196 # with a script maintained separately from the Makefile.
200 # Rules to rebuild the configuration
202 Makefile
: $(srcdir)/Makefile.in config.status
203 $(SHELL
) .
/config.status Makefile
205 config.intl
: $(srcdir)/config.intl.in config.status
206 $(SHELL
) .
/config.status config.intl
208 config.status
: $(srcdir)/configure
209 $(SHELL
) .
/config.status
--recheck
211 $(srcdir)/configure
: @MAINT@
$(srcdir)/aclocal.m4
$(srcdir)/configure.ac
212 cd
$(srcdir) && $(AUTOCONF
)
215 $(srcdir)/configure.ac \
216 $(srcdir)/..
/config
/codeset.m4 \
217 $(srcdir)/..
/config
/gettext.m4 \
218 $(srcdir)/..
/config
/glibc21.m4 \
219 $(srcdir)/..
/config
/iconv.m4 \
220 $(srcdir)/..
/config
/intdiv0.m4 \
221 $(srcdir)/..
/config
/inttypes-pri.m4 \
222 $(srcdir)/..
/config
/inttypes.m4 \
223 $(srcdir)/..
/config
/inttypes_h.m4 \
224 $(srcdir)/..
/config
/lcmessage.m4 \
225 $(srcdir)/..
/config
/lib-ld.m4 \
226 $(srcdir)/..
/config
/lib-link.m4 \
227 $(srcdir)/..
/config
/lib-prefix.m4 \
228 $(srcdir)/..
/config
/nls.m4 \
229 $(srcdir)/..
/config
/po.m4 \
230 $(srcdir)/..
/config
/progtest.m4 \
231 $(srcdir)/..
/config
/stdint_h.m4 \
232 $(srcdir)/..
/config
/uintmax_t.m4 \
233 $(srcdir)/..
/config
/ulonglong.m4
235 $(srcdir)/aclocal.m4
: @MAINT@
$(aclocal_deps
)
236 cd
$(srcdir) && $(ACLOCAL
) -I ..
/config
239 test -f config.h ||
(rm -f stamp-h1
&& $(MAKE
) stamp-h1
)
241 stamp-h1
: $(srcdir)/config.h.in config.status
243 $(SHELL
) .
/config.status config.h
245 $(srcdir)/config.h.in
: @MAINT@
$(srcdir)/aclocal.m4
$(srcdir)/configure.ac
246 cd
$(srcdir) && $(AUTOHEADER
)
249 # 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.