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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
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.
33 exec_prefix = @exec_prefix@
34 transform = @program_transform_name@
36 includedir = @includedir@
38 localedir = $(datadir)/locale
39 aliaspath = $(localedir)
44 YACC = @INTLBISON@ -y -d
45 YFLAGS = --name-prefix=__gettext
50 DEFS = -DHAVE_CONFIG_H
52 COMPILE = $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(DEFS-$@) $(INCLUDES)
111 DEFS-dcigettext.o = -DLOCALEDIR="\"$(localedir)\""
112 DEFS-localealias.o = -DLOCALE_ALIAS_PATH="\"$(aliaspath)\""
113 DEFS-localcharset.o = -DLIBDIR="\"$(libdir)\""
114 DEFS-relocatable.o = -DINSTALLDIR="\"$(libdir)\""
116 all: all-@USE_INCLUDED_LIBINTL@
117 all-yes: libintl.a libintl.h config.intl
120 libintl.a: $(OBJECTS)
122 $(AR) cru $@ $(OBJECTS)
125 libintl.h: $(srcdir)/libgnuintl.h
126 cp $(srcdir)/libgnuintl.h $@
135 $(YACC) $(YFLAGS) --output $@ $<
138 INCLUDES = -I. -I$(srcdir)
142 # The installation targets have been disabled.
143 install: install-exec install-data
146 install-strip: install
151 info dvi ps pdf html:
153 $(OBJECTS): config.h libintl.h
154 bindtextdom.o dcgettext.o dcigettext.o dcngettext.o dgettext.o \
155 dngettext.o finddomain.o gettext.o intl-compat.o loadmsgcat.o \
156 localealias.o ngettext.o textdomain.o: gettextP.h gmo.h loadinfo.h
157 dcigettext.o loadmsgcat.o: hash-string.h
158 explodename.o l10nflist.o: loadinfo.h
159 dcigettext.o loadmsgcat.o plural.o plural-exp.o: plural-exp.h
160 dcigettext.o: eval-plural.h
161 localcharset.o: localcharset.h
162 localealias.o localcharset.o relocatable.o: relocatable.h
165 TAGS: $(HEADERS) $(SOURCES)
166 here=`pwd`; cd $(srcdir) && \
167 etags -o $$here/TAGS $(HEADERS) $(SOURCES)
170 CTAGS: $(HEADERS) $(SOURCES)
171 here=`pwd`; cd $(srcdir) && \
172 ctags -o $$here/CTAGS $(HEADERS) $(SOURCES)
175 ID: $(HEADERS) $(SOURCES)
176 here=`pwd`; cd $(srcdir) && \
177 mkid -f$$here/ID $(HEADERS) $(SOURCES)
180 rm -f *.a *.la *.o *.obj *.lo core core.* libintl.h
185 rm -f Makefile ID TAGS
187 maintainer-clean: distclean
189 # The 'make dist' targets have been disabled; the GNU toolchain handles this
190 # with a script maintained separately from the Makefile.
194 Makefile: Makefile.in config.status
195 CONFIG_HEADERS= CONFIG_FILES=Makefile $(SHELL) ./config.status
197 config.intl: config.intl.in config.status
198 CONFIG_HEADERS= CONFIG_FILES=config.intl $(SHELL) ./config.status
200 config.h: cstamp-h; @:
201 cstamp-h: config.h.in config.status
202 CONFIG_HEADERS=config.h CONFIG_FILES= $(SHELL) config.status
203 echo timestamp > cstamp-h
205 config.status: configure
206 $(SHELL) config.status --recheck
208 # Tell versions [3.59,3.63) of GNU make not to export all variables.
209 # Otherwise a system limit (for SysV at least) may be exceeded.