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