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