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