Add ptid_t::to_string (gdb-11-branch only)
[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@
8d9223e5 34datarootdir = @datarootdir@
bf070c84 35datadir = @datadir@
252b5132 36localedir = $(datadir)/locale
bf070c84 37aliaspath = $(localedir)
252b5132
RH
38
39AR = ar
bf070c84
SE
40ACLOCAL = @ACLOCAL@
41AUTOCONF = @AUTOCONF@
42AUTOHEADER = @AUTOHEADER@
252b5132 43CC = @CC@
252b5132 44RANLIB = @RANLIB@
bf070c84
SE
45YACC = @INTLBISON@ -y -d
46YFLAGS = --name-prefix=__gettext
252b5132
RH
47CPPFLAGS = @CPPFLAGS@
48CFLAGS = @CFLAGS@
49LDFLAGS = @LDFLAGS@
bf070c84
SE
50LIBS = @LIBS@
51DEFS = -DHAVE_CONFIG_H
53d4244e 52PICFLAG = @PICFLAG@
bf070c84 53
53d4244e 54COMPILE = $(CC) -c $(CPPFLAGS) $(CFLAGS) $(PICFLAG) $(DEFS) $(DEFS-$@) $(INCLUDES)
bf070c84
SE
55
56HEADERS = \
57 gmo.h \
58 gettextP.h \
59 hash-string.h \
60 loadinfo.h \
adda0248 61 plural-config.h \
bf070c84
SE
62 plural-exp.h \
63 eval-plural.h \
64 localcharset.h \
65 relocatable.h \
66 libgnuintl.h
67SOURCES = \
68 bindtextdom.c \
69 dcgettext.c \
70 dgettext.c \
71 gettext.c \
72 finddomain.c \
73 loadmsgcat.c \
74 localealias.c \
75 textdomain.c \
76 l10nflist.c \
77 explodename.c \
78 dcigettext.c \
79 dcngettext.c \
80 dngettext.c \
81 ngettext.c \
82 plural.y \
83 plural-exp.c \
84 localcharset.c \
85 relocatable.c \
86 localename.c \
87 log.c \
88 osdep.c \
89 intl-compat.c
90OBJECTS = \
91 bindtextdom.o \
92 dcgettext.o \
93 dgettext.o \
94 gettext.o \
95 finddomain.o \
96 loadmsgcat.o \
97 localealias.o \
98 textdomain.o \
99 l10nflist.o \
100 explodename.o \
101 dcigettext.o \
102 dcngettext.o \
103 dngettext.o \
104 ngettext.o \
105 plural.o \
106 plural-exp.o \
107 localcharset.o \
108 relocatable.o \
109 localename.o \
110 log.o \
111 osdep.o \
112 intl-compat.o
113
114DEFS-dcigettext.o = -DLOCALEDIR="\"$(localedir)\""
115DEFS-localealias.o = -DLOCALE_ALIAS_PATH="\"$(aliaspath)\""
116DEFS-localcharset.o = -DLIBDIR="\"$(libdir)\""
117DEFS-relocatable.o = -DINSTALLDIR="\"$(libdir)\""
252b5132
RH
118
119all: all-@USE_INCLUDED_LIBINTL@
bf070c84
SE
120all-yes: libintl.a libintl.h config.intl
121all-no: # nothing
252b5132
RH
122
123libintl.a: $(OBJECTS)
124 rm -f $@
125 $(AR) cru $@ $(OBJECTS)
126 $(RANLIB) $@
127
bf070c84
SE
128libintl.h: $(srcdir)/libgnuintl.h
129 cp $(srcdir)/libgnuintl.h $@
252b5132 130
bf070c84
SE
131.SUFFIXES:
132.SUFFIXES: .c .y .o
252b5132 133
bf070c84
SE
134.c.o:
135 $(COMPILE) $<
252b5132 136
bf070c84 137.y.c:
adda0248 138@BISON3_YES@ echo '#define USE_BISON3' > $(patsubst %.c,%-config.h,$@)
830c5a1f
JJ
139@BISON3_YES@ sed 's,%pure_parser,,;s,^/\* BISON3 \(.*\) \*/$$,\1,' $< > $@.y
140@BISON3_YES@ $(YACC) $(YFLAGS) --output $@.c $@.y
141@BISON3_YES@ sed 's/\.c\.y"/.y"/' $@.c > $@
142@BISON3_YES@ rm -f $@.c $@.y $@.h
adda0248 143@BISON3_NO@ echo '/* #define USE_BISON3 */' > $(patsubst %.c,%-config.h,$@)
830c5a1f 144@BISON3_NO@ $(YACC) $(YFLAGS) --output $@ $<
bf070c84
SE
145 rm -f $*.h
146
147INCLUDES = -I. -I$(srcdir)
252b5132 148
bf070c84
SE
149check: all
150
151# The installation targets have been disabled.
252b5132
RH
152install: install-exec install-data
153install-exec: all
252b5132 154install-data: all
bf070c84
SE
155install-strip: install
156installdirs:
252b5132 157installcheck:
252b5132 158uninstall:
252b5132 159
55f96808
DJ
160.PHONY: info dvi ps pdf html
161.PHONY: install-info install-dvi install-ps install-pdf install-html
a3ce7aa2 162
bf070c84 163info dvi ps pdf html:
55f96808 164install-info install-dvi install-ps install-pdf install-html:
252b5132 165
bf070c84
SE
166$(OBJECTS): config.h libintl.h
167bindtextdom.o dcgettext.o dcigettext.o dcngettext.o dgettext.o \
168dngettext.o finddomain.o gettext.o intl-compat.o loadmsgcat.o \
169localealias.o ngettext.o textdomain.o: gettextP.h gmo.h loadinfo.h
170dcigettext.o loadmsgcat.o: hash-string.h
171explodename.o l10nflist.o: loadinfo.h
adda0248 172dcigettext.o loadmsgcat.o plural.o plural-exp.o: plural-exp.h plural-config.h
bf070c84
SE
173dcigettext.o: eval-plural.h
174localcharset.o: localcharset.h
175localealias.o localcharset.o relocatable.o: relocatable.h
252b5132
RH
176
177tags: TAGS
252b5132 178TAGS: $(HEADERS) $(SOURCES)
bf070c84
SE
179 here=`pwd`; cd $(srcdir) && \
180 etags -o $$here/TAGS $(HEADERS) $(SOURCES)
252b5132 181
bf070c84
SE
182ctags: CTAGS
183CTAGS: $(HEADERS) $(SOURCES)
184 here=`pwd`; cd $(srcdir) && \
185 ctags -o $$here/CTAGS $(HEADERS) $(SOURCES)
252b5132 186
bf070c84 187id: ID
252b5132 188ID: $(HEADERS) $(SOURCES)
bf070c84
SE
189 here=`pwd`; cd $(srcdir) && \
190 mkid -f$$here/ID $(HEADERS) $(SOURCES)
252b5132
RH
191
192mostlyclean:
bf070c84 193 rm -f *.a *.la *.o *.obj *.lo core core.* libintl.h
252b5132
RH
194
195clean: mostlyclean
196
197distclean: clean
7c481d1e 198 rm -f config.status config.cache config.log config.intl config.h
bf070c84 199 rm -f Makefile ID TAGS
252b5132
RH
200
201maintainer-clean: distclean
bf070c84
SE
202
203# The 'make dist' targets have been disabled; the GNU toolchain handles this
204# with a script maintained separately from the Makefile.
205dist:
206distdir:
207
208# Rules to rebuild the configuration
209
210Makefile: $(srcdir)/Makefile.in config.status
211 $(SHELL) ./config.status Makefile
212
213config.intl: $(srcdir)/config.intl.in config.status
214 $(SHELL) ./config.status config.intl
7c481d1e 215
bf070c84
SE
216config.status: $(srcdir)/configure
217 $(SHELL) ./config.status --recheck
218
219$(srcdir)/configure: @MAINT@ $(srcdir)/aclocal.m4 $(srcdir)/configure.ac
220 cd $(srcdir) && $(AUTOCONF)
221
1983cb9a
RW
222aclocal_deps = \
223 $(srcdir)/configure.ac \
224 $(srcdir)/../config/codeset.m4 \
225 $(srcdir)/../config/gettext.m4 \
226 $(srcdir)/../config/glibc21.m4 \
227 $(srcdir)/../config/iconv.m4 \
228 $(srcdir)/../config/intdiv0.m4 \
229 $(srcdir)/../config/inttypes-pri.m4 \
230 $(srcdir)/../config/inttypes.m4 \
231 $(srcdir)/../config/inttypes_h.m4 \
232 $(srcdir)/../config/lcmessage.m4 \
233 $(srcdir)/../config/lib-ld.m4 \
234 $(srcdir)/../config/lib-link.m4 \
235 $(srcdir)/../config/lib-prefix.m4 \
236 $(srcdir)/../config/nls.m4 \
237 $(srcdir)/../config/po.m4 \
238 $(srcdir)/../config/progtest.m4 \
239 $(srcdir)/../config/stdint_h.m4 \
240 $(srcdir)/../config/uintmax_t.m4 \
241 $(srcdir)/../config/ulonglong.m4
242
243$(srcdir)/aclocal.m4: @MAINT@ $(aclocal_deps)
bf070c84
SE
244 cd $(srcdir) && $(ACLOCAL) -I ../config
245
246config.h: stamp-h1
247 test -f config.h || (rm -f stamp-h1 && $(MAKE) stamp-h1)
248
adda0248
JJ
249plural-config.h: plural.c
250
bf070c84
SE
251stamp-h1: $(srcdir)/config.h.in config.status
252 -rm -f stamp-h1
253 $(SHELL) ./config.status config.h
254
255$(srcdir)/config.h.in: @MAINT@ $(srcdir)/aclocal.m4 $(srcdir)/configure.ac
256 cd $(srcdir) && $(AUTOHEADER)
257 -rm -f stamp-h1
252b5132
RH
258
259# Tell versions [3.59,3.63) of GNU make not to export all variables.
260# Otherwise a system limit (for SysV at least) may be exceeded.
261.NOEXPORT:
This page took 0.872876 seconds and 4 git commands to generate.