1# $FreeBSD: src/gnu/lib/libstdc++/Makefile,v 1.63.2.1 2009/08/03 08:13:06 kensmith Exp $ 2# $OpenBSD: Makefile,v 1.13 2017/02/15 21:22:53 miod Exp $ 3 4.include "${.CURDIR}/Makefile.common" 5 6GCC_TARGET= ${MACHINE_ARCH}-unknown-openbsd${OSREV} 7 8LIB= stdc++ 9 10.if ${MACHINE_ARCH} == "m88k" 11CPPFLAGS+= -D_GLIBCXX_SJLJ_EXCEPTIONS=1 12.endif 13.if ${MACHINE_ARCH} == "arm" 14CXXFLAGS+= -fno-stack-protector 15.endif 16 17DPADD= ${LIBM} 18LDADD= -lm 19 20# libstdc++ sources 21SRCS+= bitmap_allocator.cc pool_allocator.cc \ 22 mt_allocator.cc codecvt.cc compatibility.cc complex_io.cc \ 23 ctype.cc debug.cc debug_list.cc functexcept.cc globals_io.cc \ 24 ios.cc ios_failure.cc ios_init.cc ios_locale.cc limits.cc \ 25 list.cc locale.cc locale_init.cc locale_facets.cc \ 26 localename.cc stdexcept.cc strstream.cc tree.cc \ 27 allocator-inst.cc concept-inst.cc fstream-inst.cc ext-inst.cc \ 28 ios-inst.cc iostream-inst.cc istream-inst.cc istream.cc \ 29 locale-inst.cc misc-inst.cc ostream-inst.cc sstream-inst.cc \ 30 streambuf-inst.cc streambuf.cc string-inst.cc valarray-inst.cc \ 31 wlocale-inst.cc wstring-inst.cc atomicity.cc \ 32 codecvt_members.cc collate_members.cc ctype_members.cc \ 33 messages_members.cc monetary_members.cc numeric_members.cc \ 34 time_members.cc basic_file_stdio.cc c_locale.cc 35 36# C parts of math 37SRCS+= stubs.c 38 39# Embedded copy of libsupc++ 40SRCS+= ${SUPSRCS} 41 42# MD headers location 43.if ${MACHINE_ARCH} == "sparc64" 44MARCHDIR= sparc 45.elif ${MACHINE_ARCH} == "i386" && ${MACHINE_CPU} != 'i386' 46MARCHDIR= i486 47.elif ${MACHINE_ARCH} == "amd64" 48MARCHDIR= i486 49.else 50MARCHDIR= ${MACHINE_ARCH} 51.endif 52 53.if exists(${SRCDIR}/config/cpu/${MARCHDIR}/atomicity.h) 54ATOMICITY_H= ${SRCDIR}/config/cpu/${MARCHDIR}/atomicity.h 55.else 56ATOMICITY_H= ${SRCDIR}/config/cpu/generic/atomicity_mutex/atomicity.h 57.endif 58 59.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "sparc64" || \ 60 ${MACHINE_ARCH} == "i386" 61.if exists(${SRCDIR}/config/cpu/generic/atomicity_builtins/atomicity.h) 62ATOMICITY_H= ${SRCDIR}/config/cpu/generic/atomicity_builtins/atomicity.h 63.endif 64.endif 65 66atomicity.cc: ${ATOMICITY_H} 67 ln -sf ${.ALLSRC} ${.TARGET} 68CLEANFILES+= atomicity.cc 69 70INCSGROUPS= BITSHDRS BKWHDRS EXTHDRS BASEHDRS BASEXHDRS STDHDRS SUPHDRS \ 71 TARGETHDRS THRHDRS DEBUGHDRS TR1HDRS PBHDRS0 PBHDRS1 72CXXINCLUDEDIR= ${DESTDIR}/usr/include/g++ 73 74SUPHDRS= cxxabi.h exception exception_defines.h new typeinfo 75SUPHDRS:= ${SUPHDRS:S;^;${SRCDIR}/libsupc++/;} 76SUPHDRSDIR= ${CXXINCLUDEDIR} 77 78STDHDRS= std_algorithm.h std_bitset.h std_complex.h std_deque.h \ 79 std_fstream.h std_functional.h std_iomanip.h std_ios.h \ 80 std_iosfwd.h std_iostream.h std_istream.h std_iterator.h \ 81 std_limits.h std_list.h std_locale.h std_map.h std_memory.h \ 82 std_numeric.h std_ostream.h std_queue.h std_set.h \ 83 std_sstream.h std_stack.h std_stdexcept.h std_streambuf.h \ 84 std_string.h std_utility.h std_valarray.h std_vector.h 85.for h in ${STDHDRS} 86STDHDRSNAME_$h=${h:R:S;^std_;;} 87.endfor 88STDHDRS:= ${STDHDRS:S;^;${SRCDIR}/include/std/;} 89STDHDRSDIR= ${CXXINCLUDEDIR} 90 91BITSHDRS= allocator.h basic_ios.h basic_ios.tcc basic_string.h \ 92 basic_string.tcc boost_concept_check.h char_traits.h codecvt.h \ 93 concept_check.h cpp_type_traits.h deque.tcc fstream.tcc \ 94 functexcept.h gslice.h gslice_array.h indirect_array.h \ 95 ios_base.h istream.tcc list.tcc locale_classes.h \ 96 locale_facets.h locale_facets.tcc localefwd.h mask_array.h \ 97 ostream.tcc ostream_insert.h postypes.h stream_iterator.h \ 98 streambuf_iterator.h slice_array.h sstream.tcc stl_algo.h \ 99 stl_algobase.h stl_bvector.h stl_construct.h stl_deque.h \ 100 stl_function.h stl_heap.h stl_iterator.h \ 101 stl_iterator_base_funcs.h stl_iterator_base_types.h stl_list.h \ 102 stl_map.h stl_multimap.h stl_multiset.h stl_numeric.h \ 103 stl_pair.h stl_queue.h stl_raw_storage_iter.h stl_relops.h \ 104 stl_set.h stl_stack.h stl_tempbuf.h stl_tree.h \ 105 stl_uninitialized.h stl_vector.h streambuf.tcc stringfwd.h \ 106 valarray_array.h valarray_array.tcc valarray_before.h \ 107 valarray_after.h vector.tcc 108BITSHDRS:= ${BITSHDRS:S;^;${SRCDIR}/include/bits/;} 109BITSHDRSDIR= ${CXXINCLUDEDIR}/bits 110 111BKWHDRS= complex.h iomanip.h istream.h ostream.h stream.h streambuf.h \ 112 algo.h algobase.h alloc.h bvector.h defalloc.h deque.h \ 113 function.h hash_map.h hash_set.h hashtable.h heap.h iostream.h \ 114 iterator.h list.h map.h multimap.h new.h multiset.h pair.h \ 115 queue.h rope.h set.h slist.h stack.h tempbuf.h tree.h \ 116 vector.h fstream.h strstream backward_warning.h 117BKWHDRS:= ${BKWHDRS:S;^;${SRCDIR}/include/backward/;} 118BKWHDRSDIR= ${CXXINCLUDEDIR}/backward 119 120EXTHDRS= algorithm atomicity.h array_allocator.h bitmap_allocator.h \ 121 codecvt_specializations.h concurrence.h debug_allocator.h \ 122 stdio_filebuf.h stdio_sync_filebuf.h functional \ 123 hash_map hash_set hash_fun.h hashtable.h iterator \ 124 malloc_allocator.h memory mt_allocator.h new_allocator.h \ 125 numeric numeric_traits.h pod_char_traits.h pool_allocator.h \ 126 rb_tree rope ropeimpl.h slist throw_allocator.h typelist.h \ 127 type_traits.h rc_string_base.h sso_string_base.h vstring.h \ 128 vstring.tcc vstring_fwd.h vstring_util.h 129 130EXTHDRS:= ${EXTHDRS:S;^;${SRCDIR}/include/ext/;} 131EXTHDRSDIR= ${CXXINCLUDEDIR}/ext 132 133TR1HDRS= array bind_repeat.h bind_iterate.h boost_shared_ptr.h cctype \ 134 cfenv cfloat cinttypes climits cmath common.h complex cstdarg \ 135 cstdbool cstdint cstdio cstdlib ctgmath ctime ctype.h cwchar \ 136 cwctype fenv.h float.h functional functional_hash.h \ 137 functional_iterate.h hashtable hashtable_policy.h inttypes.h \ 138 limits.h math.h memory mu_iterate.h random random.tcc \ 139 ref_fwd.h ref_wrap_iterate.h repeat.h stdarg.h stdbool.h \ 140 stdint.h stdio.h stdlib.h tgmath.h tuple tuple_defs.h \ 141 tuple_iterate.h type_traits type_traits_fwd.h unordered_set \ 142 unordered_map utility wchar.h wctype.h 143 144TR1HDRS:= ${TR1HDRS:S;^;${SRCDIR}/include/tr1/;} 145TR1HDRSDIR= ${CXXINCLUDEDIR}/tr1 146 147# This is the common subset of files that all three "C" header models use. 148BASEHDRS= std_cassert.h std_cctype.h std_cerrno.h std_cfloat.h \ 149 std_ciso646.h std_climits.h std_clocale.h std_cmath.h \ 150 std_csetjmp.h std_csignal.h std_cstdarg.h std_cstddef.h \ 151 std_cstdio.h std_cstdlib.h std_cstring.h std_ctime.h \ 152 std_cwchar.h std_cwctype.h 153.for h in ${BASEHDRS} 154BASEHDRSNAME_$h=${h:R:S;^std_;;} 155.endfor 156BASEHDRS:= ${BASEHDRS:S;^;${SRCDIR}/include/c_std/;} 157BASEHDRSDIR= ${CXXINCLUDEDIR} 158 159# Some of the different "C" header models need extra files. 160BASEXHDRS= ${SRCDIR}/include/c_std/cmath.tcc 161BASEXHDRSDIR= ${CXXINCLUDEDIR}/bits 162 163DEBUGHDRS= bitset debug.h deque formatter.h functions.h hash_map \ 164 hash_map.h hash_multimap.h hash_multiset.h hash_set hash_set.h \ 165 list macros.h map map.h multimap.h multiset.h safe_base.h \ 166 safe_iterator.h safe_iterator.tcc safe_sequence.h set set.h \ 167 string vector 168DEBUGHDRS:= ${DEBUGHDRS:S;^;${SRCDIR}/include/debug/;} 169DEBUGHDRSDIR= ${CXXINCLUDEDIR}/debug 170 171# Not installed, but kept here for completeness 172COMPATHDRS= assert.h ctype.h errno.h float.h iso646.h limits.h locale.h \ 173 math.h setjmp.h signal.h stdarg.h stddef.h stdio.h stdlib.h \ 174 string.h time.h wchar.h wctype.h 175COMPATHDRS:= ${COMPATHDRS:S;^;${SRCDIR}/include/debug/;} 176COMPATHDRSDIR= ${CXXINCLUDEDIR}/c_compatibility 177 178PBHDRS0 = \ 179 assoc_container.hpp \ 180 exception.hpp \ 181 hash_policy.hpp \ 182 list_update_policy.hpp \ 183 priority_queue.hpp \ 184 tag_and_trait.hpp \ 185 tree_policy.hpp \ 186 trie_policy.hpp 187PBHDRS0:= ${PBHDRS0:S;^;${SRCDIR}/include/ext/pb_ds/;} 188PBHDRS0DIR= ${CXXINCLUDEDIR}/ext/pb_ds 189 190PBHDRS1 = \ 191 basic_types.hpp \ 192 cond_dealtor.hpp \ 193 constructors_destructor_fn_imps.hpp \ 194 container_base_dispatch.hpp \ 195 map_debug_base.hpp \ 196 priority_queue_base_dispatch.hpp \ 197 standard_policies.hpp \ 198 tree_trace_base.hpp \ 199 type_utils.hpp \ 200 types_traits.hpp 201PBHDRS1:= ${PBHDRS1:S;^;${SRCDIR}/include/ext/pb_ds/detail/;} 202PBHDRS1DIR= ${CXXINCLUDEDIR}/ext/pb_ds/detail 203 204PBHDRS+= \ 205 basic_tree_policy/basic_tree_policy_base.hpp \ 206 basic_tree_policy/null_node_metadata.hpp \ 207 basic_tree_policy/traits.hpp \ 208 basic_types.hpp \ 209 binary_heap_/binary_heap_.hpp \ 210 binary_heap_/const_iterator.hpp \ 211 binary_heap_/const_point_iterator.hpp \ 212 binary_heap_/constructors_destructor_fn_imps.hpp \ 213 binary_heap_/debug_fn_imps.hpp \ 214 binary_heap_/entry_cmp.hpp \ 215 binary_heap_/entry_pred.hpp \ 216 binary_heap_/erase_fn_imps.hpp \ 217 binary_heap_/find_fn_imps.hpp \ 218 binary_heap_/info_fn_imps.hpp \ 219 binary_heap_/insert_fn_imps.hpp \ 220 binary_heap_/iterators_fn_imps.hpp \ 221 binary_heap_/policy_access_fn_imps.hpp \ 222 binary_heap_/resize_policy.hpp \ 223 binary_heap_/split_join_fn_imps.hpp \ 224 binary_heap_/trace_fn_imps.hpp \ 225 binomial_heap_base_/binomial_heap_base_.hpp \ 226 binomial_heap_base_/constructors_destructor_fn_imps.hpp \ 227 binomial_heap_base_/debug_fn_imps.hpp \ 228 binomial_heap_base_/erase_fn_imps.hpp \ 229 binomial_heap_base_/find_fn_imps.hpp \ 230 binomial_heap_base_/insert_fn_imps.hpp \ 231 binomial_heap_base_/split_join_fn_imps.hpp \ 232 binomial_heap_/binomial_heap_.hpp \ 233 binomial_heap_/constructors_destructor_fn_imps.hpp \ 234 binomial_heap_/debug_fn_imps.hpp \ 235 bin_search_tree_/bin_search_tree_.hpp \ 236 bin_search_tree_/cond_dtor_entry_dealtor.hpp \ 237 bin_search_tree_/cond_key_dtor_entry_dealtor.hpp 238 239PBHDRS+= \ 240 bin_search_tree_/constructors_destructor_fn_imps.hpp \ 241 bin_search_tree_/debug_fn_imps.hpp \ 242 bin_search_tree_/erase_fn_imps.hpp \ 243 bin_search_tree_/find_fn_imps.hpp \ 244 bin_search_tree_/info_fn_imps.hpp \ 245 bin_search_tree_/insert_fn_imps.hpp \ 246 bin_search_tree_/iterators_fn_imps.hpp \ 247 bin_search_tree_/node_iterators.hpp \ 248 bin_search_tree_/point_iterators.hpp \ 249 bin_search_tree_/policy_access_fn_imps.hpp \ 250 bin_search_tree_/r_erase_fn_imps.hpp \ 251 bin_search_tree_/rotate_fn_imps.hpp \ 252 bin_search_tree_/split_join_fn_imps.hpp \ 253 bin_search_tree_/traits.hpp \ 254 cc_hash_table_map_/cc_ht_map_.hpp \ 255 cc_hash_table_map_/cmp_fn_imps.hpp \ 256 cc_hash_table_map_/cond_key_dtor_entry_dealtor.hpp \ 257 cc_hash_table_map_/constructor_destructor_fn_imps.hpp \ 258 cc_hash_table_map_/constructor_destructor_no_store_hash_fn_imps.hpp \ 259 cc_hash_table_map_/constructor_destructor_store_hash_fn_imps.hpp \ 260 cc_hash_table_map_/debug_fn_imps.hpp \ 261 cc_hash_table_map_/debug_no_store_hash_fn_imps.hpp \ 262 cc_hash_table_map_/debug_store_hash_fn_imps.hpp \ 263 cc_hash_table_map_/entry_list_fn_imps.hpp \ 264 cc_hash_table_map_/erase_fn_imps.hpp \ 265 cc_hash_table_map_/erase_no_store_hash_fn_imps.hpp \ 266 cc_hash_table_map_/erase_store_hash_fn_imps.hpp \ 267 cc_hash_table_map_/find_fn_imps.hpp \ 268 cc_hash_table_map_/find_store_hash_fn_imps.hpp \ 269 cc_hash_table_map_/info_fn_imps.hpp \ 270 cc_hash_table_map_/insert_fn_imps.hpp \ 271 cc_hash_table_map_/insert_no_store_hash_fn_imps.hpp \ 272 cc_hash_table_map_/insert_store_hash_fn_imps.hpp \ 273 cc_hash_table_map_/iterators_fn_imps.hpp \ 274 cc_hash_table_map_/policy_access_fn_imps.hpp \ 275 cc_hash_table_map_/resize_fn_imps.hpp \ 276 cc_hash_table_map_/resize_no_store_hash_fn_imps.hpp \ 277 cc_hash_table_map_/resize_store_hash_fn_imps.hpp \ 278 cc_hash_table_map_/size_fn_imps.hpp \ 279 cc_hash_table_map_/standard_policies.hpp 280 281PBHDRS+= \ 282 cc_hash_table_map_/trace_fn_imps.hpp \ 283 cond_dealtor.hpp \ 284 constructors_destructor_fn_imps.hpp \ 285 container_base_dispatch.hpp \ 286 eq_fn/eq_by_less.hpp \ 287 eq_fn/hash_eq_fn.hpp \ 288 gp_hash_table_map_/constructor_destructor_fn_imps.hpp \ 289 gp_hash_table_map_/constructor_destructor_no_store_hash_fn_imps.hpp \ 290 gp_hash_table_map_/constructor_destructor_store_hash_fn_imps.hpp \ 291 gp_hash_table_map_/debug_fn_imps.hpp \ 292 gp_hash_table_map_/debug_no_store_hash_fn_imps.hpp \ 293 gp_hash_table_map_/debug_store_hash_fn_imps.hpp \ 294 gp_hash_table_map_/erase_fn_imps.hpp \ 295 gp_hash_table_map_/erase_no_store_hash_fn_imps.hpp \ 296 gp_hash_table_map_/erase_store_hash_fn_imps.hpp \ 297 gp_hash_table_map_/find_fn_imps.hpp \ 298 gp_hash_table_map_/find_no_store_hash_fn_imps.hpp \ 299 gp_hash_table_map_/find_store_hash_fn_imps.hpp \ 300 gp_hash_table_map_/gp_ht_map_.hpp \ 301 gp_hash_table_map_/info_fn_imps.hpp \ 302 gp_hash_table_map_/insert_fn_imps.hpp \ 303 gp_hash_table_map_/insert_no_store_hash_fn_imps.hpp \ 304 gp_hash_table_map_/insert_store_hash_fn_imps.hpp \ 305 gp_hash_table_map_/iterator_fn_imps.hpp \ 306 gp_hash_table_map_/policy_access_fn_imps.hpp \ 307 gp_hash_table_map_/resize_fn_imps.hpp \ 308 gp_hash_table_map_/resize_no_store_hash_fn_imps.hpp \ 309 gp_hash_table_map_/resize_store_hash_fn_imps.hpp \ 310 gp_hash_table_map_/standard_policies.hpp \ 311 gp_hash_table_map_/trace_fn_imps.hpp \ 312 hash_fn/direct_mask_range_hashing_imp.hpp \ 313 hash_fn/direct_mod_range_hashing_imp.hpp \ 314 hash_fn/linear_probe_fn_imp.hpp \ 315 hash_fn/mask_based_range_hashing.hpp \ 316 hash_fn/mod_based_range_hashing.hpp \ 317 hash_fn/probe_fn_base.hpp \ 318 hash_fn/quadratic_probe_fn_imp.hpp \ 319 hash_fn/ranged_hash_fn.hpp \ 320 hash_fn/ranged_probe_fn.hpp 321 322PBHDRS+= \ 323 hash_fn/sample_probe_fn.hpp \ 324 hash_fn/sample_ranged_hash_fn.hpp \ 325 hash_fn/sample_ranged_probe_fn.hpp \ 326 hash_fn/sample_range_hashing.hpp \ 327 left_child_next_sibling_heap_/const_iterator.hpp \ 328 left_child_next_sibling_heap_/const_point_iterator.hpp \ 329 left_child_next_sibling_heap_/constructors_destructor_fn_imps.hpp \ 330 left_child_next_sibling_heap_/debug_fn_imps.hpp \ 331 left_child_next_sibling_heap_/erase_fn_imps.hpp \ 332 left_child_next_sibling_heap_/info_fn_imps.hpp \ 333 left_child_next_sibling_heap_/insert_fn_imps.hpp \ 334 left_child_next_sibling_heap_/iterators_fn_imps.hpp \ 335 left_child_next_sibling_heap_/left_child_next_sibling_heap_.hpp \ 336 left_child_next_sibling_heap_/node.hpp \ 337 left_child_next_sibling_heap_/null_metadata.hpp \ 338 left_child_next_sibling_heap_/policy_access_fn_imps.hpp \ 339 left_child_next_sibling_heap_/trace_fn_imps.hpp \ 340 list_update_map_/constructor_destructor_fn_imps.hpp \ 341 list_update_map_/debug_fn_imps.hpp \ 342 list_update_map_/entry_metadata_base.hpp \ 343 list_update_map_/erase_fn_imps.hpp \ 344 list_update_map_/find_fn_imps.hpp \ 345 list_update_map_/info_fn_imps.hpp \ 346 list_update_map_/insert_fn_imps.hpp \ 347 list_update_map_/iterators_fn_imps.hpp \ 348 list_update_map_/lu_map_.hpp \ 349 list_update_map_/trace_fn_imps.hpp \ 350 list_update_policy/counter_lu_metadata.hpp \ 351 list_update_policy/counter_lu_policy_imp.hpp \ 352 list_update_policy/mtf_lu_policy_imp.hpp \ 353 list_update_policy/sample_update_policy.hpp \ 354 map_debug_base.hpp \ 355 ov_tree_map_/cond_dtor.hpp \ 356 ov_tree_map_/constructors_destructor_fn_imps.hpp \ 357 ov_tree_map_/debug_fn_imps.hpp \ 358 ov_tree_map_/erase_fn_imps.hpp \ 359 ov_tree_map_/info_fn_imps.hpp \ 360 ov_tree_map_/insert_fn_imps.hpp \ 361 ov_tree_map_/iterators_fn_imps.hpp \ 362 ov_tree_map_/node_iterators.hpp \ 363 ov_tree_map_/ov_tree_map_.hpp 364 365PBHDRS+= \ 366 ov_tree_map_/policy_access_fn_imps.hpp \ 367 ov_tree_map_/split_join_fn_imps.hpp \ 368 ov_tree_map_/traits.hpp \ 369 pairing_heap_/constructors_destructor_fn_imps.hpp \ 370 pairing_heap_/debug_fn_imps.hpp \ 371 pairing_heap_/erase_fn_imps.hpp \ 372 pairing_heap_/find_fn_imps.hpp \ 373 pairing_heap_/insert_fn_imps.hpp \ 374 pairing_heap_/pairing_heap_.hpp \ 375 pairing_heap_/split_join_fn_imps.hpp \ 376 pat_trie_/child_iterator.hpp \ 377 pat_trie_/cond_dtor_entry_dealtor.hpp \ 378 pat_trie_/const_child_iterator.hpp \ 379 pat_trie_/constructors_destructor_fn_imps.hpp \ 380 pat_trie_/debug_fn_imps.hpp \ 381 pat_trie_/erase_fn_imps.hpp \ 382 pat_trie_/find_fn_imps.hpp \ 383 pat_trie_/head.hpp \ 384 pat_trie_/info_fn_imps.hpp \ 385 pat_trie_/insert_join_fn_imps.hpp \ 386 pat_trie_/internal_node.hpp \ 387 pat_trie_/iterators_fn_imps.hpp \ 388 pat_trie_/leaf.hpp \ 389 pat_trie_/node_base.hpp \ 390 pat_trie_/node_iterators.hpp \ 391 pat_trie_/node_metadata_base.hpp \ 392 pat_trie_/pat_trie_.hpp \ 393 pat_trie_/point_iterators.hpp \ 394 pat_trie_/policy_access_fn_imps.hpp \ 395 pat_trie_/r_erase_fn_imps.hpp \ 396 pat_trie_/rotate_fn_imps.hpp \ 397 pat_trie_/split_fn_imps.hpp \ 398 pat_trie_/split_join_branch_bag.hpp \ 399 pat_trie_/synth_e_access_traits.hpp \ 400 pat_trie_/trace_fn_imps.hpp \ 401 pat_trie_/traits.hpp \ 402 pat_trie_/update_fn_imps.hpp \ 403 priority_queue_base_dispatch.hpp \ 404 rb_tree_map_/constructors_destructor_fn_imps.hpp \ 405 rb_tree_map_/debug_fn_imps.hpp 406 407PBHDRS+= \ 408 rb_tree_map_/erase_fn_imps.hpp \ 409 rb_tree_map_/find_fn_imps.hpp \ 410 rb_tree_map_/info_fn_imps.hpp \ 411 rb_tree_map_/insert_fn_imps.hpp \ 412 rb_tree_map_/node.hpp \ 413 rb_tree_map_/rb_tree_.hpp \ 414 rb_tree_map_/split_join_fn_imps.hpp \ 415 rb_tree_map_/traits.hpp \ 416 rc_binomial_heap_/constructors_destructor_fn_imps.hpp \ 417 rc_binomial_heap_/debug_fn_imps.hpp \ 418 rc_binomial_heap_/erase_fn_imps.hpp \ 419 rc_binomial_heap_/insert_fn_imps.hpp \ 420 rc_binomial_heap_/rc_binomial_heap_.hpp \ 421 rc_binomial_heap_/rc.hpp \ 422 rc_binomial_heap_/split_join_fn_imps.hpp \ 423 rc_binomial_heap_/trace_fn_imps.hpp \ 424 resize_policy/cc_hash_max_collision_check_resize_trigger_imp.hpp \ 425 resize_policy/hash_exponential_size_policy_imp.hpp \ 426 resize_policy/hash_load_check_resize_trigger_imp.hpp \ 427 resize_policy/hash_load_check_resize_trigger_size_base.hpp \ 428 resize_policy/hash_prime_size_policy_imp.hpp \ 429 resize_policy/hash_standard_resize_policy_imp.hpp \ 430 resize_policy/sample_resize_policy.hpp \ 431 resize_policy/sample_resize_trigger.hpp \ 432 resize_policy/sample_size_policy.hpp \ 433 splay_tree_/constructors_destructor_fn_imps.hpp \ 434 splay_tree_/debug_fn_imps.hpp \ 435 splay_tree_/erase_fn_imps.hpp \ 436 splay_tree_/find_fn_imps.hpp \ 437 splay_tree_/info_fn_imps.hpp \ 438 splay_tree_/insert_fn_imps.hpp \ 439 splay_tree_/node.hpp \ 440 splay_tree_/splay_fn_imps.hpp \ 441 splay_tree_/splay_tree_.hpp \ 442 splay_tree_/split_join_fn_imps.hpp \ 443 splay_tree_/traits.hpp \ 444 standard_policies.hpp \ 445 thin_heap_/constructors_destructor_fn_imps.hpp \ 446 thin_heap_/debug_fn_imps.hpp \ 447 thin_heap_/erase_fn_imps.hpp 448 449PBHDRS+= \ 450 thin_heap_/find_fn_imps.hpp \ 451 thin_heap_/insert_fn_imps.hpp \ 452 thin_heap_/split_join_fn_imps.hpp \ 453 thin_heap_/thin_heap_.hpp \ 454 thin_heap_/trace_fn_imps.hpp \ 455 tree_policy/node_metadata_selector.hpp \ 456 tree_policy/null_node_update_imp.hpp \ 457 tree_policy/order_statistics_imp.hpp \ 458 tree_policy/sample_tree_node_update.hpp \ 459 tree_trace_base.hpp \ 460 trie_policy/node_metadata_selector.hpp \ 461 trie_policy/null_node_update_imp.hpp \ 462 trie_policy/order_statistics_imp.hpp \ 463 trie_policy/prefix_search_node_update_imp.hpp \ 464 trie_policy/sample_trie_e_access_traits.hpp \ 465 trie_policy/sample_trie_node_update.hpp \ 466 trie_policy/string_trie_e_access_traits_imp.hpp \ 467 trie_policy/trie_policy_base.hpp \ 468 types_traits.hpp \ 469 type_utils.hpp \ 470 unordered_iterator/const_iterator.hpp \ 471 unordered_iterator/const_point_iterator.hpp \ 472 unordered_iterator/iterator.hpp \ 473 unordered_iterator/point_iterator.hpp 474 475PBHDRSDIRS= \ 476 pairing_heap_ \ 477 splay_tree_ \ 478 list_update_map_ \ 479 basic_tree_policy \ 480 trie_policy \ 481 gp_hash_table_map_ \ 482 tree_policy \ 483 binomial_heap_base_ \ 484 resize_policy \ 485 bin_search_tree_ \ 486 binomial_heap_ \ 487 thin_heap_ \ 488 pat_trie_ \ 489 cc_hash_table_map_ \ 490 rc_binomial_heap_ \ 491 left_child_next_sibling_heap_ \ 492 unordered_iterator \ 493 binary_heap_ \ 494 ov_tree_map_ \ 495 hash_fn \ 496 eq_fn \ 497 rb_tree_map_ \ 498 list_update_policy 499 500.for D in ${PBHDRSDIRS} 501PHDRGRP$D:= ${PBHDRS:M$D/*:S;^;${SRCDIR}/include/ext/pb_ds/detail/;} 502PHDRGRP$DDIR= ${CXXINCLUDEDIR}/ext/pb_ds/detail/$D 503INCSGROUPS+= PHDRGRP$D 504.endfor 505 506TARGETHDRS= abi/compatibility.h \ 507 allocator/new_allocator_base.h \ 508 io/basic_file_stdio.h \ 509 io/c_io_stdio.h \ 510 locale/generic/c_locale.h \ 511 locale/generic/c++locale_internal.h \ 512 locale/generic/messages_members.h \ 513 locale/generic/time_members.h \ 514 os/bsd/openbsd/ctype_base.h \ 515 os/bsd/openbsd/ctype_inline.h \ 516 os/bsd/openbsd/ctype_noninline.h \ 517 os/bsd/openbsd/os_defines.h 518TARGETHDRS:= ${TARGETHDRS:S;^;${SRCDIR}/config/;} 519TARGETHDRS+= c++config.h 520TARGETHDRSNAME_basic_file_stdio.h= basic_file.h 521TARGETHDRSNAME_c_io_stdio.h= c++io.h 522TARGETHDRSNAME_c_locale.h= c++locale.h 523TARGETHDRSNAME_new_allocator_base.h= c++allocator.h 524TARGETHDRSDIR= ${CXXINCLUDEDIR}/${GCC_TARGET}/bits/ 525 526MARCHHDRS= atomic_word.h cpu_defines.h cxxabi_tweaks.h 527.for h in ${MARCHHDRS} 528.if exists(${SRCDIR}/config/cpu/${MARCHDIR}/${h}) 529TARGETHDRS+= ${SRCDIR}/config/cpu/${MARCHDIR}/${h} 530.else 531TARGETHDRS+= ${SRCDIR}/config/cpu/generic/${h} 532.endif 533.endfor 534 535THRHDRS= gthr.h gthr-single.h gthr-posix.h gthr-tpf.h gthr-default.h 536THRHDRSDIR= ${CXXINCLUDEDIR}/${GCC_TARGET}/bits/ 537uppercase = [ABCDEFGHIJKLMNOPQRSTUVWXYZ_] 538 539gthr.h: ${GCCDIR}/gthr.h 540 sed -e '/^#pragma/b' \ 541 -e '/^#/s/\(${uppercase}${uppercase}*\)/_GLIBCXX_\1/g' \ 542 -e 's/_GLIBCXX_SUPPORTS_WEAK/__GXX_WEAK__/g' \ 543 -e 's,^#include "\(.*\)",#include <bits/\1>,g' \ 544 < ${.ALLSRC} > ${.TARGET} 545 546gthr-single.h: ${GCCDIR}/gthr-single.h 547 sed -e 's/\(UNUSED\)/_GLIBCXX_\1/g' \ 548 -e 's/\(GCC${uppercase}*_H\)/_GLIBCXX_\1/g' \ 549 < ${.ALLSRC} > ${.TARGET} 550 551gthr-posix.h: ${GCCDIR}/gthr-posix.h 552 sed -e 's/\(UNUSED\)/_GLIBCXX_\1/g' \ 553 -e 's/\(GCC${uppercase}*_H\)/_GLIBCXX_\1/g' \ 554 -e 's/SUPPORTS_WEAK/__GXX_WEAK__/g' \ 555 -e 's/\(${uppercase}*USE_WEAK\)/_GLIBCXX_\1/g' \ 556 < ${.ALLSRC} > ${.TARGET} 557 558gthr-tpf.h: ${GCCDIR}/gthr-posix.h 559 sed -e 's/\(UNUSED\)/_GLIBCXX_\1/g' \ 560 -e 's/\(GCC${uppercase}*_H\)/_GLIBCXX_\1/g' \ 561 -e 's/SUPPORTS_WEAK/__GXX_WEAK__/g' \ 562 -e 's/\(${uppercase}*USE_WEAK\)/_GLIBCXX_\1/g' \ 563 < ${.ALLSRC} > ${.TARGET} 564 565gthr-default.h: ${GCCDIR}/gthr-posix.h 566 sed -e 's/\(UNUSED\)/_GLIBCXX_\1/g' \ 567 -e 's/\(GCC${uppercase}*_H\)/_GLIBCXX_\1/g' \ 568 -e 's/SUPPORTS_WEAK/__GXX_WEAK__/g' \ 569 -e 's/\(${uppercase}*USE_WEAK\)/_GLIBCXX_\1/g' \ 570 -e 's,^#include "\(.*\)",#include <bits/\1>,g' \ 571 < ${.ALLSRC} > ${.TARGET} 572 573CLEANFILES+= ${THRHDRS} 574 575DATESTAMP!= cat ${GCCDIR}/DATESTAMP 576 577c++config.h: ${.CURDIR}/config.h ${SRCDIR}/include/bits/c++config 578 sed -e "s/\\(define __GLIBCXX__\\)/\1 ${DATESTAMP}/" \ 579 -e 's/\(define _GLIBCXX_HAVE_ATTRIBUTE_VISIBILITY\)/\1 1/' \ 580 -e 's/\(define _GLIBCXX_NAMESPACE_ASSOCIATION_VERSION\)/\1 0/' \ 581 < ${SRCDIR}/include/bits/c++config > ${.TARGET} && \ 582 sed -e 's/HAVE_/_GLIBCXX_HAVE_/g' \ 583 -e 's/PACKAGE/_GLIBCXX_PACKAGE/g' \ 584 -e 's/VERSION/_GLIBCXX_VERSION/g' \ 585 -e 's/WORDS_/_GLIBCXX_WORDS_/g' \ 586 < ${.CURDIR}/config.h >> ${.TARGET} && \ 587 echo "#endif // _CXXCONFIG_" >> ${.TARGET} 588CLEANFILES+= c++config.h 589 590# Symbol versioning. 591 592VERSION_MAP= libstdc++.map 593 594${VERSION_MAP}: ${SRCDIR}/config/abi/pre/gnu.ver 595 ln -sf ${.ALLSRC} ${.TARGET} 596 597CLEANFILES+= ${VERSION_MAP} 598 599prereq: c++config.h ${THRHDRS} 600 601includes: prereq 602 ${INSTALL} -d -o root -g bin ${CXXINCLUDEDIR}/${GCC_TARGET} 603.for group in ${INCSGROUPS} 604 test -d ${${group}DIR} || \ 605 ${INSTALL} -d -o root -g bin -m 755 \ 606 ${${group}DIR} 607. for f in ${${group}} 608 ${INSTALL} -C -o root -g bin -m 644 \ 609 ${f} ${${group}DIR}/${${group}NAME_${f:T}} 610. endfor 611.endfor 612 613.include <bsd.lib.mk> 614