Makefile.am (libstdc++-symbol.ver): Make sure the build tree copy of libstdc++-symbol...
[gcc.git] / libstdc++-v3 / src / Makefile.in
1 # Makefile.in generated by automake 1.9.6 from Makefile.am.
2 # @configure_input@
3
4 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5 # 2003, 2004, 2005 Free Software Foundation, Inc.
6 # This Makefile.in is free software; the Free Software Foundation
7 # gives unlimited permission to copy and/or distribute it,
8 # with or without modifications, as long as this notice is preserved.
9
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13 # PARTICULAR PURPOSE.
14
15 @SET_MAKE@
16
17 srcdir = @srcdir@
18 top_srcdir = @top_srcdir@
19 pkgdatadir = $(datadir)/@PACKAGE@
20 pkglibdir = $(libdir)/@PACKAGE@
21 pkgincludedir = $(includedir)/@PACKAGE@
22 top_builddir = ..
23 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
24 INSTALL = @INSTALL@
25 install_sh_DATA = $(install_sh) -c -m 644
26 install_sh_PROGRAM = $(install_sh) -c
27 install_sh_SCRIPT = $(install_sh) -c
28 INSTALL_HEADER = $(INSTALL_DATA)
29 transform = $(program_transform_name)
30 NORMAL_INSTALL = :
31 PRE_INSTALL = :
32 POST_INSTALL = :
33 NORMAL_UNINSTALL = :
34 PRE_UNINSTALL = :
35 POST_UNINSTALL = :
36 build_triplet = @build@
37 host_triplet = @host@
38 target_triplet = @target@
39 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
40 $(top_srcdir)/fragment.am
41 subdir = src
42 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
43 am__aclocal_m4_deps = $(top_srcdir)/../config/enable.m4 \
44 $(top_srcdir)/../config/iconv.m4 \
45 $(top_srcdir)/../config/lead-dot.m4 \
46 $(top_srcdir)/../config/lib-ld.m4 \
47 $(top_srcdir)/../config/lib-link.m4 \
48 $(top_srcdir)/../config/lib-prefix.m4 \
49 $(top_srcdir)/../config/multi.m4 \
50 $(top_srcdir)/../config/no-executables.m4 \
51 $(top_srcdir)/../config/unwind_ipinfo.m4 \
52 $(top_srcdir)/../libtool.m4 $(top_srcdir)/../ltoptions.m4 \
53 $(top_srcdir)/../ltsugar.m4 $(top_srcdir)/../ltversion.m4 \
54 $(top_srcdir)/crossconfig.m4 $(top_srcdir)/linkage.m4 \
55 $(top_srcdir)/acinclude.m4 $(top_srcdir)/../config/tls.m4 \
56 $(top_srcdir)/configure.ac
57 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
58 $(ACLOCAL_M4)
59 CONFIG_HEADER = $(top_builddir)/config.h
60 CONFIG_CLEAN_FILES =
61 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
62 am__vpath_adj = case $$p in \
63 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
64 *) f=$$p;; \
65 esac;
66 am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
67 am__installdirs = "$(DESTDIR)$(toolexeclibdir)"
68 toolexeclibLTLIBRARIES_INSTALL = $(INSTALL)
69 LTLIBRARIES = $(toolexeclib_LTLIBRARIES)
70 am__libstdc___la_SOURCES_DIST = bitmap_allocator.cc pool_allocator.cc \
71 mt_allocator.cc codecvt.cc compatibility.cc complex_io.cc \
72 ctype.cc debug.cc debug_list.cc functexcept.cc globals_io.cc \
73 ios.cc ios_failure.cc ios_init.cc ios_locale.cc limits.cc \
74 list.cc locale.cc locale_init.cc locale_facets.cc \
75 localename.cc stdexcept.cc strstream.cc tree.cc \
76 allocator-inst.cc concept-inst.cc fstream-inst.cc ext-inst.cc \
77 ios-inst.cc iostream-inst.cc istream-inst.cc istream.cc \
78 locale-inst.cc misc-inst.cc ostream-inst.cc sstream-inst.cc \
79 streambuf-inst.cc streambuf.cc string-inst.cc valarray-inst.cc \
80 wlocale-inst.cc wstring-inst.cc atomicity.cc \
81 codecvt_members.cc collate_members.cc ctype_members.cc \
82 messages_members.cc monetary_members.cc numeric_members.cc \
83 time_members.cc basic_file.cc c++locale.cc \
84 compatibility-ldbl.cc
85 am__objects_1 = atomicity.lo codecvt_members.lo collate_members.lo \
86 ctype_members.lo messages_members.lo monetary_members.lo \
87 numeric_members.lo time_members.lo
88 am__objects_2 = basic_file.lo c++locale.lo
89 @GLIBCXX_LDBL_COMPAT_TRUE@am__objects_3 = compatibility-ldbl.lo
90 am__objects_4 = bitmap_allocator.lo pool_allocator.lo mt_allocator.lo \
91 codecvt.lo compatibility.lo complex_io.lo ctype.lo debug.lo \
92 debug_list.lo functexcept.lo globals_io.lo ios.lo \
93 ios_failure.lo ios_init.lo ios_locale.lo limits.lo list.lo \
94 locale.lo locale_init.lo locale_facets.lo localename.lo \
95 stdexcept.lo strstream.lo tree.lo allocator-inst.lo \
96 concept-inst.lo fstream-inst.lo ext-inst.lo ios-inst.lo \
97 iostream-inst.lo istream-inst.lo istream.lo locale-inst.lo \
98 misc-inst.lo ostream-inst.lo sstream-inst.lo streambuf-inst.lo \
99 streambuf.lo string-inst.lo valarray-inst.lo wlocale-inst.lo \
100 wstring-inst.lo $(am__objects_1) $(am__objects_2) \
101 $(am__objects_3)
102 am_libstdc___la_OBJECTS = $(am__objects_4)
103 libstdc___la_OBJECTS = $(am_libstdc___la_OBJECTS)
104 DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
105 depcomp =
106 am__depfiles_maybe =
107 CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
108 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
109 CXXLD = $(CXX)
110 SOURCES = $(libstdc___la_SOURCES)
111 DIST_SOURCES = $(am__libstdc___la_SOURCES_DIST)
112 ETAGS = etags
113 CTAGS = ctags
114 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
115 VPATH = $(top_srcdir)/src:$(top_srcdir)
116 ABI_TWEAKS_SRCDIR = @ABI_TWEAKS_SRCDIR@
117 ACLOCAL = @ACLOCAL@
118 ALLOCATOR_H = @ALLOCATOR_H@
119 ALLOCATOR_NAME = @ALLOCATOR_NAME@
120 AMTAR = @AMTAR@
121 AR = @AR@
122 AS = @AS@
123 ATOMICITY_SRCDIR = @ATOMICITY_SRCDIR@
124 ATOMIC_WORD_SRCDIR = @ATOMIC_WORD_SRCDIR@
125 AUTOCONF = @AUTOCONF@
126 AUTOHEADER = @AUTOHEADER@
127 AUTOMAKE = @AUTOMAKE@
128 AWK = @AWK@
129 BASIC_FILE_CC = @BASIC_FILE_CC@
130 BASIC_FILE_H = @BASIC_FILE_H@
131 CC = @CC@
132 CCODECVT_CC = @CCODECVT_CC@
133 CCOLLATE_CC = @CCOLLATE_CC@
134 CCTYPE_CC = @CCTYPE_CC@
135 CFLAGS = @CFLAGS@
136 CLOCALE_CC = @CLOCALE_CC@
137 CLOCALE_H = @CLOCALE_H@
138 CLOCALE_INTERNAL_H = @CLOCALE_INTERNAL_H@
139 CMESSAGES_CC = @CMESSAGES_CC@
140 CMESSAGES_H = @CMESSAGES_H@
141 CMONEY_CC = @CMONEY_CC@
142 CNUMERIC_CC = @CNUMERIC_CC@
143 CPP = @CPP@
144 CPPFLAGS = @CPPFLAGS@
145 CPU_DEFINES_SRCDIR = @CPU_DEFINES_SRCDIR@
146 CSTDIO_H = @CSTDIO_H@
147 CTIME_CC = @CTIME_CC@
148 CTIME_H = @CTIME_H@
149 CXX = @CXX@
150 CXXCPP = @CXXCPP@
151 CXXFLAGS = @CXXFLAGS@
152 CYGPATH_W = @CYGPATH_W@
153 C_INCLUDE_DIR = @C_INCLUDE_DIR@
154 DEBUG_FLAGS = @DEBUG_FLAGS@
155 DEFS = @DEFS@
156 DUMPBIN = @DUMPBIN@
157 ECHO_C = @ECHO_C@
158 ECHO_N = @ECHO_N@
159 ECHO_T = @ECHO_T@
160 EGREP = @EGREP@
161 ENABLE_SYMVERS_DARWIN_FALSE = @ENABLE_SYMVERS_DARWIN_FALSE@
162 ENABLE_SYMVERS_DARWIN_TRUE = @ENABLE_SYMVERS_DARWIN_TRUE@
163 ENABLE_SYMVERS_FALSE = @ENABLE_SYMVERS_FALSE@
164 ENABLE_SYMVERS_GNU_FALSE = @ENABLE_SYMVERS_GNU_FALSE@
165 ENABLE_SYMVERS_GNU_NAMESPACE_FALSE = @ENABLE_SYMVERS_GNU_NAMESPACE_FALSE@
166 ENABLE_SYMVERS_GNU_NAMESPACE_TRUE = @ENABLE_SYMVERS_GNU_NAMESPACE_TRUE@
167 ENABLE_SYMVERS_GNU_TRUE = @ENABLE_SYMVERS_GNU_TRUE@
168 ENABLE_SYMVERS_TRUE = @ENABLE_SYMVERS_TRUE@
169 ENABLE_VISIBILITY_FALSE = @ENABLE_VISIBILITY_FALSE@
170 ENABLE_VISIBILITY_TRUE = @ENABLE_VISIBILITY_TRUE@
171 EXEEXT = @EXEEXT@
172 EXTRA_CXX_FLAGS = @EXTRA_CXX_FLAGS@
173 FGREP = @FGREP@
174 GLIBCXX_BUILD_DEBUG_FALSE = @GLIBCXX_BUILD_DEBUG_FALSE@
175 GLIBCXX_BUILD_DEBUG_TRUE = @GLIBCXX_BUILD_DEBUG_TRUE@
176 GLIBCXX_BUILD_PCH_FALSE = @GLIBCXX_BUILD_PCH_FALSE@
177 GLIBCXX_BUILD_PCH_TRUE = @GLIBCXX_BUILD_PCH_TRUE@
178 GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE = @GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE@
179 GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE = @GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE@
180 GLIBCXX_C_HEADERS_C_FALSE = @GLIBCXX_C_HEADERS_C_FALSE@
181 GLIBCXX_C_HEADERS_C_GLOBAL_FALSE = @GLIBCXX_C_HEADERS_C_GLOBAL_FALSE@
182 GLIBCXX_C_HEADERS_C_GLOBAL_TRUE = @GLIBCXX_C_HEADERS_C_GLOBAL_TRUE@
183 GLIBCXX_C_HEADERS_C_STD_FALSE = @GLIBCXX_C_HEADERS_C_STD_FALSE@
184 GLIBCXX_C_HEADERS_C_STD_TRUE = @GLIBCXX_C_HEADERS_C_STD_TRUE@
185 GLIBCXX_C_HEADERS_C_TRUE = @GLIBCXX_C_HEADERS_C_TRUE@
186 GLIBCXX_C_HEADERS_EXTRA_FALSE = @GLIBCXX_C_HEADERS_EXTRA_FALSE@
187 GLIBCXX_C_HEADERS_EXTRA_TRUE = @GLIBCXX_C_HEADERS_EXTRA_TRUE@
188 GLIBCXX_HOSTED_FALSE = @GLIBCXX_HOSTED_FALSE@
189 GLIBCXX_HOSTED_TRUE = @GLIBCXX_HOSTED_TRUE@
190 GLIBCXX_INCLUDES = @GLIBCXX_INCLUDES@
191 GLIBCXX_LDBL_COMPAT_FALSE = @GLIBCXX_LDBL_COMPAT_FALSE@
192 GLIBCXX_LDBL_COMPAT_TRUE = @GLIBCXX_LDBL_COMPAT_TRUE@
193 GREP = @GREP@
194 INSTALL_DATA = @INSTALL_DATA@
195 INSTALL_PROGRAM = @INSTALL_PROGRAM@
196 INSTALL_SCRIPT = @INSTALL_SCRIPT@
197 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
198 LD = @LD@
199 LDFLAGS = @LDFLAGS@
200 LIBICONV = @LIBICONV@
201 LIBMATHOBJS = @LIBMATHOBJS@
202 LIBOBJS = @LIBOBJS@
203 LIBS = @LIBS@
204 LIBSUPCXX_PICFLAGS = @LIBSUPCXX_PICFLAGS@
205 LIBTOOL = @LIBTOOL@
206 LN_S = @LN_S@
207 LTLIBICONV = @LTLIBICONV@
208 LTLIBOBJS = @LTLIBOBJS@
209 MAINT = @MAINT@
210 MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
211 MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
212 MAKEINFO = @MAKEINFO@
213 NM = @NM@
214 OBJEXT = @OBJEXT@
215 OPTIMIZE_CXXFLAGS = @OPTIMIZE_CXXFLAGS@
216 OPT_LDFLAGS = @OPT_LDFLAGS@
217 OS_INC_SRCDIR = @OS_INC_SRCDIR@
218 PACKAGE = @PACKAGE@
219 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
220 PACKAGE_NAME = @PACKAGE_NAME@
221 PACKAGE_STRING = @PACKAGE_STRING@
222 PACKAGE_TARNAME = @PACKAGE_TARNAME@
223 PACKAGE_VERSION = @PACKAGE_VERSION@
224 PATH_SEPARATOR = @PATH_SEPARATOR@
225 RANLIB = @RANLIB@
226 SECTION_FLAGS = @SECTION_FLAGS@
227 SECTION_LDFLAGS = @SECTION_LDFLAGS@
228 SED = @SED@
229 SET_MAKE = @SET_MAKE@
230 SHELL = @SHELL@
231 STRIP = @STRIP@
232 SYMVER_FILE = @SYMVER_FILE@
233 TOPLEVEL_INCLUDES = @TOPLEVEL_INCLUDES@
234 USE_NLS = @USE_NLS@
235 VERSION = @VERSION@
236 WARN_FLAGS = @WARN_FLAGS@
237 WERROR = @WERROR@
238 ac_ct_AR = @ac_ct_AR@
239 ac_ct_AS = @ac_ct_AS@
240 ac_ct_CC = @ac_ct_CC@
241 ac_ct_CXX = @ac_ct_CXX@
242 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
243 ac_ct_RANLIB = @ac_ct_RANLIB@
244 ac_ct_STRIP = @ac_ct_STRIP@
245 am__leading_dot = @am__leading_dot@
246 am__tar = @am__tar@
247 am__untar = @am__untar@
248 baseline_dir = @baseline_dir@
249 bindir = @bindir@
250 build = @build@
251 build_alias = @build_alias@
252 build_cpu = @build_cpu@
253 build_os = @build_os@
254 build_vendor = @build_vendor@
255 check_msgfmt = @check_msgfmt@
256 datadir = @datadir@
257 enable_shared = @enable_shared@
258 enable_static = @enable_static@
259 exec_prefix = @exec_prefix@
260 glibcxx_MOFILES = @glibcxx_MOFILES@
261 glibcxx_PCHFLAGS = @glibcxx_PCHFLAGS@
262 glibcxx_POFILES = @glibcxx_POFILES@
263 glibcxx_builddir = @glibcxx_builddir@
264 glibcxx_localedir = @glibcxx_localedir@
265 glibcxx_prefixdir = @glibcxx_prefixdir@
266 glibcxx_srcdir = @glibcxx_srcdir@
267 glibcxx_thread_h = @glibcxx_thread_h@
268 glibcxx_toolexecdir = @glibcxx_toolexecdir@
269 glibcxx_toolexeclibdir = @glibcxx_toolexeclibdir@
270 gxx_include_dir = @gxx_include_dir@
271 host = @host@
272 host_alias = @host_alias@
273 host_cpu = @host_cpu@
274 host_os = @host_os@
275 host_vendor = @host_vendor@
276 includedir = @includedir@
277 infodir = @infodir@
278 install_sh = @install_sh@
279 libdir = @libdir@
280 libexecdir = @libexecdir@
281 libtool_VERSION = @libtool_VERSION@
282 localstatedir = @localstatedir@
283 lt_ECHO = @lt_ECHO@
284 mandir = @mandir@
285 mkdir_p = @mkdir_p@
286 multi_basedir = @multi_basedir@
287 oldincludedir = @oldincludedir@
288 port_specific_symbol_files = @port_specific_symbol_files@
289 prefix = @prefix@
290 program_transform_name = @program_transform_name@
291 sbindir = @sbindir@
292 sharedstatedir = @sharedstatedir@
293 sysconfdir = @sysconfdir@
294 target = @target@
295 target_alias = @target_alias@
296 target_cpu = @target_cpu@
297 target_os = @target_os@
298 target_vendor = @target_vendor@
299 toplevel_srcdir = @toplevel_srcdir@
300
301 # May be used by various substitution variables.
302 gcc_version := $(shell cat $(top_srcdir)/../gcc/BASE-VER)
303 MAINT_CHARSET = latin1
304 mkinstalldirs = $(SHELL) $(toplevel_srcdir)/mkinstalldirs
305 PWD_COMMAND = $${PWDCMD-pwd}
306 STAMP = echo timestamp >
307 toolexecdir = $(glibcxx_toolexecdir)
308 toolexeclibdir = $(glibcxx_toolexeclibdir)
309
310 # These bits are all figured out from configure. Look in acinclude.m4
311 # or configure.ac to see how they are set. See GLIBCXX_EXPORT_FLAGS.
312 CONFIG_CXXFLAGS = \
313 $(SECTION_FLAGS) $(EXTRA_CXX_FLAGS)
314
315 WARN_CXXFLAGS = \
316 $(WARN_FLAGS) $(WERROR) -fdiagnostics-show-location=once
317
318
319 # -I/-D flags to pass when compiling.
320 AM_CPPFLAGS = $(GLIBCXX_INCLUDES)
321
322 # Cross compiler support.
323 toolexeclib_LTLIBRARIES = libstdc++.la
324 @ENABLE_SYMVERS_DARWIN_TRUE@@ENABLE_SYMVERS_TRUE@version_arg = -Wl,-exported_symbols_list,libstdc++-symbols.explist
325 @ENABLE_SYMVERS_FALSE@version_arg =
326 @ENABLE_SYMVERS_GNU_NAMESPACE_TRUE@@ENABLE_SYMVERS_TRUE@version_arg = -Wl,--version-script=libstdc++-symbols.ver
327 @ENABLE_SYMVERS_GNU_TRUE@@ENABLE_SYMVERS_TRUE@version_arg = -Wl,--version-script=libstdc++-symbols.ver
328 @ENABLE_SYMVERS_DARWIN_TRUE@@ENABLE_SYMVERS_TRUE@version_dep = libstdc++-symbols.explist
329 @ENABLE_SYMVERS_FALSE@version_dep =
330 @ENABLE_SYMVERS_GNU_NAMESPACE_TRUE@@ENABLE_SYMVERS_TRUE@version_dep = libstdc++-symbols.ver
331 @ENABLE_SYMVERS_GNU_TRUE@@ENABLE_SYMVERS_TRUE@version_dep = libstdc++-symbols.ver
332
333 # Source files linked in via configuration/make substitution for a
334 # particular host.
335 host_sources = \
336 atomicity.cc \
337 codecvt_members.cc \
338 collate_members.cc \
339 ctype_members.cc \
340 messages_members.cc \
341 monetary_members.cc \
342 numeric_members.cc \
343 time_members.cc
344
345 atomicity_file = ${glibcxx_srcdir}/$(ATOMICITY_SRCDIR)/atomicity.h
346
347 # Source files linked in via configuration/make substitution for a
348 # particular host, but with ad hoc naming rules.
349 host_sources_extra = \
350 basic_file.cc \
351 c++locale.cc
352
353 @GLIBCXX_LDBL_COMPAT_FALSE@ldbl_compat_sources =
354 @GLIBCXX_LDBL_COMPAT_TRUE@ldbl_compat_sources = compatibility-ldbl.cc
355
356 # Sources present in the src directory.
357 sources = \
358 bitmap_allocator.cc \
359 pool_allocator.cc \
360 mt_allocator.cc \
361 codecvt.cc \
362 compatibility.cc \
363 complex_io.cc \
364 ctype.cc \
365 debug.cc \
366 debug_list.cc \
367 functexcept.cc \
368 globals_io.cc \
369 ios.cc \
370 ios_failure.cc \
371 ios_init.cc \
372 ios_locale.cc \
373 limits.cc \
374 list.cc \
375 locale.cc \
376 locale_init.cc \
377 locale_facets.cc \
378 localename.cc \
379 stdexcept.cc \
380 strstream.cc \
381 tree.cc \
382 allocator-inst.cc \
383 concept-inst.cc \
384 fstream-inst.cc \
385 ext-inst.cc \
386 ios-inst.cc \
387 iostream-inst.cc \
388 istream-inst.cc \
389 istream.cc \
390 locale-inst.cc \
391 misc-inst.cc \
392 ostream-inst.cc \
393 sstream-inst.cc \
394 streambuf-inst.cc \
395 streambuf.cc \
396 string-inst.cc \
397 valarray-inst.cc \
398 wlocale-inst.cc \
399 wstring-inst.cc \
400 ${host_sources} \
401 ${host_sources_extra} \
402 ${ldbl_compat_sources}
403
404 libstdc___la_SOURCES = $(sources)
405 libstdc___la_LIBADD = \
406 $(top_builddir)/libmath/libmath.la \
407 $(top_builddir)/libsupc++/libsupc++convenience.la
408
409 libstdc___la_DEPENDENCIES = ${version_dep} $(libstdc___la_LIBADD)
410 libstdc___la_LDFLAGS = \
411 -version-info $(libtool_VERSION) ${version_arg} -lm
412
413
414 # Use special rules for the deprecated source files so that they find
415 # deprecated include files.
416 GLIBCXX_INCLUDE_DIR = $(glibcxx_builddir)/include
417
418 # AM_CXXFLAGS needs to be in each subdirectory so that it can be
419 # modified in a per-library or per-sub-library way. Need to manually
420 # set this option because CONFIG_CXXFLAGS has to be after
421 # OPTIMIZE_CXXFLAGS on the compile line so that -O2 can be overridden
422 # as the occasion calls for it.
423 AM_CXXFLAGS = \
424 -fno-implicit-templates \
425 $(WARN_CXXFLAGS) \
426 $(OPTIMIZE_CXXFLAGS) \
427 $(CONFIG_CXXFLAGS)
428
429
430 # libstdc++ libtool notes
431
432 # 1) Need to explicitly set LTCXXCOMPILE so that AM_CXXFLAGS is
433 # last. (That way, things like -O2 passed down from the toplevel can
434 # be overridden by --enable-debug.)
435
436 # 2) In general, libtool expects an argument such as `--tag=CXX' when
437 # using the C++ compiler, because that will enable the settings
438 # detected when C++ support was being configured. However, when no
439 # such flag is given in the command line, libtool attempts to figure
440 # it out by matching the compiler name in each configuration section
441 # against a prefix of the command line. The problem is that, if the
442 # compiler name and its initial flags stored in the libtool
443 # configuration file don't match those in the command line, libtool
444 # can't decide which configuration to use, and it gives up. The
445 # correct solution is to add `--tag CXX' to LTCXXCOMPILE and maybe
446 # CXXLINK, just after $(LIBTOOL), so that libtool doesn't have to
447 # attempt to infer which configuration to use
448 LTCXXCOMPILE = $(LIBTOOL) --tag CXX --mode=compile $(CXX) $(INCLUDES) \
449 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
450
451 LTLDFLAGS = $(shell $(SHELL) $(top_srcdir)/../libtool-ldflags $(LDFLAGS))
452
453 # 3) We'd have a problem when building the shared libstdc++ object if
454 # the rules automake generates would be used. We cannot allow g++ to
455 # be used since this would add -lstdc++ to the link line which of
456 # course is problematic at this point. So, we get the top-level
457 # directory to configure libstdc++-v3 to use gcc as the C++
458 # compilation driver.
459 CXXLINK = $(LIBTOOL) --tag CXX --mode=link $(CXX) \
460 $(OPT_LDFLAGS) $(SECTION_LDFLAGS) $(AM_CXXFLAGS) $(LTLDFLAGS) -o $@
461
462 debugdir = debug
463 all: all-am
464
465 .SUFFIXES:
466 .SUFFIXES: .cc .lo .o .obj
467 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/fragment.am $(am__configure_deps)
468 @for dep in $?; do \
469 case '$(am__configure_deps)' in \
470 *$$dep*) \
471 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
472 && exit 0; \
473 exit 1;; \
474 esac; \
475 done; \
476 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign --ignore-deps src/Makefile'; \
477 cd $(top_srcdir) && \
478 $(AUTOMAKE) --foreign --ignore-deps src/Makefile
479 .PRECIOUS: Makefile
480 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
481 @case '$?' in \
482 *config.status*) \
483 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
484 *) \
485 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
486 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
487 esac;
488
489 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
490 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
491
492 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
493 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
494 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
495 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
496 install-toolexeclibLTLIBRARIES: $(toolexeclib_LTLIBRARIES)
497 @$(NORMAL_INSTALL)
498 test -z "$(toolexeclibdir)" || $(mkdir_p) "$(DESTDIR)$(toolexeclibdir)"
499 @list='$(toolexeclib_LTLIBRARIES)'; for p in $$list; do \
500 if test -f $$p; then \
501 f=$(am__strip_dir) \
502 echo " $(LIBTOOL) --mode=install $(toolexeclibLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(toolexeclibdir)/$$f'"; \
503 $(LIBTOOL) --mode=install $(toolexeclibLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(toolexeclibdir)/$$f"; \
504 else :; fi; \
505 done
506
507 uninstall-toolexeclibLTLIBRARIES:
508 @$(NORMAL_UNINSTALL)
509 @set -x; list='$(toolexeclib_LTLIBRARIES)'; for p in $$list; do \
510 p=$(am__strip_dir) \
511 echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(toolexeclibdir)/$$p'"; \
512 $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(toolexeclibdir)/$$p"; \
513 done
514
515 clean-toolexeclibLTLIBRARIES:
516 -test -z "$(toolexeclib_LTLIBRARIES)" || rm -f $(toolexeclib_LTLIBRARIES)
517 @list='$(toolexeclib_LTLIBRARIES)'; for p in $$list; do \
518 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
519 test "$$dir" != "$$p" || dir=.; \
520 echo "rm -f \"$${dir}/so_locations\""; \
521 rm -f "$${dir}/so_locations"; \
522 done
523 libstdc++.la: $(libstdc___la_OBJECTS) $(libstdc___la_DEPENDENCIES)
524 $(CXXLINK) -rpath $(toolexeclibdir) $(libstdc___la_LDFLAGS) $(libstdc___la_OBJECTS) $(libstdc___la_LIBADD) $(LIBS)
525
526 mostlyclean-compile:
527 -rm -f *.$(OBJEXT)
528
529 distclean-compile:
530 -rm -f *.tab.c
531
532 .cc.o:
533 $(CXXCOMPILE) -c -o $@ $<
534
535 .cc.obj:
536 $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
537
538 .cc.lo:
539 $(LTCXXCOMPILE) -c -o $@ $<
540
541 mostlyclean-libtool:
542 -rm -f *.lo
543
544 clean-libtool:
545 -rm -rf .libs _libs
546
547 distclean-libtool:
548 -rm -f libtool
549 uninstall-info-am:
550
551 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
552 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
553 unique=`for i in $$list; do \
554 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
555 done | \
556 $(AWK) ' { files[$$0] = 1; } \
557 END { for (i in files) print i; }'`; \
558 mkid -fID $$unique
559 tags: TAGS
560
561 TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
562 $(TAGS_FILES) $(LISP)
563 tags=; \
564 here=`pwd`; \
565 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
566 unique=`for i in $$list; do \
567 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
568 done | \
569 $(AWK) ' { files[$$0] = 1; } \
570 END { for (i in files) print i; }'`; \
571 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
572 test -n "$$unique" || unique=$$empty_fix; \
573 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
574 $$tags $$unique; \
575 fi
576 ctags: CTAGS
577 CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
578 $(TAGS_FILES) $(LISP)
579 tags=; \
580 here=`pwd`; \
581 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
582 unique=`for i in $$list; do \
583 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
584 done | \
585 $(AWK) ' { files[$$0] = 1; } \
586 END { for (i in files) print i; }'`; \
587 test -z "$(CTAGS_ARGS)$$tags$$unique" \
588 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
589 $$tags $$unique
590
591 GTAGS:
592 here=`$(am__cd) $(top_builddir) && pwd` \
593 && cd $(top_srcdir) \
594 && gtags -i $(GTAGS_ARGS) $$here
595
596 distclean-tags:
597 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
598
599 distdir: $(DISTFILES)
600 $(mkdir_p) $(distdir)/..
601 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
602 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
603 list='$(DISTFILES)'; for file in $$list; do \
604 case $$file in \
605 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
606 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
607 esac; \
608 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
609 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
610 if test "$$dir" != "$$file" && test "$$dir" != "."; then \
611 dir="/$$dir"; \
612 $(mkdir_p) "$(distdir)$$dir"; \
613 else \
614 dir=''; \
615 fi; \
616 if test -d $$d/$$file; then \
617 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
618 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
619 fi; \
620 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
621 else \
622 test -f $(distdir)/$$file \
623 || cp -p $$d/$$file $(distdir)/$$file \
624 || exit 1; \
625 fi; \
626 done
627 check-am: all-am
628 check: check-am
629 all-am: Makefile $(LTLIBRARIES) all-local
630 installdirs:
631 for dir in "$(DESTDIR)$(toolexeclibdir)"; do \
632 test -z "$$dir" || $(mkdir_p) "$$dir"; \
633 done
634 install: install-am
635 install-exec: install-exec-am
636 install-data: install-data-am
637 uninstall: uninstall-am
638
639 install-am: all-am
640 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
641
642 installcheck: installcheck-am
643 install-strip:
644 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
645 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
646 `test -z '$(STRIP)' || \
647 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
648 mostlyclean-generic:
649
650 clean-generic:
651
652 distclean-generic:
653 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
654
655 maintainer-clean-generic:
656 @echo "This command is intended for maintainers to use"
657 @echo "it deletes files that may require special tools to rebuild."
658 clean: clean-am
659
660 clean-am: clean-generic clean-libtool clean-toolexeclibLTLIBRARIES \
661 mostlyclean-am
662
663 distclean: distclean-am
664 -rm -f Makefile
665 distclean-am: clean-am distclean-compile distclean-generic \
666 distclean-libtool distclean-tags
667
668 dvi: dvi-am
669
670 dvi-am:
671
672 html: html-am
673
674 info: info-am
675
676 info-am:
677
678 install-data-am: install-data-local
679
680 install-exec-am: install-toolexeclibLTLIBRARIES
681
682 install-info: install-info-am
683
684 install-man:
685
686 installcheck-am:
687
688 maintainer-clean: maintainer-clean-am
689 -rm -f Makefile
690 maintainer-clean-am: distclean-am maintainer-clean-generic
691
692 mostlyclean: mostlyclean-am
693
694 mostlyclean-am: mostlyclean-compile mostlyclean-generic \
695 mostlyclean-libtool
696
697 pdf: pdf-am
698
699 pdf-am:
700
701 ps: ps-am
702
703 ps-am:
704
705 uninstall-am: uninstall-info-am uninstall-toolexeclibLTLIBRARIES
706
707 .PHONY: CTAGS GTAGS all all-am all-local check check-am clean \
708 clean-generic clean-libtool clean-toolexeclibLTLIBRARIES ctags \
709 distclean distclean-compile distclean-generic \
710 distclean-libtool distclean-tags distdir dvi dvi-am html \
711 html-am info info-am install install-am install-data \
712 install-data-am install-data-local install-exec \
713 install-exec-am install-info install-info-am install-man \
714 install-strip install-toolexeclibLTLIBRARIES installcheck \
715 installcheck-am installdirs maintainer-clean \
716 maintainer-clean-generic mostlyclean mostlyclean-compile \
717 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
718 tags uninstall uninstall-am uninstall-info-am \
719 uninstall-toolexeclibLTLIBRARIES
720
721
722 # Symbol versioning for shared libraries.
723 @ENABLE_SYMVERS_TRUE@libstdc++-symbols.ver: ${glibcxx_srcdir}/$(SYMVER_FILE) \
724 @ENABLE_SYMVERS_TRUE@ $(port_specific_symbol_files)
725 @ENABLE_SYMVERS_TRUE@ cp ${glibcxx_srcdir}/$(SYMVER_FILE) ./libstdc++-symbols.ver
726 @ENABLE_SYMVERS_TRUE@ chmod +w ./libstdc++-symbols.ver
727 @ENABLE_SYMVERS_TRUE@ if test "x$(port_specific_symbol_files)" != x; then \
728 @ENABLE_SYMVERS_TRUE@ if grep '^# Appended to version file.' \
729 @ENABLE_SYMVERS_TRUE@ $(port_specific_symbol_files) /dev/null > /dev/null 2>&1; then \
730 @ENABLE_SYMVERS_TRUE@ cat $(port_specific_symbol_files) >> $@; \
731 @ENABLE_SYMVERS_TRUE@ else \
732 @ENABLE_SYMVERS_TRUE@ sed -n '1,/DO NOT DELETE/p' $@ > tmp.top; \
733 @ENABLE_SYMVERS_TRUE@ sed -n '/DO NOT DELETE/,$$p' $@ > tmp.bottom; \
734 @ENABLE_SYMVERS_TRUE@ cat tmp.top $(port_specific_symbol_files) tmp.bottom > $@; \
735 @ENABLE_SYMVERS_TRUE@ rm tmp.top tmp.bottom; \
736 @ENABLE_SYMVERS_TRUE@ fi; \
737 @ENABLE_SYMVERS_TRUE@ fi
738 @ENABLE_SYMVERS_DARWIN_TRUE@@ENABLE_SYMVERS_TRUE@libstdc++-symbols.explist : libstdc++-symbols.ver \
739 @ENABLE_SYMVERS_DARWIN_TRUE@@ENABLE_SYMVERS_TRUE@ ${glibcxx_srcdir}/scripts/make_exports.pl \
740 @ENABLE_SYMVERS_DARWIN_TRUE@@ENABLE_SYMVERS_TRUE@ $(libstdc___la_OBJECTS) $(libstdc___la_LIBADD)
741 @ENABLE_SYMVERS_DARWIN_TRUE@@ENABLE_SYMVERS_TRUE@ perl ${glibcxx_srcdir}/scripts/make_exports.pl \
742 @ENABLE_SYMVERS_DARWIN_TRUE@@ENABLE_SYMVERS_TRUE@ libstdc++-symbols.ver \
743 @ENABLE_SYMVERS_DARWIN_TRUE@@ENABLE_SYMVERS_TRUE@ $(libstdc___la_OBJECTS:%.lo=.libs/%.o) \
744 @ENABLE_SYMVERS_DARWIN_TRUE@@ENABLE_SYMVERS_TRUE@ `echo $(libstdc___la_LIBADD) | \
745 @ENABLE_SYMVERS_DARWIN_TRUE@@ENABLE_SYMVERS_TRUE@ sed 's,/\([^/.]*\)\.la,/.libs/\1.a,g'` \
746 @ENABLE_SYMVERS_DARWIN_TRUE@@ENABLE_SYMVERS_TRUE@ > $@ || (rm -f $@ ; exit 1)
747
748 codecvt_members.cc: ${glibcxx_srcdir}/$(CCODECVT_CC)
749 $(LN_S) ${glibcxx_srcdir}/$(CCODECVT_CC) . || true
750
751 collate_members.cc: ${glibcxx_srcdir}/$(CCOLLATE_CC)
752 $(LN_S) ${glibcxx_srcdir}/$(CCOLLATE_CC) . || true
753
754 ctype_members.cc: ${glibcxx_srcdir}/$(CCTYPE_CC)
755 $(LN_S) ${glibcxx_srcdir}/$(CCTYPE_CC) . || true
756
757 messages_members.cc: ${glibcxx_srcdir}/$(CMESSAGES_CC)
758 $(LN_S) ${glibcxx_srcdir}/$(CMESSAGES_CC) . || true
759
760 monetary_members.cc: ${glibcxx_srcdir}/$(CMONEY_CC)
761 $(LN_S) ${glibcxx_srcdir}/$(CMONEY_CC) . || true
762
763 numeric_members.cc: ${glibcxx_srcdir}/$(CNUMERIC_CC)
764 $(LN_S) ${glibcxx_srcdir}/$(CNUMERIC_CC) . || true
765
766 time_members.cc: ${glibcxx_srcdir}/$(CTIME_CC)
767 $(LN_S) ${glibcxx_srcdir}/$(CTIME_CC) . || true
768 atomicity.cc: ${atomicity_file}
769 $(LN_S) ${atomicity_file} ./atomicity.cc || true
770
771 c++locale.cc: ${glibcxx_srcdir}/$(CLOCALE_CC)
772 $(LN_S) ${glibcxx_srcdir}/$(CLOCALE_CC) ./$@ || true
773
774 basic_file.cc: ${glibcxx_srcdir}/$(BASIC_FILE_CC)
775 $(LN_S) ${glibcxx_srcdir}/$(BASIC_FILE_CC) ./$@ || true
776 strstream.lo: strstream.cc
777 $(LTCXXCOMPILE) -I$(GLIBCXX_INCLUDE_DIR)/backward -Wno-deprecated -c $<
778 strstream.o: strstream.cc
779 $(CXXCOMPILE) -I$(GLIBCXX_INCLUDE_DIR)/backward -Wno-deprecated -c $<
780
781 # Use special rules for the concept-checking instantiations so that all
782 # the generated template functions are also instantiated. Force the checks
783 # to be on so that the instantiations are actually seen.
784 concept-inst.lo: concept-inst.cc
785 $(LTCXXCOMPILE) -D_GLIBCXX_CONCEPT_CHECKS -fimplicit-templates -c $<
786 concept-inst.o: concept-inst.cc
787 $(CXXCOMPILE) -D_GLIBCXX_CONCEPT_CHECKS -fimplicit-templates -c $<
788
789 # Use special rules for compatibility-ldbl.cc compilation, as we need to
790 # pass -mlong-double-64.
791 @GLIBCXX_LDBL_COMPAT_TRUE@compatibility-ldbl.lo: compatibility-ldbl.cc
792 @GLIBCXX_LDBL_COMPAT_TRUE@ $(LTCXXCOMPILE) -mlong-double-64 -c $<
793 @GLIBCXX_LDBL_COMPAT_TRUE@compatibility-ldbl.o: compatibility-ldbl.cc
794 @GLIBCXX_LDBL_COMPAT_TRUE@ $(CXXCOMPILE) -mlong-double-64 -c $<
795
796 # Added bits to build debug library.
797 @GLIBCXX_BUILD_DEBUG_TRUE@all-local: build_debug
798 @GLIBCXX_BUILD_DEBUG_TRUE@install-data-local: install_debug
799 @GLIBCXX_BUILD_DEBUG_FALSE@all-local:
800 @GLIBCXX_BUILD_DEBUG_FALSE@install-data-local:
801
802 # Build parallel set of debug objects here.
803 stamp-debug:
804 if test ! -d ${debugdir}; then \
805 mkdir -p ${debugdir}; \
806 (cd ${debugdir}; \
807 sed -e 's/top_builddir = \.\./top_builddir = ..\/../' \
808 -e 's/srcdir = \.\./srcdir = ..\/../' \
809 -e 's/glibcxx_basedir = \.\./glibcxx_basedir = ..\/../' \
810 -e 's/all-local: build_debug/all-local:/' \
811 -e 's/install-data-local: install_debug/install-data-local:/' \
812 < ../Makefile > Makefile) ; \
813 fi; \
814 echo `date` > stamp-debug;
815
816 build_debug: stamp-debug
817 (cd ${debugdir} && $(MAKE) CXXFLAGS='$(DEBUG_FLAGS)' all)
818
819 # Install debug library here.
820 install_debug:
821 (cd ${debugdir} && $(MAKE) \
822 toolexeclibdir=$(glibcxx_toolexeclibdir)/debug install)
823 # Tell versions [3.59,3.63) of GNU make to not export all variables.
824 # Otherwise a system limit (for SysV at least) may be exceeded.
825 .NOEXPORT: