]> git.ipfire.org Git - thirdparty/gcc.git/blame - libstdc++-v3/include/Makefile.am
arm.c (arm_address_register_rtx_p): New function.
[thirdparty/gcc.git] / libstdc++-v3 / include / Makefile.am
CommitLineData
4a9d5109
SW
1## Makefile for the include subdirectory of the GNU C++ Standard library.
2##
7ec3af37 3## Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
4a9d5109
SW
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 2, 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 COPYING. If not, write to the Free
21## Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
22## USA.
23
8b5fd469 24AUTOMAKE_OPTIONS = 1.3 cygnus
4a9d5109
SW
25MAINT_CHARSET = latin1
26
27mkinstalldirs = $(SHELL) $(toplevel_srcdir)/mkinstalldirs
28
29# Cross compiler and multilib support.
30CXX = @glibcpp_CXX@
31glibcpp_srcdir=@glibcpp_srcdir@
32glibcpp_builddir=@glibcpp_builddir@
33
34bits_srcdir = ${glibcpp_srcdir}/include/bits
35bits_builddir = ./bits
36bits_headers = \
4a9d5109
SW
37 ${bits_srcdir}/basic_ios.h \
38 ${bits_srcdir}/basic_ios.tcc \
39 ${bits_srcdir}/basic_string.h \
40 ${bits_srcdir}/basic_string.tcc \
41 ${bits_srcdir}/boost_concept_check.h \
42 ${bits_srcdir}/char_traits.h \
43 ${bits_srcdir}/codecvt.h \
44 ${bits_srcdir}/concept_check.h \
45 ${bits_srcdir}/cpp_type_traits.h \
83144cfc 46 ${bits_srcdir}/deque.tcc \
4a9d5109
SW
47 ${bits_srcdir}/fpos.h \
48 ${bits_srcdir}/fstream.tcc \
49 ${bits_srcdir}/functexcept.h \
4a9d5109
SW
50 ${bits_srcdir}/gslice.h \
51 ${bits_srcdir}/gslice_array.h \
52 ${bits_srcdir}/indirect_array.h \
53 ${bits_srcdir}/ios_base.h \
54 ${bits_srcdir}/istream.tcc \
83144cfc 55 ${bits_srcdir}/list.tcc \
4a9d5109
SW
56 ${bits_srcdir}/locale_facets.h \
57 ${bits_srcdir}/locale_facets.tcc \
58 ${bits_srcdir}/localefwd.h \
59 ${bits_srcdir}/mask_array.h \
60 ${bits_srcdir}/ostream.tcc \
61 ${bits_srcdir}/pthread_allocimpl.h \
62 ${bits_srcdir}/stream_iterator.h \
63 ${bits_srcdir}/streambuf_iterator.h \
4a9d5109
SW
64 ${bits_srcdir}/slice_array.h \
65 ${bits_srcdir}/sstream.tcc \
4a9d5109
SW
66 ${bits_srcdir}/stl_algo.h \
67 ${bits_srcdir}/stl_algobase.h \
68 ${bits_srcdir}/stl_alloc.h \
69 ${bits_srcdir}/stl_bvector.h \
70 ${bits_srcdir}/stl_construct.h \
71 ${bits_srcdir}/stl_deque.h \
72 ${bits_srcdir}/stl_function.h \
73 ${bits_srcdir}/stl_heap.h \
74 ${bits_srcdir}/stl_iterator.h \
75 ${bits_srcdir}/stl_iterator_base_funcs.h \
76 ${bits_srcdir}/stl_iterator_base_types.h \
77 ${bits_srcdir}/stl_list.h \
78 ${bits_srcdir}/stl_map.h \
79 ${bits_srcdir}/stl_multimap.h \
80 ${bits_srcdir}/stl_multiset.h \
81 ${bits_srcdir}/stl_numeric.h \
82 ${bits_srcdir}/stl_pair.h \
83 ${bits_srcdir}/stl_pthread_alloc.h \
84 ${bits_srcdir}/stl_queue.h \
85 ${bits_srcdir}/stl_raw_storage_iter.h \
86 ${bits_srcdir}/stl_relops.h \
87 ${bits_srcdir}/stl_set.h \
88 ${bits_srcdir}/stl_stack.h \
89 ${bits_srcdir}/stl_tempbuf.h \
90 ${bits_srcdir}/stl_threads.h \
91 ${bits_srcdir}/stl_tree.h \
92 ${bits_srcdir}/stl_uninitialized.h \
93 ${bits_srcdir}/stl_vector.h \
94 ${bits_srcdir}/streambuf.tcc \
95 ${bits_srcdir}/stringfwd.h \
96 ${bits_srcdir}/type_traits.h \
97 ${bits_srcdir}/valarray_array.h \
98 ${bits_srcdir}/valarray_array.tcc \
83144cfc
PE
99 ${bits_srcdir}/valarray_meta.h \
100 ${bits_srcdir}/vector.tcc
4a9d5109
SW
101
102backward_srcdir = ${glibcpp_srcdir}/include/backward
103backward_builddir = ./backward
104backward_headers = \
105 ${backward_srcdir}/complex.h \
106 ${backward_srcdir}/iomanip.h \
107 ${backward_srcdir}/istream.h \
108 ${backward_srcdir}/ostream.h \
109 ${backward_srcdir}/stream.h \
110 ${backward_srcdir}/streambuf.h \
111 ${backward_srcdir}/algo.h \
112 ${backward_srcdir}/algobase.h \
113 ${backward_srcdir}/alloc.h \
114 ${backward_srcdir}/bvector.h \
115 ${backward_srcdir}/defalloc.h \
116 ${backward_srcdir}/deque.h \
117 ${backward_srcdir}/function.h \
118 ${backward_srcdir}/hash_map.h \
119 ${backward_srcdir}/hash_set.h \
120 ${backward_srcdir}/hashtable.h \
121 ${backward_srcdir}/heap.h \
122 ${backward_srcdir}/iostream.h \
123 ${backward_srcdir}/iterator.h \
124 ${backward_srcdir}/list.h \
125 ${backward_srcdir}/map.h \
126 ${backward_srcdir}/multimap.h \
127 ${backward_srcdir}/new.h \
128 ${backward_srcdir}/multiset.h \
129 ${backward_srcdir}/pair.h \
130 ${backward_srcdir}/queue.h \
131 ${backward_srcdir}/rope.h \
132 ${backward_srcdir}/set.h \
133 ${backward_srcdir}/slist.h \
134 ${backward_srcdir}/stack.h \
135 ${backward_srcdir}/tempbuf.h \
136 ${backward_srcdir}/tree.h \
137 ${backward_srcdir}/vector.h \
138 ${backward_srcdir}/fstream.h \
9a56333e 139 ${backward_srcdir}/strstream \
4a9d5109
SW
140 ${backward_srcdir}/backward_warning.h
141
142ext_srcdir = ${glibcpp_srcdir}/include/ext
143ext_builddir = ./ext
144ext_headers = \
2c1bc4eb 145 ${ext_srcdir}/algorithm \
5cdd50a5
BK
146 ${ext_srcdir}/enc_filebuf.h \
147 ${ext_srcdir}/stdio_filebuf.h \
01b0d4b8 148 ${ext_srcdir}/functional \
3d90ff93
PE
149 ${ext_srcdir}/hash_map \
150 ${ext_srcdir}/hash_set \
151 ${ext_srcdir}/iterator \
f53d0ff1 152 ${ext_srcdir}/memory \
01b0d4b8 153 ${ext_srcdir}/numeric \
3b007b5d 154 ${ext_srcdir}/rb_tree \
4a9d5109
SW
155 ${ext_srcdir}/rope \
156 ${ext_srcdir}/ropeimpl.h \
4a9d5109 157 ${ext_srcdir}/slist \
3d90ff93 158 ${ext_srcdir}/stl_hash_fun.h \
4a9d5109 159 ${ext_srcdir}/stl_hashtable.h \
3d90ff93 160 ${ext_srcdir}/stl_rope.h
4a9d5109
SW
161
162# This is the common subset of files that all three "C" header models use.
30c1fa76 163c_base_srcdir = @C_INCLUDE_DIR@
73249e33 164c_base_builddir = .
4a9d5109 165c_base_headers = \
c5535768
BK
166 ${c_base_srcdir}/std_cassert.h \
167 ${c_base_srcdir}/std_cctype.h \
168 ${c_base_srcdir}/std_cerrno.h \
169 ${c_base_srcdir}/std_cfloat.h \
170 ${c_base_srcdir}/std_ciso646.h \
171 ${c_base_srcdir}/std_climits.h \
172 ${c_base_srcdir}/std_clocale.h \
173 ${c_base_srcdir}/std_cmath.h \
174 ${c_base_srcdir}/std_csetjmp.h \
175 ${c_base_srcdir}/std_csignal.h \
176 ${c_base_srcdir}/std_cstdarg.h \
177 ${c_base_srcdir}/std_cstddef.h \
178 ${c_base_srcdir}/std_cstdio.h \
179 ${c_base_srcdir}/std_cstdlib.h \
180 ${c_base_srcdir}/std_cstring.h \
181 ${c_base_srcdir}/std_ctime.h \
182 ${c_base_srcdir}/std_cwchar.h \
183 ${c_base_srcdir}/std_cwctype.h
c5535768
BK
184c_base_headers_rename = \
185 cassert \
186 cctype \
187 cerrno \
188 cfloat \
189 ciso646 \
190 climits \
191 clocale \
192 cmath \
193 csetjmp \
194 csignal \
195 cstdarg \
196 cstddef \
197 cstdio \
198 cstdlib \
199 cstring \
200 ctime \
201 cwchar \
202 cwctype
4a9d5109 203
e01c9849
BK
204# "C" compatibility headers.
205c_compatibility_srcdir = ${glibcpp_srcdir}/include/c_compatibility
206c_compatibility_builddir = .
207c_compatibility_headers = \
208 ${c_compatibility_srcdir}/assert.h \
209 ${c_compatibility_srcdir}/ctype.h \
210 ${c_compatibility_srcdir}/errno.h \
211 ${c_compatibility_srcdir}/float.h \
212 ${c_compatibility_srcdir}/iso646.h \
213 ${c_compatibility_srcdir}/limits.h \
214 ${c_compatibility_srcdir}/locale.h \
215 ${c_compatibility_srcdir}/math.h \
216 ${c_compatibility_srcdir}/setjmp.h \
217 ${c_compatibility_srcdir}/signal.h \
218 ${c_compatibility_srcdir}/stdarg.h \
219 ${c_compatibility_srcdir}/stddef.h \
220 ${c_compatibility_srcdir}/stdio.h \
221 ${c_compatibility_srcdir}/stdlib.h \
222 ${c_compatibility_srcdir}/string.h \
223 ${c_compatibility_srcdir}/time.h \
224 ${c_compatibility_srcdir}/wchar.h \
225 ${c_compatibility_srcdir}/wctype.h
226
34ff0b99 227# Some of the different "C" header models need extra files.
e01c9849 228# Some "C" header schemes require the "C" compatibility headers.
34ff0b99
BK
229# For --enable-cheaders=c_std
230if GLIBCPP_C_HEADERS_C_STD
e01c9849 231c_base_headers_extra = ${c_base_srcdir}/cmath.tcc
34ff0b99
BK
232else
233c_base_headers_extra =
234endif
235
e01c9849
BK
236if GLIBCPP_C_HEADERS_COMPATIBILITY
237c_compatibility_headers_extra = ${c_compatibility_headers}
238else
239c_compatibility_headers_extra =
240endif
241
242
4a9d5109 243std_srcdir = ${glibcpp_srcdir}/include/std
73249e33 244std_builddir = .
4a9d5109 245std_headers = \
066930bb
PE
246 ${std_srcdir}/std_algorithm.h \
247 ${std_srcdir}/std_bitset.h \
248 ${std_srcdir}/std_complex.h \
249 ${std_srcdir}/std_deque.h \
250 ${std_srcdir}/std_fstream.h \
251 ${std_srcdir}/std_functional.h \
252 ${std_srcdir}/std_iomanip.h \
253 ${std_srcdir}/std_ios.h \
254 ${std_srcdir}/std_iosfwd.h \
255 ${std_srcdir}/std_iostream.h \
256 ${std_srcdir}/std_istream.h \
257 ${std_srcdir}/std_iterator.h \
258 ${std_srcdir}/std_limits.h \
259 ${std_srcdir}/std_list.h \
260 ${std_srcdir}/std_locale.h \
261 ${std_srcdir}/std_map.h \
262 ${std_srcdir}/std_memory.h \
263 ${std_srcdir}/std_numeric.h \
264 ${std_srcdir}/std_ostream.h \
265 ${std_srcdir}/std_queue.h \
266 ${std_srcdir}/std_set.h \
267 ${std_srcdir}/std_sstream.h \
268 ${std_srcdir}/std_stack.h \
269 ${std_srcdir}/std_stdexcept.h \
270 ${std_srcdir}/std_streambuf.h \
271 ${std_srcdir}/std_string.h \
272 ${std_srcdir}/std_utility.h \
273 ${std_srcdir}/std_valarray.h \
274 ${std_srcdir}/std_vector.h
047398eb
BK
275# Renamed at build time.
276std_headers_rename = \
c5535768
BK
277 algorithm \
278 bitset \
279 complex \
280 deque \
281 fstream \
282 functional \
283 iomanip \
284 ios \
285 iosfwd \
286 iostream \
287 istream \
288 iterator \
289 limits \
290 list \
291 locale \
292 map \
293 memory \
294 numeric \
295 ostream \
73249e33 296 queue \
c5535768
BK
297 set \
298 sstream \
299 stack \
300 stdexcept \
301 streambuf \
302 string \
303 utility \
304 valarray \
305 vector
4a9d5109
SW
306
307target_srcdir = ${glibcpp_srcdir}/@OS_INC_SRCDIR@
308target_builddir = ./${target_alias}/bits
309target_headers = \
310 ${target_srcdir}/ctype_base.h \
311 ${target_srcdir}/ctype_inline.h \
312 ${target_srcdir}/ctype_noninline.h \
313 ${target_srcdir}/os_defines.h \
ca017eef 314 ${glibcpp_srcdir}/@ATOMICITY_INC_SRCDIR@/atomicity.h
6aa43d99
BK
315
316# Non-installed target_header files.
317target_headers_noinst = \
318 ${glibcpp_srcdir}/@CLOCALE_INTERNAL_H@
319
e01c9849
BK
320# These target_headers_extra files are all built with ad hoc naming rules.
321target_headers_extra = \
00532602 322 ${target_builddir}/basic_file.h \
7bfea936
LR
323 ${target_builddir}/c++config.h \
324 ${target_builddir}/c++io.h \
325 ${target_builddir}/c++locale.h \
326 ${target_builddir}/messages_members.h \
1c26d8fd 327 ${target_builddir}/time_members.h \
7bfea936 328 ${target_builddir}/codecvt_specializations.h
4a9d5109 329
3fcfe88d
LR
330thread_target_headers = \
331 ${target_builddir}/gthr.h \
332 ${target_builddir}/gthr-single.h \
79d6ba0b 333 ${target_builddir}/gthr-posix.h \
3fcfe88d 334 ${target_builddir}/gthr-default.h
4a9d5109
SW
335
336# List of all timestamp files. By keeping only one copy of this list, both
337# CLEANFILES and all-local are kept up-to-date.
e01c9849
BK
338allstamps = \
339 stamp-std stamp-bits stamp-c_base stamp-c_compatibility \
6aa43d99 340 stamp-backward stamp-ext stamp-target
4a9d5109 341
4a9d5109
SW
342
343# Here are the rules for building the headers
3fcfe88d 344all-local: ${target_builddir}/c++config.h ${thread_target_headers} ${allstamps}
4a9d5109 345
066930bb
PE
346# This rule is slightly different, in that we must change the name of the
347# local file from std_foo.h to foo.
4a9d5109
SW
348stamp-std: ${std_headers}
349 @if [ ! -d "${std_builddir}" ]; then \
350 mkdir -p ${std_builddir} ;\
351 fi ;\
7ec3af37
BK
352 if [ ! -f stamp-std ]; then \
353 (cd ${std_builddir} && for h in $?; do \
354 official_name=`echo $$h | sed -e 's,.*/std_,,' -e 's,\.h$$,,'` ;\
355 @LN_S@ $$h ./$${official_name} || true ;\
356 done) ;\
357 echo `date` > stamp-std ;\
358 fi
4a9d5109
SW
359
360stamp-bits: ${bits_headers}
361 @if [ ! -d "${bits_builddir}" ]; then \
362 mkdir -p ${bits_builddir} ;\
363 fi ;\
7ec3af37
BK
364 if [ ! -f stamp-bits ]; then \
365 (cd ${bits_builddir} && @LN_S@ $? . || true) ;\
366 echo `date` > stamp-bits ;\
367 fi
4a9d5109 368
3eb35fcf 369stamp-c_base: ${c_base_headers} ${c_base_headers_extra}
4a9d5109
SW
370 @if [ ! -d "${c_base_builddir}" ]; then \
371 mkdir -p ${c_base_builddir} ;\
372 fi ;\
c5535768
BK
373 (cd ${c_base_builddir} && for h in ${c_base_headers}; do \
374 official_name=`echo $$h | sed -e 's,.*/std_,,' -e 's,\.h$$,,'` ;\
375 @LN_S@ $$h ./$${official_name} || true ;\
376 done) ;\
7ec3af37
BK
377 if [ ! -f stamp-c_base ]; then \
378 if [ ! -z "${c_base_headers_extra}" ]; then \
3eb35fcf 379 (cd ${bits_builddir} && @LN_S@ ${c_base_headers_extra} . || true) ;\
7ec3af37
BK
380 fi ;\
381 echo `date` > stamp-c_base ;\
382 fi
4a9d5109 383
e01c9849
BK
384stamp-c_compatibility: ${c_compatibility_headers_extra}
385 @if [ ! -d "${c_compatibility_builddir}" ]; then \
386 mkdir -p ${c_compatibility_builddir} ;\
387 fi ;\
7ec3af37
BK
388 if [ ! -f stamp-c_compatibility ]; then \
389 if [ ! -z "${c_compatibility_headers_extra}" ]; then \
390 (cd ${c_compatibility_builddir} && @LN_S@ $? . || true) ;\
391 fi ;\
392 echo `date` > stamp-c_compatibility ;\
393 fi
e01c9849 394
4a9d5109
SW
395stamp-backward: ${backward_headers}
396 @if [ ! -d "${backward_builddir}" ]; then \
397 mkdir -p ${backward_builddir} ;\
398 fi ;\
7ec3af37
BK
399 if [ ! -f stamp-backward ]; then \
400 (cd ${backward_builddir} && @LN_S@ $? . || true) ;\
401 echo `date` > stamp-backward ;\
402 fi
4a9d5109
SW
403
404stamp-ext: ${ext_headers}
405 @if [ ! -d "${ext_builddir}" ]; then \
7ec3af37 406 mkdir -p ${ext_builddir} ;\
4a9d5109 407 fi ;\
7ec3af37
BK
408 if [ ! -f stamp-ext ]; then \
409 (cd ${ext_builddir} && @LN_S@ $? . || true) ;\
410 echo `date` > stamp-ext ;\
411 fi
4a9d5109 412
4a9d5109
SW
413stamp-${target_alias}:
414 @if [ ! -d ${target_builddir} ]; then \
415 mkdir -p ${target_builddir} ;\
843312be
BK
416 echo `date` > stamp-${target_alias} ;\
417 fi
418
419# Target includes static.
6aa43d99
BK
420# XXX Missing dependency info for {target_headers_extra}
421stamp-target: ${target_headers} ${target_headers_noinst} stamp-${target_alias}
422 @if [ ! -f stamp-target ]; then \
423 (cd ${target_builddir} ;\
7bfea936 424 @LN_S@ ${target_headers} . || true ;\
00532602 425 @LN_S@ ${glibcpp_srcdir}/@BASIC_FILE_H@ basic_file.h || true ;\
7bfea936
LR
426 @LN_S@ ${glibcpp_srcdir}/@CSTDIO_H@ c++io.h || true ;\
427 @LN_S@ ${glibcpp_srcdir}/@CLOCALE_H@ c++locale.h || true ;\
6aa43d99 428 @LN_S@ ${glibcpp_srcdir}/@CLOCALE_INTERNAL_H@ . || true ;\
7bfea936 429 @LN_S@ ${glibcpp_srcdir}/@CMESSAGES_H@ messages_members.h || true ;\
1c26d8fd 430 @LN_S@ ${glibcpp_srcdir}/@CTIME_H@ time_members.h || true ;\
6aa43d99
BK
431 @LN_S@ ${glibcpp_srcdir}/@CCODECVT_H@ codecvt_specializations.h || true);\
432 echo `date` > stamp-target ; \
4a9d5109 433 fi
4a9d5109 434
843312be 435# Target includes dynamic.
42ebb17f 436${target_builddir}/c++config.h: ${CONFIG_HEADER} \
4a9d5109 437 ${glibcpp_srcdir}/include/bits/c++config \
3fcfe88d 438 stamp-${target_alias}
4a9d5109
SW
439 @cat ${glibcpp_srcdir}/include/bits/c++config > $@ ;\
440 sed -e 's/HAVE_/_GLIBCPP_HAVE_/g' \
441 -e 's/PACKAGE/_GLIBCPP_PACKAGE/g' \
442 -e 's/VERSION/_GLIBCPP_VERSION/g' \
443 -e 's/WORDS_/_GLIBCPP_WORDS_/g' \
42ebb17f 444 < ${CONFIG_HEADER} >> $@ ;\
4a9d5109
SW
445 echo "#endif // _CPP_CPPCONFIG_" >>$@
446
843312be 447# Target includes for threads
4a9d5109
SW
448glibcpp_thread_h = @glibcpp_thread_h@
449uppercase = [ABCDEFGHIJKLMNOPQRSTUVWXYZ_]
450
3fcfe88d 451${target_builddir}/gthr.h: ${toplevel_srcdir}/gcc/gthr.h stamp-${target_alias}
4a9d5109
SW
452 sed -e '/^#/s/\(${uppercase}${uppercase}*\)/_GLIBCPP_\1/g' \
453 -e 's,^#include "\(.*\)",#include <bits/\1>,g' \
533ab4d1 454 < ${toplevel_srcdir}/gcc/gthr.h > $@
4a9d5109 455
3fcfe88d
LR
456${target_builddir}/gthr-single.h: ${toplevel_srcdir}/gcc/gthr-single.h \
457 stamp-${target_alias}
4a9d5109
SW
458 sed -e 's/\(UNUSED\)/_GLIBCPP_\1/g' \
459 -e 's/\(GCC${uppercase}*_H\)/_GLIBCPP_\1/g' \
533ab4d1 460 < ${toplevel_srcdir}/gcc/gthr-single.h > $@
4a9d5109 461
79d6ba0b
LR
462${target_builddir}/gthr-posix.h: ${toplevel_srcdir}/gcc/gthr-posix.h \
463 stamp-${target_alias}
464 sed -e 's/\(UNUSED\)/_GLIBCPP_\1/g' \
465 -e 's/\(GCC${uppercase}*_H\)/_GLIBCPP_\1/g' \
466 -e 's/\(${uppercase}*WEAK\)/_GLIBCPP_\1/g' \
467 < ${toplevel_srcdir}/gcc/gthr-posix.h > $@
468
3fcfe88d
LR
469${target_builddir}/gthr-default.h: ${toplevel_srcdir}/gcc/${glibcpp_thread_h} \
470 stamp-${target_alias}
4a9d5109
SW
471 sed -e 's/\(UNUSED\)/_GLIBCPP_\1/g' \
472 -e 's/\(GCC${uppercase}*_H\)/_GLIBCPP_\1/g' \
473 -e 's/\(${uppercase}*WEAK\)/_GLIBCPP_\1/g' \
79d6ba0b 474 -e 's,^#include "\(.*\)",#include <bits/\1>,g' \
533ab4d1 475 < ${toplevel_srcdir}/gcc/${glibcpp_thread_h} > $@
4a9d5109 476
7bfea936
LR
477# For robustness sake (in light of junk files or in-source
478# configuration), copy from the build or source tree to the install
479# tree using only the human-maintained file lists and directory
480# components. Yes, with minor differences, this is sheer duplication
481# of the staging rules above using $(INSTALL_DATA) instead of LN_S and
3741b1ab 482# `$(mkinstalldirs)' instead of `mkdir -p'. In particular,
e01c9849 483# target_headers_extra are taken out of the build tree staging area;
7bfea936 484# the rest are taken from the original source tree.
4a9d5109 485gxx_include_dir = @gxx_include_dir@
4a9d5109 486install-data-local:
90e5b39f
CC
487 $(mkinstalldirs) $(DESTDIR)${gxx_include_dir}
488 $(mkinstalldirs) $(DESTDIR)${gxx_include_dir}/${bits_builddir}
7bfea936 489 for file in ${bits_headers}; do \
90e5b39f
CC
490 $(INSTALL_DATA) $${file} $(DESTDIR)${gxx_include_dir}/${bits_builddir}; done
491 $(mkinstalldirs) $(DESTDIR)${gxx_include_dir}/${backward_builddir}
7bfea936 492 for file in ${backward_headers}; do \
90e5b39f
CC
493 $(INSTALL_DATA) $${file} $(DESTDIR)${gxx_include_dir}/${backward_builddir}; done
494 $(mkinstalldirs) $(DESTDIR)${gxx_include_dir}/${ext_builddir}
7bfea936 495 for file in ${ext_headers}; do \
90e5b39f
CC
496 $(INSTALL_DATA) $${file} $(DESTDIR)${gxx_include_dir}/${ext_builddir}; done
497 $(mkinstalldirs) $(DESTDIR)${gxx_include_dir}/${c_base_builddir}
73249e33 498 for file in ${c_base_headers_rename}; do \
90e5b39f 499 $(INSTALL_DATA) ${c_base_builddir}/$${file} $(DESTDIR)${gxx_include_dir}/${c_base_builddir}; done
e01c9849 500 c_base_headers_extra_install='$(c_base_headers_extra)';\
3eb35fcf 501 for file in $$c_base_headers_extra_install; do \
90e5b39f 502 $(INSTALL_DATA) $$file $(DESTDIR)${gxx_include_dir}/${bits_builddir}; done
e01c9849
BK
503 c_compatibility_headers_install='$(c_compatibility_headers_extra)';\
504 for file in $$c_compatibility_headers_install; do \
90e5b39f
CC
505 $(INSTALL_DATA) $$file $(DESTDIR)${gxx_include_dir}; done
506 $(mkinstalldirs) $(DESTDIR)${gxx_include_dir}/${std_builddir}
73249e33 507 for file in ${std_headers_rename}; do \
90e5b39f
CC
508 $(INSTALL_DATA) ${std_builddir}/$${file} $(DESTDIR)${gxx_include_dir}/${std_builddir}; done
509 $(mkinstalldirs) $(DESTDIR)${gxx_include_dir}/${target_builddir}
e01c9849 510 for file in ${target_headers} ${target_headers_extra} \
3fcfe88d 511 ${thread_target_headers}; do \
90e5b39f 512 $(INSTALL_DATA) $${file} $(DESTDIR)${gxx_include_dir}/${target_builddir}; done
4a9d5109 513
4e10943d 514# By adding these files here, automake will remove them for 'make clean'
7ec3af37 515#CLEANFILES = ${allstamps}
c5535768
BK
516
517# Stop implicit '.o' make rules from ever stomping on extensionless
518# headers, in the improbable case where some foolish, crack-addled
519# developer tries to create them via make in the include build
520# directory. (This is more of an example of how this kind of rule can
521# be made.)
522.PRECIOUS: $(std_headers_rename) $(c_base_headers_rename)
523$(std_headers_rename): ; @:
524$(c_base_headers_rename): ; @: