Merge reload-branch up to revision 101000
[official-gcc.git] / libstdc++-v3 / include / Makefile.am
blob797afb619c8282c62c34cfed586048c3377785f2
1 ## Makefile for the include subdirectory of the GNU C++ Standard library.
2 ##
3 ## Copyright (C) 2001, 2002, 2003, 2004, 2005 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.
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 2, or (at your option)
12 ## any later version.
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.
19 ## You should have received a copy of the GNU General Public License along
20 ## with this library; see the file COPYING.  If not, write to the Free
21 ## Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
22 ## USA.
24 include $(top_srcdir)/fragment.am
26 # Standard C++ includes.
27 std_srcdir = ${glibcxx_srcdir}/include/std
28 std_builddir = .
29 std_headers = \
30         ${std_srcdir}/std_algorithm.h \
31         ${std_srcdir}/std_bitset.h \
32         ${std_srcdir}/std_complex.h \
33         ${std_srcdir}/std_deque.h \
34         ${std_srcdir}/std_fstream.h \
35         ${std_srcdir}/std_functional.h \
36         ${std_srcdir}/std_iomanip.h \
37         ${std_srcdir}/std_ios.h \
38         ${std_srcdir}/std_iosfwd.h \
39         ${std_srcdir}/std_iostream.h \
40         ${std_srcdir}/std_istream.h \
41         ${std_srcdir}/std_iterator.h \
42         ${std_srcdir}/std_limits.h \
43         ${std_srcdir}/std_list.h \
44         ${std_srcdir}/std_locale.h \
45         ${std_srcdir}/std_map.h \
46         ${std_srcdir}/std_memory.h \
47         ${std_srcdir}/std_numeric.h \
48         ${std_srcdir}/std_ostream.h \
49         ${std_srcdir}/std_queue.h \
50         ${std_srcdir}/std_set.h \
51         ${std_srcdir}/std_sstream.h \
52         ${std_srcdir}/std_stack.h \
53         ${std_srcdir}/std_stdexcept.h \
54         ${std_srcdir}/std_streambuf.h \
55         ${std_srcdir}/std_string.h \
56         ${std_srcdir}/std_utility.h \
57         ${std_srcdir}/std_valarray.h \
58         ${std_srcdir}/std_vector.h
59 # Renamed at build time.
60 std_headers_rename = \
61         algorithm \
62         bitset \
63         complex \
64         deque \
65         fstream \
66         functional \
67         iomanip \
68         ios \
69         iosfwd \
70         iostream \
71         istream \
72         iterator \
73         limits \
74         list \
75         locale \
76         map \
77         memory \
78         numeric \
79         ostream \
80         queue \
81         set \
82         sstream \
83         stack \
84         stdexcept \
85         streambuf \
86         string \
87         utility \
88         valarray \
89         vector
91 bits_srcdir = ${glibcxx_srcdir}/include/bits
92 bits_builddir = ./bits
93 bits_headers = \
94         ${bits_srcdir}/allocator.h \
95         ${bits_srcdir}/atomicity.h \
96         ${bits_srcdir}/basic_ios.h \
97         ${bits_srcdir}/basic_ios.tcc \
98         ${bits_srcdir}/basic_string.h \
99         ${bits_srcdir}/basic_string.tcc \
100         ${bits_srcdir}/boost_concept_check.h \
101         ${bits_srcdir}/char_traits.h \
102         ${bits_srcdir}/codecvt.h \
103         ${bits_srcdir}/concept_check.h \
104         ${bits_srcdir}/concurrence.h \
105         ${bits_srcdir}/cpp_type_traits.h \
106         ${bits_srcdir}/deque.tcc \
107         ${bits_srcdir}/fstream.tcc \
108         ${bits_srcdir}/functexcept.h \
109         ${bits_srcdir}/gslice.h \
110         ${bits_srcdir}/gslice_array.h \
111         ${bits_srcdir}/indirect_array.h \
112         ${bits_srcdir}/ios_base.h \
113         ${bits_srcdir}/istream.tcc \
114         ${bits_srcdir}/list.tcc \
115         ${bits_srcdir}/locale_classes.h \
116         ${bits_srcdir}/locale_facets.h \
117         ${bits_srcdir}/locale_facets.tcc \
118         ${bits_srcdir}/localefwd.h \
119         ${bits_srcdir}/mask_array.h \
120         ${bits_srcdir}/ostream.tcc \
121         ${bits_srcdir}/postypes.h \
122         ${bits_srcdir}/stream_iterator.h \
123         ${bits_srcdir}/streambuf_iterator.h \
124         ${bits_srcdir}/slice_array.h \
125         ${bits_srcdir}/sstream.tcc \
126         ${bits_srcdir}/stl_algo.h \
127         ${bits_srcdir}/stl_algobase.h \
128         ${bits_srcdir}/stl_bvector.h \
129         ${bits_srcdir}/stl_construct.h \
130         ${bits_srcdir}/stl_deque.h \
131         ${bits_srcdir}/stl_function.h \
132         ${bits_srcdir}/stl_heap.h \
133         ${bits_srcdir}/stl_iterator.h \
134         ${bits_srcdir}/stl_iterator_base_funcs.h \
135         ${bits_srcdir}/stl_iterator_base_types.h \
136         ${bits_srcdir}/stl_list.h \
137         ${bits_srcdir}/stl_map.h \
138         ${bits_srcdir}/stl_multimap.h \
139         ${bits_srcdir}/stl_multiset.h \
140         ${bits_srcdir}/stl_numeric.h \
141         ${bits_srcdir}/stl_pair.h \
142         ${bits_srcdir}/stl_queue.h \
143         ${bits_srcdir}/stl_raw_storage_iter.h \
144         ${bits_srcdir}/stl_relops.h \
145         ${bits_srcdir}/stl_set.h \
146         ${bits_srcdir}/stl_stack.h \
147         ${bits_srcdir}/stl_tempbuf.h \
148         ${bits_srcdir}/stl_tree.h \
149         ${bits_srcdir}/stl_uninitialized.h \
150         ${bits_srcdir}/stl_vector.h \
151         ${bits_srcdir}/streambuf.tcc \
152         ${bits_srcdir}/stringfwd.h \
153         ${bits_srcdir}/valarray_array.h \
154         ${bits_srcdir}/valarray_array.tcc \
155         ${bits_srcdir}/valarray_before.h \
156         ${bits_srcdir}/valarray_after.h \
157         ${bits_srcdir}/vector.tcc
159 backward_srcdir = ${glibcxx_srcdir}/include/backward
160 backward_builddir = ./backward
161 backward_headers = \
162         ${backward_srcdir}/complex.h \
163         ${backward_srcdir}/iomanip.h \
164         ${backward_srcdir}/istream.h \
165         ${backward_srcdir}/ostream.h \
166         ${backward_srcdir}/stream.h \
167         ${backward_srcdir}/streambuf.h \
168         ${backward_srcdir}/algo.h \
169         ${backward_srcdir}/algobase.h \
170         ${backward_srcdir}/alloc.h \
171         ${backward_srcdir}/bvector.h \
172         ${backward_srcdir}/defalloc.h \
173         ${backward_srcdir}/deque.h \
174         ${backward_srcdir}/function.h \
175         ${backward_srcdir}/hash_map.h \
176         ${backward_srcdir}/hash_set.h \
177         ${backward_srcdir}/hashtable.h \
178         ${backward_srcdir}/heap.h \
179         ${backward_srcdir}/iostream.h \
180         ${backward_srcdir}/iterator.h \
181         ${backward_srcdir}/list.h \
182         ${backward_srcdir}/map.h \
183         ${backward_srcdir}/multimap.h \
184         ${backward_srcdir}/new.h \
185         ${backward_srcdir}/multiset.h \
186         ${backward_srcdir}/pair.h \
187         ${backward_srcdir}/queue.h \
188         ${backward_srcdir}/rope.h \
189         ${backward_srcdir}/set.h \
190         ${backward_srcdir}/slist.h \
191         ${backward_srcdir}/stack.h \
192         ${backward_srcdir}/tempbuf.h \
193         ${backward_srcdir}/tree.h \
194         ${backward_srcdir}/vector.h \
195         ${backward_srcdir}/fstream.h \
196         ${backward_srcdir}/strstream \
197         ${backward_srcdir}/backward_warning.h
199 ext_srcdir = ${glibcxx_srcdir}/include/ext
200 ext_builddir = ./ext
201 ext_headers = \
202         ${ext_srcdir}/algorithm \
203         ${ext_srcdir}/array_allocator.h \
204         ${ext_srcdir}/bitmap_allocator.h \
205         ${ext_srcdir}/codecvt_specializations.h \
206         ${ext_srcdir}/debug_allocator.h \
207         ${ext_srcdir}/stdio_filebuf.h \
208         ${ext_srcdir}/stdio_sync_filebuf.h \
209         ${ext_srcdir}/functional \
210         ${ext_srcdir}/hash_map \
211         ${ext_srcdir}/hash_set \
212         ${ext_srcdir}/iterator \
213         ${ext_srcdir}/malloc_allocator.h \
214         ${ext_srcdir}/memory \
215         ${ext_srcdir}/mt_allocator.h \
216         ${ext_srcdir}/new_allocator.h \
217         ${ext_srcdir}/numeric \
218         ${ext_srcdir}/pod_char_traits.h \
219         ${ext_srcdir}/pool_allocator.h \
220         ${ext_srcdir}/rb_tree \
221         ${ext_srcdir}/rope \
222         ${ext_srcdir}/ropeimpl.h \
223         ${ext_srcdir}/slist \
224         ${ext_srcdir}/hash_fun.h \
225         ${ext_srcdir}/hashtable.h
227 tr1_srcdir = ${glibcxx_srcdir}/include/tr1
228 tr1_builddir = ./tr1
229 tr1_headers = \
230         ${tr1_srcdir}/array \
231         ${tr1_srcdir}/bind_repeat.h \
232         ${tr1_srcdir}/bind_iterate.h \
233         ${tr1_srcdir}/boost_shared_ptr.h \
234         ${tr1_srcdir}/mu_iterate.h \
235         ${tr1_srcdir}/functional \
236         ${tr1_srcdir}/functional_iterate.h \
237         ${tr1_srcdir}/memory \
238         ${tr1_srcdir}/ref_fwd.h \
239         ${tr1_srcdir}/ref_wrap_iterate.h \
240         ${tr1_srcdir}/repeat.h \
241         ${tr1_srcdir}/tuple \
242         ${tr1_srcdir}/tuple_iterate.h \
243         ${tr1_srcdir}/utility \
244         ${tr1_srcdir}/type_traits \
245         ${tr1_srcdir}/type_traits_fwd.h \
246         ${tr1_srcdir}/hashtable \
247         ${tr1_srcdir}/unordered_set \
248         ${tr1_srcdir}/unordered_map
251 # This is the common subset of files that all three "C" header models use.
252 c_base_srcdir = $(C_INCLUDE_DIR)
253 c_base_builddir = .
254 c_base_headers = \
255         ${c_base_srcdir}/std_cassert.h \
256         ${c_base_srcdir}/std_cctype.h \
257         ${c_base_srcdir}/std_cerrno.h \
258         ${c_base_srcdir}/std_cfloat.h \
259         ${c_base_srcdir}/std_ciso646.h \
260         ${c_base_srcdir}/std_climits.h \
261         ${c_base_srcdir}/std_clocale.h \
262         ${c_base_srcdir}/std_cmath.h \
263         ${c_base_srcdir}/std_csetjmp.h \
264         ${c_base_srcdir}/std_csignal.h \
265         ${c_base_srcdir}/std_cstdarg.h \
266         ${c_base_srcdir}/std_cstddef.h \
267         ${c_base_srcdir}/std_cstdio.h \
268         ${c_base_srcdir}/std_cstdlib.h \
269         ${c_base_srcdir}/std_cstring.h \
270         ${c_base_srcdir}/std_ctime.h \
271         ${c_base_srcdir}/std_cwchar.h \
272         ${c_base_srcdir}/std_cwctype.h
273 c_base_headers_rename = \
274         cassert \
275         cctype \
276         cerrno \
277         cfloat \
278         ciso646 \
279         climits \
280         clocale \
281         cmath \
282         csetjmp \
283         csignal \
284         cstdarg \
285         cstddef \
286         cstdio \
287         cstdlib \
288         cstring \
289         ctime \
290         cwchar \
291         cwctype
293 # "C" compatibility headers.
294 c_compatibility_srcdir = ${glibcxx_srcdir}/include/c_compatibility
295 c_compatibility_builddir = .
296 c_compatibility_headers = \
297         ${c_compatibility_srcdir}/assert.h \
298         ${c_compatibility_srcdir}/ctype.h \
299         ${c_compatibility_srcdir}/errno.h \
300         ${c_compatibility_srcdir}/float.h \
301         ${c_compatibility_srcdir}/iso646.h \
302         ${c_compatibility_srcdir}/limits.h \
303         ${c_compatibility_srcdir}/locale.h \
304         ${c_compatibility_srcdir}/math.h \
305         ${c_compatibility_srcdir}/setjmp.h \
306         ${c_compatibility_srcdir}/signal.h \
307         ${c_compatibility_srcdir}/stdarg.h \
308         ${c_compatibility_srcdir}/stddef.h \
309         ${c_compatibility_srcdir}/stdio.h \
310         ${c_compatibility_srcdir}/stdlib.h \
311         ${c_compatibility_srcdir}/string.h \
312         ${c_compatibility_srcdir}/time.h \
313         ${c_compatibility_srcdir}/wchar.h \
314         ${c_compatibility_srcdir}/wctype.h
316 # Debug mode headers
317 debug_srcdir = ${glibcxx_srcdir}/include/debug
318 debug_builddir = ./debug
319 debug_headers = \
320         ${debug_srcdir}/bitset \
321         ${debug_srcdir}/debug.h \
322         ${debug_srcdir}/deque \
323         ${debug_srcdir}/formatter.h \
324         ${debug_srcdir}/functions.h \
325         ${debug_srcdir}/hash_map \
326         ${debug_srcdir}/hash_map.h \
327         ${debug_srcdir}/hash_multimap.h \
328         ${debug_srcdir}/hash_multiset.h \
329         ${debug_srcdir}/hash_set \
330         ${debug_srcdir}/hash_set.h \
331         ${debug_srcdir}/list \
332         ${debug_srcdir}/map \
333         ${debug_srcdir}/macros.h \
334         ${debug_srcdir}/map.h \
335         ${debug_srcdir}/multimap.h \
336         ${debug_srcdir}/multiset.h \
337         ${debug_srcdir}/safe_base.h \
338         ${debug_srcdir}/safe_iterator.h \
339         ${debug_srcdir}/safe_iterator.tcc \
340         ${debug_srcdir}/safe_sequence.h \
341         ${debug_srcdir}/set \
342         ${debug_srcdir}/set.h \
343         ${debug_srcdir}/string \
344         ${debug_srcdir}/vector
346 # Some of the different "C" header models need extra files.
347 # Some "C" header schemes require the "C" compatibility headers.
348 # For --enable-cheaders=c_std
349 if GLIBCXX_C_HEADERS_C_STD
350 c_base_headers_extra = ${c_base_srcdir}/cmath.tcc
351 else
352 c_base_headers_extra =
353 endif
355 if GLIBCXX_C_HEADERS_COMPATIBILITY
356 c_compatibility_headers_extra = ${c_compatibility_headers}
357 else
358 c_compatibility_headers_extra =
359 endif
361 host_srcdir = ${glibcxx_srcdir}/$(OS_INC_SRCDIR)
362 host_builddir = ./${host_alias}/bits
363 host_headers = \
364         ${host_srcdir}/ctype_base.h \
365         ${host_srcdir}/ctype_inline.h \
366         ${host_srcdir}/ctype_noninline.h \
367         ${host_srcdir}/os_defines.h \
368         ${glibcxx_srcdir}/$(ATOMIC_WORD_SRCDIR)/atomic_word.h \
369         ${glibcxx_srcdir}/$(ABI_TWEAKS_SRCDIR)/cxxabi_tweaks.h
371 # Non-installed host_header files.
372 host_headers_noinst = \
373         ${glibcxx_srcdir}/$(CLOCALE_INTERNAL_H)
375 # These host_headers_extra files are all built with ad hoc naming rules.
376 host_headers_extra = \
377         ${host_builddir}/basic_file.h \
378         ${host_builddir}/c++config.h \
379         ${host_builddir}/c++allocator.h \
380         ${host_builddir}/c++io.h \
381         ${host_builddir}/c++locale.h \
382         ${host_builddir}/messages_members.h \
383         ${host_builddir}/time_members.h 
385 thread_host_headers = \
386         ${host_builddir}/gthr.h \
387         ${host_builddir}/gthr-single.h \
388         ${host_builddir}/gthr-posix.h \
389         ${host_builddir}/gthr-tpf.h \
390         ${host_builddir}/gthr-default.h
392 pch_input = ${host_builddir}/stdc++.h
393 pch_output_builddir = ${host_builddir}/stdc++.h.gch
394 pch_source = ${glibcxx_srcdir}/include/stdc++.h
395 PCHFLAGS=-Winvalid-pch -Wno-deprecated -x c++-header $(CXXFLAGS)
396 if GLIBCXX_BUILD_PCH
397 pch_build = ${pch_input}
398 pch_install = install-pch
399 else
400 pch_build =
401 pch_install =
402 endif
404 # List of all timestamp files.  By keeping only one copy of this list, both
405 # CLEANFILES and all-local are kept up-to-date.
406 allstamped = \
407         stamp-std stamp-bits stamp-c_base stamp-c_compatibility \
408         stamp-backward stamp-ext stamp-tr1 stamp-debug stamp-host
410 # List of all files that are created by explicit building, editing, or
411 # catenation.
412 allcreated = \
413         ${host_builddir}/c++config.h \
414         ${thread_host_headers} \
415         ${pch_build}
417 # Here are the rules for building the headers
418 all-local: ${allstamped} ${allcreated}
420 # This rule is slightly different, in that we must change the name of the
421 # local file from std_foo.h to foo.
422 stamp-std: ${std_headers}
423         @if [ ! -d "${std_builddir}" ]; then \
424           mkdir -p ${std_builddir} ;\
425         fi ;\
426         if [ ! -f stamp-std ]; then \
427           (cd ${std_builddir} && for h in $?; do \
428             official_name=`echo $$h | sed -e 's,.*/std_,,' -e 's,\.h$$,,'` ;\
429             $(LN_S) $$h ./$${official_name} || true ;\
430           done) ;\
431         fi ;\
432         $(STAMP) stamp-std
434 stamp-bits: ${bits_headers}
435         @if [ ! -d "${bits_builddir}" ]; then \
436           mkdir -p ${bits_builddir} ;\
437         fi ;\
438         if [ ! -f stamp-bits ]; then \
439           (cd ${bits_builddir} && $(LN_S) $? . || true) ;\
440         fi ;\
441         $(STAMP) stamp-bits
443 stamp-c_base: stamp-bits ${c_base_headers} ${c_base_headers_extra}
444         @if [ ! -d "${c_base_builddir}" ]; then \
445           mkdir -p ${c_base_builddir} ;\
446         fi ;\
447         if [ ! -f stamp-c_base ]; then \
448           (cd ${c_base_builddir} && for h in ${c_base_headers}; do \
449             official_name=`echo $$h | sed -e 's,.*/std_,,' -e 's,\.h$$,,'` ;\
450             $(LN_S) $$h ./$${official_name} || true ;\
451           done) ;\
452           if [ ! -z "${c_base_headers_extra}" ]; then \
453           (cd ${bits_builddir} && $(LN_S) ${c_base_headers_extra}  . || true) ;\
454           fi ;\
455         fi ;\
456         $(STAMP) stamp-c_base
458 stamp-c_compatibility: ${c_compatibility_headers_extra}
459         @if [ ! -d "${c_compatibility_builddir}" ]; then \
460           mkdir -p ${c_compatibility_builddir} ;\
461         fi ;\
462         if [ ! -f stamp-c_compatibility ]; then \
463           if [ ! -z "${c_compatibility_headers_extra}" ]; then \
464             (cd ${c_compatibility_builddir} && $(LN_S) $? . || true) ;\
465           fi ;\
466         fi ;\
467         $(STAMP) stamp-c_compatibility
469 stamp-backward: ${backward_headers}
470         @if [ ! -d "${backward_builddir}" ]; then \
471           mkdir -p ${backward_builddir} ;\
472         fi ;\
473         if [ ! -f stamp-backward ]; then \
474           (cd ${backward_builddir} && $(LN_S) $? . || true) ;\
475         fi ;\
476         $(STAMP) stamp-backward
478 stamp-ext: ${ext_headers}
479         @if [ ! -d "${ext_builddir}" ]; then \
480             mkdir -p ${ext_builddir} ;\
481         fi ;\
482         if [ ! -f stamp-ext ]; then \
483           (cd ${ext_builddir} && $(LN_S) $? . || true) ;\
484         fi ;\
485         $(STAMP) stamp-ext
488 stamp-tr1: ${tr1_headers}
489         @if [ ! -d "${tr1_builddir}" ]; then \
490             mkdir -p ${tr1_builddir} ;\
491         fi ;\
492         if [ ! -f stamp-tr1 ]; then \
493           (cd ${tr1_builddir} && $(LN_S) $? . || true) ;\
494         fi ;\
495         $(STAMP) stamp-tr1
497 stamp-debug: ${debug_headers}
498         @if [ ! -d "${debug_builddir}" ]; then \
499           mkdir -p ${debug_builddir} ;\
500         fi ;\
501         if [ ! -f stamp-debug ]; then \
502           (cd ${debug_builddir} && @LN_S@ $? . || true) ;\
503         fi ;\
504         $(STAMP) stamp-debug
506 stamp-${host_alias}:
507         @if [ ! -d ${host_builddir} ]; then \
508           mkdir -p ${host_builddir} ;\
509         fi ;\
510         $(STAMP) stamp-${host_alias}
512 # Host includes static.
513 # XXX Missing dependency info for {host_headers_extra}
514 stamp-host: ${host_headers} ${host_headers_noinst} stamp-${host_alias}
515         @if [ ! -f stamp-host ]; then \
516           (cd ${host_builddir} ;\
517           $(LN_S) ${host_headers} . || true ;\
518           $(LN_S) ${glibcxx_srcdir}/$(BASIC_FILE_H) basic_file.h || true ;\
519           $(LN_S) ${glibcxx_srcdir}/$(ALLOCATOR_H) c++allocator.h || true ;\
520           $(LN_S) ${glibcxx_srcdir}/$(CSTDIO_H) c++io.h || true ;\
521           $(LN_S) ${glibcxx_srcdir}/$(CLOCALE_H) c++locale.h || true ;\
522           $(LN_S) ${glibcxx_srcdir}/$(CLOCALE_INTERNAL_H) . || true ;\
523           $(LN_S) ${glibcxx_srcdir}/$(CMESSAGES_H) messages_members.h || true ;\
524           $(LN_S) ${glibcxx_srcdir}/$(CTIME_H) time_members.h || true ;\
525           $(LN_S) ${glibcxx_srcdir}/$(CCODECVT_H) codecvt_specializations.h || true);\
526         fi ;\
527         $(STAMP) stamp-host
529 # Host includes dynamic.
530 ${host_builddir}/c++config.h: ${top_builddir}/config.h \
531                                 ${glibcxx_srcdir}/include/bits/c++config \
532                                 stamp-${host_alias} \
533                                 ${toplevel_srcdir}/gcc/DATESTAMP
534         @cat ${glibcxx_srcdir}/include/bits/c++config > $@ ;\
535         sed -e 's/^/#define __GLIBCXX__ /' \
536             < ${toplevel_srcdir}/gcc/DATESTAMP >> $@ ;\
537         sed -e 's/HAVE_/_GLIBCXX_HAVE_/g' \
538             -e 's/PACKAGE/_GLIBCXX_PACKAGE/g' \
539             -e 's/VERSION/_GLIBCXX_VERSION/g' \
540             -e 's/WORDS_/_GLIBCXX_WORDS_/g' \
541             < ${CONFIG_HEADER} >> $@ ;\
542         echo "#endif // _CXXCONFIG_" >>$@
544 # Host includes for threads
545 uppercase = [ABCDEFGHIJKLMNOPQRSTUVWXYZ_]
547 ${host_builddir}/gthr.h: ${toplevel_srcdir}/gcc/gthr.h stamp-${host_alias}
548         sed -e '/^#pragma/b' \
549             -e '/^#/s/\(${uppercase}${uppercase}*\)/_GLIBCXX_\1/g' \
550             -e 's/_GLIBCXX_SUPPORTS_WEAK/__GXX_WEAK__/g' \
551             -e 's,^#include "\(.*\)",#include <bits/\1>,g' \
552             < ${toplevel_srcdir}/gcc/gthr.h > $@
554 ${host_builddir}/gthr-single.h: ${toplevel_srcdir}/gcc/gthr-single.h \
555                                   stamp-${host_alias}
556         sed -e 's/\(UNUSED\)/_GLIBCXX_\1/g' \
557             -e 's/\(GCC${uppercase}*_H\)/_GLIBCXX_\1/g' \
558             < ${toplevel_srcdir}/gcc/gthr-single.h > $@
560 ${host_builddir}/gthr-posix.h: ${toplevel_srcdir}/gcc/gthr-posix.h \
561                                    stamp-${host_alias}
562         sed -e 's/\(UNUSED\)/_GLIBCXX_\1/g' \
563             -e 's/\(GCC${uppercase}*_H\)/_GLIBCXX_\1/g' \
564             -e 's/SUPPORTS_WEAK/__GXX_WEAK__/g' \
565             -e 's/\(${uppercase}*USE_WEAK\)/_GLIBCXX_\1/g' \
566             < ${toplevel_srcdir}/gcc/gthr-posix.h > $@
568 ${host_builddir}/gthr-tpf.h: ${toplevel_srcdir}/gcc/gthr-tpf.h \
569                                    stamp-${host_alias}
570         sed -e 's/\(UNUSED\)/_GLIBCXX_\1/g' \
571             -e 's/\(GCC${uppercase}*_H\)/_GLIBCXX_\1/g' \
572             -e 's/SUPPORTS_WEAK/__GXX_WEAK__/g' \
573             -e 's/\(${uppercase}*USE_WEAK\)/_GLIBCXX_\1/g' \
574             < ${toplevel_srcdir}/gcc/gthr-tpf.h > $@
576 ${host_builddir}/gthr-default.h: ${toplevel_srcdir}/gcc/${glibcxx_thread_h} \
577                                    stamp-${host_alias}
578         sed -e 's/\(UNUSED\)/_GLIBCXX_\1/g' \
579             -e 's/\(GCC${uppercase}*_H\)/_GLIBCXX_\1/g' \
580             -e 's/SUPPORTS_WEAK/__GXX_WEAK__/g' \
581             -e 's/\(${uppercase}*USE_WEAK\)/_GLIBCXX_\1/g' \
582             -e 's,^#include "\(.*\)",#include <bits/\1>,g' \
583             < ${toplevel_srcdir}/gcc/${glibcxx_thread_h} > $@
585 # Build a precompiled C++ include, stdc++.h.gch.
586 ${pch_input}: ${allstamped} ${host_builddir}/c++config.h ${pch_source}
587         touch ${pch_input}; \
588         if [ ! -d "${pch_output_builddir}" ]; then \
589           mkdir -p ${pch_output_builddir}; \
590         fi; \
591         $(CXX) $(PCHFLAGS) $(AM_CPPFLAGS) ${pch_source} -O0 -g -o ${pch_output_builddir}/O0g.gch; \
592         $(CXX) $(PCHFLAGS) $(AM_CPPFLAGS) ${pch_source} -O2 -g -o ${pch_output_builddir}/O2g.gch;
594 # For robustness sake (in light of junk files or in-source
595 # configuration), copy from the build or source tree to the install
596 # tree using only the human-maintained file lists and directory
597 # components.  Yes, with minor differences, this is sheer duplication
598 # of the staging rules above using $(INSTALL_DATA) instead of LN_S and
599 # `$(mkinstalldirs)' instead of `mkdir -p'.  In particular,
600 # host_headers_extra are taken out of the build tree staging area;
601 # the rest are taken from the original source tree.
603 if GLIBCXX_HOSTED
604 install-data-local: install-headers ${pch_install}
605 else
606 install-data-local: install-freestanding-headers
607 endif
609 # This is a subset of the full install-headers rule.  We only need <cstddef>,
610 # <limits>, <cstdlib>, <cstdarg>, <new>, <typeinfo>, <exception>, and any
611 # files which they include (and which we provide).  The last three headers
612 # are installed by libsupc++, so only the first four and the sub-includes
613 # are copied here.
614 install-freestanding-headers:
615         $(mkinstalldirs) $(DESTDIR)${gxx_include_dir}
616         $(mkinstalldirs) $(DESTDIR)${gxx_include_dir}/${host_builddir}
617         for file in ${host_srcdir}/os_defines.h ${host_builddir}/c++config.h; do \
618           $(INSTALL_DATA) $${file} $(DESTDIR)${gxx_include_dir}/${host_builddir}; done
619         $(mkinstalldirs) $(DESTDIR)${gxx_include_dir}/${std_builddir}
620         $(INSTALL_DATA) ${std_builddir}/limits $(DESTDIR)${gxx_include_dir}/${std_builddir}
621         $(mkinstalldirs) $(DESTDIR)${gxx_include_dir}/${c_base_builddir}
622         for file in cstddef cstdlib cstdarg; do \
623           $(INSTALL_DATA) ${c_base_builddir}/$${file} $(DESTDIR)${gxx_include_dir}/${c_base_builddir}; done
625 # The real deal.
626 install-headers:
627         $(mkinstalldirs) $(DESTDIR)${gxx_include_dir}
628         $(mkinstalldirs) $(DESTDIR)${gxx_include_dir}/${bits_builddir}
629         for file in ${bits_headers}; do \
630           $(INSTALL_DATA) $${file} $(DESTDIR)${gxx_include_dir}/${bits_builddir}; done
631         $(mkinstalldirs) $(DESTDIR)${gxx_include_dir}/${backward_builddir}
632         for file in ${backward_headers}; do \
633           $(INSTALL_DATA) $${file} $(DESTDIR)${gxx_include_dir}/${backward_builddir}; done
634         $(mkinstalldirs) $(DESTDIR)${gxx_include_dir}/${ext_builddir}
635         for file in ${ext_headers}; do \
636           $(INSTALL_DATA) $${file} $(DESTDIR)${gxx_include_dir}/${ext_builddir}; done
637         $(mkinstalldirs) $(DESTDIR)${gxx_include_dir}/${tr1_builddir}
638         for file in ${tr1_headers}; do \
639           $(INSTALL_DATA) $${file} $(DESTDIR)${gxx_include_dir}/${tr1_builddir}; done
640         $(mkinstalldirs) $(DESTDIR)${gxx_include_dir}/${c_base_builddir}
641         for file in ${c_base_headers_rename}; do \
642           $(INSTALL_DATA) ${c_base_builddir}/$${file} $(DESTDIR)${gxx_include_dir}/${c_base_builddir}; done
643         c_base_headers_extra_install='$(c_base_headers_extra)';\
644         for file in $$c_base_headers_extra_install; do \
645           $(INSTALL_DATA) $$file $(DESTDIR)${gxx_include_dir}/${bits_builddir}; done
646         c_compatibility_headers_install='$(c_compatibility_headers_extra)';\
647         for file in $$c_compatibility_headers_install; do \
648           $(INSTALL_DATA) $$file $(DESTDIR)${gxx_include_dir}; done
649         $(mkinstalldirs) $(DESTDIR)${gxx_include_dir}/${std_builddir}
650         for file in ${std_headers_rename}; do \
651           $(INSTALL_DATA) ${std_builddir}/$${file} $(DESTDIR)${gxx_include_dir}/${std_builddir}; done
652         $(mkinstalldirs) $(DESTDIR)${gxx_include_dir}/${debug_builddir}
653         for file in ${debug_headers}; do \
654           $(INSTALL_DATA) $${file} $(DESTDIR)${gxx_include_dir}/${debug_builddir}; done
655         $(mkinstalldirs) $(DESTDIR)${gxx_include_dir}/${host_builddir}
656         for file in ${host_headers} ${host_headers_extra} \
657          ${thread_host_headers}; do \
658           $(INSTALL_DATA) $${file} $(DESTDIR)${gxx_include_dir}/${host_builddir}; done
660 install-pch:
661         $(mkinstalldirs) $(DESTDIR)${gxx_include_dir}/${pch_output_builddir}
662         for file in ${pch_output_builddir}/*; do \
663           $(INSTALL_DATA) $$file $(DESTDIR)${gxx_include_dir}/${pch_output_builddir}; done
665 # By adding these files here, automake will remove them for 'make clean'
666 CLEANFILES = ${pch_input} ${pch_output_builddir}/*
668 # Stop implicit '.o' make rules from ever stomping on extensionless
669 # headers, in the improbable case where some foolish, crack-addled
670 # developer tries to create them via make in the include build
671 # directory. (This is more of an example of how this kind of rule can
672 # be made.)
673 .PRECIOUS: $(std_headers_rename) $(c_base_headers_rename)
674 $(std_headers_rename): ; @:
675 $(c_base_headers_rename): ; @: