OSDN Git Service

93ba8fc726da1d71417b6614c400cd59db6d5d94
[pf3gnuchains/gcc-fork.git] / intl / Makefile.in
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
16 # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301,
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
24 SHELL = @SHELL@
25
26 srcdir = @srcdir@
27 VPATH = $(srcdir)
28
29 prefix = @prefix@
30 exec_prefix = @exec_prefix@
31 transform = @program_transform_name@
32 libdir = @libdir@
33 includedir = @includedir@
34 datadir = @datadir@
35 localedir = $(datadir)/locale
36 aliaspath = $(localedir)
37
38 AR = ar
39 ACLOCAL = @ACLOCAL@
40 AUTOCONF = @AUTOCONF@
41 AUTOHEADER = @AUTOHEADER@
42 CC = @CC@
43 RANLIB = @RANLIB@
44 YACC = @INTLBISON@ -y -d
45 YFLAGS = --name-prefix=__gettext
46 CPPFLAGS = @CPPFLAGS@
47 CFLAGS = @CFLAGS@
48 LDFLAGS = @LDFLAGS@
49 LIBS = @LIBS@
50 DEFS = -DHAVE_CONFIG_H
51
52 COMPILE = $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(DEFS-$@) $(INCLUDES)
53
54 HEADERS = \
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
64 SOURCES = \
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
87 OBJECTS = \
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
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)\""
115
116 all: all-@USE_INCLUDED_LIBINTL@
117 all-yes: libintl.a libintl.h config.intl
118 all-no: # nothing
119
120 libintl.a: $(OBJECTS)
121         rm -f $@
122         $(AR) cru $@ $(OBJECTS)
123         $(RANLIB) $@
124
125 libintl.h: $(srcdir)/libgnuintl.h
126         cp $(srcdir)/libgnuintl.h $@
127
128 .SUFFIXES:
129 .SUFFIXES: .c .y .o
130
131 .c.o:
132         $(COMPILE) $<
133
134 .y.c:
135         $(YACC) $(YFLAGS) --output $@ $<
136         rm -f $*.h
137
138 INCLUDES = -I. -I$(srcdir)
139
140 check: all
141
142 # The installation targets have been disabled.
143 install: install-exec install-data
144 install-exec: all
145 install-data: all
146 install-strip: install
147 installdirs:
148 installcheck:
149 uninstall:
150
151 .PHONY: info dvi ps pdf html install-html
152
153 info dvi ps pdf html:
154 install-html:
155
156 $(OBJECTS): config.h libintl.h
157 bindtextdom.o dcgettext.o dcigettext.o dcngettext.o dgettext.o \
158 dngettext.o finddomain.o gettext.o intl-compat.o loadmsgcat.o \
159 localealias.o ngettext.o textdomain.o: gettextP.h gmo.h loadinfo.h
160 dcigettext.o loadmsgcat.o: hash-string.h
161 explodename.o l10nflist.o: loadinfo.h
162 dcigettext.o loadmsgcat.o plural.o plural-exp.o: plural-exp.h
163 dcigettext.o: eval-plural.h
164 localcharset.o: localcharset.h
165 localealias.o localcharset.o relocatable.o: relocatable.h
166
167 tags: TAGS
168 TAGS: $(HEADERS) $(SOURCES)
169         here=`pwd`; cd $(srcdir) && \
170                 etags -o $$here/TAGS $(HEADERS) $(SOURCES)
171
172 ctags: CTAGS
173 CTAGS: $(HEADERS) $(SOURCES)
174         here=`pwd`; cd $(srcdir) && \
175                 ctags -o $$here/CTAGS $(HEADERS) $(SOURCES)
176
177 id: ID
178 ID: $(HEADERS) $(SOURCES)
179         here=`pwd`; cd $(srcdir) && \
180                 mkid -f$$here/ID $(HEADERS) $(SOURCES)
181
182 mostlyclean:
183         rm -f *.a *.la *.o *.obj *.lo core core.* libintl.h
184
185 clean: mostlyclean
186
187 distclean: clean
188         rm -f Makefile ID TAGS
189
190 maintainer-clean: distclean
191
192 # The 'make dist' targets have been disabled; the GNU toolchain handles this
193 # with a script maintained separately from the Makefile.
194 dist:
195 distdir:
196
197 # Rules to rebuild the configuration
198
199 Makefile: $(srcdir)/Makefile.in config.status
200         $(SHELL) ./config.status Makefile
201
202 config.intl: $(srcdir)/config.intl.in config.status
203         $(SHELL) ./config.status config.intl
204         
205 config.status: $(srcdir)/configure
206         $(SHELL) ./config.status --recheck
207
208 $(srcdir)/configure: @MAINT@ $(srcdir)/aclocal.m4 $(srcdir)/configure.ac
209         cd $(srcdir) && $(AUTOCONF)
210
211 $(srcdir)/aclocal.m4: @MAINT@ $(srcdir)/configure.ac \
212         $(srcdir)/../config/codeset.m4 $(srcdir)/../config/gettext.m4 \
213         $(srcdir)/../config/glibc21.m4 $(srcdir)/../config/iconv.m4 \
214         $(srcdir)/../config/intdiv0.m4 $(srcdir)/../config/inttypes-pri.m4 \
215         $(srcdir)/../config/inttypes.m4 $(srcdir)/../config/inttypes_h.m4 \
216         $(srcdir)/../config/lcmessage.m4 $(srcdir)/../config/lib-ld.m4 \
217         $(srcdir)/../config/lib-link.m4 $(srcdir)/../config/lib-prefix.m4 \
218         $(srcdir)/../config/nls.m4 $(srcdir)/../config/po.m4 \
219         $(srcdir)/../config/progtest.m4 $(srcdir)/../config/stdint_h.m4 \
220         $(srcdir)/../config/uintmax_t.m4 $(srcdir)/../config/ulonglong.m4
221         cd $(srcdir) && $(ACLOCAL) -I ../config
222
223 config.h: stamp-h1
224         test -f config.h || (rm -f stamp-h1 && $(MAKE) stamp-h1)
225
226 stamp-h1: $(srcdir)/config.h.in config.status
227         -rm -f stamp-h1
228         $(SHELL) ./config.status config.h
229
230 $(srcdir)/config.h.in: @MAINT@ $(srcdir)/aclocal.m4 $(srcdir)/configure.ac
231         cd $(srcdir) && $(AUTOHEADER)
232         -rm -f stamp-h1
233         
234
235 # Tell versions [3.59,3.63) of GNU make not to export all variables.
236 # Otherwise a system limit (for SysV at least) may be exceeded.
237 .NOEXPORT: