]> git.ipfire.org Git - thirdparty/gcc.git/blame - intl/Makefile.in
2004-09-22 Daniel Berlin <dberlin@dberlin.org>
[thirdparty/gcc.git] / intl / Makefile.in
CommitLineData
1e12d536 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
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
24PACKAGE = @PACKAGE@
25VERSION = @VERSION@
26
27SHELL = /bin/sh
28
29srcdir = @srcdir@
30VPATH = $(srcdir)
31
32prefix = @prefix@
33exec_prefix = @exec_prefix@
34transform = @program_transform_name@
35libdir = @libdir@
36includedir = @includedir@
37datadir = @datadir@
38localedir = $(datadir)/locale
1e12d536 39aliaspath = $(localedir)
40
1e12d536 41AR = ar
42CC = @CC@
43RANLIB = @RANLIB@
44YACC = @INTLBISON@ -y -d
45YFLAGS = --name-prefix=__gettext
46CPPFLAGS = @CPPFLAGS@
47CFLAGS = @CFLAGS@
48LDFLAGS = @LDFLAGS@
49LIBS = @LIBS@
50DEFS = -DHAVE_CONFIG_H
51
c6976b58 52COMPILE = $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(DEFS-$@) $(INCLUDES)
1e12d536 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 \
c6976b58 63 libgnuintl.h
1e12d536 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 \
1e12d536 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
c6976b58 111DEFS-dcigettext.o = -DLOCALEDIR="\"$(localedir)\""
112DEFS-localealias.o = -DLOCALE_ALIAS_PATH="\"$(aliaspath)\""
113DEFS-localcharset.o = -DLIBDIR="\"$(libdir)\""
114DEFS-relocatable.o = -DINSTALLDIR="\"$(libdir)\""
115
1e12d536 116all: all-@USE_INCLUDED_LIBINTL@
c6976b58 117all-yes: libintl.a libintl.h config.intl
1e12d536 118all-no: # nothing
119
120libintl.a: $(OBJECTS)
121 rm -f $@
122 $(AR) cru $@ $(OBJECTS)
123 $(RANLIB) $@
124
125libintl.h: $(srcdir)/libgnuintl.h
c6976b58 126 cp $(srcdir)/libgnuintl.h $@
1e12d536 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
c6976b58 138INCLUDES = -I. -I$(srcdir)
1e12d536 139
140check: all
141
142# The installation targets have been disabled.
143install: install-exec install-data
144install-exec: all
145install-data: all
146install-strip: install
147installdirs:
148installcheck:
149uninstall:
150
151info dvi ps pdf html:
152
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
163
164tags: TAGS
1e12d536 165TAGS: $(HEADERS) $(SOURCES)
c6976b58 166 here=`pwd`; cd $(srcdir) && \
167 etags -o $$here/TAGS $(HEADERS) $(SOURCES)
1e12d536 168
169ctags: CTAGS
1e12d536 170CTAGS: $(HEADERS) $(SOURCES)
c6976b58 171 here=`pwd`; cd $(srcdir) && \
172 ctags -o $$here/CTAGS $(HEADERS) $(SOURCES)
1e12d536 173
174id: ID
1e12d536 175ID: $(HEADERS) $(SOURCES)
c6976b58 176 here=`pwd`; cd $(srcdir) && \
177 mkid -f$$here/ID $(HEADERS) $(SOURCES)
1e12d536 178
179mostlyclean:
c6976b58 180 rm -f *.a *.la *.o *.obj *.lo core core.* libintl.h
1e12d536 181
182clean: mostlyclean
183
184distclean: clean
185 rm -f Makefile ID TAGS
1e12d536 186
187maintainer-clean: distclean
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
194Makefile: Makefile.in config.status
195 CONFIG_HEADERS= CONFIG_FILES=Makefile $(SHELL) ./config.status
196
c6976b58 197config.intl: config.intl.in config.status
198 CONFIG_HEADERS= CONFIG_FILES=config.intl $(SHELL) ./config.status
199
1e12d536 200config.h: cstamp-h; @:
201cstamp-h: config.h.in config.status
202 CONFIG_HEADERS=config.h CONFIG_FILES= $(SHELL) config.status
203 echo timestamp > cstamp-h
204
205config.status: configure
206 $(SHELL) config.status --recheck
207
208# Tell versions [3.59,3.63) of GNU make not to export all variables.
209# Otherwise a system limit (for SysV at least) may be exceeded.
210.NOEXPORT: