Makefile revision 233749
150472Speter# $FreeBSD: head/gnu/lib/libstdc++/Makefile 233749 2012-03-31 14:25:12Z theraven $ 218666Speter 3207995SobrienGCCVER= 4.2 497433SpeterGCCDIR= ${.CURDIR}/../../../contrib/gcc 5169718SkanGCCLIB= ${.CURDIR}/../../../contrib/gcclibs 697433SpeterSRCDIR= ${.CURDIR}/../../../contrib/libstdc++ 797433SpeterSUPDIR= ${SRCDIR}/libsupc++ 897433Speter 996340Sobrien.PATH: ${SRCDIR}/src ${SRCDIR}/libmath ${SRCDIR}/config/io \ 10169718Skan ${SRCDIR}/config/locale/darwin ${SRCDIR}/config/locale/generic \ 11169718Skan ${SRCDIR}/include ${SUPDIR} ${GCCDIR} ${GCCLIB}/libiberty 1218666Speter 1318666SpeterLIB= stdc++ 14169718SkanSHLIB_MAJOR= 6 1518666Speter 1697433SpeterCFLAGS+= -DIN_GLIBCPP_V3 -DHAVE_CONFIG_H 17211725Simp.if ${MACHINE_CPUARCH} == "arm" 18163043SobrienCFLAGS+= -D_GLIBCXX_SJLJ_EXCEPTIONS=1 19163043Sobrien.endif 20132751SkanCFLAGS+= -I${.CURDIR} -I${SUPDIR} -I${GCCDIR} -I${SRCDIR}/include 21169718SkanCFLAGS+= -I${GCCLIB}/include -I${SRCDIR}/include -I. 22140372ScpercivaCFLAGS+= -frandom-seed=RepeatabilityConsideredGood 23132751SkanCXXFLAGS+= -fno-implicit-templates -ffunction-sections -fdata-sections \ 24132751Skan -Wno-deprecated 25202808SsepotvinPO_CXXFLAGS= ${CXXFLAGS:N-ffunction-sections} 2618666Speter 27145413StrhodesDPADD= ${LIBM} 28233749StheravenLDADD= -lm -Wl,-f,libsupc++.so.1 2940204Speter 30132751Skan# libstdc++ sources 31169718SkanSRCS+= bitmap_allocator.cc pool_allocator.cc \ 32169718Skan mt_allocator.cc codecvt.cc compatibility.cc complex_io.cc \ 33169718Skan ctype.cc debug.cc debug_list.cc functexcept.cc globals_io.cc \ 34169718Skan ios.cc ios_failure.cc ios_init.cc ios_locale.cc limits.cc \ 35169718Skan list.cc locale.cc locale_init.cc locale_facets.cc \ 36169718Skan localename.cc stdexcept.cc strstream.cc tree.cc \ 37169718Skan allocator-inst.cc concept-inst.cc fstream-inst.cc ext-inst.cc \ 38169718Skan ios-inst.cc iostream-inst.cc istream-inst.cc istream.cc \ 39169718Skan locale-inst.cc misc-inst.cc ostream-inst.cc sstream-inst.cc \ 40169718Skan streambuf-inst.cc streambuf.cc string-inst.cc valarray-inst.cc \ 41169718Skan wlocale-inst.cc wstring-inst.cc atomicity.cc \ 42169718Skan codecvt_members.cc collate_members.cc ctype_members.cc \ 43169718Skan messages_members.cc monetary_members.cc numeric_members.cc \ 44169718Skan time_members.cc basic_file_stdio.cc c_locale.cc \ 45169718Skan# compatibility-ldbl.cc 4618666Speter 47117429Skan# target sources 48132751SkanSRCS+= atomicity.cc codecvt_members.cc collate_members.cc ctype_members.cc \ 49117429Skan messages_members.cc monetary_members.cc numeric_members.cc \ 50117429Skan time_members.cc 51117429Skan 52117429Skan# target sources extra 53117429SkanSRCS+= basic_file_stdio.cc c_locale.cc 54117429Skan 5596340Sobrien# C parts of math 56169718SkanSRCS+= stubs.c 5796340Sobrien 5897433Speter# Embedded copy of libsupc++ 59169718SkanSRCS+= del_op.cc del_opnt.cc del_opv.cc del_opvnt.cc eh_alloc.cc eh_arm.cc \ 60169718Skan eh_aux_runtime.cc eh_call.cc eh_catch.cc eh_exception.cc eh_globals.cc \ 61132751Skan eh_personality.cc eh_term_handler.cc eh_terminate.cc eh_throw.cc \ 62132751Skan eh_type.cc eh_unex_handler.cc guard.cc new_handler.cc new_op.cc \ 63132751Skan new_opnt.cc new_opv.cc new_opvnt.cc pure.cc tinfo.cc tinfo2.cc \ 64132751Skan vec.cc vterminate.cc 6596340Sobrien 6697433Speter# from libiberty: 67132751SkanSRCS+= cp-demangle.c 6818666Speter 69132751Skan# MD headers location 70211725Simp.if ${MACHINE_CPUARCH} == "sparc64" 71132751SkanMARCHDIR= sparc 72211725Simp.elif ${MACHINE_CPUARCH} == "i386" && ${MACHINE_CPU} != 'i386' 73132751SkanMARCHDIR= i486 74211725Simp.elif ${MACHINE_CPUARCH} == "amd64" 75132751SkanMARCHDIR= i486 76132751Skan.else 77211725SimpMARCHDIR= ${MACHINE_CPUARCH} 78132751Skan.endif 7918666Speter 80132751Skan.if exists(${SRCDIR}/config/cpu/${MARCHDIR}/atomicity.h) 81132751SkanATOMICITY_H= ${SRCDIR}/config/cpu/${MARCHDIR}/atomicity.h 82132751Skan.else 83169767SkanATOMICITY_H= ${SRCDIR}/config/cpu/generic/atomicity_mutex/atomicity.h 84132751Skan.endif 8518666Speter 86212286Stijl.if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "i386" 87169718Skan.if exists(${SRCDIR}/config/cpu/generic/atomicity_builtins/atomicity.h) 88169718SkanATOMICITY_H= ${SRCDIR}/config/cpu/generic/atomicity_builtins/atomicity.h 89169718Skan.endif 90169718Skan.endif 91169718Skan 92132751Skanatomicity.cc: ${ATOMICITY_H} 93132751Skan ln -sf ${.ALLSRC} ${.TARGET} 94134596SruCLEANFILES+= atomicity.cc 95132751Skan 9697657SruINCSGROUPS= BITSHDRS BKWHDRS EXTHDRS BASEHDRS BASEXHDRS STDHDRS \ 97179834Skan TARGETHDRS THRHDRS DEBUGHDRS TR1HDRS PBHDRS0 PBHDRS1 98207995SobrienCXXINCLUDEDIR= ${INCLUDEDIR}/c++/${GCCVER} 9918666Speter 100132751SkanSTDHDRS= std_algorithm.h std_bitset.h std_complex.h std_deque.h \ 101132751Skan std_fstream.h std_functional.h std_iomanip.h std_ios.h \ 102132751Skan std_iosfwd.h std_iostream.h std_istream.h std_iterator.h \ 103132751Skan std_limits.h std_list.h std_locale.h std_map.h std_memory.h \ 104132751Skan std_numeric.h std_ostream.h std_queue.h std_set.h \ 105132751Skan std_sstream.h std_stack.h std_stdexcept.h std_streambuf.h \ 106132751Skan std_string.h std_utility.h std_valarray.h std_vector.h 107132751Skan.for h in ${STDHDRS} 108132751SkanSTDHDRSNAME_$h=${h:R:S;^std_;;} 109132751Skan.endfor 110132751SkanSTDHDRS:= ${STDHDRS:S;^;${SRCDIR}/include/std/;} 111132751SkanSTDHDRSDIR= ${CXXINCLUDEDIR} 112132751Skan 113169718SkanBITSHDRS= allocator.h basic_ios.h basic_ios.tcc basic_string.h \ 114169718Skan basic_string.tcc boost_concept_check.h char_traits.h codecvt.h \ 115169718Skan concept_check.h cpp_type_traits.h deque.tcc fstream.tcc \ 116169718Skan functexcept.h gslice.h gslice_array.h indirect_array.h \ 117169718Skan ios_base.h istream.tcc list.tcc locale_classes.h \ 118169718Skan locale_facets.h locale_facets.tcc localefwd.h mask_array.h \ 119169718Skan ostream.tcc ostream_insert.h postypes.h stream_iterator.h \ 120169718Skan streambuf_iterator.h slice_array.h sstream.tcc stl_algo.h \ 121169718Skan stl_algobase.h stl_bvector.h stl_construct.h stl_deque.h \ 122169718Skan stl_function.h stl_heap.h stl_iterator.h \ 123169718Skan stl_iterator_base_funcs.h stl_iterator_base_types.h stl_list.h \ 124169718Skan stl_map.h stl_multimap.h stl_multiset.h stl_numeric.h \ 125169718Skan stl_pair.h stl_queue.h stl_raw_storage_iter.h stl_relops.h \ 126169718Skan stl_set.h stl_stack.h stl_tempbuf.h stl_tree.h \ 127169718Skan stl_uninitialized.h stl_vector.h streambuf.tcc stringfwd.h \ 128132751Skan valarray_array.h valarray_array.tcc valarray_before.h \ 129132751Skan valarray_after.h vector.tcc 13097657SruBITSHDRS:= ${BITSHDRS:S;^;${SRCDIR}/include/bits/;} 131132751SkanBITSHDRSDIR= ${CXXINCLUDEDIR}/bits 13218666Speter 133132751SkanBKWHDRS= complex.h iomanip.h istream.h ostream.h stream.h streambuf.h \ 134132751Skan algo.h algobase.h alloc.h bvector.h defalloc.h deque.h \ 135132751Skan function.h hash_map.h hash_set.h hashtable.h heap.h iostream.h \ 136132751Skan iterator.h list.h map.h multimap.h new.h multiset.h pair.h \ 137132751Skan queue.h rope.h set.h slist.h stack.h tempbuf.h tree.h \ 138132751Skan vector.h fstream.h strstream backward_warning.h 13997657SruBKWHDRS:= ${BKWHDRS:S;^;${SRCDIR}/include/backward/;} 140132751SkanBKWHDRSDIR= ${CXXINCLUDEDIR}/backward 14197657Sru 142169718SkanEXTHDRS= algorithm atomicity.h array_allocator.h bitmap_allocator.h \ 143169718Skan codecvt_specializations.h concurrence.h debug_allocator.h \ 144169718Skan stdio_filebuf.h stdio_sync_filebuf.h functional \ 145169718Skan hash_map hash_set hash_fun.h hashtable.h iterator \ 146169718Skan malloc_allocator.h memory mt_allocator.h new_allocator.h \ 147171864Skan numeric numeric_traits.h pod_char_traits.h pool_allocator.h \ 148171864Skan rb_tree rope ropeimpl.h slist throw_allocator.h typelist.h \ 149171864Skan type_traits.h rc_string_base.h sso_string_base.h vstring.h \ 150171864Skan vstring.tcc vstring_fwd.h vstring_util.h 151169718Skan 15297657SruEXTHDRS:= ${EXTHDRS:S;^;${SRCDIR}/include/ext/;} 153132751SkanEXTHDRSDIR= ${CXXINCLUDEDIR}/ext 15497657Sru 155169718SkanTR1HDRS= array bind_repeat.h bind_iterate.h boost_shared_ptr.h cctype \ 156169718Skan cfenv cfloat cinttypes climits cmath common.h complex cstdarg \ 157169718Skan cstdbool cstdint cstdio cstdlib ctgmath ctime ctype.h cwchar \ 158169718Skan cwctype fenv.h float.h functional functional_hash.h \ 159169718Skan functional_iterate.h hashtable hashtable_policy.h inttypes.h \ 160169718Skan limits.h math.h memory mu_iterate.h random random.tcc \ 161169718Skan ref_fwd.h ref_wrap_iterate.h repeat.h stdarg.h stdbool.h \ 162169718Skan stdint.h stdio.h stdlib.h tgmath.h tuple tuple_defs.h \ 163169718Skan tuple_iterate.h type_traits type_traits_fwd.h unordered_set \ 164169718Skan unordered_map utility wchar.h wctype.h 165169718Skan 166169718SkanTR1HDRS:= ${TR1HDRS:S;^;${SRCDIR}/include/tr1/;} 167169718SkanTR1HDRSDIR= ${CXXINCLUDEDIR}/tr1 168169718Skan 16997657Sru# This is the common subset of files that all three "C" header models use. 17097657SruBASEHDRS= std_cassert.h std_cctype.h std_cerrno.h std_cfloat.h \ 17197657Sru std_ciso646.h std_climits.h std_clocale.h std_cmath.h \ 17297657Sru std_csetjmp.h std_csignal.h std_cstdarg.h std_cstddef.h \ 17397657Sru std_cstdio.h std_cstdlib.h std_cstring.h std_ctime.h \ 17497657Sru std_cwchar.h std_cwctype.h 17597657Sru.for h in ${BASEHDRS} 17697657SruBASEHDRSNAME_$h=${h:R:S;^std_;;} 17797657Sru.endfor 17897657SruBASEHDRS:= ${BASEHDRS:S;^;${SRCDIR}/include/c_std/;} 179132751SkanBASEHDRSDIR= ${CXXINCLUDEDIR} 18097657Sru 18197657Sru# Some of the different "C" header models need extra files. 18297657SruBASEXHDRS= ${SRCDIR}/include/c_std/cmath.tcc 183132751SkanBASEXHDRSDIR= ${CXXINCLUDEDIR}/bits 18497657Sru 185169718SkanDEBUGHDRS= bitset debug.h deque formatter.h functions.h hash_map \ 186169718Skan hash_map.h hash_multimap.h hash_multiset.h hash_set hash_set.h \ 187169718Skan list macros.h map map.h multimap.h multiset.h safe_base.h \ 188169718Skan safe_iterator.h safe_iterator.tcc safe_sequence.h set set.h \ 189169718Skan string vector 190132751SkanDEBUGHDRS:= ${DEBUGHDRS:S;^;${SRCDIR}/include/debug/;} 191132751SkanDEBUGHDRSDIR= ${CXXINCLUDEDIR}/debug 19297657Sru 193169718Skan# Not installed, but kept here for completeness 194169718SkanCOMPATHDRS= assert.h ctype.h errno.h float.h iso646.h limits.h locale.h \ 195169718Skan math.h setjmp.h signal.h stdarg.h stddef.h stdio.h stdlib.h \ 196169718Skan string.h time.h wchar.h wctype.h 197169718SkanCOMPATHDRS:= ${COMPATHDRS:S;^;${SRCDIR}/include/debug/;} 198169718SkanCOMPATHDRSDIR= ${CXXINCLUDEDIR}/c_compatibility 199169718Skan 200169718SkanPBHDRS0 = \ 201169718Skan assoc_container.hpp \ 202169718Skan exception.hpp \ 203169718Skan hash_policy.hpp \ 204169718Skan list_update_policy.hpp \ 205169718Skan priority_queue.hpp \ 206169718Skan tag_and_trait.hpp \ 207169718Skan tree_policy.hpp \ 208169718Skan trie_policy.hpp 209169718SkanPBHDRS0:= ${PBHDRS0:S;^;${SRCDIR}/include/ext/pb_ds/;} 210169718SkanPBHDRS0DIR= ${CXXINCLUDEDIR}/ext/pb_ds 211169718Skan 212179834SkanPBHDRS1 = \ 213179834Skan basic_types.hpp \ 214179834Skan cond_dealtor.hpp \ 215179834Skan constructors_destructor_fn_imps.hpp \ 216179834Skan container_base_dispatch.hpp \ 217179834Skan map_debug_base.hpp \ 218179834Skan priority_queue_base_dispatch.hpp \ 219179834Skan standard_policies.hpp \ 220179834Skan tree_trace_base.hpp \ 221179834Skan type_utils.hpp \ 222179834Skan types_traits.hpp 223179834SkanPBHDRS1:= ${PBHDRS1:S;^;${SRCDIR}/include/ext/pb_ds/detail/;} 224179834SkanPBHDRS1DIR= ${CXXINCLUDEDIR}/ext/pb_ds/detail 225179834Skan 226169718SkanPBHDRS+= \ 227169718Skan basic_tree_policy/basic_tree_policy_base.hpp \ 228169718Skan basic_tree_policy/null_node_metadata.hpp \ 229169718Skan basic_tree_policy/traits.hpp \ 230169718Skan basic_types.hpp \ 231169718Skan binary_heap_/binary_heap_.hpp \ 232169718Skan binary_heap_/const_iterator.hpp \ 233169718Skan binary_heap_/const_point_iterator.hpp \ 234169718Skan binary_heap_/constructors_destructor_fn_imps.hpp \ 235169718Skan binary_heap_/debug_fn_imps.hpp \ 236169718Skan binary_heap_/entry_cmp.hpp \ 237169718Skan binary_heap_/entry_pred.hpp \ 238169718Skan binary_heap_/erase_fn_imps.hpp \ 239169718Skan binary_heap_/find_fn_imps.hpp \ 240169718Skan binary_heap_/info_fn_imps.hpp \ 241169718Skan binary_heap_/insert_fn_imps.hpp \ 242169718Skan binary_heap_/iterators_fn_imps.hpp \ 243169718Skan binary_heap_/policy_access_fn_imps.hpp \ 244169718Skan binary_heap_/resize_policy.hpp \ 245169718Skan binary_heap_/split_join_fn_imps.hpp \ 246169718Skan binary_heap_/trace_fn_imps.hpp \ 247169718Skan binomial_heap_base_/binomial_heap_base_.hpp \ 248169718Skan binomial_heap_base_/constructors_destructor_fn_imps.hpp \ 249169718Skan binomial_heap_base_/debug_fn_imps.hpp \ 250169718Skan binomial_heap_base_/erase_fn_imps.hpp \ 251169718Skan binomial_heap_base_/find_fn_imps.hpp \ 252169718Skan binomial_heap_base_/insert_fn_imps.hpp \ 253169718Skan binomial_heap_base_/split_join_fn_imps.hpp \ 254169718Skan binomial_heap_/binomial_heap_.hpp \ 255169718Skan binomial_heap_/constructors_destructor_fn_imps.hpp \ 256169718Skan binomial_heap_/debug_fn_imps.hpp \ 257169718Skan bin_search_tree_/bin_search_tree_.hpp \ 258169718Skan bin_search_tree_/cond_dtor_entry_dealtor.hpp \ 259169718Skan bin_search_tree_/cond_key_dtor_entry_dealtor.hpp 260169718Skan 261169718SkanPBHDRS+= \ 262169718Skan bin_search_tree_/constructors_destructor_fn_imps.hpp \ 263169718Skan bin_search_tree_/debug_fn_imps.hpp \ 264169718Skan bin_search_tree_/erase_fn_imps.hpp \ 265169718Skan bin_search_tree_/find_fn_imps.hpp \ 266169718Skan bin_search_tree_/info_fn_imps.hpp \ 267169718Skan bin_search_tree_/insert_fn_imps.hpp \ 268169718Skan bin_search_tree_/iterators_fn_imps.hpp \ 269169718Skan bin_search_tree_/node_iterators.hpp \ 270169718Skan bin_search_tree_/point_iterators.hpp \ 271169718Skan bin_search_tree_/policy_access_fn_imps.hpp \ 272169718Skan bin_search_tree_/r_erase_fn_imps.hpp \ 273169718Skan bin_search_tree_/rotate_fn_imps.hpp \ 274169718Skan bin_search_tree_/split_join_fn_imps.hpp \ 275169718Skan bin_search_tree_/traits.hpp \ 276169718Skan cc_hash_table_map_/cc_ht_map_.hpp \ 277169718Skan cc_hash_table_map_/cmp_fn_imps.hpp \ 278169718Skan cc_hash_table_map_/cond_key_dtor_entry_dealtor.hpp \ 279169718Skan cc_hash_table_map_/constructor_destructor_fn_imps.hpp \ 280169718Skan cc_hash_table_map_/constructor_destructor_no_store_hash_fn_imps.hpp \ 281169718Skan cc_hash_table_map_/constructor_destructor_store_hash_fn_imps.hpp \ 282169718Skan cc_hash_table_map_/debug_fn_imps.hpp \ 283169718Skan cc_hash_table_map_/debug_no_store_hash_fn_imps.hpp \ 284169718Skan cc_hash_table_map_/debug_store_hash_fn_imps.hpp \ 285169718Skan cc_hash_table_map_/entry_list_fn_imps.hpp \ 286169718Skan cc_hash_table_map_/erase_fn_imps.hpp \ 287169718Skan cc_hash_table_map_/erase_no_store_hash_fn_imps.hpp \ 288169718Skan cc_hash_table_map_/erase_store_hash_fn_imps.hpp \ 289169718Skan cc_hash_table_map_/find_fn_imps.hpp \ 290169718Skan cc_hash_table_map_/find_store_hash_fn_imps.hpp \ 291169718Skan cc_hash_table_map_/info_fn_imps.hpp \ 292169718Skan cc_hash_table_map_/insert_fn_imps.hpp \ 293169718Skan cc_hash_table_map_/insert_no_store_hash_fn_imps.hpp \ 294169718Skan cc_hash_table_map_/insert_store_hash_fn_imps.hpp \ 295169718Skan cc_hash_table_map_/iterators_fn_imps.hpp \ 296169718Skan cc_hash_table_map_/policy_access_fn_imps.hpp \ 297169718Skan cc_hash_table_map_/resize_fn_imps.hpp \ 298169718Skan cc_hash_table_map_/resize_no_store_hash_fn_imps.hpp \ 299169718Skan cc_hash_table_map_/resize_store_hash_fn_imps.hpp \ 300169718Skan cc_hash_table_map_/size_fn_imps.hpp \ 301169718Skan cc_hash_table_map_/standard_policies.hpp 302169718Skan 303169718SkanPBHDRS+= \ 304169718Skan cc_hash_table_map_/trace_fn_imps.hpp \ 305169718Skan cond_dealtor.hpp \ 306169718Skan constructors_destructor_fn_imps.hpp \ 307169718Skan container_base_dispatch.hpp \ 308169718Skan eq_fn/eq_by_less.hpp \ 309169718Skan eq_fn/hash_eq_fn.hpp \ 310169718Skan gp_hash_table_map_/constructor_destructor_fn_imps.hpp \ 311169718Skan gp_hash_table_map_/constructor_destructor_no_store_hash_fn_imps.hpp \ 312169718Skan gp_hash_table_map_/constructor_destructor_store_hash_fn_imps.hpp \ 313169718Skan gp_hash_table_map_/debug_fn_imps.hpp \ 314169718Skan gp_hash_table_map_/debug_no_store_hash_fn_imps.hpp \ 315169718Skan gp_hash_table_map_/debug_store_hash_fn_imps.hpp \ 316169718Skan gp_hash_table_map_/erase_fn_imps.hpp \ 317169718Skan gp_hash_table_map_/erase_no_store_hash_fn_imps.hpp \ 318169718Skan gp_hash_table_map_/erase_store_hash_fn_imps.hpp \ 319169718Skan gp_hash_table_map_/find_fn_imps.hpp \ 320169718Skan gp_hash_table_map_/find_no_store_hash_fn_imps.hpp \ 321169718Skan gp_hash_table_map_/find_store_hash_fn_imps.hpp \ 322169718Skan gp_hash_table_map_/gp_ht_map_.hpp \ 323169718Skan gp_hash_table_map_/info_fn_imps.hpp \ 324169718Skan gp_hash_table_map_/insert_fn_imps.hpp \ 325169718Skan gp_hash_table_map_/insert_no_store_hash_fn_imps.hpp \ 326169718Skan gp_hash_table_map_/insert_store_hash_fn_imps.hpp \ 327169718Skan gp_hash_table_map_/iterator_fn_imps.hpp \ 328169718Skan gp_hash_table_map_/policy_access_fn_imps.hpp \ 329169718Skan gp_hash_table_map_/resize_fn_imps.hpp \ 330169718Skan gp_hash_table_map_/resize_no_store_hash_fn_imps.hpp \ 331169718Skan gp_hash_table_map_/resize_store_hash_fn_imps.hpp \ 332169718Skan gp_hash_table_map_/standard_policies.hpp \ 333169718Skan gp_hash_table_map_/trace_fn_imps.hpp \ 334169718Skan hash_fn/direct_mask_range_hashing_imp.hpp \ 335169718Skan hash_fn/direct_mod_range_hashing_imp.hpp \ 336169718Skan hash_fn/linear_probe_fn_imp.hpp \ 337169718Skan hash_fn/mask_based_range_hashing.hpp \ 338169718Skan hash_fn/mod_based_range_hashing.hpp \ 339169718Skan hash_fn/probe_fn_base.hpp \ 340169718Skan hash_fn/quadratic_probe_fn_imp.hpp \ 341169718Skan hash_fn/ranged_hash_fn.hpp \ 342169718Skan hash_fn/ranged_probe_fn.hpp 343169718Skan 344169718SkanPBHDRS+= \ 345169718Skan hash_fn/sample_probe_fn.hpp \ 346169718Skan hash_fn/sample_ranged_hash_fn.hpp \ 347169718Skan hash_fn/sample_ranged_probe_fn.hpp \ 348169718Skan hash_fn/sample_range_hashing.hpp \ 349169718Skan left_child_next_sibling_heap_/const_iterator.hpp \ 350169718Skan left_child_next_sibling_heap_/const_point_iterator.hpp \ 351169718Skan left_child_next_sibling_heap_/constructors_destructor_fn_imps.hpp \ 352169718Skan left_child_next_sibling_heap_/debug_fn_imps.hpp \ 353169718Skan left_child_next_sibling_heap_/erase_fn_imps.hpp \ 354169718Skan left_child_next_sibling_heap_/info_fn_imps.hpp \ 355169718Skan left_child_next_sibling_heap_/insert_fn_imps.hpp \ 356169718Skan left_child_next_sibling_heap_/iterators_fn_imps.hpp \ 357169718Skan left_child_next_sibling_heap_/left_child_next_sibling_heap_.hpp \ 358169718Skan left_child_next_sibling_heap_/node.hpp \ 359169718Skan left_child_next_sibling_heap_/null_metadata.hpp \ 360169718Skan left_child_next_sibling_heap_/policy_access_fn_imps.hpp \ 361169718Skan left_child_next_sibling_heap_/trace_fn_imps.hpp \ 362169718Skan list_update_map_/constructor_destructor_fn_imps.hpp \ 363169718Skan list_update_map_/debug_fn_imps.hpp \ 364169718Skan list_update_map_/entry_metadata_base.hpp \ 365169718Skan list_update_map_/erase_fn_imps.hpp \ 366169718Skan list_update_map_/find_fn_imps.hpp \ 367169718Skan list_update_map_/info_fn_imps.hpp \ 368169718Skan list_update_map_/insert_fn_imps.hpp \ 369169718Skan list_update_map_/iterators_fn_imps.hpp \ 370169718Skan list_update_map_/lu_map_.hpp \ 371169718Skan list_update_map_/trace_fn_imps.hpp \ 372169718Skan list_update_policy/counter_lu_metadata.hpp \ 373169718Skan list_update_policy/counter_lu_policy_imp.hpp \ 374169718Skan list_update_policy/mtf_lu_policy_imp.hpp \ 375169718Skan list_update_policy/sample_update_policy.hpp \ 376169718Skan map_debug_base.hpp \ 377169718Skan ov_tree_map_/cond_dtor.hpp \ 378169718Skan ov_tree_map_/constructors_destructor_fn_imps.hpp \ 379169718Skan ov_tree_map_/debug_fn_imps.hpp \ 380169718Skan ov_tree_map_/erase_fn_imps.hpp \ 381169718Skan ov_tree_map_/info_fn_imps.hpp \ 382169718Skan ov_tree_map_/insert_fn_imps.hpp \ 383169718Skan ov_tree_map_/iterators_fn_imps.hpp \ 384169718Skan ov_tree_map_/node_iterators.hpp \ 385169718Skan ov_tree_map_/ov_tree_map_.hpp 386169718Skan 387169718SkanPBHDRS+= \ 388169718Skan ov_tree_map_/policy_access_fn_imps.hpp \ 389169718Skan ov_tree_map_/split_join_fn_imps.hpp \ 390169718Skan ov_tree_map_/traits.hpp \ 391169718Skan pairing_heap_/constructors_destructor_fn_imps.hpp \ 392169718Skan pairing_heap_/debug_fn_imps.hpp \ 393169718Skan pairing_heap_/erase_fn_imps.hpp \ 394169718Skan pairing_heap_/find_fn_imps.hpp \ 395169718Skan pairing_heap_/insert_fn_imps.hpp \ 396169718Skan pairing_heap_/pairing_heap_.hpp \ 397169718Skan pairing_heap_/split_join_fn_imps.hpp \ 398169718Skan pat_trie_/child_iterator.hpp \ 399169718Skan pat_trie_/cond_dtor_entry_dealtor.hpp \ 400169718Skan pat_trie_/const_child_iterator.hpp \ 401169718Skan pat_trie_/constructors_destructor_fn_imps.hpp \ 402169718Skan pat_trie_/debug_fn_imps.hpp \ 403169718Skan pat_trie_/erase_fn_imps.hpp \ 404169718Skan pat_trie_/find_fn_imps.hpp \ 405169718Skan pat_trie_/head.hpp \ 406169718Skan pat_trie_/info_fn_imps.hpp \ 407169718Skan pat_trie_/insert_join_fn_imps.hpp \ 408169718Skan pat_trie_/internal_node.hpp \ 409169718Skan pat_trie_/iterators_fn_imps.hpp \ 410169718Skan pat_trie_/leaf.hpp \ 411169718Skan pat_trie_/node_base.hpp \ 412169718Skan pat_trie_/node_iterators.hpp \ 413169718Skan pat_trie_/node_metadata_base.hpp \ 414169718Skan pat_trie_/pat_trie_.hpp \ 415169718Skan pat_trie_/point_iterators.hpp \ 416169718Skan pat_trie_/policy_access_fn_imps.hpp \ 417169718Skan pat_trie_/r_erase_fn_imps.hpp \ 418169718Skan pat_trie_/rotate_fn_imps.hpp \ 419169718Skan pat_trie_/split_fn_imps.hpp \ 420169718Skan pat_trie_/split_join_branch_bag.hpp \ 421169718Skan pat_trie_/synth_e_access_traits.hpp \ 422169718Skan pat_trie_/trace_fn_imps.hpp \ 423169718Skan pat_trie_/traits.hpp \ 424169718Skan pat_trie_/update_fn_imps.hpp \ 425169718Skan priority_queue_base_dispatch.hpp \ 426169718Skan rb_tree_map_/constructors_destructor_fn_imps.hpp \ 427169718Skan rb_tree_map_/debug_fn_imps.hpp 428169718Skan 429169718SkanPBHDRS+= \ 430169718Skan rb_tree_map_/erase_fn_imps.hpp \ 431169718Skan rb_tree_map_/find_fn_imps.hpp \ 432169718Skan rb_tree_map_/info_fn_imps.hpp \ 433169718Skan rb_tree_map_/insert_fn_imps.hpp \ 434169718Skan rb_tree_map_/node.hpp \ 435169718Skan rb_tree_map_/rb_tree_.hpp \ 436169718Skan rb_tree_map_/split_join_fn_imps.hpp \ 437169718Skan rb_tree_map_/traits.hpp \ 438169718Skan rc_binomial_heap_/constructors_destructor_fn_imps.hpp \ 439169718Skan rc_binomial_heap_/debug_fn_imps.hpp \ 440169718Skan rc_binomial_heap_/erase_fn_imps.hpp \ 441169718Skan rc_binomial_heap_/insert_fn_imps.hpp \ 442169718Skan rc_binomial_heap_/rc_binomial_heap_.hpp \ 443169718Skan rc_binomial_heap_/rc.hpp \ 444169718Skan rc_binomial_heap_/split_join_fn_imps.hpp \ 445169718Skan rc_binomial_heap_/trace_fn_imps.hpp \ 446169718Skan resize_policy/cc_hash_max_collision_check_resize_trigger_imp.hpp \ 447169718Skan resize_policy/hash_exponential_size_policy_imp.hpp \ 448169718Skan resize_policy/hash_load_check_resize_trigger_imp.hpp \ 449169718Skan resize_policy/hash_load_check_resize_trigger_size_base.hpp \ 450169718Skan resize_policy/hash_prime_size_policy_imp.hpp \ 451169718Skan resize_policy/hash_standard_resize_policy_imp.hpp \ 452169718Skan resize_policy/sample_resize_policy.hpp \ 453169718Skan resize_policy/sample_resize_trigger.hpp \ 454169718Skan resize_policy/sample_size_policy.hpp \ 455169718Skan splay_tree_/constructors_destructor_fn_imps.hpp \ 456169718Skan splay_tree_/debug_fn_imps.hpp \ 457169718Skan splay_tree_/erase_fn_imps.hpp \ 458169718Skan splay_tree_/find_fn_imps.hpp \ 459169718Skan splay_tree_/info_fn_imps.hpp \ 460169718Skan splay_tree_/insert_fn_imps.hpp \ 461169718Skan splay_tree_/node.hpp \ 462169718Skan splay_tree_/splay_fn_imps.hpp \ 463169718Skan splay_tree_/splay_tree_.hpp \ 464169718Skan splay_tree_/split_join_fn_imps.hpp \ 465169718Skan splay_tree_/traits.hpp \ 466169718Skan standard_policies.hpp \ 467169718Skan thin_heap_/constructors_destructor_fn_imps.hpp \ 468169718Skan thin_heap_/debug_fn_imps.hpp \ 469169718Skan thin_heap_/erase_fn_imps.hpp 470169718Skan 471169718SkanPBHDRS+= \ 472169718Skan thin_heap_/find_fn_imps.hpp \ 473169718Skan thin_heap_/insert_fn_imps.hpp \ 474169718Skan thin_heap_/split_join_fn_imps.hpp \ 475169718Skan thin_heap_/thin_heap_.hpp \ 476169718Skan thin_heap_/trace_fn_imps.hpp \ 477169718Skan tree_policy/node_metadata_selector.hpp \ 478169718Skan tree_policy/null_node_update_imp.hpp \ 479169718Skan tree_policy/order_statistics_imp.hpp \ 480169718Skan tree_policy/sample_tree_node_update.hpp \ 481169718Skan tree_trace_base.hpp \ 482169718Skan trie_policy/node_metadata_selector.hpp \ 483169718Skan trie_policy/null_node_update_imp.hpp \ 484169718Skan trie_policy/order_statistics_imp.hpp \ 485169718Skan trie_policy/prefix_search_node_update_imp.hpp \ 486169718Skan trie_policy/sample_trie_e_access_traits.hpp \ 487169718Skan trie_policy/sample_trie_node_update.hpp \ 488169718Skan trie_policy/string_trie_e_access_traits_imp.hpp \ 489169718Skan trie_policy/trie_policy_base.hpp \ 490169718Skan types_traits.hpp \ 491169718Skan type_utils.hpp \ 492169718Skan unordered_iterator/const_iterator.hpp \ 493169718Skan unordered_iterator/const_point_iterator.hpp \ 494169718Skan unordered_iterator/iterator.hpp \ 495169718Skan unordered_iterator/point_iterator.hpp 496169718Skan 497169718SkanPBHDRSDIRS= \ 498169718Skan pairing_heap_ \ 499169718Skan splay_tree_ \ 500169718Skan list_update_map_ \ 501169718Skan basic_tree_policy \ 502169718Skan trie_policy \ 503169718Skan gp_hash_table_map_ \ 504169718Skan tree_policy \ 505169718Skan binomial_heap_base_ \ 506169718Skan resize_policy \ 507169718Skan bin_search_tree_ \ 508169718Skan binomial_heap_ \ 509169718Skan thin_heap_ \ 510169718Skan pat_trie_ \ 511169718Skan cc_hash_table_map_ \ 512169718Skan rc_binomial_heap_ \ 513169718Skan left_child_next_sibling_heap_ \ 514169718Skan unordered_iterator \ 515169718Skan binary_heap_ \ 516169718Skan ov_tree_map_ \ 517169718Skan hash_fn \ 518169718Skan eq_fn \ 519169718Skan rb_tree_map_ \ 520169718Skan list_update_policy 521169718Skan 522169718Skan.for D in ${PBHDRSDIRS} 523169718SkanPHDRGRP$D:= ${PBHDRS:M$D/*:S;^;${SRCDIR}/include/ext/pb_ds/detail/;} 524169718SkanPHDRGRP$DDIR= ${CXXINCLUDEDIR}/ext/pb_ds/detail/$D 525169718SkanINCSGROUPS+= PHDRGRP$D 526169718Skan.endfor 527169718Skan 528169718SkanTARGETHDRS= abi/compatibility.h \ 529169718Skan allocator/new_allocator_base.h \ 530132751Skan io/basic_file_stdio.h \ 531132751Skan io/c_io_stdio.h \ 53297657Sru locale/generic/c_locale.h \ 533103456Skan locale/generic/c++locale_internal.h \ 53497657Sru locale/generic/messages_members.h \ 535110632Skan locale/generic/time_members.h \ 536117429Skan os/bsd/freebsd/ctype_base.h \ 537117429Skan os/bsd/freebsd/ctype_inline.h \ 538117429Skan os/bsd/freebsd/ctype_noninline.h \ 539117429Skan os/bsd/freebsd/os_defines.h 54097657SruTARGETHDRS:= ${TARGETHDRS:S;^;${SRCDIR}/config/;} 541132751SkanTARGETHDRS+= c++config.h 54297657SruTARGETHDRSNAME_basic_file_stdio.h= basic_file.h 54397657SruTARGETHDRSNAME_c_io_stdio.h= c++io.h 54497657SruTARGETHDRSNAME_c_locale.h= c++locale.h 545132751SkanTARGETHDRSNAME_new_allocator_base.h= c++allocator.h 546132751SkanTARGETHDRSDIR= ${CXXINCLUDEDIR}/bits 54797657Sru 548169718SkanMARCHHDRS= atomic_word.h cpu_defines.h cxxabi_tweaks.h 54997657Sru.for h in ${MARCHHDRS} 550117429Skan.if exists(${SRCDIR}/config/cpu/${MARCHDIR}/${h}) 551117429SkanTARGETHDRS+= ${SRCDIR}/config/cpu/${MARCHDIR}/${h} 55297657Sru.else 553124189SkanTARGETHDRS+= ${SRCDIR}/config/cpu/generic/${h} 55497657Sru.endif 55597657Sru.endfor 55697657Sru 557169718SkanTHRHDRS= gthr.h gthr-single.h gthr-posix.h gthr-tpf.h gthr-default.h 558132751SkanTHRHDRSDIR= ${CXXINCLUDEDIR}/bits 559132751Skanuppercase = [ABCDEFGHIJKLMNOPQRSTUVWXYZ_] 56097657Sru 56197433Spetergthr.h: ${GCCDIR}/gthr.h 562169718Skan sed -e '/^#pragma/b' \ 563169718Skan -e '/^#/s/\(${uppercase}${uppercase}*\)/_GLIBCXX_\1/g' \ 564132751Skan -e 's/_GLIBCXX_SUPPORTS_WEAK/__GXX_WEAK__/g' \ 56597433Speter -e 's,^#include "\(.*\)",#include <bits/\1>,g' \ 566132751Skan < ${.ALLSRC} > ${.TARGET} 56718666Speter 56897433Spetergthr-single.h: ${GCCDIR}/gthr-single.h 569132751Skan sed -e 's/\(UNUSED\)/_GLIBCXX_\1/g' \ 570132751Skan -e 's/\(GCC${uppercase}*_H\)/_GLIBCXX_\1/g' \ 571132751Skan < ${.ALLSRC} > ${.TARGET} 57296340Sobrien 57397433Spetergthr-posix.h: ${GCCDIR}/gthr-posix.h 574132751Skan sed -e 's/\(UNUSED\)/_GLIBCXX_\1/g' \ 575132751Skan -e 's/\(GCC${uppercase}*_H\)/_GLIBCXX_\1/g' \ 576132751Skan -e 's/SUPPORTS_WEAK/__GXX_WEAK__/g' \ 577132751Skan -e 's/\(${uppercase}*USE_WEAK\)/_GLIBCXX_\1/g' \ 578132751Skan < ${.ALLSRC} > ${.TARGET} 57996340Sobrien 580169718Skangthr-tpf.h: ${GCCDIR}/gthr-posix.h 581169718Skan sed -e 's/\(UNUSED\)/_GLIBCXX_\1/g' \ 582169718Skan -e 's/\(GCC${uppercase}*_H\)/_GLIBCXX_\1/g' \ 583169718Skan -e 's/SUPPORTS_WEAK/__GXX_WEAK__/g' \ 584169718Skan -e 's/\(${uppercase}*USE_WEAK\)/_GLIBCXX_\1/g' \ 585169718Skan < ${.ALLSRC} > ${.TARGET} 586169718Skan 58797433Spetergthr-default.h: ${GCCDIR}/gthr-posix.h 588132751Skan sed -e 's/\(UNUSED\)/_GLIBCXX_\1/g' \ 589132751Skan -e 's/\(GCC${uppercase}*_H\)/_GLIBCXX_\1/g' \ 590132751Skan -e 's/SUPPORTS_WEAK/__GXX_WEAK__/g' \ 591132751Skan -e 's/\(${uppercase}*USE_WEAK\)/_GLIBCXX_\1/g' \ 59297433Speter -e 's,^#include "\(.*\)",#include <bits/\1>,g' \ 593132751Skan < ${.ALLSRC} > ${.TARGET} 59496340Sobrien 59597657SruCLEANFILES+= ${THRHDRS} 59696340Sobrien 597169718Skanunwind.h: ${GCCDIR}/unwind-generic.h 598169718Skan ln -sf ${.ALLSRC} ${.TARGET} 599169718Skan 600169718SkanSRCS+= unwind.h 601169718SkanCLEANFILES+= unwind.h 602169718Skan 603169718SkanDATESTAMP!= cat ${GCCDIR}/DATESTAMP 604169718Skan 605132751Skanc++config.h: ${.CURDIR}/config.h ${SRCDIR}/include/bits/c++config 606169718Skan sed -e "s/\\(define __GLIBCXX__\\)/\1 ${DATESTAMP}/" \ 607169718Skan -e 's/\(define _GLIBCXX_HAVE_ATTRIBUTE_VISIBILITY\)/\1 1/' \ 608169718Skan -e 's/\(define _GLIBCXX_NAMESPACE_ASSOCIATION_VERSION\)/\1 0/' \ 609169718Skan < ${SRCDIR}/include/bits/c++config > ${.TARGET} && \ 610132751Skan sed -e 's/HAVE_/_GLIBCXX_HAVE_/g' \ 611132751Skan -e 's/PACKAGE/_GLIBCXX_PACKAGE/g' \ 612132751Skan -e 's/VERSION/_GLIBCXX_VERSION/g' \ 613132751Skan -e 's/WORDS_/_GLIBCXX_WORDS_/g' \ 614132751Skan < ${.CURDIR}/config.h >> ${.TARGET} && \ 615132751Skan echo "#endif // _CXXCONFIG_" >> ${.TARGET} 616132751SkanCLEANFILES+= c++config.h 617132751Skan 618169718Skan# Symbol versioning. 619169718Skan 620169718SkanVERSION_MAP= libstdc++.map 621169718Skan 622169718Skan${VERSION_MAP}: ${SRCDIR}/config/abi/pre/gnu.ver 623169718Skan ln -sf ${.ALLSRC} ${.TARGET} 624169718Skan 625169718SkanCLEANFILES+= ${VERSION_MAP} 626169718Skan 62718666Speter.include <bsd.lib.mk> 628