Mercurial > hg > CbC > CbC_gcc
annotate libcpp/Makefile.in @ 117:f81c5aa9f14f
fix
author | mir3636 |
---|---|
date | Tue, 28 Nov 2017 21:17:15 +0900 |
parents | 04ced10e8804 |
children | 84e7813d76e9 |
rev | line source |
---|---|
0 | 1 # @configure_input@ |
2 # Makefile for libcpp. Run 'configure' to generate Makefile from Makefile.in | |
3 | |
111 | 4 # Copyright (C) 2004-2017 Free Software Foundation, Inc. |
0 | 5 |
6 #This file is part of libcpp. | |
7 | |
8 #libcpp is free software; you can redistribute it and/or modify | |
9 #it under the terms of the GNU General Public License as published by | |
10 #the Free Software Foundation; either version 3, or (at your option) | |
11 #any later version. | |
12 | |
13 #libcpp is distributed in the hope that it will be useful, | |
14 #but WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
16 #GNU General Public License for more details. | |
17 | |
18 #You should have received a copy of the GNU General Public License | |
19 #along with libcpp; see the file COPYING3. If not see | |
20 #<http://www.gnu.org/licenses/>. | |
21 | |
22 @SET_MAKE@ | |
23 | |
24 srcdir = @srcdir@ | |
25 top_builddir = . | |
26 VPATH = @srcdir@ | |
27 INSTALL = @INSTALL@ | |
28 AR = ar | |
29 ARFLAGS = cru | |
30 ACLOCAL = @ACLOCAL@ | |
31 AUTOCONF = @AUTOCONF@ | |
32 AUTOHEADER = @AUTOHEADER@ | |
33 CATALOGS = $(patsubst %,po/%,@CATALOGS@) | |
34 CC = @CC@ | |
35 CFLAGS = @CFLAGS@ | |
55
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
36 WARN_CFLAGS = @warn@ @c_warn@ @WARN_PEDANTIC@ @WERROR@ |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
37 CXX = @CXX@ |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
38 CXXFLAGS = @CXXFLAGS@ |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
39 WARN_CXXFLAGS = @warn@ @WARN_PEDANTIC@ @WERROR@ |
0 | 40 CPP = @CPP@ |
41 CPPFLAGS = @CPPFLAGS@ | |
42 EXEEXT = @EXEEXT@ | |
43 GMSGFMT = @GMSGFMT@ | |
44 INCINTL = @INCINTL@ | |
45 INSTALL_DATA = @INSTALL_DATA@ | |
46 INSTALL_PROGRAM = @INSTALL_PROGRAM@ | |
47 INSTALL_SCRIPT = @INSTALL_SCRIPT@ | |
48 LDFLAGS = @LDFLAGS@ | |
49 LIBICONV = @LIBICONV@ | |
50 LIBINTL = @LIBINTL@ | |
51 PACKAGE = @PACKAGE@ | |
52 RANLIB = @RANLIB@ | |
53 SHELL = @SHELL@ | |
54 USED_CATALOGS = @USED_CATALOGS@ | |
55 XGETTEXT = @XGETTEXT@ | |
55
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
56 CCDEPMODE = @CCDEPMODE@ |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
57 CXXDEPMODE = @CXXDEPMODE@ |
0 | 58 DEPDIR = @DEPDIR@ |
111 | 59 NOEXCEPTION_FLAGS = @noexception_flags@ |
60 PICFLAG = @PICFLAG@ | |
0 | 61 |
62 datarootdir = @datarootdir@ | |
63 datadir = @datadir@ | |
64 exec_prefix = @prefix@ | |
65 libdir = @libdir@ | |
66 localedir = $(datadir)/locale | |
67 prefix = @prefix@ | |
68 | |
69 MSGMERGE = msgmerge | |
70 mkinstalldirs = $(SHELL) $(srcdir)/../mkinstalldirs | |
71 depcomp = $(SHELL) $(srcdir)/../depcomp | |
72 | |
73 INCLUDES = -I$(srcdir) -I. -I$(srcdir)/../include @INCINTL@ \ | |
74 -I$(srcdir)/include | |
75 | |
111 | 76 ALL_CFLAGS = $(CFLAGS) $(WARN_CFLAGS) $(INCLUDES) $(CPPFLAGS) $(PICFLAG) |
77 ALL_CXXFLAGS = $(CXXFLAGS) $(WARN_CXXFLAGS) $(NOEXCEPTION_FLAGS) $(INCLUDES) \ | |
78 $(CPPFLAGS) $(PICFLAG) | |
55
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
79 |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
80 # The name of the compiler to use. |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
81 COMPILER = $(CXX) |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
82 COMPILER_FLAGS = $(ALL_CXXFLAGS) |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
83 DEPMODE = $(CXXDEPMODE) |
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
84 |
0 | 85 |
86 libcpp_a_OBJS = charset.o directives.o directives-only.o errors.o \ | |
87 expr.o files.o identifiers.o init.o lex.o line-map.o macro.o \ | |
88 mkdeps.o pch.o symtab.o traditional.o | |
89 | |
90 libcpp_a_SOURCES = charset.c directives.c directives-only.c errors.c \ | |
91 expr.c files.c identifiers.c init.c lex.c line-map.c macro.c \ | |
92 mkdeps.c pch.c symtab.c traditional.c | |
93 | |
55
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
94 all: libcpp.a $(USED_CATALOGS) |
0 | 95 |
96 .SUFFIXES: | |
97 .SUFFIXES: .c .gmo .o .obj .po .pox | |
98 | |
99 libcpp.a: $(libcpp_a_OBJS) | |
100 -rm -f libcpp.a | |
101 $(AR) $(ARFLAGS) libcpp.a $(libcpp_a_OBJS) | |
102 $(RANLIB) libcpp.a | |
103 | |
104 # Rules to rebuild the configuration | |
105 | |
106 Makefile: $(srcdir)/Makefile.in config.status | |
107 $(SHELL) ./config.status Makefile | |
108 | |
109 config.status: $(srcdir)/configure | |
110 $(SHELL) ./config.status --recheck | |
111 | |
112 $(srcdir)/configure: @MAINT@ $(srcdir)/aclocal.m4 | |
113 cd $(srcdir) && $(AUTOCONF) | |
114 | |
115 $(srcdir)/aclocal.m4: @MAINT@ $(srcdir)/../config/acx.m4 \ | |
116 $(srcdir)/../config/gettext-sister.m4 $(srcdir)/../config/iconv.m4 \ | |
117 $(srcdir)/../config/codeset.m4 $(srcdir)/../config/lib-ld.m4 \ | |
118 $(srcdir)/../config/lib-link.m4 $(srcdir)/../config/lib-prefix.m4 \ | |
119 $(srcdir)/../config/override.m4 $(srcdir)/../config/proginstall.m4 \ | |
120 $(srcdir)/configure.ac | |
121 cd $(srcdir) && $(ACLOCAL) -I ../config | |
122 | |
123 config.h: stamp-h1 | |
124 test -f config.h || (rm -f stamp-h1 && $(MAKE) stamp-h1) | |
125 | |
126 stamp-h1: $(srcdir)/config.in config.status | |
127 -rm -f stamp-h1 | |
128 $(SHELL) ./config.status config.h | |
129 | |
130 $(srcdir)/config.in: @MAINT@ $(srcdir)/configure.ac | |
131 cd $(srcdir) && $(AUTOHEADER) | |
132 -rm -f stamp-h1 | |
133 | |
134 # It is not possible to get LOCALEDIR defined in config.h because | |
135 # the value it needs to be defined to is only determined in the | |
136 # Makefile. Hence we do this instead. | |
137 localedir.h: localedir.hs; @true | |
138 localedir.hs: Makefile | |
139 echo "#define LOCALEDIR \"$(localedir)\"" > localedir.new | |
140 $(srcdir)/../move-if-change localedir.new localedir.h | |
141 echo timestamp > localedir.hs | |
142 | |
143 # Installation rules and other phony targets | |
144 | |
145 # These rule has to look for .gmo modules in both srcdir and | |
146 # the cwd, and has to check that we actually have a catalog | |
147 # for each language, in case they weren't built or included | |
148 # with the distribution. | |
149 installdirs: | |
150 @$(mkinstalldirs) $(DESTDIR)$(datadir); \ | |
151 cats="$(CATALOGS)"; for cat in $$cats; do \ | |
152 lang=`basename $$cat | sed 's/\.gmo$$//'`; \ | |
153 if [ -f $$cat ] || [ -f $(srcdir)/$$cat ]; then \ | |
154 dir=$(localedir)/$$lang/LC_MESSAGES; \ | |
155 $(mkinstalldirs) $(DESTDIR)$$dir || exit 1; \ | |
156 fi; \ | |
157 done | |
158 | |
159 install-strip install: all installdirs | |
160 cats="$(CATALOGS)"; for cat in $$cats; do \ | |
161 lang=`basename $$cat | sed 's/\.gmo$$//'`; \ | |
162 if [ -f $$cat ]; then :; \ | |
163 elif [ -f $(srcdir)/$$cat ]; then cat=$(srcdir)/$$cat; \ | |
164 else continue; \ | |
165 fi; \ | |
166 dir=$(localedir)/$$lang/LC_MESSAGES; \ | |
167 echo $(INSTALL_DATA) $$cat $(DESTDIR)$$dir/$(PACKAGE).mo; \ | |
168 $(INSTALL_DATA) $$cat $(DESTDIR)$$dir/$(PACKAGE).mo; \ | |
169 done | |
170 | |
171 mostlyclean: | |
172 -rm -f *.o | |
173 | |
174 clean: mostlyclean | |
55
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
175 -rm -rf libcpp.a $(srcdir)/autom4te.cache |
0 | 176 |
177 distclean: clean | |
178 -rm -f config.h stamp-h1 config.status config.cache config.log \ | |
179 configure.lineno configure.status.lineno Makefile localedir.h \ | |
180 localedir.hs $(DEPDIR)/*.Po | |
181 -rmdir $(DEPDIR) | |
182 | |
183 maintainer-clean: distclean | |
184 @echo "This command is intended for maintainers to use" | |
185 @echo "it deletes files that may require special tools to rebuild." | |
186 -rm -f $(srcdir)/configure $(srcdir)/aclocal.m4 | |
187 | |
188 check: | |
189 installcheck: | |
190 dvi: | |
191 pdf: | |
192 html: | |
193 info: | |
194 install-info: | |
195 install-pdf: | |
196 install-man: | |
197 install-html: | |
198 | |
199 update-po: $(CATALOGS:.gmo=.pox) | |
200 | |
201 .PHONY: installdirs install install-strip mostlyclean clean distclean \ | |
202 maintainer-clean check installcheck dvi pdf html info install-info \ | |
203 install-man update-po install-html | |
204 | |
205 # Dependency rule. | |
55
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
206 COMPILE.base = $(COMPILER) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(COMPILER_FLAGS) -c |
0 | 207 ifeq ($(DEPMODE),depmode=gcc3) |
208 # Note that we put the dependencies into a .Tpo file, then move them | |
209 # into place if the compile succeeds. We need this because gcc does | |
210 # not atomically write the dependency output file. | |
211 COMPILE = $(COMPILE.base) -o $@ -MT $@ -MMD -MP -MF $(DEPDIR)/$*.Tpo | |
212 POSTCOMPILE = @mv $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po | |
213 else | |
214 COMPILE = source='$<' object='$@' libtool=no DEPDIR=$(DEPDIR) $(DEPMODE) \ | |
215 $(depcomp) $(COMPILE.base) | |
216 # depcomp handles atomicity for us, so we don't need a postcompile | |
217 # step. | |
218 POSTCOMPILE = | |
219 endif | |
220 | |
221 # Implicit rules and I18N | |
222 | |
223 .c.o: | |
224 $(COMPILE) $< | |
225 $(POSTCOMPILE) | |
226 | |
227 # N.B. We do not attempt to copy these into $(srcdir). | |
228 .po.gmo: | |
229 $(mkinstalldirs) po | |
230 $(GMSGFMT) --statistics -o $@ $< | |
231 | |
232 # The new .po has to be gone over by hand, so we deposit it into | |
233 # build/po with a different extension. | |
234 # If build/po/$(PACKAGE).pot exists, use it (it was just created), | |
235 # else use the one in srcdir. | |
236 .po.pox: | |
237 $(mkinstalldirs) po | |
238 $(MSGMERGE) $< `if test -f po/$(PACKAGE).pot; \ | |
239 then echo po/$(PACKAGE).pot; \ | |
240 else echo $(srcdir)/po/$(PACKAGE).pot; fi` -o $@ | |
241 | |
242 # Rule for regenerating the message template. | |
243 $(PACKAGE).pot: po/$(PACKAGE).pot | |
244 po/$(PACKAGE).pot: $(libcpp_a_SOURCES) | |
245 $(mkinstalldirs) $(srcdir)/po | |
246 $(XGETTEXT) --default-domain=$(PACKAGE) \ | |
247 --keyword=_ --keyword=N_ \ | |
63
b7f97abdc517
update gcc from gcc-4.5.0 to gcc-4.6
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
55
diff
changeset
|
248 --keyword=cpp_error:3 \ |
b7f97abdc517
update gcc from gcc-4.5.0 to gcc-4.6
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
55
diff
changeset
|
249 --keyword=cpp_warning:3 \ |
b7f97abdc517
update gcc from gcc-4.5.0 to gcc-4.6
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
55
diff
changeset
|
250 --keyword=cpp_pedwarning:3 \ |
b7f97abdc517
update gcc from gcc-4.5.0 to gcc-4.6
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
55
diff
changeset
|
251 --keyword=cpp_warning_syshdr:3 \ |
0 | 252 --keyword=cpp_error_with_line:5 \ |
63
b7f97abdc517
update gcc from gcc-4.5.0 to gcc-4.6
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
55
diff
changeset
|
253 --keyword=cpp_warning_with_line:5 \ |
b7f97abdc517
update gcc from gcc-4.5.0 to gcc-4.6
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
55
diff
changeset
|
254 --keyword=cpp_pedwarning_with_line:5 \ |
b7f97abdc517
update gcc from gcc-4.5.0 to gcc-4.6
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
55
diff
changeset
|
255 --keyword=cpp_warning_with_line_syshdr:5 \ |
b7f97abdc517
update gcc from gcc-4.5.0 to gcc-4.6
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
55
diff
changeset
|
256 --keyword=cpp_errno:3 \ |
0 | 257 --keyword=SYNTAX_ERROR --keyword=SYNTAX_ERROR2 \ |
258 --copyright-holder="Free Software Foundation, Inc." \ | |
111 | 259 --msgid-bugs-address="https://gcc.gnu.org/bugs/" \ |
0 | 260 --language=c -o po/$(PACKAGE).pot.tmp $^ |
261 sed 's:$(srcdir)/::g' <po/$(PACKAGE).pot.tmp >po/$(PACKAGE).pot | |
262 rm po/$(PACKAGE).pot.tmp | |
263 | |
55
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
264 TAGS_SOURCES = $(libcpp_a_SOURCES) internal.h ucnid.h \ |
0 | 265 include/line-map.h include/symtab.h include/cpp-id-data.h \ |
266 include/cpplib.h include/mkdeps.h system.h | |
267 | |
268 TAGS: $(TAGS_SOURCES) | |
269 cd $(srcdir) && etags $(TAGS_SOURCES) | |
270 | |
271 # Tell versions [3.59,3.63) of GNU make to not export all variables. | |
272 # Otherwise a system limit (for SysV at least) may be exceeded. | |
273 .NOEXPORT: | |
274 | |
275 # Dependencies | |
55
77e2b8dfacca
update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
276 -include $(patsubst %.o, $(DEPDIR)/%.Po, $(libcpp_a_OBJS)) |
0 | 277 |
278 # Dependencies on generated headers have to be explicit. | |
279 init.o: localedir.h |