1## Makefile for the include subdirectory of the GNU C++ Standard library.
2##
3## Copyright (C) 2001-2020 Free Software Foundation, Inc.
4##
5## This file is part of the libstdc++ version 3 distribution.
6## Process this file with automake to produce Makefile.in.
7
8## This file is part of the GNU ISO C++ Library.  This library is free
9## software; you can redistribute it and/or modify it under the
10## terms of the GNU General Public License as published by the
11## Free Software Foundation; either version 3, or (at your option)
12## any later version.
13
14## This library is distributed in the hope that it will be useful,
15## but WITHOUT ANY WARRANTY; without even the implied warranty of
16## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17## GNU General Public License for more details.
18
19## You should have received a copy of the GNU General Public License along
20## with this library; see the file COPYING3.  If not see
21## <http://www.gnu.org/licenses/>.
22
23include $(top_srcdir)/fragment.am
24
25# Standard C++ includes.
26std_srcdir = ${glibcxx_srcdir}/include/std
27std_builddir = .
28std_headers = \
29	${std_srcdir}/algorithm \
30	${std_srcdir}/any \
31	${std_srcdir}/array \
32	${std_srcdir}/atomic \
33	${std_srcdir}/bit \
34	${std_srcdir}/bitset \
35	${std_srcdir}/charconv \
36	${std_srcdir}/chrono \
37	${std_srcdir}/codecvt \
38	${std_srcdir}/complex \
39	${std_srcdir}/concepts \
40	${std_srcdir}/condition_variable \
41	${std_srcdir}/coroutine \
42	${std_srcdir}/deque \
43	${std_srcdir}/execution \
44	${std_srcdir}/filesystem \
45	${std_srcdir}/forward_list \
46	${std_srcdir}/fstream \
47	${std_srcdir}/functional \
48	${std_srcdir}/future \
49	${std_srcdir}/iomanip \
50	${std_srcdir}/ios \
51	${std_srcdir}/iosfwd \
52	${std_srcdir}/iostream \
53	${std_srcdir}/istream \
54	${std_srcdir}/iterator \
55	${std_srcdir}/limits \
56	${std_srcdir}/list \
57	${std_srcdir}/locale \
58	${std_srcdir}/map \
59	${std_srcdir}/memory \
60	${std_srcdir}/memory_resource \
61	${std_srcdir}/mutex \
62	${std_srcdir}/numbers \
63	${std_srcdir}/numeric \
64	${std_srcdir}/optional \
65	${std_srcdir}/ostream \
66	${std_srcdir}/queue \
67	${std_srcdir}/random \
68	${std_srcdir}/ranges \
69	${std_srcdir}/ratio \
70	${std_srcdir}/regex \
71	${std_srcdir}/scoped_allocator \
72	${std_srcdir}/set \
73	${std_srcdir}/shared_mutex \
74	${std_srcdir}/span \
75	${std_srcdir}/sstream \
76	${std_srcdir}/stack \
77	${std_srcdir}/stdexcept \
78	${std_srcdir}/stop_token \
79	${std_srcdir}/streambuf \
80	${std_srcdir}/string \
81	${std_srcdir}/string_view \
82	${std_srcdir}/system_error \
83	${std_srcdir}/thread \
84	${std_srcdir}/tuple \
85	${std_srcdir}/typeindex \
86	${std_srcdir}/type_traits \
87	${std_srcdir}/unordered_map \
88	${std_srcdir}/unordered_set \
89	${std_srcdir}/utility \
90	${std_srcdir}/valarray \
91	${std_srcdir}/variant \
92	${std_srcdir}/vector \
93	${std_srcdir}/version
94
95bits_srcdir = ${glibcxx_srcdir}/include/bits
96bits_builddir = ./bits
97bits_headers = \
98	${bits_srcdir}/algorithmfwd.h \
99	${bits_srcdir}/alloc_traits.h \
100	${bits_srcdir}/allocated_ptr.h \
101	${bits_srcdir}/allocator.h \
102	${bits_srcdir}/atomic_base.h \
103	${bits_srcdir}/atomic_futex.h \
104	${bits_srcdir}/basic_ios.h \
105	${bits_srcdir}/basic_ios.tcc \
106	${bits_srcdir}/basic_string.h \
107	${bits_srcdir}/basic_string.tcc \
108	${bits_srcdir}/boost_concept_check.h \
109	${bits_srcdir}/c++0x_warning.h \
110	${bits_srcdir}/char_traits.h \
111	${bits_srcdir}/charconv.h \
112	${bits_srcdir}/codecvt.h \
113	${bits_srcdir}/concept_check.h \
114	${bits_srcdir}/cpp_type_traits.h \
115	${bits_srcdir}/deque.tcc \
116	${bits_srcdir}/enable_special_members.h \
117	${bits_srcdir}/erase_if.h \
118	${bits_srcdir}/forward_list.h \
119	${bits_srcdir}/forward_list.tcc \
120	${bits_srcdir}/fs_dir.h \
121	${bits_srcdir}/fs_fwd.h \
122	${bits_srcdir}/fs_ops.h \
123	${bits_srcdir}/fs_path.h \
124	${bits_srcdir}/fstream.tcc \
125	${bits_srcdir}/functexcept.h \
126	${bits_srcdir}/functional_hash.h \
127	${bits_srcdir}/gslice.h \
128	${bits_srcdir}/gslice_array.h \
129	${bits_srcdir}/hashtable.h \
130	${bits_srcdir}/hashtable_policy.h \
131	${bits_srcdir}/indirect_array.h \
132	${bits_srcdir}/invoke.h \
133	${bits_srcdir}/ios_base.h \
134	${bits_srcdir}/istream.tcc \
135	${bits_srcdir}/iterator_concepts.h \
136	${bits_srcdir}/list.tcc \
137	${bits_srcdir}/locale_classes.h \
138	${bits_srcdir}/locale_classes.tcc \
139	${bits_srcdir}/locale_conv.h \
140	${bits_srcdir}/locale_facets.h \
141	${bits_srcdir}/locale_facets.tcc \
142	${bits_srcdir}/locale_facets_nonio.h \
143	${bits_srcdir}/locale_facets_nonio.tcc \
144	${bits_srcdir}/localefwd.h \
145	${bits_srcdir}/mask_array.h \
146	${bits_srcdir}/memoryfwd.h \
147	${bits_srcdir}/move.h \
148	${bits_srcdir}/node_handle.h \
149	${bits_srcdir}/ostream.tcc \
150	${bits_srcdir}/ostream_insert.h \
151	${bits_srcdir}/parse_numbers.h \
152	${bits_srcdir}/postypes.h \
153	${bits_srcdir}/predefined_ops.h \
154	${bits_srcdir}/ptr_traits.h \
155	${bits_srcdir}/quoted_string.h \
156	${bits_srcdir}/random.h \
157	${bits_srcdir}/random.tcc \
158	${bits_srcdir}/range_access.h \
159	${bits_srcdir}/range_cmp.h \
160	${bits_srcdir}/ranges_algobase.h \
161	${bits_srcdir}/ranges_algo.h \
162	${bits_srcdir}/ranges_uninitialized.h \
163	${bits_srcdir}/refwrap.h \
164	${bits_srcdir}/regex.h \
165	${bits_srcdir}/regex.tcc \
166	${bits_srcdir}/regex_constants.h \
167	${bits_srcdir}/regex_error.h \
168	${bits_srcdir}/regex_scanner.h \
169	${bits_srcdir}/regex_scanner.tcc \
170	${bits_srcdir}/regex_automaton.h \
171	${bits_srcdir}/regex_automaton.tcc \
172	${bits_srcdir}/regex_compiler.h \
173	${bits_srcdir}/regex_compiler.tcc \
174	${bits_srcdir}/regex_executor.h \
175	${bits_srcdir}/regex_executor.tcc \
176	${bits_srcdir}/shared_ptr.h \
177	${bits_srcdir}/shared_ptr_atomic.h \
178	${bits_srcdir}/shared_ptr_base.h \
179	${bits_srcdir}/slice_array.h \
180	${bits_srcdir}/specfun.h \
181	${bits_srcdir}/sstream.tcc \
182	${bits_srcdir}/std_abs.h \
183	${bits_srcdir}/std_function.h \
184	${bits_srcdir}/std_mutex.h \
185	${bits_srcdir}/stl_algo.h \
186	${bits_srcdir}/stl_algobase.h \
187	${bits_srcdir}/stl_bvector.h \
188	${bits_srcdir}/stl_construct.h \
189	${bits_srcdir}/stl_deque.h \
190	${bits_srcdir}/stl_function.h \
191	${bits_srcdir}/stl_heap.h \
192	${bits_srcdir}/stl_iterator.h \
193	${bits_srcdir}/stl_iterator_base_funcs.h \
194	${bits_srcdir}/stl_iterator_base_types.h \
195	${bits_srcdir}/stl_list.h \
196	${bits_srcdir}/stl_map.h \
197	${bits_srcdir}/stl_multimap.h \
198	${bits_srcdir}/stl_multiset.h \
199	${bits_srcdir}/stl_numeric.h \
200	${bits_srcdir}/stl_pair.h \
201	${bits_srcdir}/stl_queue.h \
202	${bits_srcdir}/stl_raw_storage_iter.h \
203	${bits_srcdir}/stl_relops.h \
204	${bits_srcdir}/stl_set.h \
205	${bits_srcdir}/stl_stack.h \
206	${bits_srcdir}/stl_tempbuf.h \
207	${bits_srcdir}/stl_tree.h \
208	${bits_srcdir}/stl_uninitialized.h \
209	${bits_srcdir}/stl_vector.h \
210	${bits_srcdir}/stream_iterator.h \
211	${bits_srcdir}/streambuf_iterator.h \
212	${bits_srcdir}/streambuf.tcc \
213	${bits_srcdir}/stringfwd.h \
214	${bits_srcdir}/string_view.tcc \
215	${bits_srcdir}/uniform_int_dist.h \
216	${bits_srcdir}/unique_lock.h \
217	${bits_srcdir}/unique_ptr.h \
218	${bits_srcdir}/unordered_map.h \
219	${bits_srcdir}/unordered_set.h \
220	${bits_srcdir}/uses_allocator.h \
221	${bits_srcdir}/valarray_array.h \
222	${bits_srcdir}/valarray_array.tcc \
223	${bits_srcdir}/valarray_before.h \
224	${bits_srcdir}/valarray_after.h \
225	${bits_srcdir}/vector.tcc
226
227bits_host_headers = \
228	${glibcxx_srcdir}/${CPU_OPT_BITS_RANDOM}
229
230bits_sup_srcdir = ${glibcxx_srcdir}/libsupc++
231bits_sup_headers = \
232	${bits_sup_srcdir}/atomic_lockfree_defines.h \
233	${bits_sup_srcdir}/cxxabi_forced.h \
234	${bits_sup_srcdir}/cxxabi_init_exception.h \
235	${bits_sup_srcdir}/exception.h \
236	${bits_sup_srcdir}/exception_defines.h \
237	${bits_sup_srcdir}/exception_ptr.h \
238	${bits_sup_srcdir}/hash_bytes.h \
239	${bits_sup_srcdir}/nested_exception.h
240
241# C++17 Parallel Algorithm Includes.
242pstl_srcdir = ${glibcxx_srcdir}/include/pstl
243pstl_builddir = ./pstl
244pstl_headers = \
245	${pstl_srcdir}/algorithm_fwd.h \
246	${pstl_srcdir}/algorithm_impl.h \
247	${pstl_srcdir}/execution_defs.h \
248	${pstl_srcdir}/execution_impl.h \
249	${pstl_srcdir}/glue_algorithm_defs.h \
250	${pstl_srcdir}/glue_algorithm_impl.h \
251	${pstl_srcdir}/glue_execution_defs.h \
252	${pstl_srcdir}/glue_memory_defs.h \
253	${pstl_srcdir}/glue_memory_impl.h \
254	${pstl_srcdir}/glue_numeric_defs.h \
255	${pstl_srcdir}/glue_numeric_impl.h \
256	${pstl_srcdir}/memory_impl.h \
257	${pstl_srcdir}/numeric_fwd.h \
258	${pstl_srcdir}/numeric_impl.h \
259	${pstl_srcdir}/parallel_backend.h \
260	${pstl_srcdir}/parallel_backend_tbb.h \
261	${pstl_srcdir}/parallel_backend_serial.h \
262	${pstl_srcdir}/parallel_backend_utils.h \
263	${pstl_srcdir}/parallel_impl.h \
264	${pstl_srcdir}/pstl_config.h \
265	${pstl_srcdir}/unseq_backend_simd.h \
266	${pstl_srcdir}/utils.h
267
268backward_srcdir = ${glibcxx_srcdir}/include/backward
269backward_builddir = ./backward
270backward_headers = \
271	${backward_srcdir}/auto_ptr.h \
272	${backward_srcdir}/backward_warning.h \
273	${backward_srcdir}/binders.h \
274	${backward_srcdir}/hash_map \
275	${backward_srcdir}/hash_set \
276	${backward_srcdir}/hash_fun.h \
277	${backward_srcdir}/hashtable.h \
278	${backward_srcdir}/strstream
279
280pb_srcdir = ${glibcxx_srcdir}/include/ext/pb_ds
281pb_builddir = ./ext/pb_ds
282
283pb_subdirs = \
284	${pb_builddir}/detail \
285	${pb_builddir}/detail/pairing_heap_ \
286	${pb_builddir}/detail/splay_tree_ \
287	${pb_builddir}/detail/list_update_map_ \
288	${pb_builddir}/detail/branch_policy \
289	${pb_builddir}/detail/trie_policy \
290	${pb_builddir}/detail/gp_hash_table_map_ \
291	${pb_builddir}/detail/tree_policy \
292	${pb_builddir}/detail/binomial_heap_base_ \
293	${pb_builddir}/detail/resize_policy \
294	${pb_builddir}/detail/bin_search_tree_ \
295	${pb_builddir}/detail/binomial_heap_ \
296	${pb_builddir}/detail/thin_heap_ \
297	${pb_builddir}/detail/pat_trie_ \
298	${pb_builddir}/detail/cc_hash_table_map_ \
299	${pb_builddir}/detail/rc_binomial_heap_ \
300	${pb_builddir}/detail/left_child_next_sibling_heap_ \
301	${pb_builddir}/detail/unordered_iterator \
302	${pb_builddir}/detail/binary_heap_ \
303	${pb_builddir}/detail/ov_tree_map_ \
304	${pb_builddir}/detail/hash_fn \
305	${pb_builddir}/detail/eq_fn \
306	${pb_builddir}/detail/rb_tree_map_ \
307	${pb_builddir}/detail/list_update_policy
308
309# The ability for make and the underlying host to deal with this
310# unwieldy list as one entire entity is not a sure thing, and may
311# cause build errors. Thus, split one list into many smaller
312# mini-lists, with the maximum size per mini-list of no more than 42.
313
314pb_headers1 = \
315	${pb_srcdir}/assoc_container.hpp \
316	${pb_srcdir}/exception.hpp \
317	${pb_srcdir}/hash_policy.hpp \
318	${pb_srcdir}/list_update_policy.hpp \
319	${pb_srcdir}/priority_queue.hpp \
320	${pb_srcdir}/tag_and_trait.hpp \
321	${pb_srcdir}/tree_policy.hpp \
322	${pb_srcdir}/trie_policy.hpp \
323	${pb_srcdir}/detail/branch_policy/branch_policy.hpp \
324	${pb_srcdir}/detail/branch_policy/null_node_metadata.hpp \
325	${pb_srcdir}/detail/branch_policy/traits.hpp \
326	${pb_srcdir}/detail/binary_heap_/binary_heap_.hpp \
327	${pb_srcdir}/detail/binary_heap_/const_iterator.hpp \
328	${pb_srcdir}/detail/binary_heap_/point_const_iterator.hpp \
329	${pb_srcdir}/detail/binary_heap_/constructors_destructor_fn_imps.hpp \
330	${pb_srcdir}/detail/binary_heap_/debug_fn_imps.hpp \
331	${pb_srcdir}/detail/binary_heap_/entry_cmp.hpp \
332	${pb_srcdir}/detail/binary_heap_/entry_pred.hpp \
333	${pb_srcdir}/detail/binary_heap_/erase_fn_imps.hpp \
334	${pb_srcdir}/detail/binary_heap_/find_fn_imps.hpp \
335	${pb_srcdir}/detail/binary_heap_/info_fn_imps.hpp \
336	${pb_srcdir}/detail/binary_heap_/insert_fn_imps.hpp \
337	${pb_srcdir}/detail/binary_heap_/iterators_fn_imps.hpp \
338	${pb_srcdir}/detail/binary_heap_/policy_access_fn_imps.hpp \
339	${pb_srcdir}/detail/binary_heap_/resize_policy.hpp \
340	${pb_srcdir}/detail/binary_heap_/split_join_fn_imps.hpp \
341	${pb_srcdir}/detail/binary_heap_/trace_fn_imps.hpp \
342	${pb_srcdir}/detail/binomial_heap_base_/binomial_heap_base_.hpp \
343	${pb_srcdir}/detail/binomial_heap_base_/constructors_destructor_fn_imps.hpp \
344	${pb_srcdir}/detail/binomial_heap_base_/debug_fn_imps.hpp \
345	${pb_srcdir}/detail/binomial_heap_base_/erase_fn_imps.hpp \
346	${pb_srcdir}/detail/binomial_heap_base_/find_fn_imps.hpp \
347	${pb_srcdir}/detail/binomial_heap_base_/insert_fn_imps.hpp \
348	${pb_srcdir}/detail/binomial_heap_base_/split_join_fn_imps.hpp \
349	${pb_srcdir}/detail/binomial_heap_/binomial_heap_.hpp \
350	${pb_srcdir}/detail/binomial_heap_/constructors_destructor_fn_imps.hpp \
351	${pb_srcdir}/detail/binomial_heap_/debug_fn_imps.hpp \
352	${pb_srcdir}/detail/bin_search_tree_/bin_search_tree_.hpp
353
354pb_headers2 = \
355	${pb_srcdir}/detail/bin_search_tree_/constructors_destructor_fn_imps.hpp \
356	${pb_srcdir}/detail/bin_search_tree_/debug_fn_imps.hpp \
357	${pb_srcdir}/detail/bin_search_tree_/erase_fn_imps.hpp \
358	${pb_srcdir}/detail/bin_search_tree_/find_fn_imps.hpp \
359	${pb_srcdir}/detail/bin_search_tree_/info_fn_imps.hpp \
360	${pb_srcdir}/detail/bin_search_tree_/insert_fn_imps.hpp \
361	${pb_srcdir}/detail/bin_search_tree_/iterators_fn_imps.hpp \
362	${pb_srcdir}/detail/bin_search_tree_/node_iterators.hpp \
363	${pb_srcdir}/detail/bin_search_tree_/point_iterators.hpp \
364	${pb_srcdir}/detail/bin_search_tree_/policy_access_fn_imps.hpp \
365	${pb_srcdir}/detail/bin_search_tree_/r_erase_fn_imps.hpp \
366	${pb_srcdir}/detail/bin_search_tree_/rotate_fn_imps.hpp \
367	${pb_srcdir}/detail/bin_search_tree_/split_join_fn_imps.hpp \
368	${pb_srcdir}/detail/bin_search_tree_/traits.hpp \
369	${pb_srcdir}/detail/cc_hash_table_map_/cc_ht_map_.hpp \
370	${pb_srcdir}/detail/cc_hash_table_map_/cmp_fn_imps.hpp \
371	${pb_srcdir}/detail/cc_hash_table_map_/cond_key_dtor_entry_dealtor.hpp \
372	${pb_srcdir}/detail/cc_hash_table_map_/constructor_destructor_fn_imps.hpp \
373	${pb_srcdir}/detail/cc_hash_table_map_/constructor_destructor_no_store_hash_fn_imps.hpp \
374	${pb_srcdir}/detail/cc_hash_table_map_/constructor_destructor_store_hash_fn_imps.hpp \
375	${pb_srcdir}/detail/cc_hash_table_map_/debug_fn_imps.hpp \
376	${pb_srcdir}/detail/cc_hash_table_map_/debug_no_store_hash_fn_imps.hpp \
377	${pb_srcdir}/detail/cc_hash_table_map_/debug_store_hash_fn_imps.hpp \
378	${pb_srcdir}/detail/cc_hash_table_map_/entry_list_fn_imps.hpp \
379	${pb_srcdir}/detail/cc_hash_table_map_/erase_fn_imps.hpp \
380	${pb_srcdir}/detail/cc_hash_table_map_/erase_no_store_hash_fn_imps.hpp \
381	${pb_srcdir}/detail/cc_hash_table_map_/erase_store_hash_fn_imps.hpp \
382	${pb_srcdir}/detail/cc_hash_table_map_/find_fn_imps.hpp \
383	${pb_srcdir}/detail/cc_hash_table_map_/find_store_hash_fn_imps.hpp \
384	${pb_srcdir}/detail/cc_hash_table_map_/info_fn_imps.hpp \
385	${pb_srcdir}/detail/cc_hash_table_map_/insert_fn_imps.hpp \
386	${pb_srcdir}/detail/cc_hash_table_map_/insert_no_store_hash_fn_imps.hpp \
387	${pb_srcdir}/detail/cc_hash_table_map_/insert_store_hash_fn_imps.hpp \
388	${pb_srcdir}/detail/cc_hash_table_map_/iterators_fn_imps.hpp \
389	${pb_srcdir}/detail/cc_hash_table_map_/policy_access_fn_imps.hpp \
390	${pb_srcdir}/detail/cc_hash_table_map_/resize_fn_imps.hpp \
391	${pb_srcdir}/detail/cc_hash_table_map_/resize_no_store_hash_fn_imps.hpp \
392	${pb_srcdir}/detail/cc_hash_table_map_/resize_store_hash_fn_imps.hpp \
393	${pb_srcdir}/detail/cc_hash_table_map_/size_fn_imps.hpp
394
395pb_headers3 = \
396	${pb_srcdir}/detail/cc_hash_table_map_/trace_fn_imps.hpp \
397	${pb_srcdir}/detail/cond_dealtor.hpp \
398	${pb_srcdir}/detail/container_base_dispatch.hpp \
399	${pb_srcdir}/detail/eq_fn/eq_by_less.hpp \
400	${pb_srcdir}/detail/eq_fn/hash_eq_fn.hpp \
401	${pb_srcdir}/detail/gp_hash_table_map_/constructor_destructor_fn_imps.hpp \
402	${pb_srcdir}/detail/gp_hash_table_map_/constructor_destructor_no_store_hash_fn_imps.hpp \
403	${pb_srcdir}/detail/gp_hash_table_map_/constructor_destructor_store_hash_fn_imps.hpp \
404	${pb_srcdir}/detail/gp_hash_table_map_/debug_fn_imps.hpp \
405	${pb_srcdir}/detail/gp_hash_table_map_/debug_no_store_hash_fn_imps.hpp \
406	${pb_srcdir}/detail/gp_hash_table_map_/debug_store_hash_fn_imps.hpp \
407	${pb_srcdir}/detail/gp_hash_table_map_/erase_fn_imps.hpp \
408	${pb_srcdir}/detail/gp_hash_table_map_/erase_no_store_hash_fn_imps.hpp \
409	${pb_srcdir}/detail/gp_hash_table_map_/erase_store_hash_fn_imps.hpp \
410	${pb_srcdir}/detail/gp_hash_table_map_/find_fn_imps.hpp \
411	${pb_srcdir}/detail/gp_hash_table_map_/find_no_store_hash_fn_imps.hpp \
412	${pb_srcdir}/detail/gp_hash_table_map_/find_store_hash_fn_imps.hpp \
413	${pb_srcdir}/detail/gp_hash_table_map_/gp_ht_map_.hpp \
414	${pb_srcdir}/detail/gp_hash_table_map_/info_fn_imps.hpp \
415	${pb_srcdir}/detail/gp_hash_table_map_/insert_fn_imps.hpp \
416	${pb_srcdir}/detail/gp_hash_table_map_/insert_no_store_hash_fn_imps.hpp \
417	${pb_srcdir}/detail/gp_hash_table_map_/insert_store_hash_fn_imps.hpp \
418	${pb_srcdir}/detail/gp_hash_table_map_/iterator_fn_imps.hpp \
419	${pb_srcdir}/detail/gp_hash_table_map_/policy_access_fn_imps.hpp \
420	${pb_srcdir}/detail/gp_hash_table_map_/resize_fn_imps.hpp \
421	${pb_srcdir}/detail/gp_hash_table_map_/resize_no_store_hash_fn_imps.hpp \
422	${pb_srcdir}/detail/gp_hash_table_map_/resize_store_hash_fn_imps.hpp \
423	${pb_srcdir}/detail/gp_hash_table_map_/trace_fn_imps.hpp \
424	${pb_srcdir}/detail/hash_fn/direct_mask_range_hashing_imp.hpp \
425	${pb_srcdir}/detail/hash_fn/direct_mod_range_hashing_imp.hpp \
426	${pb_srcdir}/detail/hash_fn/linear_probe_fn_imp.hpp \
427	${pb_srcdir}/detail/hash_fn/mask_based_range_hashing.hpp \
428	${pb_srcdir}/detail/hash_fn/mod_based_range_hashing.hpp \
429	${pb_srcdir}/detail/hash_fn/probe_fn_base.hpp \
430	${pb_srcdir}/detail/hash_fn/quadratic_probe_fn_imp.hpp \
431	${pb_srcdir}/detail/hash_fn/ranged_hash_fn.hpp \
432	${pb_srcdir}/detail/hash_fn/ranged_probe_fn.hpp
433
434pb_headers4 = \
435	${pb_srcdir}/detail/hash_fn/sample_probe_fn.hpp \
436	${pb_srcdir}/detail/hash_fn/sample_ranged_hash_fn.hpp \
437	${pb_srcdir}/detail/hash_fn/sample_ranged_probe_fn.hpp \
438	${pb_srcdir}/detail/hash_fn/sample_range_hashing.hpp \
439	${pb_srcdir}/detail/left_child_next_sibling_heap_/const_iterator.hpp \
440	${pb_srcdir}/detail/left_child_next_sibling_heap_/point_const_iterator.hpp \
441	${pb_srcdir}/detail/left_child_next_sibling_heap_/constructors_destructor_fn_imps.hpp \
442	${pb_srcdir}/detail/left_child_next_sibling_heap_/debug_fn_imps.hpp \
443	${pb_srcdir}/detail/left_child_next_sibling_heap_/erase_fn_imps.hpp \
444	${pb_srcdir}/detail/left_child_next_sibling_heap_/info_fn_imps.hpp \
445	${pb_srcdir}/detail/left_child_next_sibling_heap_/insert_fn_imps.hpp \
446	${pb_srcdir}/detail/left_child_next_sibling_heap_/iterators_fn_imps.hpp \
447	${pb_srcdir}/detail/left_child_next_sibling_heap_/left_child_next_sibling_heap_.hpp \
448	${pb_srcdir}/detail/left_child_next_sibling_heap_/node.hpp \
449	${pb_srcdir}/detail/left_child_next_sibling_heap_/policy_access_fn_imps.hpp \
450	${pb_srcdir}/detail/left_child_next_sibling_heap_/trace_fn_imps.hpp \
451	${pb_srcdir}/detail/list_update_map_/constructor_destructor_fn_imps.hpp \
452	${pb_srcdir}/detail/list_update_map_/debug_fn_imps.hpp \
453	${pb_srcdir}/detail/list_update_map_/entry_metadata_base.hpp \
454	${pb_srcdir}/detail/list_update_map_/erase_fn_imps.hpp \
455	${pb_srcdir}/detail/list_update_map_/find_fn_imps.hpp \
456	${pb_srcdir}/detail/list_update_map_/info_fn_imps.hpp \
457	${pb_srcdir}/detail/list_update_map_/insert_fn_imps.hpp \
458	${pb_srcdir}/detail/list_update_map_/iterators_fn_imps.hpp \
459	${pb_srcdir}/detail/list_update_map_/lu_map_.hpp \
460	${pb_srcdir}/detail/list_update_map_/trace_fn_imps.hpp \
461	${pb_srcdir}/detail/list_update_policy/lu_counter_metadata.hpp \
462	${pb_srcdir}/detail/list_update_policy/sample_update_policy.hpp \
463	${pb_srcdir}/detail/debug_map_base.hpp \
464	${pb_srcdir}/detail/ov_tree_map_/constructors_destructor_fn_imps.hpp \
465	${pb_srcdir}/detail/ov_tree_map_/debug_fn_imps.hpp \
466	${pb_srcdir}/detail/ov_tree_map_/erase_fn_imps.hpp \
467	${pb_srcdir}/detail/ov_tree_map_/info_fn_imps.hpp \
468	${pb_srcdir}/detail/ov_tree_map_/insert_fn_imps.hpp \
469	${pb_srcdir}/detail/ov_tree_map_/iterators_fn_imps.hpp \
470	${pb_srcdir}/detail/ov_tree_map_/node_iterators.hpp \
471	${pb_srcdir}/detail/ov_tree_map_/ov_tree_map_.hpp
472
473pb_headers5 = \
474	${pb_srcdir}/detail/ov_tree_map_/policy_access_fn_imps.hpp \
475	${pb_srcdir}/detail/ov_tree_map_/split_join_fn_imps.hpp \
476	${pb_srcdir}/detail/ov_tree_map_/traits.hpp \
477	${pb_srcdir}/detail/pairing_heap_/constructors_destructor_fn_imps.hpp \
478	${pb_srcdir}/detail/pairing_heap_/debug_fn_imps.hpp \
479	${pb_srcdir}/detail/pairing_heap_/erase_fn_imps.hpp \
480	${pb_srcdir}/detail/pairing_heap_/find_fn_imps.hpp \
481	${pb_srcdir}/detail/pairing_heap_/insert_fn_imps.hpp \
482	${pb_srcdir}/detail/pairing_heap_/pairing_heap_.hpp \
483	${pb_srcdir}/detail/pairing_heap_/split_join_fn_imps.hpp \
484	${pb_srcdir}/detail/pat_trie_/constructors_destructor_fn_imps.hpp \
485	${pb_srcdir}/detail/pat_trie_/debug_fn_imps.hpp \
486	${pb_srcdir}/detail/pat_trie_/erase_fn_imps.hpp \
487	${pb_srcdir}/detail/pat_trie_/find_fn_imps.hpp \
488	${pb_srcdir}/detail/pat_trie_/info_fn_imps.hpp \
489	${pb_srcdir}/detail/pat_trie_/insert_join_fn_imps.hpp \
490	${pb_srcdir}/detail/pat_trie_/iterators_fn_imps.hpp \
491	${pb_srcdir}/detail/pat_trie_/pat_trie_.hpp \
492	${pb_srcdir}/detail/pat_trie_/pat_trie_base.hpp \
493	${pb_srcdir}/detail/pat_trie_/policy_access_fn_imps.hpp \
494	${pb_srcdir}/detail/pat_trie_/r_erase_fn_imps.hpp \
495	${pb_srcdir}/detail/pat_trie_/rotate_fn_imps.hpp \
496	${pb_srcdir}/detail/pat_trie_/split_fn_imps.hpp \
497	${pb_srcdir}/detail/pat_trie_/synth_access_traits.hpp \
498	${pb_srcdir}/detail/pat_trie_/trace_fn_imps.hpp \
499	${pb_srcdir}/detail/pat_trie_/traits.hpp \
500	${pb_srcdir}/detail/pat_trie_/update_fn_imps.hpp \
501	${pb_srcdir}/detail/priority_queue_base_dispatch.hpp \
502	${pb_srcdir}/detail/rb_tree_map_/constructors_destructor_fn_imps.hpp \
503	${pb_srcdir}/detail/rb_tree_map_/debug_fn_imps.hpp
504
505pb_headers6 = \
506	${pb_srcdir}/detail/rb_tree_map_/erase_fn_imps.hpp \
507	${pb_srcdir}/detail/rb_tree_map_/find_fn_imps.hpp \
508	${pb_srcdir}/detail/rb_tree_map_/info_fn_imps.hpp \
509	${pb_srcdir}/detail/rb_tree_map_/insert_fn_imps.hpp \
510	${pb_srcdir}/detail/rb_tree_map_/node.hpp \
511	${pb_srcdir}/detail/rb_tree_map_/rb_tree_.hpp \
512	${pb_srcdir}/detail/rb_tree_map_/split_join_fn_imps.hpp \
513	${pb_srcdir}/detail/rb_tree_map_/traits.hpp \
514	${pb_srcdir}/detail/rc_binomial_heap_/constructors_destructor_fn_imps.hpp \
515	${pb_srcdir}/detail/rc_binomial_heap_/debug_fn_imps.hpp \
516	${pb_srcdir}/detail/rc_binomial_heap_/erase_fn_imps.hpp \
517	${pb_srcdir}/detail/rc_binomial_heap_/insert_fn_imps.hpp \
518	${pb_srcdir}/detail/rc_binomial_heap_/rc_binomial_heap_.hpp \
519	${pb_srcdir}/detail/rc_binomial_heap_/rc.hpp \
520	${pb_srcdir}/detail/rc_binomial_heap_/split_join_fn_imps.hpp \
521	${pb_srcdir}/detail/rc_binomial_heap_/trace_fn_imps.hpp \
522	${pb_srcdir}/detail/resize_policy/cc_hash_max_collision_check_resize_trigger_imp.hpp \
523	${pb_srcdir}/detail/resize_policy/hash_exponential_size_policy_imp.hpp \
524	${pb_srcdir}/detail/resize_policy/hash_load_check_resize_trigger_imp.hpp \
525	${pb_srcdir}/detail/resize_policy/hash_load_check_resize_trigger_size_base.hpp \
526	${pb_srcdir}/detail/resize_policy/hash_prime_size_policy_imp.hpp \
527	${pb_srcdir}/detail/resize_policy/hash_standard_resize_policy_imp.hpp \
528	${pb_srcdir}/detail/resize_policy/sample_resize_policy.hpp \
529	${pb_srcdir}/detail/resize_policy/sample_resize_trigger.hpp \
530	${pb_srcdir}/detail/resize_policy/sample_size_policy.hpp \
531	${pb_srcdir}/detail/splay_tree_/constructors_destructor_fn_imps.hpp \
532	${pb_srcdir}/detail/splay_tree_/debug_fn_imps.hpp \
533	${pb_srcdir}/detail/splay_tree_/erase_fn_imps.hpp \
534	${pb_srcdir}/detail/splay_tree_/find_fn_imps.hpp \
535	${pb_srcdir}/detail/splay_tree_/info_fn_imps.hpp \
536	${pb_srcdir}/detail/splay_tree_/insert_fn_imps.hpp \
537	${pb_srcdir}/detail/splay_tree_/node.hpp \
538	${pb_srcdir}/detail/splay_tree_/splay_fn_imps.hpp \
539	${pb_srcdir}/detail/splay_tree_/splay_tree_.hpp \
540	${pb_srcdir}/detail/splay_tree_/split_join_fn_imps.hpp \
541	${pb_srcdir}/detail/splay_tree_/traits.hpp \
542	${pb_srcdir}/detail/standard_policies.hpp \
543	${pb_srcdir}/detail/thin_heap_/constructors_destructor_fn_imps.hpp \
544	${pb_srcdir}/detail/thin_heap_/debug_fn_imps.hpp \
545	${pb_srcdir}/detail/thin_heap_/erase_fn_imps.hpp
546
547pb_headers7 = \
548	${pb_srcdir}/detail/thin_heap_/find_fn_imps.hpp \
549	${pb_srcdir}/detail/thin_heap_/insert_fn_imps.hpp \
550	${pb_srcdir}/detail/thin_heap_/split_join_fn_imps.hpp \
551	${pb_srcdir}/detail/thin_heap_/thin_heap_.hpp \
552	${pb_srcdir}/detail/thin_heap_/trace_fn_imps.hpp \
553	${pb_srcdir}/detail/tree_policy/node_metadata_selector.hpp \
554	${pb_srcdir}/detail/tree_policy/order_statistics_imp.hpp \
555	${pb_srcdir}/detail/tree_policy/sample_tree_node_update.hpp \
556	${pb_srcdir}/detail/tree_trace_base.hpp \
557	${pb_srcdir}/detail/trie_policy/node_metadata_selector.hpp \
558	${pb_srcdir}/detail/trie_policy/order_statistics_imp.hpp \
559	${pb_srcdir}/detail/trie_policy/prefix_search_node_update_imp.hpp \
560	${pb_srcdir}/detail/trie_policy/sample_trie_access_traits.hpp \
561	${pb_srcdir}/detail/trie_policy/sample_trie_node_update.hpp \
562	${pb_srcdir}/detail/trie_policy/trie_string_access_traits_imp.hpp \
563	${pb_srcdir}/detail/trie_policy/trie_policy_base.hpp \
564	${pb_srcdir}/detail/types_traits.hpp \
565	${pb_srcdir}/detail/type_utils.hpp \
566	${pb_srcdir}/detail/unordered_iterator/const_iterator.hpp \
567	${pb_srcdir}/detail/unordered_iterator/point_const_iterator.hpp \
568	${pb_srcdir}/detail/unordered_iterator/iterator.hpp \
569	${pb_srcdir}/detail/unordered_iterator/point_iterator.hpp
570
571
572ext_srcdir = ${glibcxx_srcdir}/include/ext
573ext_builddir = ./ext
574ext_headers = \
575	${ext_srcdir}/algorithm \
576	${ext_srcdir}/aligned_buffer.h \
577	${ext_srcdir}/alloc_traits.h \
578	${ext_srcdir}/atomicity.h \
579	${ext_srcdir}/bitmap_allocator.h \
580	${ext_srcdir}/cast.h \
581	${ext_srcdir}/cmath \
582	${ext_srcdir}/codecvt_specializations.h \
583	${ext_srcdir}/concurrence.h \
584	${ext_srcdir}/debug_allocator.h \
585	${ext_srcdir}/enc_filebuf.h \
586	${ext_srcdir}/extptr_allocator.h \
587	${ext_srcdir}/stdio_filebuf.h \
588	${ext_srcdir}/stdio_sync_filebuf.h \
589	${ext_srcdir}/functional \
590	${ext_srcdir}/iterator \
591	${ext_srcdir}/malloc_allocator.h \
592	${ext_srcdir}/memory \
593	${ext_srcdir}/mt_allocator.h \
594	${ext_srcdir}/new_allocator.h \
595	${ext_srcdir}/numeric \
596	${ext_srcdir}/numeric_traits.h \
597	${ext_srcdir}/pod_char_traits.h \
598	${ext_srcdir}/pointer.h \
599	${ext_srcdir}/pool_allocator.h \
600	${ext_srcdir}/rb_tree \
601	${ext_srcdir}/random \
602	${ext_srcdir}/random.tcc \
603	${ext_srcdir}/rope \
604	${ext_srcdir}/ropeimpl.h \
605	${ext_srcdir}/slist \
606	${ext_srcdir}/string_conversions.h \
607	${ext_srcdir}/throw_allocator.h \
608	${ext_srcdir}/typelist.h \
609	${ext_srcdir}/type_traits.h \
610	${ext_srcdir}/rc_string_base.h \
611	${ext_srcdir}/sso_string_base.h \
612	${ext_srcdir}/vstring.h \
613	${ext_srcdir}/vstring.tcc \
614	${ext_srcdir}/vstring_fwd.h \
615	${ext_srcdir}/vstring_util.h \
616	${ext_compat_headers}
617
618ext_compat_headers = \
619	${backward_srcdir}/hash_set \
620	${backward_srcdir}/hash_map
621
622ext_host_headers = \
623	${glibcxx_srcdir}/${CPU_OPT_EXT_RANDOM}
624
625tr1_srcdir = ${glibcxx_srcdir}/include/tr1
626tr1_builddir = ./tr1
627tr1_headers = \
628	${tr1_srcdir}/array \
629	${tr1_srcdir}/bessel_function.tcc \
630	${tr1_srcdir}/beta_function.tcc \
631	${tr1_srcdir}/ccomplex \
632	${tr1_srcdir}/cctype \
633	${tr1_srcdir}/cfenv \
634	${tr1_srcdir}/cfloat \
635	${tr1_srcdir}/cinttypes \
636	${tr1_srcdir}/climits \
637	${tr1_srcdir}/cmath \
638	${tr1_srcdir}/complex \
639	${tr1_srcdir}/complex.h \
640	${tr1_srcdir}/cstdarg \
641	${tr1_srcdir}/cstdbool \
642	${tr1_srcdir}/cstdint \
643	${tr1_srcdir}/cstdio \
644	${tr1_srcdir}/cstdlib \
645	${tr1_srcdir}/ctgmath \
646	${tr1_srcdir}/ctime \
647	${tr1_srcdir}/ctype.h \
648	${tr1_srcdir}/cwchar \
649	${tr1_srcdir}/cwctype \
650	${tr1_srcdir}/ell_integral.tcc \
651	${tr1_srcdir}/exp_integral.tcc \
652	${tr1_srcdir}/fenv.h \
653	${tr1_srcdir}/float.h \
654	${tr1_srcdir}/functional \
655	${tr1_srcdir}/functional_hash.h \
656	${tr1_srcdir}/gamma.tcc \
657	${tr1_srcdir}/hypergeometric.tcc \
658	${tr1_srcdir}/hashtable.h \
659	${tr1_srcdir}/hashtable_policy.h \
660	${tr1_srcdir}/inttypes.h \
661	${tr1_srcdir}/limits.h \
662	${tr1_srcdir}/math.h \
663	${tr1_srcdir}/memory \
664	${tr1_srcdir}/modified_bessel_func.tcc \
665	${tr1_srcdir}/poly_hermite.tcc \
666	${tr1_srcdir}/poly_laguerre.tcc \
667	${tr1_srcdir}/legendre_function.tcc \
668	${tr1_srcdir}/random \
669	${tr1_srcdir}/random.h \
670	${tr1_srcdir}/random.tcc \
671	${tr1_srcdir}/regex \
672	${tr1_srcdir}/riemann_zeta.tcc \
673	${tr1_srcdir}/shared_ptr.h \
674	${tr1_srcdir}/special_function_util.h \
675	${tr1_srcdir}/stdarg.h \
676	${tr1_srcdir}/stdbool.h \
677	${tr1_srcdir}/stdint.h \
678	${tr1_srcdir}/stdio.h \
679	${tr1_srcdir}/stdlib.h \
680	${tr1_srcdir}/tgmath.h \
681	${tr1_srcdir}/tuple \
682	${tr1_srcdir}/type_traits \
683	${tr1_srcdir}/unordered_map \
684	${tr1_srcdir}/unordered_map.h \
685	${tr1_srcdir}/unordered_set \
686	${tr1_srcdir}/unordered_set.h \
687	${tr1_srcdir}/utility \
688	${tr1_srcdir}/wchar.h \
689	${tr1_srcdir}/wctype.h
690
691tr2_srcdir = ${glibcxx_srcdir}/include/tr2
692tr2_builddir = ./tr2
693tr2_headers = \
694	${tr2_srcdir}/bool_set \
695	${tr2_srcdir}/bool_set.tcc \
696	${tr2_srcdir}/dynamic_bitset \
697	${tr2_srcdir}/dynamic_bitset.tcc \
698	${tr2_srcdir}/ratio \
699	${tr2_srcdir}/type_traits
700
701decimal_srcdir = ${glibcxx_srcdir}/include/decimal
702decimal_builddir = ./decimal
703decimal_headers = \
704	${decimal_srcdir}/decimal \
705	${decimal_srcdir}/decimal.h
706
707# Post-C++11 TS's
708experimental_srcdir = ${glibcxx_srcdir}/include/experimental
709experimental_builddir = ./experimental
710experimental_headers = \
711	${experimental_srcdir}/algorithm \
712	${experimental_srcdir}/any \
713	${experimental_srcdir}/array \
714	${experimental_srcdir}/buffer \
715	${experimental_srcdir}/chrono \
716	${experimental_srcdir}/deque \
717	${experimental_srcdir}/executor \
718	${experimental_srcdir}/forward_list \
719	${experimental_srcdir}/functional \
720	${experimental_srcdir}/internet \
721	${experimental_srcdir}/io_context \
722	${experimental_srcdir}/iterator \
723	${experimental_srcdir}/list \
724	${experimental_srcdir}/map \
725	${experimental_srcdir}/memory \
726	${experimental_srcdir}/memory_resource \
727	${experimental_srcdir}/net \
728	${experimental_srcdir}/netfwd \
729	${experimental_srcdir}/numeric \
730	${experimental_srcdir}/optional \
731	${experimental_srcdir}/propagate_const \
732	${experimental_srcdir}/random \
733	${experimental_srcdir}/ratio \
734	${experimental_srcdir}/regex \
735	${experimental_srcdir}/set \
736	${experimental_srcdir}/socket \
737	${experimental_srcdir}/source_location \
738	${experimental_srcdir}/string \
739	${experimental_srcdir}/string_view \
740	${experimental_srcdir}/system_error \
741	${experimental_srcdir}/timer \
742	${experimental_srcdir}/tuple \
743	${experimental_srcdir}/type_traits \
744	${experimental_srcdir}/unordered_map \
745	${experimental_srcdir}/unordered_set \
746	${experimental_srcdir}/utility \
747	${experimental_srcdir}/vector \
748	${experimental_filesystem_headers}
749
750experimental_bits_srcdir = ${glibcxx_srcdir}/include/experimental/bits
751experimental_bits_builddir = ./experimental/bits
752experimental_bits_headers = \
753	${experimental_bits_srcdir}/lfts_config.h \
754	${experimental_bits_srcdir}/net.h \
755	${experimental_bits_srcdir}/shared_ptr.h \
756	${experimental_bits_srcdir}/string_view.tcc \
757	${experimental_bits_filesystem_headers}
758
759if ENABLE_FILESYSTEM_TS
760experimental_filesystem_headers = \
761	${experimental_srcdir}/filesystem
762experimental_bits_filesystem_headers = \
763	${experimental_bits_srcdir}/fs_dir.h \
764	${experimental_bits_srcdir}/fs_fwd.h \
765	${experimental_bits_srcdir}/fs_ops.h \
766	${experimental_bits_srcdir}/fs_path.h
767else
768experimental_filesystem_headers =
769experimental_bits_filesystem_headers =
770endif
771
772# This is the common subset of C++ files that all three "C" header models use.
773c_base_srcdir = $(C_INCLUDE_DIR)
774c_base_builddir = .
775c_base_headers = \
776	${c_base_srcdir}/cassert \
777	${c_base_srcdir}/ccomplex \
778	${c_base_srcdir}/cctype \
779	${c_base_srcdir}/cerrno \
780	${c_base_srcdir}/cfenv \
781	${c_base_srcdir}/cfloat \
782	${c_base_srcdir}/cinttypes \
783	${c_base_srcdir}/ciso646 \
784	${c_base_srcdir}/climits \
785	${c_base_srcdir}/clocale \
786	${c_base_srcdir}/cmath \
787	${c_base_srcdir}/csetjmp \
788	${c_base_srcdir}/csignal \
789	${c_base_srcdir}/cstdalign \
790	${c_base_srcdir}/cstdarg \
791	${c_base_srcdir}/cstdbool \
792	${c_base_srcdir}/cstddef \
793	${c_base_srcdir}/cstdint \
794	${c_base_srcdir}/cstdio \
795	${c_base_srcdir}/cstdlib \
796	${c_base_srcdir}/cstring \
797	${c_base_srcdir}/ctgmath \
798	${c_base_srcdir}/ctime \
799	${c_base_srcdir}/cuchar \
800	${c_base_srcdir}/cwchar \
801	${c_base_srcdir}/cwctype
802
803# "C" compatibility headers.
804c_compatibility_srcdir = ${glibcxx_srcdir}/include/c_compatibility
805c_compatibility_builddir = .
806
807if GLIBCXX_C_HEADERS_C_STD
808c_compatibility_headers =
809endif
810
811if GLIBCXX_C_HEADERS_C_GLOBAL
812c_compatibility_headers = \
813	${c_compatibility_srcdir}/complex.h \
814	${c_compatibility_srcdir}/fenv.h \
815	${c_compatibility_srcdir}/tgmath.h \
816	${c_compatibility_srcdir}/math.h \
817	${c_compatibility_srcdir}/stdlib.h
818endif
819
820if GLIBCXX_C_HEADERS_C
821c_compatibility_headers = \
822	${c_compatibility_srcdir}/assert.h \
823	${c_compatibility_srcdir}/complex.h \
824	${c_compatibility_srcdir}/ctype.h \
825	${c_compatibility_srcdir}/errno.h \
826	${c_compatibility_srcdir}/fenv.h \
827	${c_compatibility_srcdir}/float.h \
828	${c_compatibility_srcdir}/inttypes.h \
829	${c_compatibility_srcdir}/iso646.h \
830	${c_compatibility_srcdir}/limits.h \
831	${c_compatibility_srcdir}/locale.h \
832	${c_compatibility_srcdir}/math.h \
833	${c_compatibility_srcdir}/setjmp.h \
834	${c_compatibility_srcdir}/signal.h \
835	${c_compatibility_srcdir}/stdarg.h \
836	${c_compatibility_srcdir}/stdbool.h \
837	${c_compatibility_srcdir}/stddef.h \
838	${c_compatibility_srcdir}/stdint.h \
839	${c_compatibility_srcdir}/stdio.h \
840	${c_compatibility_srcdir}/stdlib.h \
841	${c_compatibility_srcdir}/string.h \
842	${c_compatibility_srcdir}/tgmath.h \
843	${c_compatibility_srcdir}/time.h \
844	${c_compatibility_srcdir}/uchar.h \
845	${c_compatibility_srcdir}/wchar.h \
846	${c_compatibility_srcdir}/wctype.h
847endif
848
849# Debug mode headers
850debug_srcdir = ${glibcxx_srcdir}/include/debug
851debug_builddir = ./debug
852debug_headers = \
853	${debug_srcdir}/array \
854	${debug_srcdir}/assertions.h \
855	${debug_srcdir}/bitset \
856	${debug_srcdir}/debug.h \
857	${debug_srcdir}/deque \
858	${debug_srcdir}/formatter.h \
859	${debug_srcdir}/forward_list \
860	${debug_srcdir}/functions.h \
861	${debug_srcdir}/helper_functions.h \
862	${debug_srcdir}/list \
863	${debug_srcdir}/map \
864	${debug_srcdir}/macros.h \
865	${debug_srcdir}/map.h \
866	${debug_srcdir}/multimap.h \
867	${debug_srcdir}/multiset.h \
868	${debug_srcdir}/safe_base.h \
869	${debug_srcdir}/safe_container.h \
870	${debug_srcdir}/safe_iterator.h \
871	${debug_srcdir}/safe_iterator.tcc \
872	${debug_srcdir}/safe_local_iterator.h \
873	${debug_srcdir}/safe_local_iterator.tcc \
874	${debug_srcdir}/safe_sequence.h \
875	${debug_srcdir}/safe_sequence.tcc \
876	${debug_srcdir}/safe_unordered_base.h \
877	${debug_srcdir}/safe_unordered_container.h \
878	${debug_srcdir}/safe_unordered_container.tcc \
879	${debug_srcdir}/set \
880	${debug_srcdir}/set.h \
881	${debug_srcdir}/stl_iterator.h \
882	${debug_srcdir}/string \
883	${debug_srcdir}/unordered_map \
884	${debug_srcdir}/unordered_set \
885	${debug_srcdir}/vector
886
887# Parallel mode headers
888parallel_srcdir = ${glibcxx_srcdir}/include/parallel
889parallel_builddir = ./parallel
890parallel_headers = \
891	${parallel_srcdir}/algo.h \
892	${parallel_srcdir}/algobase.h \
893	${parallel_srcdir}/algorithm \
894	${parallel_srcdir}/algorithmfwd.h \
895	${parallel_srcdir}/balanced_quicksort.h \
896	${parallel_srcdir}/base.h \
897	${parallel_srcdir}/basic_iterator.h \
898	${parallel_srcdir}/checkers.h \
899	${parallel_srcdir}/compatibility.h \
900	${parallel_srcdir}/compiletime_settings.h \
901	${parallel_srcdir}/equally_split.h \
902	${parallel_srcdir}/features.h \
903	${parallel_srcdir}/find.h \
904	${parallel_srcdir}/find_selectors.h \
905	${parallel_srcdir}/for_each.h \
906	${parallel_srcdir}/for_each_selectors.h \
907	${parallel_srcdir}/iterator.h \
908	${parallel_srcdir}/list_partition.h \
909	${parallel_srcdir}/losertree.h \
910	${parallel_srcdir}/merge.h \
911	${parallel_srcdir}/multiseq_selection.h \
912	${parallel_srcdir}/multiway_merge.h \
913	${parallel_srcdir}/multiway_mergesort.h \
914	${parallel_srcdir}/numeric \
915	${parallel_srcdir}/numericfwd.h \
916	${parallel_srcdir}/omp_loop.h \
917	${parallel_srcdir}/omp_loop_static.h \
918	${parallel_srcdir}/par_loop.h \
919	${parallel_srcdir}/parallel.h \
920	${parallel_srcdir}/partial_sum.h \
921	${parallel_srcdir}/partition.h \
922	${parallel_srcdir}/queue.h \
923	${parallel_srcdir}/quicksort.h \
924	${parallel_srcdir}/random_number.h \
925	${parallel_srcdir}/random_shuffle.h \
926	${parallel_srcdir}/search.h \
927	${parallel_srcdir}/set_operations.h \
928	${parallel_srcdir}/settings.h \
929	${parallel_srcdir}/sort.h \
930	${parallel_srcdir}/tags.h \
931	${parallel_srcdir}/types.h \
932	${parallel_srcdir}/unique_copy.h \
933	${parallel_srcdir}/workstealing.h
934
935# Some "C" header schemes require the "C" compatibility headers.
936# For --enable-cheaders=c_std
937if GLIBCXX_C_HEADERS_COMPATIBILITY
938c_compatibility_headers_extra = ${c_compatibility_headers}
939else
940c_compatibility_headers_extra =
941endif
942
943host_srcdir = ${glibcxx_srcdir}/$(OS_INC_SRCDIR)
944host_builddir = ./${host_alias}/bits
945host_installdir = ${gxx_include_dir}/${host_alias}$(MULTISUBDIR)/bits
946host_headers = \
947	${host_srcdir}/ctype_base.h \
948	${host_srcdir}/ctype_inline.h \
949	${host_srcdir}/os_defines.h \
950	${glibcxx_srcdir}/$(ATOMIC_WORD_SRCDIR)/atomic_word.h \
951	${glibcxx_srcdir}/$(ABI_TWEAKS_SRCDIR)/cxxabi_tweaks.h \
952	${glibcxx_srcdir}/$(CPU_DEFINES_SRCDIR)/cpu_defines.h \
953	${glibcxx_srcdir}/$(ERROR_CONSTANTS_SRCDIR)/error_constants.h \
954	${glibcxx_srcdir}/include/precompiled/stdc++.h \
955	${glibcxx_srcdir}/include/precompiled/stdtr1c++.h \
956	${glibcxx_srcdir}/include/precompiled/extc++.h
957
958# Non-installed host_header files.
959COMPATIBILITY_H = config/abi/compatibility.h
960host_headers_noinst = \
961	${glibcxx_srcdir}/$(CLOCALE_INTERNAL_H) \
962	${glibcxx_srcdir}/$(COMPATIBILITY_H)
963
964# These host_headers_extra files are all built with ad hoc naming rules.
965host_headers_extra = \
966	${host_builddir}/basic_file.h \
967	${host_builddir}/c++config.h \
968	${host_builddir}/c++allocator.h \
969	${host_builddir}/c++io.h \
970	${host_builddir}/c++locale.h \
971	${host_builddir}/messages_members.h \
972	${host_builddir}/time_members.h
973
974thread_host_headers = \
975	${host_builddir}/gthr.h \
976	${host_builddir}/gthr-single.h \
977	${host_builddir}/gthr-posix.h \
978	${host_builddir}/gthr-default.h
979
980
981pch1_source = ${glibcxx_srcdir}/include/precompiled/stdc++.h
982pch1_output_builddir = ${host_builddir}/stdc++.h.gch
983pch1_output_anchor = ${host_builddir}/stdc++.h
984pch1_output_installdir = ${host_installdir}/stdc++.h.gch
985pch1a_output = ${pch1_output_builddir}/O2ggnu++0x.gch
986pch1b_output = ${pch1_output_builddir}/O2g.gch
987pch1_output = ${pch1a_output} ${pch1b_output}
988
989pch2_source = ${glibcxx_srcdir}/include/precompiled/stdtr1c++.h
990pch2_output_builddir = ${host_builddir}/stdtr1c++.h.gch
991pch2_output_anchor = ${host_builddir}/stdtr1c++.h
992pch2_output_installdir = ${host_installdir}/stdtr1c++.h.gch
993pch2_output = ${pch2_output_builddir}/O2g.gch
994
995pch3_source = ${glibcxx_srcdir}/include/precompiled/extc++.h
996pch3_output_builddir = ${host_builddir}/extc++.h.gch
997pch3_output_anchor = ${host_builddir}/extc++.h
998pch3_output_installdir = ${host_installdir}/extc++.h.gch
999pch3_output = ${pch3_output_builddir}/O2g.gch
1000
1001
1002pch_output = ${pch1_output} ${pch2_output} ${pch3_output}
1003pch_output_dirs = \
1004	${pch1_output_builddir} ${pch2_output_builddir} ${pch3_output_builddir}
1005pch_output_anchors = \
1006	${pch1_output_anchor} ${pch2_output_anchor} ${pch3_output_anchor}
1007PCHFLAGS=-x c++-header -nostdinc++ $(CXXFLAGS) $(VTV_PCH_CXXFLAGS)
1008if GLIBCXX_BUILD_PCH
1009pch_build = ${pch_output}
1010else
1011pch_build =
1012endif
1013
1014# List of all timestamp files.  By keeping only one copy of this list, both
1015# CLEANFILES and all-local are kept up-to-date.
1016allstamped = \
1017	stamp-std stamp-bits stamp-bits-sup stamp-pstl stamp-c_base stamp-c_compatibility \
1018	stamp-backward stamp-ext stamp-pb stamp-tr1 stamp-tr2 stamp-decimal \
1019	stamp-experimental stamp-experimental-bits stamp-debug stamp-parallel \
1020	stamp-host
1021
1022# List of all files that are created by explicit building, editing, or
1023# catenation.
1024allcreated = \
1025	${host_builddir}/c++config.h \
1026	${host_builddir}/largefile-config.h \
1027	${thread_host_headers} \
1028	${pch_build}
1029
1030# Here are the rules for building the headers
1031all-local: ${allstamped} ${allcreated}
1032
1033# Ignore errors from 'mkdir -p' to avoid parallel make failure on
1034# systems with broken mkdir.  Call mkdir unconditionally because
1035# it is just as cheap to avoid going through the shell.
1036# Ignore errors from $(LN_S) because the links may already exist.
1037stamp-std: ${std_headers}
1038	@-mkdir -p ${std_builddir}
1039	@-cd ${std_builddir} && $(LN_S) $? . 2>/dev/null
1040	@$(STAMP) stamp-std
1041
1042stamp-bits: ${bits_headers}
1043	@-mkdir -p ${bits_builddir}
1044	@-cd ${bits_builddir} && $(LN_S) $? . 2>/dev/null
1045	@$(STAMP) stamp-bits
1046
1047stamp-bits-sup: stamp-bits ${bits_sup_headers}
1048	@-cd ${bits_builddir} && $(LN_S) ${bits_sup_headers} . 2>/dev/null
1049	@$(STAMP) stamp-bits-sup
1050
1051stamp-pstl: ${pstl_headers}
1052	@-mkdir -p ${pstl_builddir}
1053	@-cd ${pstl_builddir} && $(LN_S) $? . 2>/dev/null
1054	@$(STAMP) stamp-pstl
1055
1056stamp-c_base: ${c_base_headers}
1057	@-mkdir -p ${c_base_builddir}
1058	@-cd ${c_base_builddir} && $(LN_S) $? . 2>/dev/null
1059	@$(STAMP) stamp-c_base
1060
1061stamp-c_base_extra: ${c_base_headers_extra}
1062	@-mkdir -p ${bits_builddir}
1063	@-cd ${bits_builddir} && $(LN_S) $? . 2>/dev/null
1064	@$(STAMP) stamp-c_base_extra
1065
1066stamp-c_compatibility: ${c_compatibility_headers_extra}
1067	@-mkdir -p ${c_compatibility_builddir}
1068	@-if [ ! -z "${c_compatibility_headers_extra}" ]; then \
1069	  cd ${c_compatibility_builddir} && $(LN_S) $? . 2>/dev/null ;\
1070	fi
1071	@$(STAMP) stamp-c_compatibility
1072
1073stamp-backward: ${backward_headers}
1074	@-mkdir -p ${backward_builddir}
1075	@-cd ${backward_builddir} && $(LN_S) $? . 2>/dev/null
1076	@$(STAMP) stamp-backward
1077
1078stamp-ext: ${ext_headers}
1079	@-mkdir -p ${ext_builddir}
1080	@-cd ${ext_builddir} && $(LN_S) $? . 2>/dev/null
1081	@$(STAMP) stamp-ext
1082
1083# Have to deal with nested include directories, gah! Strip off source
1084# directory before making the link.
1085# XXX check  ${pb_headers}
1086stamp-pb:
1087	@if [ ! -d "${pb_builddir}" ]; then \
1088	    mkdir -p ${pb_subdirs} ;\
1089	fi
1090	@if [ ! -f stamp-pb ]; then \
1091	    cd ${pb_builddir} && for h in ${pb_headers1}; do \
1092		build_name=`echo $$h | sed -e "s|${pb_srcdir}|.|g"` ;\
1093		$(LN_S) $$h $${build_name} || true ;\
1094	      done ;\
1095	fi
1096	@if [ ! -f stamp-pb ]; then \
1097	    cd ${pb_builddir} && for h in ${pb_headers2}; do \
1098		build_name=`echo $$h | sed -e "s|${pb_srcdir}|.|g"` ;\
1099		$(LN_S) $$h $${build_name} || true ;\
1100	      done ;\
1101	fi
1102	@if [ ! -f stamp-pb ]; then \
1103	    cd ${pb_builddir} && for h in ${pb_headers3}; do \
1104		build_name=`echo $$h | sed -e "s|${pb_srcdir}|.|g"` ;\
1105		$(LN_S) $$h $${build_name} || true ;\
1106	      done ;\
1107	fi
1108	@if [ ! -f stamp-pb ]; then \
1109	    cd ${pb_builddir} && for h in ${pb_headers4}; do \
1110		build_name=`echo $$h | sed -e "s|${pb_srcdir}|.|g"` ;\
1111		$(LN_S) $$h $${build_name} || true ;\
1112	      done ;\
1113	fi
1114	@if [ ! -f stamp-pb ]; then \
1115	    cd ${pb_builddir} && for h in ${pb_headers5}; do \
1116		build_name=`echo $$h | sed -e "s|${pb_srcdir}|.|g"` ;\
1117		$(LN_S) $$h $${build_name} || true ;\
1118	      done ;\
1119	fi
1120	@if [ ! -f stamp-pb ]; then \
1121	    cd ${pb_builddir} && for h in ${pb_headers6}; do \
1122		build_name=`echo $$h | sed -e "s|${pb_srcdir}|.|g"` ;\
1123		$(LN_S) $$h $${build_name} || true ;\
1124	      done ;\
1125	fi
1126	@if [ ! -f stamp-pb ]; then \
1127	    cd ${pb_builddir} && for h in ${pb_headers7}; do \
1128		build_name=`echo $$h | sed -e "s|${pb_srcdir}|.|g"` ;\
1129		$(LN_S) $$h $${build_name} || true ;\
1130	      done ;\
1131	fi
1132	$(STAMP) stamp-pb
1133
1134stamp-tr1: ${tr1_headers}
1135	@-mkdir -p ${tr1_builddir}
1136	@-cd ${tr1_builddir} && $(LN_S) $? . 2>/dev/null
1137	@$(STAMP) stamp-tr1
1138
1139stamp-tr2: ${tr2_headers}
1140	@-mkdir -p ${tr2_builddir}
1141	@-cd ${tr2_builddir} && $(LN_S) $? . 2>/dev/null
1142	@$(STAMP) stamp-tr2
1143
1144stamp-decimal: ${decimal_headers}
1145	@-mkdir -p ${decimal_builddir}
1146	@-cd ${decimal_builddir} && $(LN_S) $? . 2>/dev/null
1147	@$(STAMP) stamp-decimal
1148
1149stamp-experimental: ${experimental_headers}
1150	@-mkdir -p ${experimental_builddir}
1151	@-cd ${experimental_builddir} && $(LN_S) $? . 2>/dev/null
1152	@$(STAMP) stamp-experimental
1153
1154stamp-experimental-bits: ${experimental_bits_headers}
1155	@-mkdir -p ${experimental_bits_builddir}
1156	@-cd ${experimental_bits_builddir} && $(LN_S) $? . 2>/dev/null
1157	@$(STAMP) stamp-experimental-bits
1158
1159stamp-debug: ${debug_headers}
1160	@-mkdir -p ${debug_builddir}
1161	@-cd ${debug_builddir} && $(LN_S) $? . 2>/dev/null
1162	@$(STAMP) stamp-debug
1163
1164stamp-parallel: ${parallel_headers}
1165	@-mkdir -p ${parallel_builddir}
1166	@-cd ${parallel_builddir} && $(LN_S) $? . 2>/dev/null
1167	@$(STAMP) stamp-parallel
1168
1169stamp-${host_alias}:
1170	@-mkdir -p ${host_builddir}
1171	@-mkdir -p ${host_builddir}/../ext
1172	@$(STAMP) stamp-${host_alias}
1173
1174# Host includes static.
1175# XXX Missing dependency info for {host_headers_extra}
1176stamp-host: ${host_headers} ${bits_host_headers} ${ext_host_headers} ${host_headers_noinst} stamp-${host_alias}
1177	@cd ${host_builddir} && {\
1178	  $(LN_S) ${host_headers} ${bits_host_headers} . || true ;\
1179	  $(LN_S) ${glibcxx_srcdir}/$(BASIC_FILE_H) basic_file.h || true ;\
1180	  $(LN_S) ${glibcxx_srcdir}/$(ALLOCATOR_H) c++allocator.h || true ;\
1181	  $(LN_S) ${glibcxx_srcdir}/$(CSTDIO_H) c++io.h || true ;\
1182	  $(LN_S) ${glibcxx_srcdir}/$(CLOCALE_H) c++locale.h || true ;\
1183	  $(LN_S) ${glibcxx_srcdir}/$(CLOCALE_INTERNAL_H) . || true ;\
1184	  $(LN_S) ${glibcxx_srcdir}/$(COMPATIBILITY_H) . || true ;\
1185	  $(LN_S) ${glibcxx_srcdir}/$(CMESSAGES_H) messages_members.h || true ;\
1186	  $(LN_S) ${glibcxx_srcdir}/$(CTIME_H) time_members.h || true;\
1187	} 2>/dev/null
1188	@cd ${host_builddir}/../ext && {\
1189	  $(LN_S) ${ext_host_headers} . || true ;\
1190	} 2>/dev/null
1191	$(STAMP) stamp-host
1192
1193# Host includes dynamic.
1194if ENABLE_SYMVERS_GNU_NAMESPACE
1195stamp-namespace-version:
1196	echo 1 > stamp-namespace-version
1197else
1198stamp-namespace-version:
1199	echo 0 > stamp-namespace-version
1200endif
1201
1202if ENABLE_EXTERN_TEMPLATE
1203stamp-extern-template:
1204	echo 1 > stamp-extern-template
1205else
1206stamp-extern-template:
1207	echo 0 > stamp-extern-template
1208endif
1209
1210if ENABLE_VISIBILITY
1211stamp-visibility:
1212	echo 1 > stamp-visibility
1213else
1214stamp-visibility:
1215	echo 0 > stamp-visibility
1216endif
1217
1218if ENABLE_DUAL_ABI
1219stamp-dual-abi:
1220	echo 1 > stamp-dual-abi
1221else
1222stamp-dual-abi:
1223	echo 0 > stamp-dual-abi
1224endif
1225
1226if ENABLE_CXX11_ABI
1227stamp-cxx11-abi:
1228	echo 1 > stamp-cxx11-abi
1229else
1230stamp-cxx11-abi:
1231	echo 0 > stamp-cxx11-abi
1232endif
1233
1234if ENABLE_ALLOCATOR_NEW
1235stamp-allocator-new:
1236	echo 1 > stamp-allocator-new
1237else
1238stamp-allocator-new:
1239	echo 0 > stamp-allocator-new
1240endif
1241
1242if ENABLE_FLOAT128
1243stamp-float128:
1244	echo 'define _GLIBCXX_USE_FLOAT128 1' > stamp-float128
1245else
1246stamp-float128:
1247	echo 'undef _GLIBCXX_USE_FLOAT128' > stamp-float128
1248endif
1249
1250# This header is not installed, it's only used to build libstdc++ itself.
1251${host_builddir}/largefile-config.h: ${CONFIG_HEADER} stamp-${host_alias}
1252	@rm -f $@.tmp
1253	@-grep 'define _DARWIN_USE_64_BIT_INODE' ${CONFIG_HEADER} >> $@.tmp
1254	@-grep 'define _FILE_OFFSET_BITS' ${CONFIG_HEADER} >> $@.tmp
1255	@-grep 'define _LARGE_FILES' ${CONFIG_HEADER} >> $@.tmp
1256	@mv $@.tmp $@
1257
1258# NB: The non-empty default ldbl_compat works around an AIX sed
1259# oddity, see libstdc++/31957 for details.
1260${host_builddir}/c++config.h: ${CONFIG_HEADER} \
1261			      ${glibcxx_srcdir}/include/bits/c++config \
1262			      ${host_builddir}/largefile-config.h \
1263			      stamp-${host_alias} \
1264			      ${toplevel_srcdir}/gcc/DATESTAMP \
1265			      stamp-namespace-version \
1266			      stamp-visibility \
1267			      stamp-extern-template \
1268			      stamp-dual-abi \
1269			      stamp-cxx11-abi \
1270			      stamp-allocator-new \
1271			      stamp-float128
1272	@date=`cat ${toplevel_srcdir}/gcc/DATESTAMP` ;\
1273	release=`sed 's/^\([0-9]*\).*$$/\1/' ${toplevel_srcdir}/gcc/BASE-VER` ;\
1274	ns_version=`cat stamp-namespace-version` ;\
1275	visibility=`cat stamp-visibility` ;\
1276	externtemplate=`cat stamp-extern-template` ;\
1277	dualabi=`cat stamp-dual-abi` ;\
1278	cxx11abi=`cat stamp-cxx11-abi` ;\
1279	allocatornew=`cat stamp-allocator-new` ;\
1280	float128=`cat stamp-float128` ;\
1281	ldbl_compat='s,g,g,' ;\
1282	grep "^[	 ]*#[	 ]*define[	 ][	 ]*_GLIBCXX_LONG_DOUBLE_COMPAT[	 ][	 ]*1[	 ]*$$" \
1283	${CONFIG_HEADER} > /dev/null 2>&1 \
1284	&& ldbl_compat='s,^#undef _GLIBCXX_LONG_DOUBLE_COMPAT$$,#define _GLIBCXX_LONG_DOUBLE_COMPAT 1,' ;\
1285	sed -e "s,define __GLIBCXX__,define __GLIBCXX__ $$date," \
1286	-e "s,define _GLIBCXX_RELEASE,define _GLIBCXX_RELEASE $$release," \
1287	-e "s,define _GLIBCXX_INLINE_VERSION, define _GLIBCXX_INLINE_VERSION $$ns_version," \
1288	-e "s,define _GLIBCXX_HAVE_ATTRIBUTE_VISIBILITY, define _GLIBCXX_HAVE_ATTRIBUTE_VISIBILITY $$visibility," \
1289	-e "s,define _GLIBCXX_EXTERN_TEMPLATE$$, define _GLIBCXX_EXTERN_TEMPLATE $$externtemplate," \
1290	-e "s,define _GLIBCXX_USE_DUAL_ABI, define _GLIBCXX_USE_DUAL_ABI $$dualabi," \
1291	-e "s,define _GLIBCXX_USE_CXX11_ABI, define _GLIBCXX_USE_CXX11_ABI $$cxx11abi," \
1292	-e "s,define _GLIBCXX_USE_ALLOCATOR_NEW, define _GLIBCXX_USE_ALLOCATOR_NEW $$allocatornew," \
1293	-e "s,define _GLIBCXX_USE_FLOAT128,$$float128," \
1294	-e "$$ldbl_compat" \
1295	    < ${glibcxx_srcdir}/include/bits/c++config > $@ ;\
1296	sed -e 's/HAVE_/_GLIBCXX_HAVE_/g' \
1297	    -e 's/PACKAGE/_GLIBCXX_PACKAGE/g' \
1298	    -e 's/VERSION/_GLIBCXX_VERSION/g' \
1299	    -e 's/WORDS_/_GLIBCXX_WORDS_/g' \
1300	    -e 's/LT_OBJDIR/_GLIBCXX_LT_OBJDIR/g' \
1301	    -e 's/STDC_HEADERS/_GLIBCXX_STDC_HEADERS/g' \
1302	    -e 's/_DARWIN_USE_64_BIT_INODE/_GLIBCXX_DARWIN_USE_64_BIT_INODE/g' \
1303	    -e 's/_FILE_OFFSET_BITS/_GLIBCXX_FILE_OFFSET_BITS/g' \
1304	    -e 's/_LARGE_FILES/_GLIBCXX_LARGE_FILES/g' \
1305	    -e 's/ICONV_CONST/_GLIBCXX_ICONV_CONST/g' \
1306	    -e '/[	 ]_GLIBCXX_LONG_DOUBLE_COMPAT[	 ]/d' \
1307	    < ${CONFIG_HEADER} >> $@ ;\
1308	echo "" >> $@ ;\
1309	echo "#endif // _GLIBCXX_CXX_CONFIG_H" >> $@
1310
1311# Host includes for threads
1312uppercase = [ABCDEFGHIJKLMNOPQRSTUVWXYZ_]
1313
1314${host_builddir}/gthr.h: ${toplevel_srcdir}/libgcc/gthr.h stamp-${host_alias}
1315	sed -e '/^#pragma/b' \
1316	    -e '/^#/s/\(${uppercase}${uppercase}*\)/_GLIBCXX_\1/g' \
1317	    -e 's/_GLIBCXX_SUPPORTS_WEAK/__GXX_WEAK__/g' \
1318	    -e 's/_GLIBCXX___MINGW32_GLIBCXX___/__MINGW32__/g' \
1319	    -e 's,^#include "\(.*\)",#include <bits/\1>,g' \
1320	    < $< > $@
1321
1322${host_builddir}/gthr-single.h: ${toplevel_srcdir}/libgcc/gthr-single.h \
1323				  stamp-${host_alias}
1324	sed -e 's/\(UNUSED\)/_GLIBCXX_\1/g' \
1325	    -e 's/\(GCC${uppercase}*_H\)/_GLIBCXX_\1/g' \
1326	    < $< > $@
1327
1328${host_builddir}/gthr-posix.h: ${toplevel_srcdir}/libgcc/gthr-posix.h \
1329				   stamp-${host_alias}
1330	sed -e 's/\(UNUSED\)/_GLIBCXX_\1/g' \
1331	    -e 's/\(GCC${uppercase}*_H\)/_GLIBCXX_\1/g' \
1332	    -e 's/SUPPORTS_WEAK/__GXX_WEAK__/g' \
1333	    -e 's/\(${uppercase}*USE_WEAK\)/_GLIBCXX_\1/g' \
1334	    < $< > $@
1335
1336${host_builddir}/gthr-default.h: ${toplevel_srcdir}/libgcc/${thread_header} \
1337				   stamp-${host_alias}
1338	sed -e 's/\(UNUSED\)/_GLIBCXX_\1/g' \
1339	    -e 's/\(GCC${uppercase}*_H\)/_GLIBCXX_\1/g' \
1340	    -e 's/SUPPORTS_WEAK/__GXX_WEAK__/g' \
1341	    -e 's/\(${uppercase}*USE_WEAK\)/_GLIBCXX_\1/g' \
1342	    -e 's,^#include "\(.*\)",#include <bits/\1>,g' \
1343	    < $< > $@
1344
1345# Build two precompiled C++ includes, stdc++.h.gch/*.gch
1346${pch1a_output}: ${allstamped} ${host_builddir}/c++config.h ${pch1_source}
1347	-mkdir -p ${pch1_output_builddir}
1348	$(CXX) $(PCHFLAGS) $(AM_CPPFLAGS) -O2 -g -std=gnu++0x ${pch1_source} \
1349	-o $@
1350
1351${pch1b_output}: ${allstamped} ${host_builddir}/c++config.h ${pch1_source}
1352	-mkdir -p ${pch1_output_builddir}
1353	$(CXX) $(PCHFLAGS) $(AM_CPPFLAGS) -O2 -g ${pch1_source} -o $@
1354
1355# Build a precompiled TR1 include, stdtr1c++.h.gch/O2.gch
1356${pch2_output}: ${pch2_source} ${pch1_output}
1357	-mkdir -p ${pch2_output_builddir}
1358	$(CXX) $(PCHFLAGS) $(AM_CPPFLAGS) -O2 -g ${pch2_source} -o $@
1359
1360# Build a precompiled extension include, extc++.h.gch/O2.gch
1361${pch3_output}: ${pch3_source} ${pch2_output}
1362	-mkdir -p ${pch3_output_builddir}
1363	$(CXX) $(PCHFLAGS) $(AM_CPPFLAGS) -O2 -g ${pch3_source} -o $@
1364
1365# For robustness sake (in light of junk files or in-source
1366# configuration), copy from the build or source tree to the install
1367# tree using only the human-maintained file lists and directory
1368# components.  Yes, with minor differences, this is sheer duplication
1369# of the staging rules above using $(INSTALL_DATA) instead of LN_S and
1370# `$(mkinstalldirs)' instead of `mkdir -p'.  In particular,
1371# host_headers_extra are taken out of the build tree staging area;
1372# the rest are taken from the original source tree.
1373
1374if GLIBCXX_HOSTED
1375install-data-local: install-headers
1376else
1377install-data-local: install-freestanding-headers
1378endif
1379
1380# This is a subset of the full install-headers rule.  We only need <ciso646>,
1381# <cstddef>, <cfloat>, <limits>, <climits>, <version>, <cstdint>, <cstdlib>,
1382# <new>, <typeinfo>, <exception>, <initializer_list>, <cstdalign>, <cstdarg>,
1383# <concepts>, <cstdbool>, <type_traits>, <bit>, <atomic>,
1384# and any files which they include (and which we provide).
1385# <new>, <typeinfo>, <exception>, <initializer_list> and <compare>
1386# are installed by libsupc++, so only the others and the sub-includes
1387# are copied here.
1388install-freestanding-headers:
1389	$(mkinstalldirs) $(DESTDIR)${gxx_include_dir}/bits
1390	for file in c++0x_warning.h atomic_base.h concept_check.h move.h; do \
1391	  $(INSTALL_DATA) ${glibcxx_srcdir}/include/bits/$${file} $(DESTDIR)${gxx_include_dir}/bits; done
1392	$(mkinstalldirs) $(DESTDIR)${host_installdir}
1393	for file in ${host_srcdir}/os_defines.h ${host_builddir}/c++config.h \
1394	  ${glibcxx_srcdir}/$(ABI_TWEAKS_SRCDIR)/cxxabi_tweaks.h \
1395	  ${glibcxx_srcdir}/$(CPU_DEFINES_SRCDIR)/cpu_defines.h; do \
1396	  $(INSTALL_DATA) $${file} $(DESTDIR)${host_installdir}; done
1397	$(mkinstalldirs) $(DESTDIR)${gxx_include_dir}/${std_builddir}
1398	for file in limits type_traits atomic bit concepts version; do \
1399	  $(INSTALL_DATA) ${std_builddir}/$${file} $(DESTDIR)${gxx_include_dir}/${std_builddir}; done
1400	$(mkinstalldirs) $(DESTDIR)${gxx_include_dir}/${c_base_builddir}
1401	for file in ciso646 cstddef cfloat climits cstdint cstdlib \
1402	  cstdalign cstdarg cstdbool; do \
1403	  $(INSTALL_DATA) ${c_base_builddir}/$${file} $(DESTDIR)${gxx_include_dir}/${c_base_builddir}; done
1404
1405# The real deal.
1406install-headers:
1407	$(mkinstalldirs) $(DESTDIR)${gxx_include_dir}
1408	$(mkinstalldirs) $(DESTDIR)${gxx_include_dir}/${bits_builddir}
1409	for file in ${bits_headers}; do \
1410	  $(INSTALL_DATA) $${file} $(DESTDIR)${gxx_include_dir}/${bits_builddir}; done
1411	$(mkinstalldirs) $(DESTDIR)${gxx_include_dir}/${backward_builddir}
1412	for file in ${backward_headers}; do \
1413	  $(INSTALL_DATA) $${file} $(DESTDIR)${gxx_include_dir}/${backward_builddir}; done
1414	$(mkinstalldirs) $(DESTDIR)${gxx_include_dir}/${ext_builddir}
1415	for file in ${ext_headers}; do \
1416	  $(INSTALL_DATA) $${file} $(DESTDIR)${gxx_include_dir}/${ext_builddir}; done
1417	$(mkinstalldirs) $(DESTDIR)${gxx_include_dir}/${pb_builddir}
1418	for dir in ${pb_subdirs}; do \
1419	  $(mkinstalldirs) $(DESTDIR)${gxx_include_dir}/$${dir} ; done
1420	for file in ${pb_headers1}; do \
1421	  install_base=$(DESTDIR)${gxx_include_dir}/${pb_builddir} ; \
1422	  relative_name=`echo $$file | sed -e "s|${pb_srcdir}|.|g"` ;\
1423	  $(INSTALL_DATA) $${file} $${install_base}/$${relative_name} ; done
1424	for file in ${pb_headers2}; do \
1425	  install_base=$(DESTDIR)${gxx_include_dir}/${pb_builddir} ; \
1426	  relative_name=`echo $$file | sed -e "s|${pb_srcdir}|.|g"` ;\
1427	  $(INSTALL_DATA) $${file} $${install_base}/$${relative_name} ; done
1428	for file in ${pb_headers3}; do \
1429	  install_base=$(DESTDIR)${gxx_include_dir}/${pb_builddir} ; \
1430	  relative_name=`echo $$file | sed -e "s|${pb_srcdir}|.|g"` ;\
1431	  $(INSTALL_DATA) $${file} $${install_base}/$${relative_name} ; done
1432	for file in ${pb_headers4}; do \
1433	  install_base=$(DESTDIR)${gxx_include_dir}/${pb_builddir} ; \
1434	  relative_name=`echo $$file | sed -e "s|${pb_srcdir}|.|g"` ;\
1435	  $(INSTALL_DATA) $${file} $${install_base}/$${relative_name} ; done
1436	for file in ${pb_headers5}; do \
1437	  install_base=$(DESTDIR)${gxx_include_dir}/${pb_builddir} ; \
1438	  relative_name=`echo $$file | sed -e "s|${pb_srcdir}|.|g"` ;\
1439	  $(INSTALL_DATA) $${file} $${install_base}/$${relative_name} ; done
1440	for file in ${pb_headers6}; do \
1441	  install_base=$(DESTDIR)${gxx_include_dir}/${pb_builddir} ; \
1442	  relative_name=`echo $$file | sed -e "s|${pb_srcdir}|.|g"` ;\
1443	  $(INSTALL_DATA) $${file} $${install_base}/$${relative_name} ; done
1444	for file in ${pb_headers7}; do \
1445	  install_base=$(DESTDIR)${gxx_include_dir}/${pb_builddir} ; \
1446	  relative_name=`echo $$file | sed -e "s|${pb_srcdir}|.|g"` ;\
1447	  $(INSTALL_DATA) $${file} $${install_base}/$${relative_name} ; done
1448	$(mkinstalldirs) $(DESTDIR)${gxx_include_dir}/${tr1_builddir}
1449	for file in ${tr1_headers}; do \
1450	  $(INSTALL_DATA) $${file} $(DESTDIR)${gxx_include_dir}/${tr1_builddir}; done
1451	$(mkinstalldirs) $(DESTDIR)${gxx_include_dir}/${tr2_builddir}
1452	for file in ${tr2_headers}; do \
1453	  $(INSTALL_DATA) $${file} $(DESTDIR)${gxx_include_dir}/${tr2_builddir}; done
1454	$(mkinstalldirs) $(DESTDIR)${gxx_include_dir}/${decimal_builddir}
1455	for file in ${decimal_headers}; do \
1456	  $(INSTALL_DATA) $${file} $(DESTDIR)${gxx_include_dir}/${decimal_builddir}; done
1457	$(mkinstalldirs) $(DESTDIR)${gxx_include_dir}/${experimental_builddir}
1458	for file in ${experimental_headers}; do \
1459	  $(INSTALL_DATA) $${file} $(DESTDIR)${gxx_include_dir}/${experimental_builddir}; done
1460	$(mkinstalldirs) $(DESTDIR)${gxx_include_dir}/${experimental_bits_builddir}
1461	for file in ${experimental_bits_headers}; do \
1462	  $(INSTALL_DATA) $${file} $(DESTDIR)${gxx_include_dir}/${experimental_bits_builddir}; done
1463	$(mkinstalldirs) $(DESTDIR)${gxx_include_dir}/${c_base_builddir}
1464	for file in ${c_base_headers}; do \
1465	  $(INSTALL_DATA) $${file} $(DESTDIR)${gxx_include_dir}/${c_base_builddir}; done
1466	c_base_headers_extra_install='$(c_base_headers_extra)';\
1467	for file in $$c_base_headers_extra_install; do \
1468	  $(INSTALL_DATA) $$file $(DESTDIR)${gxx_include_dir}/${bits_builddir}; done
1469	c_compatibility_headers_install='$(c_compatibility_headers_extra)';\
1470	for file in $$c_compatibility_headers_install; do \
1471	  $(INSTALL_DATA) $$file $(DESTDIR)${gxx_include_dir}; done
1472	$(mkinstalldirs) $(DESTDIR)${gxx_include_dir}/${std_builddir}
1473	for file in ${std_headers}; do \
1474	  $(INSTALL_DATA) $${file} $(DESTDIR)${gxx_include_dir}/${std_builddir}; done
1475	$(mkinstalldirs) $(DESTDIR)${gxx_include_dir}/${debug_builddir}
1476	for file in ${debug_headers}; do \
1477	  $(INSTALL_DATA) $${file} $(DESTDIR)${gxx_include_dir}/${debug_builddir}; done
1478	$(mkinstalldirs) $(DESTDIR)${gxx_include_dir}/${parallel_builddir}
1479	for file in ${parallel_headers}; do \
1480	  $(INSTALL_DATA) $${file} $(DESTDIR)${gxx_include_dir}/${parallel_builddir}; done
1481	$(mkinstalldirs) $(DESTDIR)${host_installdir}
1482	for file in ${host_headers} ${bits_host_headers} ${host_headers_extra} \
1483	 ${thread_host_headers}; do \
1484	  $(INSTALL_DATA) $${file} $(DESTDIR)${host_installdir}; done
1485	$(mkinstalldirs) $(DESTDIR)${host_installdir}/../ext
1486	for file in ${ext_host_headers}; do \
1487	  $(INSTALL_DATA) $${file} $(DESTDIR)${host_installdir}/../ext; done
1488	$(mkinstalldirs) $(DESTDIR)${gxx_include_dir}/${pstl_builddir}
1489	for file in ${pstl_headers}; do \
1490	  $(INSTALL_DATA) $${file} $(DESTDIR)${gxx_include_dir}/${pstl_builddir}; done
1491# By adding these files here, automake will remove them for 'make clean'
1492CLEANFILES = ${pch_output} ${pch_output_anchors} stamp-host
1493
1494# To remove directories.
1495clean-local:
1496	rm -rf ${pch_output_dirs}
1497
1498# Stop implicit '.o' make rules from ever stomping on extensionless
1499# headers, in the improbable case where some foolish, crack-addled
1500# developer tries to create them via make in the include build
1501# directory. (This is more of an example of how this kind of rule can
1502# be made.)
1503.PRECIOUS: $(std_headers) $(c_base_headers) $(tr1_headers) $(tr2_headers)
1504	   $(decimal_headers) $(ext_headers) $(experimental_headers)
1505	   $(experimental_bits_headers)
1506$(std_headers): ; @:
1507$(c_base_headers): ; @:
1508$(tr1_headers): ; @:
1509$(decimal_headers): ; @:
1510$(ext_headers): ; @:
1511$(experimental_headers): ; @:
1512$(experimental_bits_headers): ; @:
1513
1514if INCLUDE_DIR_NOTPARALLEL
1515# See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81797
1516.NOTPARALLEL:
1517endif
1518