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