Makefile revision 239695
150472Speter# $FreeBSD: head/gnu/lib/libstdc++/Makefile 239695 2012-08-25 23:08:24Z dim $ 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 25239695SdimCXXFLAGS:= ${CXXFLAGS:N-stdlib=libc++:N-std=c++[01][13x]:N-std=gnu++[01][13x]} 26202808SsepotvinPO_CXXFLAGS= ${CXXFLAGS:N-ffunction-sections} 2718666Speter 28145413StrhodesDPADD= ${LIBM} 29233749StheravenLDADD= -lm -Wl,-f,libsupc++.so.1 3040204Speter 31132751Skan# libstdc++ sources 32169718SkanSRCS+= bitmap_allocator.cc pool_allocator.cc \ 33169718Skan mt_allocator.cc codecvt.cc compatibility.cc complex_io.cc \ 34169718Skan ctype.cc debug.cc debug_list.cc functexcept.cc globals_io.cc \ 35169718Skan ios.cc ios_failure.cc ios_init.cc ios_locale.cc limits.cc \ 36169718Skan list.cc locale.cc locale_init.cc locale_facets.cc \ 37169718Skan localename.cc stdexcept.cc strstream.cc tree.cc \ 38169718Skan allocator-inst.cc concept-inst.cc fstream-inst.cc ext-inst.cc \ 39169718Skan ios-inst.cc iostream-inst.cc istream-inst.cc istream.cc \ 40169718Skan locale-inst.cc misc-inst.cc ostream-inst.cc sstream-inst.cc \ 41169718Skan streambuf-inst.cc streambuf.cc string-inst.cc valarray-inst.cc \ 42169718Skan wlocale-inst.cc wstring-inst.cc atomicity.cc \ 43169718Skan codecvt_members.cc collate_members.cc ctype_members.cc \ 44169718Skan messages_members.cc monetary_members.cc numeric_members.cc \ 45169718Skan time_members.cc basic_file_stdio.cc c_locale.cc \ 46169718Skan# compatibility-ldbl.cc 4718666Speter 48117429Skan# target sources 49132751SkanSRCS+= atomicity.cc codecvt_members.cc collate_members.cc ctype_members.cc \ 50117429Skan messages_members.cc monetary_members.cc numeric_members.cc \ 51117429Skan time_members.cc 52117429Skan 53117429Skan# target sources extra 54117429SkanSRCS+= basic_file_stdio.cc c_locale.cc 55117429Skan 5696340Sobrien# C parts of math 57169718SkanSRCS+= stubs.c 5896340Sobrien 5997433Speter# Embedded copy of libsupc++ 60169718SkanSRCS+= del_op.cc del_opnt.cc del_opv.cc del_opvnt.cc eh_alloc.cc eh_arm.cc \ 61169718Skan eh_aux_runtime.cc eh_call.cc eh_catch.cc eh_exception.cc eh_globals.cc \ 62132751Skan eh_personality.cc eh_term_handler.cc eh_terminate.cc eh_throw.cc \ 63132751Skan eh_type.cc eh_unex_handler.cc guard.cc new_handler.cc new_op.cc \ 64132751Skan new_opnt.cc new_opv.cc new_opvnt.cc pure.cc tinfo.cc tinfo2.cc \ 65132751Skan vec.cc vterminate.cc 6696340Sobrien 6797433Speter# from libiberty: 68132751SkanSRCS+= cp-demangle.c 6918666Speter 70132751Skan# MD headers location 71211725Simp.if ${MACHINE_CPUARCH} == "sparc64" 72132751SkanMARCHDIR= sparc 73211725Simp.elif ${MACHINE_CPUARCH} == "i386" && ${MACHINE_CPU} != 'i386' 74132751SkanMARCHDIR= i486 75211725Simp.elif ${MACHINE_CPUARCH} == "amd64" 76132751SkanMARCHDIR= i486 77132751Skan.else 78211725SimpMARCHDIR= ${MACHINE_CPUARCH} 79132751Skan.endif 8018666Speter 81132751Skan.if exists(${SRCDIR}/config/cpu/${MARCHDIR}/atomicity.h) 82132751SkanATOMICITY_H= ${SRCDIR}/config/cpu/${MARCHDIR}/atomicity.h 83132751Skan.else 84169767SkanATOMICITY_H= ${SRCDIR}/config/cpu/generic/atomicity_mutex/atomicity.h 85132751Skan.endif 8618666Speter 87212286Stijl.if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "i386" 88169718Skan.if exists(${SRCDIR}/config/cpu/generic/atomicity_builtins/atomicity.h) 89169718SkanATOMICITY_H= ${SRCDIR}/config/cpu/generic/atomicity_builtins/atomicity.h 90169718Skan.endif 91169718Skan.endif 92169718Skan 93132751Skanatomicity.cc: ${ATOMICITY_H} 94132751Skan ln -sf ${.ALLSRC} ${.TARGET} 95134596SruCLEANFILES+= atomicity.cc 96132751Skan 9797657SruINCSGROUPS= BITSHDRS BKWHDRS EXTHDRS BASEHDRS BASEXHDRS STDHDRS \ 98179834Skan TARGETHDRS THRHDRS DEBUGHDRS TR1HDRS PBHDRS0 PBHDRS1 99207995SobrienCXXINCLUDEDIR= ${INCLUDEDIR}/c++/${GCCVER} 10018666Speter 101132751SkanSTDHDRS= std_algorithm.h std_bitset.h std_complex.h std_deque.h \ 102132751Skan std_fstream.h std_functional.h std_iomanip.h std_ios.h \ 103132751Skan std_iosfwd.h std_iostream.h std_istream.h std_iterator.h \ 104132751Skan std_limits.h std_list.h std_locale.h std_map.h std_memory.h \ 105132751Skan std_numeric.h std_ostream.h std_queue.h std_set.h \ 106132751Skan std_sstream.h std_stack.h std_stdexcept.h std_streambuf.h \ 107132751Skan std_string.h std_utility.h std_valarray.h std_vector.h 108132751Skan.for h in ${STDHDRS} 109132751SkanSTDHDRSNAME_$h=${h:R:S;^std_;;} 110132751Skan.endfor 111132751SkanSTDHDRS:= ${STDHDRS:S;^;${SRCDIR}/include/std/;} 112132751SkanSTDHDRSDIR= ${CXXINCLUDEDIR} 113132751Skan 114169718SkanBITSHDRS= allocator.h basic_ios.h basic_ios.tcc basic_string.h \ 115169718Skan basic_string.tcc boost_concept_check.h char_traits.h codecvt.h \ 116169718Skan concept_check.h cpp_type_traits.h deque.tcc fstream.tcc \ 117169718Skan functexcept.h gslice.h gslice_array.h indirect_array.h \ 118169718Skan ios_base.h istream.tcc list.tcc locale_classes.h \ 119169718Skan locale_facets.h locale_facets.tcc localefwd.h mask_array.h \ 120169718Skan ostream.tcc ostream_insert.h postypes.h stream_iterator.h \ 121169718Skan streambuf_iterator.h slice_array.h sstream.tcc stl_algo.h \ 122169718Skan stl_algobase.h stl_bvector.h stl_construct.h stl_deque.h \ 123169718Skan stl_function.h stl_heap.h stl_iterator.h \ 124169718Skan stl_iterator_base_funcs.h stl_iterator_base_types.h stl_list.h \ 125169718Skan stl_map.h stl_multimap.h stl_multiset.h stl_numeric.h \ 126169718Skan stl_pair.h stl_queue.h stl_raw_storage_iter.h stl_relops.h \ 127169718Skan stl_set.h stl_stack.h stl_tempbuf.h stl_tree.h \ 128169718Skan stl_uninitialized.h stl_vector.h streambuf.tcc stringfwd.h \ 129132751Skan valarray_array.h valarray_array.tcc valarray_before.h \ 130132751Skan valarray_after.h vector.tcc 13197657SruBITSHDRS:= ${BITSHDRS:S;^;${SRCDIR}/include/bits/;} 132132751SkanBITSHDRSDIR= ${CXXINCLUDEDIR}/bits 13318666Speter 134132751SkanBKWHDRS= complex.h iomanip.h istream.h ostream.h stream.h streambuf.h \ 135132751Skan algo.h algobase.h alloc.h bvector.h defalloc.h deque.h \ 136132751Skan function.h hash_map.h hash_set.h hashtable.h heap.h iostream.h \ 137132751Skan iterator.h list.h map.h multimap.h new.h multiset.h pair.h \ 138132751Skan queue.h rope.h set.h slist.h stack.h tempbuf.h tree.h \ 139132751Skan vector.h fstream.h strstream backward_warning.h 14097657SruBKWHDRS:= ${BKWHDRS:S;^;${SRCDIR}/include/backward/;} 141132751SkanBKWHDRSDIR= ${CXXINCLUDEDIR}/backward 14297657Sru 143169718SkanEXTHDRS= algorithm atomicity.h array_allocator.h bitmap_allocator.h \ 144169718Skan codecvt_specializations.h concurrence.h debug_allocator.h \ 145169718Skan stdio_filebuf.h stdio_sync_filebuf.h functional \ 146169718Skan hash_map hash_set hash_fun.h hashtable.h iterator \ 147169718Skan malloc_allocator.h memory mt_allocator.h new_allocator.h \ 148171864Skan numeric numeric_traits.h pod_char_traits.h pool_allocator.h \ 149171864Skan rb_tree rope ropeimpl.h slist throw_allocator.h typelist.h \ 150171864Skan type_traits.h rc_string_base.h sso_string_base.h vstring.h \ 151171864Skan vstring.tcc vstring_fwd.h vstring_util.h 152169718Skan 15397657SruEXTHDRS:= ${EXTHDRS:S;^;${SRCDIR}/include/ext/;} 154132751SkanEXTHDRSDIR= ${CXXINCLUDEDIR}/ext 15597657Sru 156169718SkanTR1HDRS= array bind_repeat.h bind_iterate.h boost_shared_ptr.h cctype \ 157169718Skan cfenv cfloat cinttypes climits cmath common.h complex cstdarg \ 158169718Skan cstdbool cstdint cstdio cstdlib ctgmath ctime ctype.h cwchar \ 159169718Skan cwctype fenv.h float.h functional functional_hash.h \ 160169718Skan functional_iterate.h hashtable hashtable_policy.h inttypes.h \ 161169718Skan limits.h math.h memory mu_iterate.h random random.tcc \ 162169718Skan ref_fwd.h ref_wrap_iterate.h repeat.h stdarg.h stdbool.h \ 163169718Skan stdint.h stdio.h stdlib.h tgmath.h tuple tuple_defs.h \ 164169718Skan tuple_iterate.h type_traits type_traits_fwd.h unordered_set \ 165169718Skan unordered_map utility wchar.h wctype.h 166169718Skan 167169718SkanTR1HDRS:= ${TR1HDRS:S;^;${SRCDIR}/include/tr1/;} 168169718SkanTR1HDRSDIR= ${CXXINCLUDEDIR}/tr1 169169718Skan 17097657Sru# This is the common subset of files that all three "C" header models use. 17197657SruBASEHDRS= std_cassert.h std_cctype.h std_cerrno.h std_cfloat.h \ 17297657Sru std_ciso646.h std_climits.h std_clocale.h std_cmath.h \ 17397657Sru std_csetjmp.h std_csignal.h std_cstdarg.h std_cstddef.h \ 17497657Sru std_cstdio.h std_cstdlib.h std_cstring.h std_ctime.h \ 17597657Sru std_cwchar.h std_cwctype.h 17697657Sru.for h in ${BASEHDRS} 17797657SruBASEHDRSNAME_$h=${h:R:S;^std_;;} 17897657Sru.endfor 17997657SruBASEHDRS:= ${BASEHDRS:S;^;${SRCDIR}/include/c_std/;} 180132751SkanBASEHDRSDIR= ${CXXINCLUDEDIR} 18197657Sru 18297657Sru# Some of the different "C" header models need extra files. 18397657SruBASEXHDRS= ${SRCDIR}/include/c_std/cmath.tcc 184132751SkanBASEXHDRSDIR= ${CXXINCLUDEDIR}/bits 18597657Sru 186169718SkanDEBUGHDRS= bitset debug.h deque formatter.h functions.h hash_map \ 187169718Skan hash_map.h hash_multimap.h hash_multiset.h hash_set hash_set.h \ 188169718Skan list macros.h map map.h multimap.h multiset.h safe_base.h \ 189169718Skan safe_iterator.h safe_iterator.tcc safe_sequence.h set set.h \ 190169718Skan string vector 191132751SkanDEBUGHDRS:= ${DEBUGHDRS:S;^;${SRCDIR}/include/debug/;} 192132751SkanDEBUGHDRSDIR= ${CXXINCLUDEDIR}/debug 19397657Sru 194169718Skan# Not installed, but kept here for completeness 195169718SkanCOMPATHDRS= assert.h ctype.h errno.h float.h iso646.h limits.h locale.h \ 196169718Skan math.h setjmp.h signal.h stdarg.h stddef.h stdio.h stdlib.h \ 197169718Skan string.h time.h wchar.h wctype.h 198169718SkanCOMPATHDRS:= ${COMPATHDRS:S;^;${SRCDIR}/include/debug/;} 199169718SkanCOMPATHDRSDIR= ${CXXINCLUDEDIR}/c_compatibility 200169718Skan 201169718SkanPBHDRS0 = \ 202169718Skan assoc_container.hpp \ 203169718Skan exception.hpp \ 204169718Skan hash_policy.hpp \ 205169718Skan list_update_policy.hpp \ 206169718Skan priority_queue.hpp \ 207169718Skan tag_and_trait.hpp \ 208169718Skan tree_policy.hpp \ 209169718Skan trie_policy.hpp 210169718SkanPBHDRS0:= ${PBHDRS0:S;^;${SRCDIR}/include/ext/pb_ds/;} 211169718SkanPBHDRS0DIR= ${CXXINCLUDEDIR}/ext/pb_ds 212169718Skan 213179834SkanPBHDRS1 = \ 214179834Skan basic_types.hpp \ 215179834Skan cond_dealtor.hpp \ 216179834Skan constructors_destructor_fn_imps.hpp \ 217179834Skan container_base_dispatch.hpp \ 218179834Skan map_debug_base.hpp \ 219179834Skan priority_queue_base_dispatch.hpp \ 220179834Skan standard_policies.hpp \ 221179834Skan tree_trace_base.hpp \ 222179834Skan type_utils.hpp \ 223179834Skan types_traits.hpp 224179834SkanPBHDRS1:= ${PBHDRS1:S;^;${SRCDIR}/include/ext/pb_ds/detail/;} 225179834SkanPBHDRS1DIR= ${CXXINCLUDEDIR}/ext/pb_ds/detail 226179834Skan 227169718SkanPBHDRS+= \ 228169718Skan basic_tree_policy/basic_tree_policy_base.hpp \ 229169718Skan basic_tree_policy/null_node_metadata.hpp \ 230169718Skan basic_tree_policy/traits.hpp \ 231169718Skan basic_types.hpp \ 232169718Skan binary_heap_/binary_heap_.hpp \ 233169718Skan binary_heap_/const_iterator.hpp \ 234169718Skan binary_heap_/const_point_iterator.hpp \ 235169718Skan binary_heap_/constructors_destructor_fn_imps.hpp \ 236169718Skan binary_heap_/debug_fn_imps.hpp \ 237169718Skan binary_heap_/entry_cmp.hpp \ 238169718Skan binary_heap_/entry_pred.hpp \ 239169718Skan binary_heap_/erase_fn_imps.hpp \ 240169718Skan binary_heap_/find_fn_imps.hpp \ 241169718Skan binary_heap_/info_fn_imps.hpp \ 242169718Skan binary_heap_/insert_fn_imps.hpp \ 243169718Skan binary_heap_/iterators_fn_imps.hpp \ 244169718Skan binary_heap_/policy_access_fn_imps.hpp \ 245169718Skan binary_heap_/resize_policy.hpp \ 246169718Skan binary_heap_/split_join_fn_imps.hpp \ 247169718Skan binary_heap_/trace_fn_imps.hpp \ 248169718Skan binomial_heap_base_/binomial_heap_base_.hpp \ 249169718Skan binomial_heap_base_/constructors_destructor_fn_imps.hpp \ 250169718Skan binomial_heap_base_/debug_fn_imps.hpp \ 251169718Skan binomial_heap_base_/erase_fn_imps.hpp \ 252169718Skan binomial_heap_base_/find_fn_imps.hpp \ 253169718Skan binomial_heap_base_/insert_fn_imps.hpp \ 254169718Skan binomial_heap_base_/split_join_fn_imps.hpp \ 255169718Skan binomial_heap_/binomial_heap_.hpp \ 256169718Skan binomial_heap_/constructors_destructor_fn_imps.hpp \ 257169718Skan binomial_heap_/debug_fn_imps.hpp \ 258169718Skan bin_search_tree_/bin_search_tree_.hpp \ 259169718Skan bin_search_tree_/cond_dtor_entry_dealtor.hpp \ 260169718Skan bin_search_tree_/cond_key_dtor_entry_dealtor.hpp 261169718Skan 262169718SkanPBHDRS+= \ 263169718Skan bin_search_tree_/constructors_destructor_fn_imps.hpp \ 264169718Skan bin_search_tree_/debug_fn_imps.hpp \ 265169718Skan bin_search_tree_/erase_fn_imps.hpp \ 266169718Skan bin_search_tree_/find_fn_imps.hpp \ 267169718Skan bin_search_tree_/info_fn_imps.hpp \ 268169718Skan bin_search_tree_/insert_fn_imps.hpp \ 269169718Skan bin_search_tree_/iterators_fn_imps.hpp \ 270169718Skan bin_search_tree_/node_iterators.hpp \ 271169718Skan bin_search_tree_/point_iterators.hpp \ 272169718Skan bin_search_tree_/policy_access_fn_imps.hpp \ 273169718Skan bin_search_tree_/r_erase_fn_imps.hpp \ 274169718Skan bin_search_tree_/rotate_fn_imps.hpp \ 275169718Skan bin_search_tree_/split_join_fn_imps.hpp \ 276169718Skan bin_search_tree_/traits.hpp \ 277169718Skan cc_hash_table_map_/cc_ht_map_.hpp \ 278169718Skan cc_hash_table_map_/cmp_fn_imps.hpp \ 279169718Skan cc_hash_table_map_/cond_key_dtor_entry_dealtor.hpp \ 280169718Skan cc_hash_table_map_/constructor_destructor_fn_imps.hpp \ 281169718Skan cc_hash_table_map_/constructor_destructor_no_store_hash_fn_imps.hpp \ 282169718Skan cc_hash_table_map_/constructor_destructor_store_hash_fn_imps.hpp \ 283169718Skan cc_hash_table_map_/debug_fn_imps.hpp \ 284169718Skan cc_hash_table_map_/debug_no_store_hash_fn_imps.hpp \ 285169718Skan cc_hash_table_map_/debug_store_hash_fn_imps.hpp \ 286169718Skan cc_hash_table_map_/entry_list_fn_imps.hpp \ 287169718Skan cc_hash_table_map_/erase_fn_imps.hpp \ 288169718Skan cc_hash_table_map_/erase_no_store_hash_fn_imps.hpp \ 289169718Skan cc_hash_table_map_/erase_store_hash_fn_imps.hpp \ 290169718Skan cc_hash_table_map_/find_fn_imps.hpp \ 291169718Skan cc_hash_table_map_/find_store_hash_fn_imps.hpp \ 292169718Skan cc_hash_table_map_/info_fn_imps.hpp \ 293169718Skan cc_hash_table_map_/insert_fn_imps.hpp \ 294169718Skan cc_hash_table_map_/insert_no_store_hash_fn_imps.hpp \ 295169718Skan cc_hash_table_map_/insert_store_hash_fn_imps.hpp \ 296169718Skan cc_hash_table_map_/iterators_fn_imps.hpp \ 297169718Skan cc_hash_table_map_/policy_access_fn_imps.hpp \ 298169718Skan cc_hash_table_map_/resize_fn_imps.hpp \ 299169718Skan cc_hash_table_map_/resize_no_store_hash_fn_imps.hpp \ 300169718Skan cc_hash_table_map_/resize_store_hash_fn_imps.hpp \ 301169718Skan cc_hash_table_map_/size_fn_imps.hpp \ 302169718Skan cc_hash_table_map_/standard_policies.hpp 303169718Skan 304169718SkanPBHDRS+= \ 305169718Skan cc_hash_table_map_/trace_fn_imps.hpp \ 306169718Skan cond_dealtor.hpp \ 307169718Skan constructors_destructor_fn_imps.hpp \ 308169718Skan container_base_dispatch.hpp \ 309169718Skan eq_fn/eq_by_less.hpp \ 310169718Skan eq_fn/hash_eq_fn.hpp \ 311169718Skan gp_hash_table_map_/constructor_destructor_fn_imps.hpp \ 312169718Skan gp_hash_table_map_/constructor_destructor_no_store_hash_fn_imps.hpp \ 313169718Skan gp_hash_table_map_/constructor_destructor_store_hash_fn_imps.hpp \ 314169718Skan gp_hash_table_map_/debug_fn_imps.hpp \ 315169718Skan gp_hash_table_map_/debug_no_store_hash_fn_imps.hpp \ 316169718Skan gp_hash_table_map_/debug_store_hash_fn_imps.hpp \ 317169718Skan gp_hash_table_map_/erase_fn_imps.hpp \ 318169718Skan gp_hash_table_map_/erase_no_store_hash_fn_imps.hpp \ 319169718Skan gp_hash_table_map_/erase_store_hash_fn_imps.hpp \ 320169718Skan gp_hash_table_map_/find_fn_imps.hpp \ 321169718Skan gp_hash_table_map_/find_no_store_hash_fn_imps.hpp \ 322169718Skan gp_hash_table_map_/find_store_hash_fn_imps.hpp \ 323169718Skan gp_hash_table_map_/gp_ht_map_.hpp \ 324169718Skan gp_hash_table_map_/info_fn_imps.hpp \ 325169718Skan gp_hash_table_map_/insert_fn_imps.hpp \ 326169718Skan gp_hash_table_map_/insert_no_store_hash_fn_imps.hpp \ 327169718Skan gp_hash_table_map_/insert_store_hash_fn_imps.hpp \ 328169718Skan gp_hash_table_map_/iterator_fn_imps.hpp \ 329169718Skan gp_hash_table_map_/policy_access_fn_imps.hpp \ 330169718Skan gp_hash_table_map_/resize_fn_imps.hpp \ 331169718Skan gp_hash_table_map_/resize_no_store_hash_fn_imps.hpp \ 332169718Skan gp_hash_table_map_/resize_store_hash_fn_imps.hpp \ 333169718Skan gp_hash_table_map_/standard_policies.hpp \ 334169718Skan gp_hash_table_map_/trace_fn_imps.hpp \ 335169718Skan hash_fn/direct_mask_range_hashing_imp.hpp \ 336169718Skan hash_fn/direct_mod_range_hashing_imp.hpp \ 337169718Skan hash_fn/linear_probe_fn_imp.hpp \ 338169718Skan hash_fn/mask_based_range_hashing.hpp \ 339169718Skan hash_fn/mod_based_range_hashing.hpp \ 340169718Skan hash_fn/probe_fn_base.hpp \ 341169718Skan hash_fn/quadratic_probe_fn_imp.hpp \ 342169718Skan hash_fn/ranged_hash_fn.hpp \ 343169718Skan hash_fn/ranged_probe_fn.hpp 344169718Skan 345169718SkanPBHDRS+= \ 346169718Skan hash_fn/sample_probe_fn.hpp \ 347169718Skan hash_fn/sample_ranged_hash_fn.hpp \ 348169718Skan hash_fn/sample_ranged_probe_fn.hpp \ 349169718Skan hash_fn/sample_range_hashing.hpp \ 350169718Skan left_child_next_sibling_heap_/const_iterator.hpp \ 351169718Skan left_child_next_sibling_heap_/const_point_iterator.hpp \ 352169718Skan left_child_next_sibling_heap_/constructors_destructor_fn_imps.hpp \ 353169718Skan left_child_next_sibling_heap_/debug_fn_imps.hpp \ 354169718Skan left_child_next_sibling_heap_/erase_fn_imps.hpp \ 355169718Skan left_child_next_sibling_heap_/info_fn_imps.hpp \ 356169718Skan left_child_next_sibling_heap_/insert_fn_imps.hpp \ 357169718Skan left_child_next_sibling_heap_/iterators_fn_imps.hpp \ 358169718Skan left_child_next_sibling_heap_/left_child_next_sibling_heap_.hpp \ 359169718Skan left_child_next_sibling_heap_/node.hpp \ 360169718Skan left_child_next_sibling_heap_/null_metadata.hpp \ 361169718Skan left_child_next_sibling_heap_/policy_access_fn_imps.hpp \ 362169718Skan left_child_next_sibling_heap_/trace_fn_imps.hpp \ 363169718Skan list_update_map_/constructor_destructor_fn_imps.hpp \ 364169718Skan list_update_map_/debug_fn_imps.hpp \ 365169718Skan list_update_map_/entry_metadata_base.hpp \ 366169718Skan list_update_map_/erase_fn_imps.hpp \ 367169718Skan list_update_map_/find_fn_imps.hpp \ 368169718Skan list_update_map_/info_fn_imps.hpp \ 369169718Skan list_update_map_/insert_fn_imps.hpp \ 370169718Skan list_update_map_/iterators_fn_imps.hpp \ 371169718Skan list_update_map_/lu_map_.hpp \ 372169718Skan list_update_map_/trace_fn_imps.hpp \ 373169718Skan list_update_policy/counter_lu_metadata.hpp \ 374169718Skan list_update_policy/counter_lu_policy_imp.hpp \ 375169718Skan list_update_policy/mtf_lu_policy_imp.hpp \ 376169718Skan list_update_policy/sample_update_policy.hpp \ 377169718Skan map_debug_base.hpp \ 378169718Skan ov_tree_map_/cond_dtor.hpp \ 379169718Skan ov_tree_map_/constructors_destructor_fn_imps.hpp \ 380169718Skan ov_tree_map_/debug_fn_imps.hpp \ 381169718Skan ov_tree_map_/erase_fn_imps.hpp \ 382169718Skan ov_tree_map_/info_fn_imps.hpp \ 383169718Skan ov_tree_map_/insert_fn_imps.hpp \ 384169718Skan ov_tree_map_/iterators_fn_imps.hpp \ 385169718Skan ov_tree_map_/node_iterators.hpp \ 386169718Skan ov_tree_map_/ov_tree_map_.hpp 387169718Skan 388169718SkanPBHDRS+= \ 389169718Skan ov_tree_map_/policy_access_fn_imps.hpp \ 390169718Skan ov_tree_map_/split_join_fn_imps.hpp \ 391169718Skan ov_tree_map_/traits.hpp \ 392169718Skan pairing_heap_/constructors_destructor_fn_imps.hpp \ 393169718Skan pairing_heap_/debug_fn_imps.hpp \ 394169718Skan pairing_heap_/erase_fn_imps.hpp \ 395169718Skan pairing_heap_/find_fn_imps.hpp \ 396169718Skan pairing_heap_/insert_fn_imps.hpp \ 397169718Skan pairing_heap_/pairing_heap_.hpp \ 398169718Skan pairing_heap_/split_join_fn_imps.hpp \ 399169718Skan pat_trie_/child_iterator.hpp \ 400169718Skan pat_trie_/cond_dtor_entry_dealtor.hpp \ 401169718Skan pat_trie_/const_child_iterator.hpp \ 402169718Skan pat_trie_/constructors_destructor_fn_imps.hpp \ 403169718Skan pat_trie_/debug_fn_imps.hpp \ 404169718Skan pat_trie_/erase_fn_imps.hpp \ 405169718Skan pat_trie_/find_fn_imps.hpp \ 406169718Skan pat_trie_/head.hpp \ 407169718Skan pat_trie_/info_fn_imps.hpp \ 408169718Skan pat_trie_/insert_join_fn_imps.hpp \ 409169718Skan pat_trie_/internal_node.hpp \ 410169718Skan pat_trie_/iterators_fn_imps.hpp \ 411169718Skan pat_trie_/leaf.hpp \ 412169718Skan pat_trie_/node_base.hpp \ 413169718Skan pat_trie_/node_iterators.hpp \ 414169718Skan pat_trie_/node_metadata_base.hpp \ 415169718Skan pat_trie_/pat_trie_.hpp \ 416169718Skan pat_trie_/point_iterators.hpp \ 417169718Skan pat_trie_/policy_access_fn_imps.hpp \ 418169718Skan pat_trie_/r_erase_fn_imps.hpp \ 419169718Skan pat_trie_/rotate_fn_imps.hpp \ 420169718Skan pat_trie_/split_fn_imps.hpp \ 421169718Skan pat_trie_/split_join_branch_bag.hpp \ 422169718Skan pat_trie_/synth_e_access_traits.hpp \ 423169718Skan pat_trie_/trace_fn_imps.hpp \ 424169718Skan pat_trie_/traits.hpp \ 425169718Skan pat_trie_/update_fn_imps.hpp \ 426169718Skan priority_queue_base_dispatch.hpp \ 427169718Skan rb_tree_map_/constructors_destructor_fn_imps.hpp \ 428169718Skan rb_tree_map_/debug_fn_imps.hpp 429169718Skan 430169718SkanPBHDRS+= \ 431169718Skan rb_tree_map_/erase_fn_imps.hpp \ 432169718Skan rb_tree_map_/find_fn_imps.hpp \ 433169718Skan rb_tree_map_/info_fn_imps.hpp \ 434169718Skan rb_tree_map_/insert_fn_imps.hpp \ 435169718Skan rb_tree_map_/node.hpp \ 436169718Skan rb_tree_map_/rb_tree_.hpp \ 437169718Skan rb_tree_map_/split_join_fn_imps.hpp \ 438169718Skan rb_tree_map_/traits.hpp \ 439169718Skan rc_binomial_heap_/constructors_destructor_fn_imps.hpp \ 440169718Skan rc_binomial_heap_/debug_fn_imps.hpp \ 441169718Skan rc_binomial_heap_/erase_fn_imps.hpp \ 442169718Skan rc_binomial_heap_/insert_fn_imps.hpp \ 443169718Skan rc_binomial_heap_/rc_binomial_heap_.hpp \ 444169718Skan rc_binomial_heap_/rc.hpp \ 445169718Skan rc_binomial_heap_/split_join_fn_imps.hpp \ 446169718Skan rc_binomial_heap_/trace_fn_imps.hpp \ 447169718Skan resize_policy/cc_hash_max_collision_check_resize_trigger_imp.hpp \ 448169718Skan resize_policy/hash_exponential_size_policy_imp.hpp \ 449169718Skan resize_policy/hash_load_check_resize_trigger_imp.hpp \ 450169718Skan resize_policy/hash_load_check_resize_trigger_size_base.hpp \ 451169718Skan resize_policy/hash_prime_size_policy_imp.hpp \ 452169718Skan resize_policy/hash_standard_resize_policy_imp.hpp \ 453169718Skan resize_policy/sample_resize_policy.hpp \ 454169718Skan resize_policy/sample_resize_trigger.hpp \ 455169718Skan resize_policy/sample_size_policy.hpp \ 456169718Skan splay_tree_/constructors_destructor_fn_imps.hpp \ 457169718Skan splay_tree_/debug_fn_imps.hpp \ 458169718Skan splay_tree_/erase_fn_imps.hpp \ 459169718Skan splay_tree_/find_fn_imps.hpp \ 460169718Skan splay_tree_/info_fn_imps.hpp \ 461169718Skan splay_tree_/insert_fn_imps.hpp \ 462169718Skan splay_tree_/node.hpp \ 463169718Skan splay_tree_/splay_fn_imps.hpp \ 464169718Skan splay_tree_/splay_tree_.hpp \ 465169718Skan splay_tree_/split_join_fn_imps.hpp \ 466169718Skan splay_tree_/traits.hpp \ 467169718Skan standard_policies.hpp \ 468169718Skan thin_heap_/constructors_destructor_fn_imps.hpp \ 469169718Skan thin_heap_/debug_fn_imps.hpp \ 470169718Skan thin_heap_/erase_fn_imps.hpp 471169718Skan 472169718SkanPBHDRS+= \ 473169718Skan thin_heap_/find_fn_imps.hpp \ 474169718Skan thin_heap_/insert_fn_imps.hpp \ 475169718Skan thin_heap_/split_join_fn_imps.hpp \ 476169718Skan thin_heap_/thin_heap_.hpp \ 477169718Skan thin_heap_/trace_fn_imps.hpp \ 478169718Skan tree_policy/node_metadata_selector.hpp \ 479169718Skan tree_policy/null_node_update_imp.hpp \ 480169718Skan tree_policy/order_statistics_imp.hpp \ 481169718Skan tree_policy/sample_tree_node_update.hpp \ 482169718Skan tree_trace_base.hpp \ 483169718Skan trie_policy/node_metadata_selector.hpp \ 484169718Skan trie_policy/null_node_update_imp.hpp \ 485169718Skan trie_policy/order_statistics_imp.hpp \ 486169718Skan trie_policy/prefix_search_node_update_imp.hpp \ 487169718Skan trie_policy/sample_trie_e_access_traits.hpp \ 488169718Skan trie_policy/sample_trie_node_update.hpp \ 489169718Skan trie_policy/string_trie_e_access_traits_imp.hpp \ 490169718Skan trie_policy/trie_policy_base.hpp \ 491169718Skan types_traits.hpp \ 492169718Skan type_utils.hpp \ 493169718Skan unordered_iterator/const_iterator.hpp \ 494169718Skan unordered_iterator/const_point_iterator.hpp \ 495169718Skan unordered_iterator/iterator.hpp \ 496169718Skan unordered_iterator/point_iterator.hpp 497169718Skan 498169718SkanPBHDRSDIRS= \ 499169718Skan pairing_heap_ \ 500169718Skan splay_tree_ \ 501169718Skan list_update_map_ \ 502169718Skan basic_tree_policy \ 503169718Skan trie_policy \ 504169718Skan gp_hash_table_map_ \ 505169718Skan tree_policy \ 506169718Skan binomial_heap_base_ \ 507169718Skan resize_policy \ 508169718Skan bin_search_tree_ \ 509169718Skan binomial_heap_ \ 510169718Skan thin_heap_ \ 511169718Skan pat_trie_ \ 512169718Skan cc_hash_table_map_ \ 513169718Skan rc_binomial_heap_ \ 514169718Skan left_child_next_sibling_heap_ \ 515169718Skan unordered_iterator \ 516169718Skan binary_heap_ \ 517169718Skan ov_tree_map_ \ 518169718Skan hash_fn \ 519169718Skan eq_fn \ 520169718Skan rb_tree_map_ \ 521169718Skan list_update_policy 522169718Skan 523169718Skan.for D in ${PBHDRSDIRS} 524169718SkanPHDRGRP$D:= ${PBHDRS:M$D/*:S;^;${SRCDIR}/include/ext/pb_ds/detail/;} 525169718SkanPHDRGRP$DDIR= ${CXXINCLUDEDIR}/ext/pb_ds/detail/$D 526169718SkanINCSGROUPS+= PHDRGRP$D 527169718Skan.endfor 528169718Skan 529169718SkanTARGETHDRS= abi/compatibility.h \ 530169718Skan allocator/new_allocator_base.h \ 531132751Skan io/basic_file_stdio.h \ 532132751Skan io/c_io_stdio.h \ 53397657Sru locale/generic/c_locale.h \ 534103456Skan locale/generic/c++locale_internal.h \ 53597657Sru locale/generic/messages_members.h \ 536110632Skan locale/generic/time_members.h \ 537117429Skan os/bsd/freebsd/ctype_base.h \ 538117429Skan os/bsd/freebsd/ctype_inline.h \ 539117429Skan os/bsd/freebsd/ctype_noninline.h \ 540117429Skan os/bsd/freebsd/os_defines.h 54197657SruTARGETHDRS:= ${TARGETHDRS:S;^;${SRCDIR}/config/;} 542132751SkanTARGETHDRS+= c++config.h 54397657SruTARGETHDRSNAME_basic_file_stdio.h= basic_file.h 54497657SruTARGETHDRSNAME_c_io_stdio.h= c++io.h 54597657SruTARGETHDRSNAME_c_locale.h= c++locale.h 546132751SkanTARGETHDRSNAME_new_allocator_base.h= c++allocator.h 547132751SkanTARGETHDRSDIR= ${CXXINCLUDEDIR}/bits 54897657Sru 549169718SkanMARCHHDRS= atomic_word.h cpu_defines.h cxxabi_tweaks.h 55097657Sru.for h in ${MARCHHDRS} 551117429Skan.if exists(${SRCDIR}/config/cpu/${MARCHDIR}/${h}) 552117429SkanTARGETHDRS+= ${SRCDIR}/config/cpu/${MARCHDIR}/${h} 55397657Sru.else 554124189SkanTARGETHDRS+= ${SRCDIR}/config/cpu/generic/${h} 55597657Sru.endif 55697657Sru.endfor 55797657Sru 558169718SkanTHRHDRS= gthr.h gthr-single.h gthr-posix.h gthr-tpf.h gthr-default.h 559132751SkanTHRHDRSDIR= ${CXXINCLUDEDIR}/bits 560132751Skanuppercase = [ABCDEFGHIJKLMNOPQRSTUVWXYZ_] 56197657Sru 56297433Spetergthr.h: ${GCCDIR}/gthr.h 563169718Skan sed -e '/^#pragma/b' \ 564169718Skan -e '/^#/s/\(${uppercase}${uppercase}*\)/_GLIBCXX_\1/g' \ 565132751Skan -e 's/_GLIBCXX_SUPPORTS_WEAK/__GXX_WEAK__/g' \ 56697433Speter -e 's,^#include "\(.*\)",#include <bits/\1>,g' \ 567132751Skan < ${.ALLSRC} > ${.TARGET} 56818666Speter 56997433Spetergthr-single.h: ${GCCDIR}/gthr-single.h 570132751Skan sed -e 's/\(UNUSED\)/_GLIBCXX_\1/g' \ 571132751Skan -e 's/\(GCC${uppercase}*_H\)/_GLIBCXX_\1/g' \ 572132751Skan < ${.ALLSRC} > ${.TARGET} 57396340Sobrien 57497433Spetergthr-posix.h: ${GCCDIR}/gthr-posix.h 575132751Skan sed -e 's/\(UNUSED\)/_GLIBCXX_\1/g' \ 576132751Skan -e 's/\(GCC${uppercase}*_H\)/_GLIBCXX_\1/g' \ 577132751Skan -e 's/SUPPORTS_WEAK/__GXX_WEAK__/g' \ 578132751Skan -e 's/\(${uppercase}*USE_WEAK\)/_GLIBCXX_\1/g' \ 579132751Skan < ${.ALLSRC} > ${.TARGET} 58096340Sobrien 581169718Skangthr-tpf.h: ${GCCDIR}/gthr-posix.h 582169718Skan sed -e 's/\(UNUSED\)/_GLIBCXX_\1/g' \ 583169718Skan -e 's/\(GCC${uppercase}*_H\)/_GLIBCXX_\1/g' \ 584169718Skan -e 's/SUPPORTS_WEAK/__GXX_WEAK__/g' \ 585169718Skan -e 's/\(${uppercase}*USE_WEAK\)/_GLIBCXX_\1/g' \ 586169718Skan < ${.ALLSRC} > ${.TARGET} 587169718Skan 58897433Spetergthr-default.h: ${GCCDIR}/gthr-posix.h 589132751Skan sed -e 's/\(UNUSED\)/_GLIBCXX_\1/g' \ 590132751Skan -e 's/\(GCC${uppercase}*_H\)/_GLIBCXX_\1/g' \ 591132751Skan -e 's/SUPPORTS_WEAK/__GXX_WEAK__/g' \ 592132751Skan -e 's/\(${uppercase}*USE_WEAK\)/_GLIBCXX_\1/g' \ 59397433Speter -e 's,^#include "\(.*\)",#include <bits/\1>,g' \ 594132751Skan < ${.ALLSRC} > ${.TARGET} 59596340Sobrien 59697657SruCLEANFILES+= ${THRHDRS} 59796340Sobrien 598169718Skanunwind.h: ${GCCDIR}/unwind-generic.h 599169718Skan ln -sf ${.ALLSRC} ${.TARGET} 600169718Skan 601169718SkanSRCS+= unwind.h 602169718SkanCLEANFILES+= unwind.h 603169718Skan 604169718SkanDATESTAMP!= cat ${GCCDIR}/DATESTAMP 605169718Skan 606132751Skanc++config.h: ${.CURDIR}/config.h ${SRCDIR}/include/bits/c++config 607169718Skan sed -e "s/\\(define __GLIBCXX__\\)/\1 ${DATESTAMP}/" \ 608169718Skan -e 's/\(define _GLIBCXX_HAVE_ATTRIBUTE_VISIBILITY\)/\1 1/' \ 609169718Skan -e 's/\(define _GLIBCXX_NAMESPACE_ASSOCIATION_VERSION\)/\1 0/' \ 610169718Skan < ${SRCDIR}/include/bits/c++config > ${.TARGET} && \ 611132751Skan sed -e 's/HAVE_/_GLIBCXX_HAVE_/g' \ 612132751Skan -e 's/PACKAGE/_GLIBCXX_PACKAGE/g' \ 613132751Skan -e 's/VERSION/_GLIBCXX_VERSION/g' \ 614132751Skan -e 's/WORDS_/_GLIBCXX_WORDS_/g' \ 615132751Skan < ${.CURDIR}/config.h >> ${.TARGET} && \ 616132751Skan echo "#endif // _CXXCONFIG_" >> ${.TARGET} 617132751SkanCLEANFILES+= c++config.h 618132751Skan 619169718Skan# Symbol versioning. 620169718Skan 621169718SkanVERSION_MAP= libstdc++.map 622169718Skan 623169718Skan${VERSION_MAP}: ${SRCDIR}/config/abi/pre/gnu.ver 624169718Skan ln -sf ${.ALLSRC} ${.TARGET} 625169718Skan 626169718SkanCLEANFILES+= ${VERSION_MAP} 627169718Skan 62818666Speter.include <bsd.lib.mk> 629