* tree.h (crc32_string): Declare.
[official-gcc.git] / intl / Makefile.in
bloba21675efcc4ee20a83acf628d75511f78ba4f672
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)
7 # any later version.
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,
17 # USA.
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.
24 PACKAGE = @PACKAGE@
25 VERSION = @VERSION@
27 SHELL = /bin/sh
29 srcdir = @srcdir@
30 VPATH = $(srcdir)
32 prefix = @prefix@
33 exec_prefix = @exec_prefix@
34 transform = @program_transform_name@
35 libdir = @libdir@
36 includedir = @includedir@
37 datadir = @datadir@
38 localedir = $(datadir)/locale
39 gettextsrcdir = $(datadir)/gettext/intl
40 aliaspath = $(localedir)
42 INSTALL = @INSTALL@
43 INSTALL_DATA = @INSTALL_DATA@
44 MKINSTALLDIRS = @MKINSTALLDIRS@
45 mkinstalldirs = $(SHELL) $(MKINSTALLDIRS)
47 l = @INTL_LIBTOOL_SUFFIX_PREFIX@
49 AR = ar
50 CC = @CC@
51 RANLIB = @RANLIB@
52 YACC = @INTLBISON@ -y -d
53 YFLAGS = --name-prefix=__gettext
54 CPPFLAGS = @CPPFLAGS@
55 CFLAGS = @CFLAGS@
56 LDFLAGS = @LDFLAGS@
57 LIBS = @LIBS@
58 DEFS = -DHAVE_CONFIG_H
60 COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(XCFLAGS)
62 HEADERS = \
63 gmo.h \
64 gettextP.h \
65 hash-string.h \
66 loadinfo.h \
67 plural-exp.h \
68 eval-plural.h \
69 localcharset.h \
70 relocatable.h \
71 os2compat.h \
72 libgnuintl.h.in
73 SOURCES = \
74 bindtextdom.c \
75 dcgettext.c \
76 dgettext.c \
77 gettext.c \
78 finddomain.c \
79 loadmsgcat.c \
80 localealias.c \
81 textdomain.c \
82 l10nflist.c \
83 explodename.c \
84 dcigettext.c \
85 dcngettext.c \
86 dngettext.c \
87 ngettext.c \
88 plural.y \
89 plural-exp.c \
90 localcharset.c \
91 relocatable.c \
92 localename.c \
93 log.c \
94 osdep.c \
95 os2compat.c \
96 intl-compat.c
97 OBJECTS = \
98 bindtextdom.o \
99 dcgettext.o \
100 dgettext.o \
101 gettext.o \
102 finddomain.o \
103 loadmsgcat.o \
104 localealias.o \
105 textdomain.o \
106 l10nflist.o \
107 explodename.o \
108 dcigettext.o \
109 dcngettext.o \
110 dngettext.o \
111 ngettext.o \
112 plural.o \
113 plural-exp.o \
114 localcharset.o \
115 relocatable.o \
116 localename.o \
117 log.o \
118 osdep.o \
119 intl-compat.o
121 all: all-@USE_INCLUDED_LIBINTL@
122 all-yes: libintl.a libintl.h
123 all-no: # nothing
125 libintl.a: $(OBJECTS)
126 rm -f $@
127 $(AR) cru $@ $(OBJECTS)
128 $(RANLIB) $@
130 libintl.h: $(srcdir)/libgnuintl.h
131 cat $(srcdir)/libgnuintl.h > $@
133 .SUFFIXES:
134 .SUFFIXES: .c .y .o
136 .c.o:
137 $(COMPILE) $<
139 .y.c:
140 $(YACC) $(YFLAGS) --output $@ $<
141 rm -f $*.h
143 INCLUDES = -I. -I$(srcdir) -I..
145 check: all
147 # The installation targets have been disabled.
148 install: install-exec install-data
149 install-exec: all
150 install-data: all
151 install-strip: install
152 installdirs:
153 installcheck:
154 uninstall:
156 info dvi ps pdf html:
158 $(OBJECTS): config.h libintl.h
159 bindtextdom.o dcgettext.o dcigettext.o dcngettext.o dgettext.o \
160 dngettext.o finddomain.o gettext.o intl-compat.o loadmsgcat.o \
161 localealias.o ngettext.o textdomain.o: gettextP.h gmo.h loadinfo.h
162 dcigettext.o loadmsgcat.o: hash-string.h
163 explodename.o l10nflist.o: loadinfo.h
164 dcigettext.o loadmsgcat.o plural.o plural-exp.o: plural-exp.h
165 dcigettext.o: eval-plural.h
166 localcharset.o: localcharset.h
167 localealias.o localcharset.o relocatable.o: relocatable.h
169 tags: TAGS
171 TAGS: $(HEADERS) $(SOURCES)
172 here=`pwd`; cd $(srcdir) && etags -o $$here/TAGS $(HEADERS) $(SOURCES)
174 ctags: CTAGS
176 CTAGS: $(HEADERS) $(SOURCES)
177 here=`pwd`; cd $(srcdir) && ctags -o $$here/CTAGS $(HEADERS) $(SOURCES)
179 id: ID
181 ID: $(HEADERS) $(SOURCES)
182 here=`pwd`; cd $(srcdir) && mkid -f$$here/ID $(HEADERS) $(SOURCES)
185 mostlyclean:
186 rm -f *.a *.la *.o *.obj *.lo core core.*
187 rm -f libgnuintl.h libintl.h charset.alias ref-add.sed ref-del.sed
188 rm -f -r .libs _libs
190 clean: mostlyclean
192 distclean: clean
193 rm -f Makefile ID TAGS
194 if test "$(PACKAGE)" = "gettext-runtime" || test "$(PACKAGE)" = "gettext-tools"; then \
195 rm -f ChangeLog.inst $(DISTFILES.normal); \
196 else \
197 : ; \
200 maintainer-clean: distclean
202 # The 'make dist' targets have been disabled; the GNU toolchain handles this
203 # with a script maintained separately from the Makefile.
204 dist:
205 distdir:
207 Makefile: Makefile.in config.status
208 CONFIG_HEADERS= CONFIG_FILES=Makefile $(SHELL) ./config.status
210 config.h: cstamp-h; @:
211 cstamp-h: config.h.in config.status
212 CONFIG_HEADERS=config.h CONFIG_FILES= $(SHELL) config.status
213 echo timestamp > cstamp-h
215 config.status: configure
216 $(SHELL) config.status --recheck
218 # Tell versions [3.59,3.63) of GNU make not to export all variables.
219 # Otherwise a system limit (for SysV at least) may be exceeded.
220 .NOEXPORT: