]> git.ipfire.org Git - thirdparty/gcc.git/blame - libstdc++-v3/include/Makefile.in
re PR c++/18644 (-Wsynth warning in <complex>)
[thirdparty/gcc.git] / libstdc++-v3 / include / Makefile.in
CommitLineData
c0736a9d 1# Makefile.in generated by automake 1.9.3 from Makefile.am.
ff66d28f 2# @configure_input@
4a9d5109 3
7eaf73d7
KC
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004 Free Software Foundation, Inc.
4a9d5109
SW
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
ff66d28f 15@SET_MAKE@
4a9d5109
SW
16srcdir = @srcdir@
17top_srcdir = @top_srcdir@
18VPATH = @srcdir@
4a9d5109
SW
19pkgdatadir = $(datadir)/@PACKAGE@
20pkglibdir = $(libdir)/@PACKAGE@
21pkgincludedir = $(includedir)/@PACKAGE@
4a9d5109 22top_builddir = ..
ff66d28f 23am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
4a9d5109 24INSTALL = @INSTALL@
ff66d28f
PE
25install_sh_DATA = $(install_sh) -c -m 644
26install_sh_PROGRAM = $(install_sh) -c
27install_sh_SCRIPT = $(install_sh) -c
28INSTALL_HEADER = $(INSTALL_DATA)
29transform = $(program_transform_name)
4a9d5109
SW
30NORMAL_INSTALL = :
31PRE_INSTALL = :
32POST_INSTALL = :
33NORMAL_UNINSTALL = :
34PRE_UNINSTALL = :
35POST_UNINSTALL = :
4a9d5109 36build_triplet = @build@
4a9d5109 37host_triplet = @host@
4a9d5109 38target_triplet = @target@
7eaf73d7
KC
39DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
40 $(top_srcdir)/fragment.am
41subdir = include
42ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
43am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \
44 $(top_srcdir)/linkage.m4 \
45 $(top_srcdir)/../config/no-executables.m4 \
46 $(top_srcdir)/../libtool.m4 $(top_srcdir)/crossconfig.m4 \
47 $(top_srcdir)/configure.ac
48am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
49 $(ACLOCAL_M4)
50CONFIG_HEADER = $(top_builddir)/config.h
51CONFIG_CLEAN_FILES =
52depcomp =
53am__depfiles_maybe =
54SOURCES =
55DIST_SOURCES =
56DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
1568430f 57ABI_TWEAKS_SRCDIR = @ABI_TWEAKS_SRCDIR@
ff66d28f 58ACLOCAL = @ACLOCAL@
8b0d6051
BK
59ALLOCATOR_H = @ALLOCATOR_H@
60ALLOCATOR_NAME = @ALLOCATOR_NAME@
ff66d28f 61AMTAR = @AMTAR@
4a9d5109
SW
62AR = @AR@
63AS = @AS@
2c5d0ae8
BK
64ATOMICITY_SRCDIR = @ATOMICITY_SRCDIR@
65ATOMIC_WORD_SRCDIR = @ATOMIC_WORD_SRCDIR@
ff66d28f
PE
66AUTOCONF = @AUTOCONF@
67AUTOHEADER = @AUTOHEADER@
68AUTOMAKE = @AUTOMAKE@
ab3bc736 69AWK = @AWK@
6aa43d99 70BASIC_FILE_CC = @BASIC_FILE_CC@
4a9d5109
SW
71BASIC_FILE_H = @BASIC_FILE_H@
72CC = @CC@
6aa43d99 73CCODECVT_CC = @CCODECVT_CC@
6aa43d99
BK
74CCOLLATE_CC = @CCOLLATE_CC@
75CCTYPE_CC = @CCTYPE_CC@
ff66d28f 76CFLAGS = @CFLAGS@
6aa43d99 77CLOCALE_CC = @CLOCALE_CC@
4a9d5109 78CLOCALE_H = @CLOCALE_H@
6aa43d99
BK
79CLOCALE_INTERNAL_H = @CLOCALE_INTERNAL_H@
80CMESSAGES_CC = @CMESSAGES_CC@
33590f13 81CMESSAGES_H = @CMESSAGES_H@
6aa43d99
BK
82CMONEY_CC = @CMONEY_CC@
83CNUMERIC_CC = @CNUMERIC_CC@
4a9d5109 84CPP = @CPP@
ff66d28f 85CPPFLAGS = @CPPFLAGS@
4a9d5109 86CSTDIO_H = @CSTDIO_H@
6aa43d99 87CTIME_CC = @CTIME_CC@
1c26d8fd 88CTIME_H = @CTIME_H@
ff66d28f 89CXX = @CXX@
4a9d5109 90CXXCPP = @CXXCPP@
ff66d28f
PE
91CXXFLAGS = @CXXFLAGS@
92CYGPATH_W = @CYGPATH_W@
4a9d5109
SW
93C_INCLUDE_DIR = @C_INCLUDE_DIR@
94DEBUG_FLAGS = @DEBUG_FLAGS@
ff66d28f
PE
95DEFS = @DEFS@
96ECHO_C = @ECHO_C@
97ECHO_N = @ECHO_N@
98ECHO_T = @ECHO_T@
99EGREP = @EGREP@
54c1bf78 100EXEEXT = @EXEEXT@
4a9d5109 101EXTRA_CXX_FLAGS = @EXTRA_CXX_FLAGS@
ff66d28f
PE
102GLIBCXX_BUILD_DEBUG_FALSE = @GLIBCXX_BUILD_DEBUG_FALSE@
103GLIBCXX_BUILD_DEBUG_TRUE = @GLIBCXX_BUILD_DEBUG_TRUE@
ff66d28f
PE
104GLIBCXX_BUILD_PCH_FALSE = @GLIBCXX_BUILD_PCH_FALSE@
105GLIBCXX_BUILD_PCH_TRUE = @GLIBCXX_BUILD_PCH_TRUE@
106GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE = @GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE@
107GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE = @GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE@
108GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE = @GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE@
109GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE = @GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE@
110GLIBCXX_C_HEADERS_C_FALSE = @GLIBCXX_C_HEADERS_C_FALSE@
111GLIBCXX_C_HEADERS_C_STD_FALSE = @GLIBCXX_C_HEADERS_C_STD_FALSE@
112GLIBCXX_C_HEADERS_C_STD_TRUE = @GLIBCXX_C_HEADERS_C_STD_TRUE@
113GLIBCXX_C_HEADERS_C_TRUE = @GLIBCXX_C_HEADERS_C_TRUE@
92eabea2
PE
114GLIBCXX_HOSTED_FALSE = @GLIBCXX_HOSTED_FALSE@
115GLIBCXX_HOSTED_TRUE = @GLIBCXX_HOSTED_TRUE@
ff66d28f
PE
116GLIBCXX_INCLUDES = @GLIBCXX_INCLUDES@
117GLIBCXX_TEST_ABI_FALSE = @GLIBCXX_TEST_ABI_FALSE@
118GLIBCXX_TEST_ABI_TRUE = @GLIBCXX_TEST_ABI_TRUE@
e3f78d9b
BK
119GLIBCXX_TEST_THREAD_FALSE = @GLIBCXX_TEST_THREAD_FALSE@
120GLIBCXX_TEST_THREAD_TRUE = @GLIBCXX_TEST_THREAD_TRUE@
ff66d28f
PE
121GLIBCXX_TEST_WCHAR_T_FALSE = @GLIBCXX_TEST_WCHAR_T_FALSE@
122GLIBCXX_TEST_WCHAR_T_TRUE = @GLIBCXX_TEST_WCHAR_T_TRUE@
123INSTALL_DATA = @INSTALL_DATA@
124INSTALL_PROGRAM = @INSTALL_PROGRAM@
125INSTALL_SCRIPT = @INSTALL_SCRIPT@
126INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
d54bc1d8 127LIBICONV = @LIBICONV@
4a9d5109 128LIBMATHOBJS = @LIBMATHOBJS@
ff66d28f
PE
129LIBOBJS = @LIBOBJS@
130LIBS = @LIBS@
4a9d5109
SW
131LIBSUPCXX_PICFLAGS = @LIBSUPCXX_PICFLAGS@
132LIBTOOL = @LIBTOOL@
133LN_S = @LN_S@
ff66d28f 134LTLIBOBJS = @LTLIBOBJS@
4a9d5109 135MAINT = @MAINT@
ff66d28f
PE
136MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
137MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
54c1bf78 138MAKEINFO = @MAKEINFO@
4a9d5109
SW
139OBJEXT = @OBJEXT@
140OPTIMIZE_CXXFLAGS = @OPTIMIZE_CXXFLAGS@
141OPT_LDFLAGS = @OPT_LDFLAGS@
142OS_INC_SRCDIR = @OS_INC_SRCDIR@
143PACKAGE = @PACKAGE@
ff66d28f
PE
144PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
145PACKAGE_NAME = @PACKAGE_NAME@
146PACKAGE_STRING = @PACKAGE_STRING@
147PACKAGE_TARNAME = @PACKAGE_TARNAME@
148PACKAGE_VERSION = @PACKAGE_VERSION@
149PATH_SEPARATOR = @PATH_SEPARATOR@
4a9d5109
SW
150RANLIB = @RANLIB@
151SECTION_FLAGS = @SECTION_FLAGS@
152SECTION_LDFLAGS = @SECTION_LDFLAGS@
ff66d28f
PE
153SET_MAKE = @SET_MAKE@
154SHELL = @SHELL@
4a9d5109 155STRIP = @STRIP@
6aa43d99 156SYMVER_MAP = @SYMVER_MAP@
4a9d5109 157TOPLEVEL_INCLUDES = @TOPLEVEL_INCLUDES@
33590f13 158USE_NLS = @USE_NLS@
4a9d5109
SW
159VERSION = @VERSION@
160WARN_FLAGS = @WARN_FLAGS@
161WERROR = @WERROR@
ff66d28f
PE
162ac_ct_AR = @ac_ct_AR@
163ac_ct_AS = @ac_ct_AS@
164ac_ct_CC = @ac_ct_CC@
165ac_ct_CXX = @ac_ct_CXX@
166ac_ct_RANLIB = @ac_ct_RANLIB@
167ac_ct_STRIP = @ac_ct_STRIP@
168am__leading_dot = @am__leading_dot@
a60945f8
PC
169am__tar = @am__tar@
170am__untar = @am__untar@
44f0760e 171baseline_dir = @baseline_dir@
ff66d28f
PE
172bindir = @bindir@
173build = @build@
174build_alias = @build_alias@
175build_cpu = @build_cpu@
176build_os = @build_os@
177build_vendor = @build_vendor@
501e321e 178check_msgfmt = @check_msgfmt@
ff66d28f 179datadir = @datadir@
4a9d5109
SW
180enable_shared = @enable_shared@
181enable_static = @enable_static@
ff66d28f 182exec_prefix = @exec_prefix@
3d7c150e
BK
183glibcxx_MOFILES = @glibcxx_MOFILES@
184glibcxx_PCHFLAGS = @glibcxx_PCHFLAGS@
185glibcxx_POFILES = @glibcxx_POFILES@
ff66d28f 186glibcxx_builddir = @glibcxx_builddir@
3d7c150e
BK
187glibcxx_localedir = @glibcxx_localedir@
188glibcxx_prefixdir = @glibcxx_prefixdir@
ff66d28f 189glibcxx_srcdir = @glibcxx_srcdir@
ff66d28f 190glibcxx_thread_h = @glibcxx_thread_h@
3d7c150e
BK
191glibcxx_toolexecdir = @glibcxx_toolexecdir@
192glibcxx_toolexeclibdir = @glibcxx_toolexeclibdir@
ff66d28f
PE
193gxx_include_dir = @gxx_include_dir@
194host = @host@
195host_alias = @host_alias@
196host_cpu = @host_cpu@
197host_os = @host_os@
198host_vendor = @host_vendor@
199includedir = @includedir@
200infodir = @infodir@
201install_sh = @install_sh@
202libdir = @libdir@
203libexecdir = @libexecdir@
4e10943d 204libtool_VERSION = @libtool_VERSION@
ff66d28f
PE
205localstatedir = @localstatedir@
206mandir = @mandir@
7eaf73d7 207mkdir_p = @mkdir_p@
ff66d28f
PE
208multi_basedir = @multi_basedir@
209oldincludedir = @oldincludedir@
210port_specific_symbol_files = @port_specific_symbol_files@
211prefix = @prefix@
212program_transform_name = @program_transform_name@
213sbindir = @sbindir@
214sharedstatedir = @sharedstatedir@
215sysconfdir = @sysconfdir@
216target = @target@
217target_alias = @target_alias@
218target_cpu = @target_cpu@
219target_os = @target_os@
220target_vendor = @target_vendor@
4a9d5109 221toplevel_srcdir = @toplevel_srcdir@
47194af4
ZW
222
223# May be used by various substitution variables.
224gcc_version := $(shell cat $(top_srcdir)/../gcc/BASE-VER)
4a9d5109 225MAINT_CHARSET = latin1
4a9d5109 226mkinstalldirs = $(SHELL) $(toplevel_srcdir)/mkinstalldirs
0df3f383 227PWD_COMMAND = $${PWDCMD-pwd}
82ba99d5 228STAMP = echo timestamp >
0df3f383
PE
229toolexecdir = $(glibcxx_toolexecdir)
230toolexeclibdir = $(glibcxx_toolexeclibdir)
231
232# These bits are all figured out from configure. Look in acinclude.m4
233# or configure.ac to see how they are set. See GLIBCXX_EXPORT_FLAGS.
234CONFIG_CXXFLAGS = \
235 $(SECTION_FLAGS) $(EXTRA_CXX_FLAGS)
236
237WARN_CXXFLAGS = \
238 $(WARN_FLAGS) $(WERROR) -fdiagnostics-show-location=once
239
240
241# -I/-D flags to pass when compiling.
242AM_CPPFLAGS = $(GLIBCXX_INCLUDES)
ab77073f
BK
243
244# Standard C++ includes.
3d7c150e 245std_srcdir = ${glibcxx_srcdir}/include/std
ab77073f 246std_builddir = .
53c2acdf
BK
247std_headers = \
248 ${std_srcdir}/std_algorithm.h \
249 ${std_srcdir}/std_bitset.h \
250 ${std_srcdir}/std_complex.h \
251 ${std_srcdir}/std_deque.h \
252 ${std_srcdir}/std_fstream.h \
253 ${std_srcdir}/std_functional.h \
254 ${std_srcdir}/std_iomanip.h \
255 ${std_srcdir}/std_ios.h \
256 ${std_srcdir}/std_iosfwd.h \
257 ${std_srcdir}/std_iostream.h \
258 ${std_srcdir}/std_istream.h \
259 ${std_srcdir}/std_iterator.h \
260 ${std_srcdir}/std_limits.h \
261 ${std_srcdir}/std_list.h \
262 ${std_srcdir}/std_locale.h \
263 ${std_srcdir}/std_map.h \
264 ${std_srcdir}/std_memory.h \
265 ${std_srcdir}/std_numeric.h \
266 ${std_srcdir}/std_ostream.h \
267 ${std_srcdir}/std_queue.h \
268 ${std_srcdir}/std_set.h \
269 ${std_srcdir}/std_sstream.h \
270 ${std_srcdir}/std_stack.h \
271 ${std_srcdir}/std_stdexcept.h \
272 ${std_srcdir}/std_streambuf.h \
273 ${std_srcdir}/std_string.h \
274 ${std_srcdir}/std_utility.h \
275 ${std_srcdir}/std_valarray.h \
276 ${std_srcdir}/std_vector.h
ab77073f 277
82ba99d5 278# Renamed at build time.
53c2acdf
BK
279std_headers_rename = \
280 algorithm \
281 bitset \
282 complex \
283 deque \
284 fstream \
285 functional \
286 iomanip \
287 ios \
288 iosfwd \
289 iostream \
290 istream \
291 iterator \
292 limits \
293 list \
294 locale \
295 map \
296 memory \
297 numeric \
298 ostream \
299 queue \
300 set \
301 sstream \
302 stack \
303 stdexcept \
304 streambuf \
305 string \
306 utility \
307 valarray \
308 vector
ab77073f 309
3d7c150e 310bits_srcdir = ${glibcxx_srcdir}/include/bits
4a9d5109 311bits_builddir = ./bits
53c2acdf 312bits_headers = \
1ff9402d 313 ${bits_srcdir}/allocator.h \
2c5d0ae8 314 ${bits_srcdir}/atomicity.h \
53c2acdf
BK
315 ${bits_srcdir}/basic_ios.h \
316 ${bits_srcdir}/basic_ios.tcc \
317 ${bits_srcdir}/basic_string.h \
318 ${bits_srcdir}/basic_string.tcc \
319 ${bits_srcdir}/boost_concept_check.h \
320 ${bits_srcdir}/char_traits.h \
321 ${bits_srcdir}/codecvt.h \
322 ${bits_srcdir}/concept_check.h \
3fe13738 323 ${bits_srcdir}/concurrence.h \
53c2acdf 324 ${bits_srcdir}/cpp_type_traits.h \
53c2acdf 325 ${bits_srcdir}/deque.tcc \
53c2acdf
BK
326 ${bits_srcdir}/fstream.tcc \
327 ${bits_srcdir}/functexcept.h \
328 ${bits_srcdir}/gslice.h \
329 ${bits_srcdir}/gslice_array.h \
330 ${bits_srcdir}/indirect_array.h \
331 ${bits_srcdir}/ios_base.h \
332 ${bits_srcdir}/istream.tcc \
333 ${bits_srcdir}/list.tcc \
334 ${bits_srcdir}/locale_classes.h \
335 ${bits_srcdir}/locale_facets.h \
336 ${bits_srcdir}/locale_facets.tcc \
337 ${bits_srcdir}/localefwd.h \
338 ${bits_srcdir}/mask_array.h \
339 ${bits_srcdir}/ostream.tcc \
4c4809c1 340 ${bits_srcdir}/postypes.h \
53c2acdf
BK
341 ${bits_srcdir}/stream_iterator.h \
342 ${bits_srcdir}/streambuf_iterator.h \
343 ${bits_srcdir}/slice_array.h \
344 ${bits_srcdir}/sstream.tcc \
345 ${bits_srcdir}/stl_algo.h \
346 ${bits_srcdir}/stl_algobase.h \
53c2acdf
BK
347 ${bits_srcdir}/stl_bvector.h \
348 ${bits_srcdir}/stl_construct.h \
349 ${bits_srcdir}/stl_deque.h \
350 ${bits_srcdir}/stl_function.h \
351 ${bits_srcdir}/stl_heap.h \
352 ${bits_srcdir}/stl_iterator.h \
353 ${bits_srcdir}/stl_iterator_base_funcs.h \
354 ${bits_srcdir}/stl_iterator_base_types.h \
355 ${bits_srcdir}/stl_list.h \
356 ${bits_srcdir}/stl_map.h \
357 ${bits_srcdir}/stl_multimap.h \
358 ${bits_srcdir}/stl_multiset.h \
359 ${bits_srcdir}/stl_numeric.h \
360 ${bits_srcdir}/stl_pair.h \
53c2acdf
BK
361 ${bits_srcdir}/stl_queue.h \
362 ${bits_srcdir}/stl_raw_storage_iter.h \
363 ${bits_srcdir}/stl_relops.h \
364 ${bits_srcdir}/stl_set.h \
365 ${bits_srcdir}/stl_stack.h \
366 ${bits_srcdir}/stl_tempbuf.h \
53c2acdf
BK
367 ${bits_srcdir}/stl_tree.h \
368 ${bits_srcdir}/stl_uninitialized.h \
369 ${bits_srcdir}/stl_vector.h \
370 ${bits_srcdir}/streambuf.tcc \
371 ${bits_srcdir}/stringfwd.h \
53c2acdf
BK
372 ${bits_srcdir}/valarray_array.h \
373 ${bits_srcdir}/valarray_array.tcc \
374 ${bits_srcdir}/valarray_before.h \
375 ${bits_srcdir}/valarray_after.h \
376 ${bits_srcdir}/vector.tcc
4a9d5109 377
3d7c150e 378backward_srcdir = ${glibcxx_srcdir}/include/backward
4a9d5109 379backward_builddir = ./backward
53c2acdf
BK
380backward_headers = \
381 ${backward_srcdir}/complex.h \
382 ${backward_srcdir}/iomanip.h \
383 ${backward_srcdir}/istream.h \
384 ${backward_srcdir}/ostream.h \
385 ${backward_srcdir}/stream.h \
386 ${backward_srcdir}/streambuf.h \
387 ${backward_srcdir}/algo.h \
388 ${backward_srcdir}/algobase.h \
389 ${backward_srcdir}/alloc.h \
390 ${backward_srcdir}/bvector.h \
391 ${backward_srcdir}/defalloc.h \
392 ${backward_srcdir}/deque.h \
393 ${backward_srcdir}/function.h \
394 ${backward_srcdir}/hash_map.h \
395 ${backward_srcdir}/hash_set.h \
396 ${backward_srcdir}/hashtable.h \
397 ${backward_srcdir}/heap.h \
398 ${backward_srcdir}/iostream.h \
399 ${backward_srcdir}/iterator.h \
400 ${backward_srcdir}/list.h \
401 ${backward_srcdir}/map.h \
402 ${backward_srcdir}/multimap.h \
403 ${backward_srcdir}/new.h \
404 ${backward_srcdir}/multiset.h \
405 ${backward_srcdir}/pair.h \
406 ${backward_srcdir}/queue.h \
407 ${backward_srcdir}/rope.h \
408 ${backward_srcdir}/set.h \
409 ${backward_srcdir}/slist.h \
410 ${backward_srcdir}/stack.h \
411 ${backward_srcdir}/tempbuf.h \
412 ${backward_srcdir}/tree.h \
413 ${backward_srcdir}/vector.h \
414 ${backward_srcdir}/fstream.h \
415 ${backward_srcdir}/strstream \
416 ${backward_srcdir}/backward_warning.h
4a9d5109 417
3d7c150e 418ext_srcdir = ${glibcxx_srcdir}/include/ext
4a9d5109 419ext_builddir = ./ext
53c2acdf
BK
420ext_headers = \
421 ${ext_srcdir}/algorithm \
3febde35 422 ${ext_srcdir}/array_allocator.h \
009368db 423 ${ext_srcdir}/bitmap_allocator.h \
825bd0e1 424 ${ext_srcdir}/codecvt_specializations.h \
1ff9402d 425 ${ext_srcdir}/debug_allocator.h \
53c2acdf 426 ${ext_srcdir}/stdio_filebuf.h \
51ff8149 427 ${ext_srcdir}/stdio_sync_filebuf.h \
53c2acdf
BK
428 ${ext_srcdir}/functional \
429 ${ext_srcdir}/hash_map \
430 ${ext_srcdir}/hash_set \
431 ${ext_srcdir}/iterator \
1ff9402d 432 ${ext_srcdir}/malloc_allocator.h \
53c2acdf 433 ${ext_srcdir}/memory \
1ff9402d
BK
434 ${ext_srcdir}/mt_allocator.h \
435 ${ext_srcdir}/new_allocator.h \
53c2acdf 436 ${ext_srcdir}/numeric \
9e7facfd 437 ${ext_srcdir}/pod_char_traits.h \
1ff9402d 438 ${ext_srcdir}/pool_allocator.h \
53c2acdf
BK
439 ${ext_srcdir}/rb_tree \
440 ${ext_srcdir}/rope \
441 ${ext_srcdir}/ropeimpl.h \
442 ${ext_srcdir}/slist \
b2acb86f 443 ${ext_srcdir}/hash_fun.h \
82ba99d5 444 ${ext_srcdir}/hashtable.h
4a9d5109 445
3febde35
BK
446tr1_srcdir = ${glibcxx_srcdir}/include/tr1
447tr1_builddir = ./tr1
448tr1_headers = \
a520f0b0 449 ${tr1_srcdir}/array \
b758b22a 450 ${tr1_srcdir}/boost_shared_ptr.h \
f2ede5d6 451 ${tr1_srcdir}/functional \
0179f2c6 452 ${tr1_srcdir}/functional_iterate.h \
7dfded91 453 ${tr1_srcdir}/memory \
3c235000
DG
454 ${tr1_srcdir}/ref_wrap_iterate.h \
455 ${tr1_srcdir}/repeat.h \
f2ede5d6 456 ${tr1_srcdir}/tuple \
493bc460 457 ${tr1_srcdir}/utility \
821c5063 458 ${tr1_srcdir}/type_traits \
180ecd6a
MA
459 ${tr1_srcdir}/type_traits_fwd.h \
460 ${tr1_srcdir}/hashtable \
461 ${tr1_srcdir}/unordered_set \
462 ${tr1_srcdir}/unordered_map
4a9d5109 463
ab9b9d2c 464
4a9d5109 465# This is the common subset of files that all three "C" header models use.
ca618b60 466c_base_srcdir = $(C_INCLUDE_DIR)
73249e33 467c_base_builddir = .
53c2acdf
BK
468c_base_headers = \
469 ${c_base_srcdir}/std_cassert.h \
470 ${c_base_srcdir}/std_cctype.h \
471 ${c_base_srcdir}/std_cerrno.h \
472 ${c_base_srcdir}/std_cfloat.h \
473 ${c_base_srcdir}/std_ciso646.h \
474 ${c_base_srcdir}/std_climits.h \
475 ${c_base_srcdir}/std_clocale.h \
476 ${c_base_srcdir}/std_cmath.h \
477 ${c_base_srcdir}/std_csetjmp.h \
478 ${c_base_srcdir}/std_csignal.h \
479 ${c_base_srcdir}/std_cstdarg.h \
480 ${c_base_srcdir}/std_cstddef.h \
481 ${c_base_srcdir}/std_cstdio.h \
482 ${c_base_srcdir}/std_cstdlib.h \
483 ${c_base_srcdir}/std_cstring.h \
484 ${c_base_srcdir}/std_ctime.h \
485 ${c_base_srcdir}/std_cwchar.h \
82ba99d5 486 ${c_base_srcdir}/std_cwctype.h
53c2acdf
BK
487
488c_base_headers_rename = \
489 cassert \
490 cctype \
491 cerrno \
492 cfloat \
493 ciso646 \
494 climits \
495 clocale \
496 cmath \
497 csetjmp \
498 csignal \
499 cstdarg \
500 cstddef \
501 cstdio \
502 cstdlib \
503 cstring \
504 ctime \
505 cwchar \
82ba99d5 506 cwctype
83144cfc 507
e01c9849
BK
508
509# "C" compatibility headers.
3d7c150e 510c_compatibility_srcdir = ${glibcxx_srcdir}/include/c_compatibility
e01c9849 511c_compatibility_builddir = .
53c2acdf
BK
512c_compatibility_headers = \
513 ${c_compatibility_srcdir}/assert.h \
514 ${c_compatibility_srcdir}/ctype.h \
515 ${c_compatibility_srcdir}/errno.h \
516 ${c_compatibility_srcdir}/float.h \
517 ${c_compatibility_srcdir}/iso646.h \
518 ${c_compatibility_srcdir}/limits.h \
519 ${c_compatibility_srcdir}/locale.h \
520 ${c_compatibility_srcdir}/math.h \
521 ${c_compatibility_srcdir}/setjmp.h \
522 ${c_compatibility_srcdir}/signal.h \
523 ${c_compatibility_srcdir}/stdarg.h \
524 ${c_compatibility_srcdir}/stddef.h \
525 ${c_compatibility_srcdir}/stdio.h \
526 ${c_compatibility_srcdir}/stdlib.h \
527 ${c_compatibility_srcdir}/string.h \
528 ${c_compatibility_srcdir}/time.h \
529 ${c_compatibility_srcdir}/wchar.h \
82ba99d5 530 ${c_compatibility_srcdir}/wctype.h
53c2acdf 531
ff66d28f 532
285b36d6
BK
533# Debug mode headers
534debug_srcdir = ${glibcxx_srcdir}/include/debug
535debug_builddir = ./debug
536debug_headers = \
537 ${debug_srcdir}/bitset \
538 ${debug_srcdir}/debug.h \
539 ${debug_srcdir}/deque \
540 ${debug_srcdir}/formatter.h \
541 ${debug_srcdir}/hash_map \
542 ${debug_srcdir}/hash_map.h \
543 ${debug_srcdir}/hash_multimap.h \
544 ${debug_srcdir}/hash_multiset.h \
545 ${debug_srcdir}/hash_set \
546 ${debug_srcdir}/hash_set.h \
547 ${debug_srcdir}/list \
548 ${debug_srcdir}/map \
549 ${debug_srcdir}/map.h \
550 ${debug_srcdir}/multimap.h \
551 ${debug_srcdir}/multiset.h \
552 ${debug_srcdir}/safe_base.h \
553 ${debug_srcdir}/safe_iterator.h \
554 ${debug_srcdir}/safe_iterator.tcc \
555 ${debug_srcdir}/safe_sequence.h \
556 ${debug_srcdir}/set \
557 ${debug_srcdir}/set.h \
558 ${debug_srcdir}/string \
559 ${debug_srcdir}/vector
560
ec2075e9 561@GLIBCXX_C_HEADERS_C_STD_FALSE@c_base_headers_extra =
285b36d6 562
ff66d28f
PE
563# Some of the different "C" header models need extra files.
564# Some "C" header schemes require the "C" compatibility headers.
565# For --enable-cheaders=c_std
82ba99d5 566@GLIBCXX_C_HEADERS_C_STD_TRUE@c_base_headers_extra = ${c_base_srcdir}/cmath.tcc
40fcf31b 567@GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE@c_compatibility_headers_extra =
ec2075e9 568@GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE@c_compatibility_headers_extra = ${c_compatibility_headers}
ca618b60 569host_srcdir = ${glibcxx_srcdir}/$(OS_INC_SRCDIR)
a30335e9
BK
570host_builddir = ./${host_alias}/bits
571host_headers = \
572 ${host_srcdir}/ctype_base.h \
573 ${host_srcdir}/ctype_inline.h \
574 ${host_srcdir}/ctype_noninline.h \
575 ${host_srcdir}/os_defines.h \
1568430f
PB
576 ${glibcxx_srcdir}/$(ATOMIC_WORD_SRCDIR)/atomic_word.h \
577 ${glibcxx_srcdir}/$(ABI_TWEAKS_SRCDIR)/cxxabi_tweaks.h
7bfea936 578
6aa43d99 579
a30335e9
BK
580# Non-installed host_header files.
581host_headers_noinst = \
ca618b60 582 ${glibcxx_srcdir}/$(CLOCALE_INTERNAL_H)
6aa43d99
BK
583
584
a30335e9
BK
585# These host_headers_extra files are all built with ad hoc naming rules.
586host_headers_extra = \
587 ${host_builddir}/basic_file.h \
588 ${host_builddir}/c++config.h \
8b0d6051 589 ${host_builddir}/c++allocator.h \
a30335e9
BK
590 ${host_builddir}/c++io.h \
591 ${host_builddir}/c++locale.h \
592 ${host_builddir}/messages_members.h \
825bd0e1 593 ${host_builddir}/time_members.h
8520f704 594
a30335e9
BK
595thread_host_headers = \
596 ${host_builddir}/gthr.h \
597 ${host_builddir}/gthr-single.h \
598 ${host_builddir}/gthr-posix.h \
512baaea 599 ${host_builddir}/gthr-tpf.h \
a30335e9 600 ${host_builddir}/gthr-default.h
8520f704 601
a30335e9
BK
602pch_input = ${host_builddir}/stdc++.h
603pch_output_builddir = ${host_builddir}/stdc++.h.gch
3d7c150e 604pch_source = ${glibcxx_srcdir}/include/stdc++.h
9e57d5ca 605PCHFLAGS = -Winvalid-pch -Wno-deprecated -x c++-header $(CXXFLAGS)
4c24b21a 606@GLIBCXX_BUILD_PCH_FALSE@pch_build =
7eaf73d7 607@GLIBCXX_BUILD_PCH_TRUE@pch_build = ${pch_input}
4c24b21a 608@GLIBCXX_BUILD_PCH_FALSE@pch_install =
7eaf73d7 609@GLIBCXX_BUILD_PCH_TRUE@pch_install = install-pch
628c731a 610
4a9d5109
SW
611# List of all timestamp files. By keeping only one copy of this list, both
612# CLEANFILES and all-local are kept up-to-date.
53c2acdf
BK
613allstamped = \
614 stamp-std stamp-bits stamp-c_base stamp-c_compatibility \
3febde35 615 stamp-backward stamp-ext stamp-tr1 stamp-debug stamp-host
628c731a 616
4a9d5109 617
9e57d5ca
BK
618# List of all files that are created by explicit building, editing, or
619# catenation.
53c2acdf 620allcreated = \
a30335e9
BK
621 ${host_builddir}/c++config.h \
622 ${thread_host_headers} \
53c2acdf 623 ${pch_build}
9e57d5ca 624
ca618b60
PE
625
626# Host includes for threads
4a9d5109
SW
627uppercase = [ABCDEFGHIJKLMNOPQRSTUVWXYZ_]
628
ab77073f 629# By adding these files here, automake will remove them for 'make clean'
53c2acdf 630CLEANFILES = ${pch_input} ${pch_output_builddir}/*
ff66d28f 631all: all-am
54c1bf78 632
54c1bf78 633.SUFFIXES:
7eaf73d7
KC
634$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/fragment.am $(am__configure_deps)
635 @for dep in $?; do \
636 case '$(am__configure_deps)' in \
637 *$$dep*) \
638 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
639 && exit 0; \
640 exit 1;; \
641 esac; \
642 done; \
643 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign --ignore-deps include/Makefile'; \
ff66d28f 644 cd $(top_srcdir) && \
7eaf73d7
KC
645 $(AUTOMAKE) --foreign --ignore-deps include/Makefile
646Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
647 @case '$?' in \
648 *config.status*) \
649 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
650 *) \
651 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
652 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
653 esac;
654
655$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
656 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
657
658$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
659 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
660$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
661 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
ff66d28f
PE
662
663mostlyclean-libtool:
664 -rm -f *.lo
54c1bf78 665
ff66d28f
PE
666clean-libtool:
667 -rm -rf .libs _libs
f53d0ff1 668
ff66d28f
PE
669distclean-libtool:
670 -rm -f libtool
671uninstall-info-am:
4a9d5109
SW
672tags: TAGS
673TAGS:
674
ff66d28f
PE
675ctags: CTAGS
676CTAGS:
4a9d5109 677
54c1bf78
BK
678
679distdir: $(DISTFILES)
7eaf73d7 680 $(mkdir_p) $(distdir)/..
ff66d28f
PE
681 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
682 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
683 list='$(DISTFILES)'; for file in $$list; do \
684 case $$file in \
685 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
686 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
687 esac; \
688 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
689 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
690 if test "$$dir" != "$$file" && test "$$dir" != "."; then \
691 dir="/$$dir"; \
7eaf73d7 692 $(mkdir_p) "$(distdir)$$dir"; \
ff66d28f
PE
693 else \
694 dir=''; \
695 fi; \
54c1bf78 696 if test -d $$d/$$file; then \
ff66d28f
PE
697 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
698 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
699 fi; \
700 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
54c1bf78
BK
701 else \
702 test -f $(distdir)/$$file \
ff66d28f
PE
703 || cp -p $$d/$$file $(distdir)/$$file \
704 || exit 1; \
54c1bf78
BK
705 fi; \
706 done
ff66d28f 707check-am: all-am
54c1bf78 708check: check-am
ff66d28f 709all-am: Makefile all-local
ff66d28f
PE
710installdirs:
711install: install-am
712install-exec: install-exec-am
2c1bc4eb 713install-data: install-data-am
ff66d28f 714uninstall: uninstall-am
4a9d5109 715
2c1bc4eb
PC
716install-am: all-am
717 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
54c1bf78 718
ff66d28f
PE
719installcheck: installcheck-am
720install-strip:
721 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
ec2075e9 722 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
ff66d28f
PE
723 `test -z '$(STRIP)' || \
724 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
4a9d5109
SW
725mostlyclean-generic:
726
727clean-generic:
ab77073f 728 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
4a9d5109
SW
729
730distclean-generic:
a60945f8 731 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
4a9d5109
SW
732
733maintainer-clean-generic:
ff66d28f
PE
734 @echo "This command is intended for maintainers to use"
735 @echo "it deletes files that may require special tools to rebuild."
736clean: clean-am
2c1bc4eb 737
ff66d28f 738clean-am: clean-generic clean-libtool mostlyclean-am
f53d0ff1 739
ff66d28f 740distclean: distclean-am
4c4809c1 741 -rm -f Makefile
ff66d28f 742distclean-am: clean-am distclean-generic distclean-libtool
f53d0ff1 743
ff66d28f 744dvi: dvi-am
f53d0ff1 745
ff66d28f 746dvi-am:
f53d0ff1 747
7eaf73d7
KC
748html: html-am
749
ff66d28f
PE
750info: info-am
751
752info-am:
753
754install-data-am: install-data-local
755
756install-exec-am:
757
758install-info: install-info-am
759
760install-man:
761
762installcheck-am:
4a9d5109
SW
763
764maintainer-clean: maintainer-clean-am
4c4809c1 765 -rm -f Makefile
ff66d28f
PE
766maintainer-clean-am: distclean-am maintainer-clean-generic
767
768mostlyclean: mostlyclean-am
769
770mostlyclean-am: mostlyclean-generic mostlyclean-libtool
771
772pdf: pdf-am
773
774pdf-am:
775
776ps: ps-am
777
778ps-am:
779
780uninstall-am: uninstall-info-am
781
782.PHONY: all all-am all-local check check-am clean clean-generic \
783 clean-libtool distclean distclean-generic distclean-libtool \
7eaf73d7
KC
784 distdir dvi dvi-am html html-am info info-am install \
785 install-am install-data install-data-am install-data-local \
786 install-exec install-exec-am install-info install-info-am \
787 install-man install-strip installcheck installcheck-am \
788 installdirs maintainer-clean maintainer-clean-generic \
789 mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \
790 ps ps-am uninstall uninstall-am uninstall-info-am
4a9d5109
SW
791
792
793# Here are the rules for building the headers
82ba99d5 794all-local: ${allstamped} ${allcreated}
4a9d5109 795
066930bb
PE
796# This rule is slightly different, in that we must change the name of the
797# local file from std_foo.h to foo.
4a9d5109
SW
798stamp-std: ${std_headers}
799 @if [ ! -d "${std_builddir}" ]; then \
800 mkdir -p ${std_builddir} ;\
801 fi ;\
7ec3af37
BK
802 if [ ! -f stamp-std ]; then \
803 (cd ${std_builddir} && for h in $?; do \
804 official_name=`echo $$h | sed -e 's,.*/std_,,' -e 's,\.h$$,,'` ;\
82ba99d5 805 $(LN_S) $$h ./$${official_name} || true ;\
7ec3af37 806 done) ;\
82ba99d5
PE
807 fi ;\
808 $(STAMP) stamp-std
ab77073f 809
4a9d5109
SW
810stamp-bits: ${bits_headers}
811 @if [ ! -d "${bits_builddir}" ]; then \
812 mkdir -p ${bits_builddir} ;\
813 fi ;\
7ec3af37 814 if [ ! -f stamp-bits ]; then \
82ba99d5
PE
815 (cd ${bits_builddir} && $(LN_S) $? . || true) ;\
816 fi ;\
817 $(STAMP) stamp-bits
4a9d5109 818
82ba99d5 819stamp-c_base: stamp-bits ${c_base_headers} ${c_base_headers_extra}
4a9d5109
SW
820 @if [ ! -d "${c_base_builddir}" ]; then \
821 mkdir -p ${c_base_builddir} ;\
822 fi ;\
7ec3af37 823 if [ ! -f stamp-c_base ]; then \
9e57d5ca
BK
824 (cd ${c_base_builddir} && for h in ${c_base_headers}; do \
825 official_name=`echo $$h | sed -e 's,.*/std_,,' -e 's,\.h$$,,'` ;\
82ba99d5 826 $(LN_S) $$h ./$${official_name} || true ;\
9e57d5ca 827 done) ;\
7ec3af37 828 if [ ! -z "${c_base_headers_extra}" ]; then \
82ba99d5 829 (cd ${bits_builddir} && $(LN_S) ${c_base_headers_extra} . || true) ;\
7ec3af37 830 fi ;\
82ba99d5
PE
831 fi ;\
832 $(STAMP) stamp-c_base
4a9d5109 833
e01c9849
BK
834stamp-c_compatibility: ${c_compatibility_headers_extra}
835 @if [ ! -d "${c_compatibility_builddir}" ]; then \
836 mkdir -p ${c_compatibility_builddir} ;\
837 fi ;\
7ec3af37
BK
838 if [ ! -f stamp-c_compatibility ]; then \
839 if [ ! -z "${c_compatibility_headers_extra}" ]; then \
82ba99d5 840 (cd ${c_compatibility_builddir} && $(LN_S) $? . || true) ;\
7ec3af37 841 fi ;\
82ba99d5
PE
842 fi ;\
843 $(STAMP) stamp-c_compatibility
e01c9849 844
4a9d5109
SW
845stamp-backward: ${backward_headers}
846 @if [ ! -d "${backward_builddir}" ]; then \
847 mkdir -p ${backward_builddir} ;\
848 fi ;\
7ec3af37 849 if [ ! -f stamp-backward ]; then \
82ba99d5
PE
850 (cd ${backward_builddir} && $(LN_S) $? . || true) ;\
851 fi ;\
852 $(STAMP) stamp-backward
4a9d5109
SW
853
854stamp-ext: ${ext_headers}
855 @if [ ! -d "${ext_builddir}" ]; then \
7ec3af37 856 mkdir -p ${ext_builddir} ;\
4a9d5109 857 fi ;\
7ec3af37 858 if [ ! -f stamp-ext ]; then \
82ba99d5
PE
859 (cd ${ext_builddir} && $(LN_S) $? . || true) ;\
860 fi ;\
861 $(STAMP) stamp-ext
4a9d5109 862
3febde35
BK
863stamp-tr1: ${tr1_headers}
864 @if [ ! -d "${tr1_builddir}" ]; then \
865 mkdir -p ${tr1_builddir} ;\
866 fi ;\
867 if [ ! -f stamp-tr1 ]; then \
868 (cd ${tr1_builddir} && $(LN_S) $? . || true) ;\
869 fi ;\
870 $(STAMP) stamp-tr1
871
285b36d6
BK
872stamp-debug: ${debug_headers}
873 @if [ ! -d "${debug_builddir}" ]; then \
874 mkdir -p ${debug_builddir} ;\
875 fi ;\
876 if [ ! -f stamp-debug ]; then \
877 (cd ${debug_builddir} && @LN_S@ $? . || true) ;\
878 fi ;\
879 $(STAMP) stamp-debug
880
a30335e9
BK
881stamp-${host_alias}:
882 @if [ ! -d ${host_builddir} ]; then \
883 mkdir -p ${host_builddir} ;\
82ba99d5
PE
884 fi ;\
885 $(STAMP) stamp-${host_alias}
843312be 886
a30335e9
BK
887# Host includes static.
888# XXX Missing dependency info for {host_headers_extra}
889stamp-host: ${host_headers} ${host_headers_noinst} stamp-${host_alias}
890 @if [ ! -f stamp-host ]; then \
891 (cd ${host_builddir} ;\
82ba99d5 892 $(LN_S) ${host_headers} . || true ;\
ca618b60 893 $(LN_S) ${glibcxx_srcdir}/$(BASIC_FILE_H) basic_file.h || true ;\
8b0d6051 894 $(LN_S) ${glibcxx_srcdir}/$(ALLOCATOR_H) c++allocator.h || true ;\
ca618b60
PE
895 $(LN_S) ${glibcxx_srcdir}/$(CSTDIO_H) c++io.h || true ;\
896 $(LN_S) ${glibcxx_srcdir}/$(CLOCALE_H) c++locale.h || true ;\
897 $(LN_S) ${glibcxx_srcdir}/$(CLOCALE_INTERNAL_H) . || true ;\
898 $(LN_S) ${glibcxx_srcdir}/$(CMESSAGES_H) messages_members.h || true ;\
899 $(LN_S) ${glibcxx_srcdir}/$(CTIME_H) time_members.h || true ;\
900 $(LN_S) ${glibcxx_srcdir}/$(CCODECVT_H) codecvt_specializations.h || true);\
82ba99d5
PE
901 fi ;\
902 $(STAMP) stamp-host
4a9d5109 903
a30335e9 904# Host includes dynamic.
82ba99d5 905${host_builddir}/c++config.h: ${top_builddir}/config.h \
3d7c150e 906 ${glibcxx_srcdir}/include/bits/c++config \
a1286ef5
ZW
907 stamp-${host_alias} \
908 ${toplevel_srcdir}/gcc/DATESTAMP
3d7c150e 909 @cat ${glibcxx_srcdir}/include/bits/c++config > $@ ;\
a1286ef5
ZW
910 sed -e 's/^/#define __GLIBCXX__ /' \
911 < ${toplevel_srcdir}/gcc/DATESTAMP >> $@ ;\
3d7c150e
BK
912 sed -e 's/HAVE_/_GLIBCXX_HAVE_/g' \
913 -e 's/PACKAGE/_GLIBCXX_PACKAGE/g' \
914 -e 's/VERSION/_GLIBCXX_VERSION/g' \
915 -e 's/WORDS_/_GLIBCXX_WORDS_/g' \
42ebb17f 916 < ${CONFIG_HEADER} >> $@ ;\
3d7c150e 917 echo "#endif // _CXXCONFIG_" >>$@
4a9d5109 918
a30335e9 919${host_builddir}/gthr.h: ${toplevel_srcdir}/gcc/gthr.h stamp-${host_alias}
168aacd9
JM
920 sed -e '/^#pragma/b' \
921 -e '/^#/s/\(${uppercase}${uppercase}*\)/_GLIBCXX_\1/g' \
ec2075e9 922 -e 's/_GLIBCXX_SUPPORTS_WEAK/__GXX_WEAK__/g' \
4a9d5109 923 -e 's,^#include "\(.*\)",#include <bits/\1>,g' \
533ab4d1 924 < ${toplevel_srcdir}/gcc/gthr.h > $@
4a9d5109 925
a30335e9
BK
926${host_builddir}/gthr-single.h: ${toplevel_srcdir}/gcc/gthr-single.h \
927 stamp-${host_alias}
3d7c150e
BK
928 sed -e 's/\(UNUSED\)/_GLIBCXX_\1/g' \
929 -e 's/\(GCC${uppercase}*_H\)/_GLIBCXX_\1/g' \
533ab4d1 930 < ${toplevel_srcdir}/gcc/gthr-single.h > $@
4a9d5109 931
a30335e9
BK
932${host_builddir}/gthr-posix.h: ${toplevel_srcdir}/gcc/gthr-posix.h \
933 stamp-${host_alias}
3d7c150e
BK
934 sed -e 's/\(UNUSED\)/_GLIBCXX_\1/g' \
935 -e 's/\(GCC${uppercase}*_H\)/_GLIBCXX_\1/g' \
ec2075e9
BK
936 -e 's/SUPPORTS_WEAK/__GXX_WEAK__/g' \
937 -e 's/\(${uppercase}*USE_WEAK\)/_GLIBCXX_\1/g' \
79d6ba0b
LR
938 < ${toplevel_srcdir}/gcc/gthr-posix.h > $@
939
512baaea
D
940${host_builddir}/gthr-tpf.h: ${toplevel_srcdir}/gcc/gthr-tpf.h \
941 stamp-${host_alias}
942 sed -e 's/\(UNUSED\)/_GLIBCXX_\1/g' \
943 -e 's/\(GCC${uppercase}*_H\)/_GLIBCXX_\1/g' \
944 -e 's/SUPPORTS_WEAK/__GXX_WEAK__/g' \
945 -e 's/\(${uppercase}*USE_WEAK\)/_GLIBCXX_\1/g' \
946 < ${toplevel_srcdir}/gcc/gthr-tpf.h > $@
947
3d7c150e 948${host_builddir}/gthr-default.h: ${toplevel_srcdir}/gcc/${glibcxx_thread_h} \
a30335e9 949 stamp-${host_alias}
3d7c150e
BK
950 sed -e 's/\(UNUSED\)/_GLIBCXX_\1/g' \
951 -e 's/\(GCC${uppercase}*_H\)/_GLIBCXX_\1/g' \
ec2075e9
BK
952 -e 's/SUPPORTS_WEAK/__GXX_WEAK__/g' \
953 -e 's/\(${uppercase}*USE_WEAK\)/_GLIBCXX_\1/g' \
79d6ba0b 954 -e 's,^#include "\(.*\)",#include <bits/\1>,g' \
3d7c150e 955 < ${toplevel_srcdir}/gcc/${glibcxx_thread_h} > $@
9e57d5ca
BK
956
957# Build a precompiled C++ include, stdc++.h.gch.
a30335e9 958${pch_input}: ${allstamped} ${host_builddir}/c++config.h ${pch_source}
665794a6 959 touch ${pch_input}; \
8520f704
LR
960 if [ ! -d "${pch_output_builddir}" ]; then \
961 mkdir -p ${pch_output_builddir}; \
962 fi; \
e4cb0c04
PB
963 $(CXX) $(PCHFLAGS) $(AM_CPPFLAGS) ${pch_source} -O0 -g -o ${pch_output_builddir}/O0g.gch; \
964 $(CXX) $(PCHFLAGS) $(AM_CPPFLAGS) ${pch_source} -O2 -g -o ${pch_output_builddir}/O2g.gch;
9e57d5ca 965
92eabea2
PE
966# For robustness sake (in light of junk files or in-source
967# configuration), copy from the build or source tree to the install
968# tree using only the human-maintained file lists and directory
969# components. Yes, with minor differences, this is sheer duplication
970# of the staging rules above using $(INSTALL_DATA) instead of LN_S and
971# `$(mkinstalldirs)' instead of `mkdir -p'. In particular,
972# host_headers_extra are taken out of the build tree staging area;
973# the rest are taken from the original source tree.
9e57d5ca 974
92eabea2
PE
975@GLIBCXX_HOSTED_TRUE@install-data-local: install-headers ${pch_install}
976@GLIBCXX_HOSTED_FALSE@install-data-local: install-freestanding-headers
977
978# This is a subset of the full install-headers rule. We only need <cstddef>,
979# <limits>, <cstdlib>, <cstdarg>, <new>, <typeinfo>, <exception>, and any
980# files which they include (and which we provide). The last three headers
981# are installed by libsupc++, so only the first four and the sub-includes
982# are copied here.
983install-freestanding-headers:
984 $(mkinstalldirs) $(DESTDIR)${gxx_include_dir}
985 $(mkinstalldirs) $(DESTDIR)${gxx_include_dir}/${host_builddir}
986 for file in ${host_srcdir}/os_defines.h ${host_builddir}/c++config.h; do \
987 $(INSTALL_DATA) $${file} $(DESTDIR)${gxx_include_dir}/${host_builddir}; done
988 $(mkinstalldirs) $(DESTDIR)${gxx_include_dir}/${std_builddir}
989 $(INSTALL_DATA) ${std_builddir}/limits $(DESTDIR)${gxx_include_dir}/${std_builddir}
990 $(mkinstalldirs) $(DESTDIR)${gxx_include_dir}/${c_base_builddir}
991 for file in cstddef cstdlib cstdarg; do \
992 $(INSTALL_DATA) ${c_base_builddir}/$${file} $(DESTDIR)${gxx_include_dir}/${c_base_builddir}; done
993
994# The real deal.
9e57d5ca 995install-headers:
90e5b39f
CC
996 $(mkinstalldirs) $(DESTDIR)${gxx_include_dir}
997 $(mkinstalldirs) $(DESTDIR)${gxx_include_dir}/${bits_builddir}
7bfea936 998 for file in ${bits_headers}; do \
90e5b39f
CC
999 $(INSTALL_DATA) $${file} $(DESTDIR)${gxx_include_dir}/${bits_builddir}; done
1000 $(mkinstalldirs) $(DESTDIR)${gxx_include_dir}/${backward_builddir}
7bfea936 1001 for file in ${backward_headers}; do \
90e5b39f
CC
1002 $(INSTALL_DATA) $${file} $(DESTDIR)${gxx_include_dir}/${backward_builddir}; done
1003 $(mkinstalldirs) $(DESTDIR)${gxx_include_dir}/${ext_builddir}
7bfea936 1004 for file in ${ext_headers}; do \
90e5b39f 1005 $(INSTALL_DATA) $${file} $(DESTDIR)${gxx_include_dir}/${ext_builddir}; done
3febde35
BK
1006 $(mkinstalldirs) $(DESTDIR)${gxx_include_dir}/${tr1_builddir}
1007 for file in ${tr1_headers}; do \
1008 $(INSTALL_DATA) $${file} $(DESTDIR)${gxx_include_dir}/${tr1_builddir}; done
90e5b39f 1009 $(mkinstalldirs) $(DESTDIR)${gxx_include_dir}/${c_base_builddir}
73249e33 1010 for file in ${c_base_headers_rename}; do \
90e5b39f 1011 $(INSTALL_DATA) ${c_base_builddir}/$${file} $(DESTDIR)${gxx_include_dir}/${c_base_builddir}; done
e01c9849 1012 c_base_headers_extra_install='$(c_base_headers_extra)';\
3eb35fcf 1013 for file in $$c_base_headers_extra_install; do \
90e5b39f 1014 $(INSTALL_DATA) $$file $(DESTDIR)${gxx_include_dir}/${bits_builddir}; done
e01c9849
BK
1015 c_compatibility_headers_install='$(c_compatibility_headers_extra)';\
1016 for file in $$c_compatibility_headers_install; do \
90e5b39f
CC
1017 $(INSTALL_DATA) $$file $(DESTDIR)${gxx_include_dir}; done
1018 $(mkinstalldirs) $(DESTDIR)${gxx_include_dir}/${std_builddir}
73249e33 1019 for file in ${std_headers_rename}; do \
90e5b39f 1020 $(INSTALL_DATA) ${std_builddir}/$${file} $(DESTDIR)${gxx_include_dir}/${std_builddir}; done
285b36d6
BK
1021 $(mkinstalldirs) $(DESTDIR)${gxx_include_dir}/${debug_builddir}
1022 for file in ${debug_headers}; do \
1023 $(INSTALL_DATA) $${file} $(DESTDIR)${gxx_include_dir}/${debug_builddir}; done
a30335e9
BK
1024 $(mkinstalldirs) $(DESTDIR)${gxx_include_dir}/${host_builddir}
1025 for file in ${host_headers} ${host_headers_extra} \
1026 ${thread_host_headers}; do \
1027 $(INSTALL_DATA) $${file} $(DESTDIR)${gxx_include_dir}/${host_builddir}; done
4a9d5109 1028
9e57d5ca 1029install-pch:
8520f704
LR
1030 $(mkinstalldirs) $(DESTDIR)${gxx_include_dir}/${pch_output_builddir}
1031 for file in ${pch_output_builddir}/*; do \
1032 $(INSTALL_DATA) $$file $(DESTDIR)${gxx_include_dir}/${pch_output_builddir}; done
9e57d5ca 1033
c5535768
BK
1034# Stop implicit '.o' make rules from ever stomping on extensionless
1035# headers, in the improbable case where some foolish, crack-addled
1036# developer tries to create them via make in the include build
654421eb
DE
1037# directory. (This is more of an example of how this kind of rule can
1038# be made.)
c5535768
BK
1039.PRECIOUS: $(std_headers_rename) $(c_base_headers_rename)
1040$(std_headers_rename): ; @:
1041$(c_base_headers_rename): ; @:
4a9d5109
SW
1042# Tell versions [3.59,3.63) of GNU make to not export all variables.
1043# Otherwise a system limit (for SysV at least) may be exceeded.
1044.NOEXPORT: