1# $FreeBSD$ 2 3SHLIBDIR?= /lib 4 5.include <src.opts.mk> 6 7PACKAGE= clibs 8_LIBCXXRTDIR= ${SRCTOP}/contrib/libcxxrt 9HDRDIR= ${SRCTOP}/contrib/llvm-project/libcxx/include 10SRCDIR= ${SRCTOP}/contrib/llvm-project/libcxx/src 11CXXINCLUDEDIR= ${INCLUDEDIR}/c++/v${SHLIB_MAJOR} 12 13.PATH: ${SRCDIR} 14 15LIB= c++ 16SHLIB_MAJOR= 1 17SHLIB_LDSCRIPT= libc++.ldscript 18 19SRCS+= algorithm.cpp 20SRCS+= any.cpp 21SRCS+= atomic.cpp 22SRCS+= barrier.cpp 23SRCS+= bind.cpp 24SRCS+= charconv.cpp 25SRCS+= chrono.cpp 26SRCS+= condition_variable.cpp 27SRCS+= condition_variable_destructor.cpp 28SRCS+= debug.cpp 29SRCS+= exception.cpp 30SRCS+= filesystem/directory_iterator.cpp 31SRCS+= filesystem/int128_builtins.cpp 32SRCS+= filesystem/operations.cpp 33SRCS+= format.cpp 34SRCS+= functional.cpp 35SRCS+= future.cpp 36SRCS+= hash.cpp 37SRCS+= ios.cpp 38SRCS+= ios.instantiations.cpp 39SRCS+= iostream.cpp 40SRCS+= legacy_debug_handler.cpp 41SRCS+= legacy_pointer_safety.cpp 42SRCS+= locale.cpp 43SRCS+= memory.cpp 44SRCS+= mutex.cpp 45SRCS+= mutex_destructor.cpp 46SRCS+= new.cpp 47SRCS+= optional.cpp 48SRCS+= random.cpp 49SRCS+= random_shuffle.cpp 50SRCS+= regex.cpp 51SRCS+= ryu/d2fixed.cpp 52SRCS+= ryu/d2s.cpp 53SRCS+= ryu/f2s.cpp 54SRCS+= shared_mutex.cpp 55SRCS+= stdexcept.cpp 56SRCS+= string.cpp 57SRCS+= strstream.cpp 58SRCS+= system_error.cpp 59SRCS+= thread.cpp 60SRCS+= typeinfo.cpp 61SRCS+= utility.cpp 62SRCS+= valarray.cpp 63SRCS+= variant.cpp 64SRCS+= vector.cpp 65SRCS+= verbose_abort.cpp 66 67CXXRT_SRCS+= auxhelper.cc 68CXXRT_SRCS+= dynamic_cast.cc 69CXXRT_SRCS+= exception.cc 70CXXRT_SRCS+= guard.cc 71CXXRT_SRCS+= libelftc_dem_gnu3.c 72CXXRT_SRCS+= memory.cc 73CXXRT_SRCS+= stdexcept.cc 74CXXRT_SRCS+= terminate.cc 75CXXRT_SRCS+= typeinfo.cc 76 77.for _S in ${CXXRT_SRCS} 78CLEANFILES+= cxxrt_${_S} 79STATICOBJS+= cxxrt_${_S:R}.o 80cxxrt_${_S}: ${_LIBCXXRTDIR}/${_S} .NOMETA 81 ln -sf ${.ALLSRC} ${.TARGET} 82.endfor 83 84WARNS?= 0 85CFLAGS+= -isystem ${.CURDIR} 86CFLAGS+= -isystem ${HDRDIR} 87CFLAGS+= -isystem ${SRCDIR} 88CFLAGS+= -isystem ${_LIBCXXRTDIR} 89CFLAGS+= -nostdinc++ 90CFLAGS+= -nostdlib 91CFLAGS+= -D_LIBCPP_BUILDING_LIBRARY 92CFLAGS+= -DLIBCXXRT 93CFLAGS+= -ffunction-sections 94CFLAGS+= -fdata-sections 95CXXSTD?= c++20 96 97LIBADD+= cxxrt 98 99INCSGROUPS+= STD 100STDDIR= ${CXXINCLUDEDIR} 101STD_HEADERS+= __assert 102STD_HEADERS+= __availability 103STD_HEADERS+= __bit_reference 104STD_HEADERS+= __bits 105STD_HEADERS+= __bsd_locale_defaults.h 106STD_HEADERS+= __bsd_locale_fallbacks.h 107STD_HEADERS+= __config 108STD_HEADERS+= __debug 109STD_HEADERS+= __errc 110STD_HEADERS+= __hash_table 111STD_HEADERS+= __locale 112STD_HEADERS+= __mbstate_t.h 113STD_HEADERS+= __mutex_base 114STD_HEADERS+= __node_handle 115STD_HEADERS+= __split_buffer 116STD_HEADERS+= __std_stream 117STD_HEADERS+= __threading_support 118STD_HEADERS+= __tree 119STD_HEADERS+= __tuple 120STD_HEADERS+= __undef_macros 121STD_HEADERS+= __verbose_abort 122STD_HEADERS+= algorithm 123STD_HEADERS+= any 124STD_HEADERS+= array 125STD_HEADERS+= atomic 126STD_HEADERS+= barrier 127STD_HEADERS+= bit 128STD_HEADERS+= bitset 129STD_HEADERS+= cassert 130STD_HEADERS+= ccomplex 131STD_HEADERS+= cctype 132STD_HEADERS+= cerrno 133STD_HEADERS+= cfenv 134STD_HEADERS+= cfloat 135STD_HEADERS+= charconv 136STD_HEADERS+= chrono 137STD_HEADERS+= cinttypes 138STD_HEADERS+= ciso646 139STD_HEADERS+= climits 140STD_HEADERS+= clocale 141STD_HEADERS+= cmath 142STD_HEADERS+= codecvt 143STD_HEADERS+= compare 144STD_HEADERS+= complex 145STD_HEADERS+= complex.h 146STD_HEADERS+= concepts 147STD_HEADERS+= condition_variable 148STD_HEADERS+= coroutine 149STD_HEADERS+= csetjmp 150STD_HEADERS+= csignal 151STD_HEADERS+= cstdarg 152STD_HEADERS+= cstdbool 153STD_HEADERS+= cstddef 154STD_HEADERS+= cstdint 155STD_HEADERS+= cstdio 156STD_HEADERS+= cstdlib 157STD_HEADERS+= cstring 158STD_HEADERS+= ctgmath 159STD_HEADERS+= ctime 160STD_HEADERS+= ctype.h 161STD_HEADERS+= cuchar 162STD_HEADERS+= cwchar 163STD_HEADERS+= cwctype 164STD_HEADERS+= deque 165STD_HEADERS+= errno.h 166STD_HEADERS+= exception 167STD_HEADERS+= execution 168STD_HEADERS+= fenv.h 169STD_HEADERS+= filesystem 170STD_HEADERS+= float.h 171STD_HEADERS+= format 172STD_HEADERS+= forward_list 173STD_HEADERS+= fstream 174STD_HEADERS+= functional 175STD_HEADERS+= future 176STD_HEADERS+= initializer_list 177STD_HEADERS+= inttypes.h 178STD_HEADERS+= iomanip 179STD_HEADERS+= ios 180STD_HEADERS+= iosfwd 181STD_HEADERS+= iostream 182STD_HEADERS+= istream 183STD_HEADERS+= iterator 184STD_HEADERS+= latch 185STD_HEADERS+= limits 186STD_HEADERS+= limits.h 187STD_HEADERS+= list 188STD_HEADERS+= locale 189STD_HEADERS+= locale.h 190STD_HEADERS+= map 191STD_HEADERS+= math.h 192STD_HEADERS+= memory 193STD_HEADERS+= mutex 194STD_HEADERS+= new 195STD_HEADERS+= numbers 196STD_HEADERS+= numeric 197STD_HEADERS+= optional 198STD_HEADERS+= ostream 199STD_HEADERS+= queue 200STD_HEADERS+= random 201STD_HEADERS+= ranges 202STD_HEADERS+= ratio 203STD_HEADERS+= regex 204STD_HEADERS+= scoped_allocator 205STD_HEADERS+= semaphore 206STD_HEADERS+= set 207STD_HEADERS+= setjmp.h 208STD_HEADERS+= shared_mutex 209STD_HEADERS+= span 210STD_HEADERS+= sstream 211STD_HEADERS+= stack 212STD_HEADERS+= stdatomic.h 213STD_HEADERS+= stdbool.h 214STD_HEADERS+= stddef.h 215STD_HEADERS+= stdexcept 216STD_HEADERS+= stdint.h 217STD_HEADERS+= stdio.h 218STD_HEADERS+= stdlib.h 219STD_HEADERS+= streambuf 220STD_HEADERS+= string 221STD_HEADERS+= string.h 222STD_HEADERS+= string_view 223STD_HEADERS+= strstream 224STD_HEADERS+= system_error 225STD_HEADERS+= tgmath.h 226STD_HEADERS+= thread 227STD_HEADERS+= tuple 228STD_HEADERS+= type_traits 229STD_HEADERS+= typeindex 230STD_HEADERS+= typeinfo 231STD_HEADERS+= uchar.h 232STD_HEADERS+= unordered_map 233STD_HEADERS+= unordered_set 234STD_HEADERS+= utility 235STD_HEADERS+= valarray 236STD_HEADERS+= variant 237STD_HEADERS+= vector 238STD_HEADERS+= version 239STD_HEADERS+= wchar.h 240STD_HEADERS+= wctype.h 241.for hdr in ${STD_HEADERS} 242STD+= ${HDRDIR}/${hdr} 243.endfor 244 245# Special case for __config_site, which as of libc++ 12.0.0 is generated by 246# CMake, and as of 13.0.0 installed side-by-side with__config. 247STD+= ${.CURDIR}/__config_site 248 249# Special case for module.modulemap, which as of libc++ 15.0.0 is generated by 250# CMake. 251STD+= ${.CURDIR}/module.modulemap 252 253RT_HEADERS+= cxxabi.h 254.for hdr in ${RT_HEADERS} 255STD+= ${_LIBCXXRTDIR}/${hdr} 256.endfor 257 258INCSGROUPS+= ALG 259ALGDIR= ${CXXINCLUDEDIR}/__algorithm 260ALG_HEADERS+= adjacent_find.h 261ALG_HEADERS+= all_of.h 262ALG_HEADERS+= any_of.h 263ALG_HEADERS+= binary_search.h 264ALG_HEADERS+= clamp.h 265ALG_HEADERS+= comp.h 266ALG_HEADERS+= comp_ref_type.h 267ALG_HEADERS+= copy.h 268ALG_HEADERS+= copy_backward.h 269ALG_HEADERS+= copy_if.h 270ALG_HEADERS+= copy_n.h 271ALG_HEADERS+= count.h 272ALG_HEADERS+= count_if.h 273ALG_HEADERS+= equal.h 274ALG_HEADERS+= equal_range.h 275ALG_HEADERS+= fill.h 276ALG_HEADERS+= fill_n.h 277ALG_HEADERS+= find.h 278ALG_HEADERS+= find_end.h 279ALG_HEADERS+= find_first_of.h 280ALG_HEADERS+= find_if.h 281ALG_HEADERS+= find_if_not.h 282ALG_HEADERS+= for_each.h 283ALG_HEADERS+= for_each_n.h 284ALG_HEADERS+= generate.h 285ALG_HEADERS+= generate_n.h 286ALG_HEADERS+= half_positive.h 287ALG_HEADERS+= in_found_result.h 288ALG_HEADERS+= in_fun_result.h 289ALG_HEADERS+= in_in_out_result.h 290ALG_HEADERS+= in_in_result.h 291ALG_HEADERS+= in_out_out_result.h 292ALG_HEADERS+= in_out_result.h 293ALG_HEADERS+= includes.h 294ALG_HEADERS+= inplace_merge.h 295ALG_HEADERS+= is_heap.h 296ALG_HEADERS+= is_heap_until.h 297ALG_HEADERS+= is_partitioned.h 298ALG_HEADERS+= is_permutation.h 299ALG_HEADERS+= is_sorted.h 300ALG_HEADERS+= is_sorted_until.h 301ALG_HEADERS+= iter_swap.h 302ALG_HEADERS+= iterator_operations.h 303ALG_HEADERS+= lexicographical_compare.h 304ALG_HEADERS+= lower_bound.h 305ALG_HEADERS+= make_heap.h 306ALG_HEADERS+= make_projected.h 307ALG_HEADERS+= max.h 308ALG_HEADERS+= max_element.h 309ALG_HEADERS+= merge.h 310ALG_HEADERS+= min.h 311ALG_HEADERS+= min_element.h 312ALG_HEADERS+= min_max_result.h 313ALG_HEADERS+= minmax.h 314ALG_HEADERS+= minmax_element.h 315ALG_HEADERS+= mismatch.h 316ALG_HEADERS+= move.h 317ALG_HEADERS+= move_backward.h 318ALG_HEADERS+= next_permutation.h 319ALG_HEADERS+= none_of.h 320ALG_HEADERS+= nth_element.h 321ALG_HEADERS+= partial_sort.h 322ALG_HEADERS+= partial_sort_copy.h 323ALG_HEADERS+= partition.h 324ALG_HEADERS+= partition_copy.h 325ALG_HEADERS+= partition_point.h 326ALG_HEADERS+= pop_heap.h 327ALG_HEADERS+= prev_permutation.h 328ALG_HEADERS+= push_heap.h 329ALG_HEADERS+= ranges_adjacent_find.h 330ALG_HEADERS+= ranges_all_of.h 331ALG_HEADERS+= ranges_any_of.h 332ALG_HEADERS+= ranges_binary_search.h 333ALG_HEADERS+= ranges_clamp.h 334ALG_HEADERS+= ranges_copy.h 335ALG_HEADERS+= ranges_copy_backward.h 336ALG_HEADERS+= ranges_copy_if.h 337ALG_HEADERS+= ranges_copy_n.h 338ALG_HEADERS+= ranges_count.h 339ALG_HEADERS+= ranges_count_if.h 340ALG_HEADERS+= ranges_equal.h 341ALG_HEADERS+= ranges_equal_range.h 342ALG_HEADERS+= ranges_fill.h 343ALG_HEADERS+= ranges_fill_n.h 344ALG_HEADERS+= ranges_find.h 345ALG_HEADERS+= ranges_find_end.h 346ALG_HEADERS+= ranges_find_first_of.h 347ALG_HEADERS+= ranges_find_if.h 348ALG_HEADERS+= ranges_find_if_not.h 349ALG_HEADERS+= ranges_for_each.h 350ALG_HEADERS+= ranges_for_each_n.h 351ALG_HEADERS+= ranges_generate.h 352ALG_HEADERS+= ranges_generate_n.h 353ALG_HEADERS+= ranges_includes.h 354ALG_HEADERS+= ranges_inplace_merge.h 355ALG_HEADERS+= ranges_is_heap.h 356ALG_HEADERS+= ranges_is_heap_until.h 357ALG_HEADERS+= ranges_is_partitioned.h 358ALG_HEADERS+= ranges_is_permutation.h 359ALG_HEADERS+= ranges_is_sorted.h 360ALG_HEADERS+= ranges_is_sorted_until.h 361ALG_HEADERS+= ranges_iterator_concept.h 362ALG_HEADERS+= ranges_lexicographical_compare.h 363ALG_HEADERS+= ranges_lower_bound.h 364ALG_HEADERS+= ranges_make_heap.h 365ALG_HEADERS+= ranges_max.h 366ALG_HEADERS+= ranges_max_element.h 367ALG_HEADERS+= ranges_merge.h 368ALG_HEADERS+= ranges_min.h 369ALG_HEADERS+= ranges_min_element.h 370ALG_HEADERS+= ranges_minmax.h 371ALG_HEADERS+= ranges_minmax_element.h 372ALG_HEADERS+= ranges_mismatch.h 373ALG_HEADERS+= ranges_move.h 374ALG_HEADERS+= ranges_move_backward.h 375ALG_HEADERS+= ranges_next_permutation.h 376ALG_HEADERS+= ranges_none_of.h 377ALG_HEADERS+= ranges_nth_element.h 378ALG_HEADERS+= ranges_partial_sort.h 379ALG_HEADERS+= ranges_partial_sort_copy.h 380ALG_HEADERS+= ranges_partition.h 381ALG_HEADERS+= ranges_partition_copy.h 382ALG_HEADERS+= ranges_partition_point.h 383ALG_HEADERS+= ranges_pop_heap.h 384ALG_HEADERS+= ranges_prev_permutation.h 385ALG_HEADERS+= ranges_push_heap.h 386ALG_HEADERS+= ranges_remove.h 387ALG_HEADERS+= ranges_remove_copy.h 388ALG_HEADERS+= ranges_remove_copy_if.h 389ALG_HEADERS+= ranges_remove_if.h 390ALG_HEADERS+= ranges_replace.h 391ALG_HEADERS+= ranges_replace_copy.h 392ALG_HEADERS+= ranges_replace_copy_if.h 393ALG_HEADERS+= ranges_replace_if.h 394ALG_HEADERS+= ranges_reverse.h 395ALG_HEADERS+= ranges_reverse_copy.h 396ALG_HEADERS+= ranges_rotate.h 397ALG_HEADERS+= ranges_rotate_copy.h 398ALG_HEADERS+= ranges_sample.h 399ALG_HEADERS+= ranges_search.h 400ALG_HEADERS+= ranges_search_n.h 401ALG_HEADERS+= ranges_set_difference.h 402ALG_HEADERS+= ranges_set_intersection.h 403ALG_HEADERS+= ranges_set_symmetric_difference.h 404ALG_HEADERS+= ranges_set_union.h 405ALG_HEADERS+= ranges_shuffle.h 406ALG_HEADERS+= ranges_sort.h 407ALG_HEADERS+= ranges_sort_heap.h 408ALG_HEADERS+= ranges_stable_partition.h 409ALG_HEADERS+= ranges_stable_sort.h 410ALG_HEADERS+= ranges_swap_ranges.h 411ALG_HEADERS+= ranges_transform.h 412ALG_HEADERS+= ranges_unique.h 413ALG_HEADERS+= ranges_unique_copy.h 414ALG_HEADERS+= ranges_upper_bound.h 415ALG_HEADERS+= remove.h 416ALG_HEADERS+= remove_copy.h 417ALG_HEADERS+= remove_copy_if.h 418ALG_HEADERS+= remove_if.h 419ALG_HEADERS+= replace.h 420ALG_HEADERS+= replace_copy.h 421ALG_HEADERS+= replace_copy_if.h 422ALG_HEADERS+= replace_if.h 423ALG_HEADERS+= reverse.h 424ALG_HEADERS+= reverse_copy.h 425ALG_HEADERS+= rotate.h 426ALG_HEADERS+= rotate_copy.h 427ALG_HEADERS+= sample.h 428ALG_HEADERS+= search.h 429ALG_HEADERS+= search_n.h 430ALG_HEADERS+= set_difference.h 431ALG_HEADERS+= set_intersection.h 432ALG_HEADERS+= set_symmetric_difference.h 433ALG_HEADERS+= set_union.h 434ALG_HEADERS+= shift_left.h 435ALG_HEADERS+= shift_right.h 436ALG_HEADERS+= shuffle.h 437ALG_HEADERS+= sift_down.h 438ALG_HEADERS+= sort.h 439ALG_HEADERS+= sort_heap.h 440ALG_HEADERS+= stable_partition.h 441ALG_HEADERS+= stable_sort.h 442ALG_HEADERS+= swap_ranges.h 443ALG_HEADERS+= transform.h 444ALG_HEADERS+= uniform_random_bit_generator_adaptor.h 445ALG_HEADERS+= unique.h 446ALG_HEADERS+= unique_copy.h 447ALG_HEADERS+= unwrap_iter.h 448ALG_HEADERS+= unwrap_range.h 449ALG_HEADERS+= upper_bound.h 450.for hdr in ${ALG_HEADERS} 451ALG+= ${HDRDIR}/__algorithm/${hdr} 452.endfor 453 454INCSGROUPS+= BIT 455BITDIR= ${CXXINCLUDEDIR}/__bit 456BIT_HEADERS+= bit_cast.h 457BIT_HEADERS+= byteswap.h 458.for hdr in ${BIT_HEADERS} 459BIT+= ${HDRDIR}/__bit/${hdr} 460.endfor 461 462INCSGROUPS+= CHC 463CHCDIR= ${CXXINCLUDEDIR}/__charconv 464CHC_HEADERS+= chars_format.h 465CHC_HEADERS+= from_chars_result.h 466CHC_HEADERS+= tables.h 467CHC_HEADERS+= to_chars_base_10.h 468CHC_HEADERS+= to_chars_result.h 469.for hdr in ${CHC_HEADERS} 470CHC+= ${HDRDIR}/__charconv/${hdr} 471.endfor 472 473INCSGROUPS+= CHR 474CHRDIR= ${CXXINCLUDEDIR}/__chrono 475CHR_HEADERS+= calendar.h 476CHR_HEADERS+= convert_to_timespec.h 477CHR_HEADERS+= day.h 478CHR_HEADERS+= duration.h 479CHR_HEADERS+= file_clock.h 480CHR_HEADERS+= hh_mm_ss.h 481CHR_HEADERS+= high_resolution_clock.h 482CHR_HEADERS+= literals.h 483CHR_HEADERS+= month.h 484CHR_HEADERS+= month_weekday.h 485CHR_HEADERS+= monthday.h 486CHR_HEADERS+= steady_clock.h 487CHR_HEADERS+= system_clock.h 488CHR_HEADERS+= time_point.h 489CHR_HEADERS+= weekday.h 490CHR_HEADERS+= year.h 491CHR_HEADERS+= year_month.h 492CHR_HEADERS+= year_month_day.h 493CHR_HEADERS+= year_month_weekday.h 494.for hdr in ${CHR_HEADERS} 495CHR+= ${HDRDIR}/__chrono/${hdr} 496.endfor 497 498INCSGROUPS+= CMP 499CMPDIR= ${CXXINCLUDEDIR}/__compare 500CMP_HEADERS+= common_comparison_category.h 501CMP_HEADERS+= compare_partial_order_fallback.h 502CMP_HEADERS+= compare_strong_order_fallback.h 503CMP_HEADERS+= compare_three_way.h 504CMP_HEADERS+= compare_three_way_result.h 505CMP_HEADERS+= compare_weak_order_fallback.h 506CMP_HEADERS+= is_eq.h 507CMP_HEADERS+= ordering.h 508CMP_HEADERS+= partial_order.h 509CMP_HEADERS+= strong_order.h 510CMP_HEADERS+= synth_three_way.h 511CMP_HEADERS+= three_way_comparable.h 512CMP_HEADERS+= weak_order.h 513.for hdr in ${CMP_HEADERS} 514CMP+= ${HDRDIR}/__compare/${hdr} 515.endfor 516 517INCSGROUPS+= CON 518CONDIR= ${CXXINCLUDEDIR}/__concepts 519CON_HEADERS+= arithmetic.h 520CON_HEADERS+= assignable.h 521CON_HEADERS+= boolean_testable.h 522CON_HEADERS+= class_or_enum.h 523CON_HEADERS+= common_reference_with.h 524CON_HEADERS+= common_with.h 525CON_HEADERS+= constructible.h 526CON_HEADERS+= convertible_to.h 527CON_HEADERS+= copyable.h 528CON_HEADERS+= derived_from.h 529CON_HEADERS+= destructible.h 530CON_HEADERS+= different_from.h 531CON_HEADERS+= equality_comparable.h 532CON_HEADERS+= invocable.h 533CON_HEADERS+= movable.h 534CON_HEADERS+= predicate.h 535CON_HEADERS+= regular.h 536CON_HEADERS+= relation.h 537CON_HEADERS+= same_as.h 538CON_HEADERS+= semiregular.h 539CON_HEADERS+= swappable.h 540CON_HEADERS+= totally_ordered.h 541.for hdr in ${CON_HEADERS} 542CON+= ${HDRDIR}/__concepts/${hdr} 543.endfor 544 545INCSGROUPS+= COR 546CORDIR= ${CXXINCLUDEDIR}/__coroutine 547COR_HEADERS+= coroutine_handle.h 548COR_HEADERS+= coroutine_traits.h 549COR_HEADERS+= noop_coroutine_handle.h 550COR_HEADERS+= trivial_awaitables.h 551.for hdr in ${COR_HEADERS} 552COR+= ${HDRDIR}/__coroutine/${hdr} 553.endfor 554 555INCSGROUPS+= DBG 556DBGDIR= ${CXXINCLUDEDIR}/__debug_utils 557DBG_HEADERS+= randomize_range.h 558.for hdr in ${DBG_HEADERS} 559DBG+= ${HDRDIR}/__debug_utils/${hdr} 560.endfor 561 562INCSGROUPS+= FS 563FSDIR= ${CXXINCLUDEDIR}/__filesystem 564FS_HEADERS+= copy_options.h 565FS_HEADERS+= directory_entry.h 566FS_HEADERS+= directory_iterator.h 567FS_HEADERS+= directory_options.h 568FS_HEADERS+= file_status.h 569FS_HEADERS+= file_time_type.h 570FS_HEADERS+= file_type.h 571FS_HEADERS+= filesystem_error.h 572FS_HEADERS+= operations.h 573FS_HEADERS+= path.h 574FS_HEADERS+= path_iterator.h 575FS_HEADERS+= perm_options.h 576FS_HEADERS+= perms.h 577FS_HEADERS+= recursive_directory_iterator.h 578FS_HEADERS+= space_info.h 579FS_HEADERS+= u8path.h 580.for hdr in ${FS_HEADERS} 581FS+= ${HDRDIR}/__filesystem/${hdr} 582.endfor 583 584INCSGROUPS+= FMT 585FMTDIR= ${CXXINCLUDEDIR}/__format 586FMT_HEADERS+= buffer.h 587FMT_HEADERS+= concepts.h 588FMT_HEADERS+= enable_insertable.h 589FMT_HEADERS+= extended_grapheme_cluster_table.h 590FMT_HEADERS+= format_arg.h 591FMT_HEADERS+= format_arg_store.h 592FMT_HEADERS+= format_args.h 593FMT_HEADERS+= format_context.h 594FMT_HEADERS+= format_error.h 595FMT_HEADERS+= format_fwd.h 596FMT_HEADERS+= format_parse_context.h 597FMT_HEADERS+= format_string.h 598FMT_HEADERS+= format_to_n_result.h 599FMT_HEADERS+= formatter.h 600FMT_HEADERS+= formatter_bool.h 601FMT_HEADERS+= formatter_char.h 602FMT_HEADERS+= formatter_floating_point.h 603FMT_HEADERS+= formatter_integer.h 604FMT_HEADERS+= formatter_integral.h 605FMT_HEADERS+= formatter_output.h 606FMT_HEADERS+= formatter_pointer.h 607FMT_HEADERS+= formatter_string.h 608FMT_HEADERS+= parser_std_format_spec.h 609FMT_HEADERS+= unicode.h 610.for hdr in ${FMT_HEADERS} 611FMT+= ${HDRDIR}/__format/${hdr} 612.endfor 613 614INCSGROUPS+= FUN 615FUNDIR= ${CXXINCLUDEDIR}/__functional 616FUN_HEADERS+= binary_function.h 617FUN_HEADERS+= binary_negate.h 618FUN_HEADERS+= bind.h 619FUN_HEADERS+= bind_back.h 620FUN_HEADERS+= bind_front.h 621FUN_HEADERS+= binder1st.h 622FUN_HEADERS+= binder2nd.h 623FUN_HEADERS+= boyer_moore_searcher.h 624FUN_HEADERS+= compose.h 625FUN_HEADERS+= default_searcher.h 626FUN_HEADERS+= function.h 627FUN_HEADERS+= hash.h 628FUN_HEADERS+= identity.h 629FUN_HEADERS+= invoke.h 630FUN_HEADERS+= is_transparent.h 631FUN_HEADERS+= mem_fn.h 632FUN_HEADERS+= mem_fun_ref.h 633FUN_HEADERS+= not_fn.h 634FUN_HEADERS+= operations.h 635FUN_HEADERS+= perfect_forward.h 636FUN_HEADERS+= pointer_to_binary_function.h 637FUN_HEADERS+= pointer_to_unary_function.h 638FUN_HEADERS+= ranges_operations.h 639FUN_HEADERS+= reference_wrapper.h 640FUN_HEADERS+= unary_function.h 641FUN_HEADERS+= unary_negate.h 642FUN_HEADERS+= unwrap_ref.h 643FUN_HEADERS+= weak_result_type.h 644.for hdr in ${FUN_HEADERS} 645FUN+= ${HDRDIR}/__functional/${hdr} 646.endfor 647 648INCSGROUPS+= FWD 649FWDDIR= ${CXXINCLUDEDIR}/__fwd 650FWD_HEADERS+= span.h 651FWD_HEADERS+= string_view.h 652.for hdr in ${FWD_HEADERS} 653FWD+= ${HDRDIR}/__fwd/${hdr} 654.endfor 655 656INCSGROUPS+= IOS 657IOSDIR= ${CXXINCLUDEDIR}/__ios 658IOS_HEADERS+= fpos.h 659.for hdr in ${IOS_HEADERS} 660IOS+= ${HDRDIR}/__ios/${hdr} 661.endfor 662 663INCSGROUPS+= IT 664ITDIR= ${CXXINCLUDEDIR}/__iterator 665IT_HEADERS+= access.h 666IT_HEADERS+= advance.h 667IT_HEADERS+= back_insert_iterator.h 668IT_HEADERS+= bounded_iter.h 669IT_HEADERS+= common_iterator.h 670IT_HEADERS+= concepts.h 671IT_HEADERS+= counted_iterator.h 672IT_HEADERS+= data.h 673IT_HEADERS+= default_sentinel.h 674IT_HEADERS+= distance.h 675IT_HEADERS+= empty.h 676IT_HEADERS+= erase_if_container.h 677IT_HEADERS+= front_insert_iterator.h 678IT_HEADERS+= incrementable_traits.h 679IT_HEADERS+= indirectly_comparable.h 680IT_HEADERS+= insert_iterator.h 681IT_HEADERS+= istream_iterator.h 682IT_HEADERS+= istreambuf_iterator.h 683IT_HEADERS+= iter_move.h 684IT_HEADERS+= iter_swap.h 685IT_HEADERS+= iterator.h 686IT_HEADERS+= iterator_traits.h 687IT_HEADERS+= mergeable.h 688IT_HEADERS+= move_iterator.h 689IT_HEADERS+= move_sentinel.h 690IT_HEADERS+= next.h 691IT_HEADERS+= ostream_iterator.h 692IT_HEADERS+= ostreambuf_iterator.h 693IT_HEADERS+= permutable.h 694IT_HEADERS+= prev.h 695IT_HEADERS+= projected.h 696IT_HEADERS+= readable_traits.h 697IT_HEADERS+= reverse_access.h 698IT_HEADERS+= reverse_iterator.h 699IT_HEADERS+= size.h 700IT_HEADERS+= sortable.h 701IT_HEADERS+= unreachable_sentinel.h 702IT_HEADERS+= wrap_iter.h 703.for hdr in ${IT_HEADERS} 704IT+= ${HDRDIR}/__iterator/${hdr} 705.endfor 706 707INCSGROUPS+= MEM 708MEMDIR= ${CXXINCLUDEDIR}/__memory 709MEM_HEADERS+= addressof.h 710MEM_HEADERS+= allocate_at_least.h 711MEM_HEADERS+= allocation_guard.h 712MEM_HEADERS+= allocator.h 713MEM_HEADERS+= allocator_arg_t.h 714MEM_HEADERS+= allocator_traits.h 715MEM_HEADERS+= assume_aligned.h 716MEM_HEADERS+= auto_ptr.h 717MEM_HEADERS+= compressed_pair.h 718MEM_HEADERS+= concepts.h 719MEM_HEADERS+= construct_at.h 720MEM_HEADERS+= pointer_traits.h 721MEM_HEADERS+= ranges_construct_at.h 722MEM_HEADERS+= ranges_uninitialized_algorithms.h 723MEM_HEADERS+= raw_storage_iterator.h 724MEM_HEADERS+= shared_ptr.h 725MEM_HEADERS+= swap_allocator.h 726MEM_HEADERS+= temporary_buffer.h 727MEM_HEADERS+= uninitialized_algorithms.h 728MEM_HEADERS+= unique_ptr.h 729MEM_HEADERS+= uses_allocator.h 730MEM_HEADERS+= voidify.h 731.for hdr in ${MEM_HEADERS} 732MEM+= ${HDRDIR}/__memory/${hdr} 733.endfor 734 735INCSGROUPS+= NUM 736NUMDIR= ${CXXINCLUDEDIR}/__numeric 737NUM_HEADERS+= accumulate.h 738NUM_HEADERS+= adjacent_difference.h 739NUM_HEADERS+= exclusive_scan.h 740NUM_HEADERS+= gcd_lcm.h 741NUM_HEADERS+= inclusive_scan.h 742NUM_HEADERS+= inner_product.h 743NUM_HEADERS+= iota.h 744NUM_HEADERS+= midpoint.h 745NUM_HEADERS+= partial_sum.h 746NUM_HEADERS+= reduce.h 747NUM_HEADERS+= transform_exclusive_scan.h 748NUM_HEADERS+= transform_inclusive_scan.h 749NUM_HEADERS+= transform_reduce.h 750.for hdr in ${NUM_HEADERS} 751NUM+= ${HDRDIR}/__numeric/${hdr} 752.endfor 753 754INCSGROUPS+= RND 755RNDDIR= ${CXXINCLUDEDIR}/__random 756RND_HEADERS+= bernoulli_distribution.h 757RND_HEADERS+= binomial_distribution.h 758RND_HEADERS+= cauchy_distribution.h 759RND_HEADERS+= chi_squared_distribution.h 760RND_HEADERS+= clamp_to_integral.h 761RND_HEADERS+= default_random_engine.h 762RND_HEADERS+= discard_block_engine.h 763RND_HEADERS+= discrete_distribution.h 764RND_HEADERS+= exponential_distribution.h 765RND_HEADERS+= extreme_value_distribution.h 766RND_HEADERS+= fisher_f_distribution.h 767RND_HEADERS+= gamma_distribution.h 768RND_HEADERS+= generate_canonical.h 769RND_HEADERS+= geometric_distribution.h 770RND_HEADERS+= independent_bits_engine.h 771RND_HEADERS+= is_seed_sequence.h 772RND_HEADERS+= is_valid.h 773RND_HEADERS+= knuth_b.h 774RND_HEADERS+= linear_congruential_engine.h 775RND_HEADERS+= log2.h 776RND_HEADERS+= lognormal_distribution.h 777RND_HEADERS+= mersenne_twister_engine.h 778RND_HEADERS+= negative_binomial_distribution.h 779RND_HEADERS+= normal_distribution.h 780RND_HEADERS+= piecewise_constant_distribution.h 781RND_HEADERS+= piecewise_linear_distribution.h 782RND_HEADERS+= poisson_distribution.h 783RND_HEADERS+= random_device.h 784RND_HEADERS+= ranlux.h 785RND_HEADERS+= seed_seq.h 786RND_HEADERS+= shuffle_order_engine.h 787RND_HEADERS+= student_t_distribution.h 788RND_HEADERS+= subtract_with_carry_engine.h 789RND_HEADERS+= uniform_int_distribution.h 790RND_HEADERS+= uniform_random_bit_generator.h 791RND_HEADERS+= uniform_real_distribution.h 792RND_HEADERS+= weibull_distribution.h 793.for hdr in ${RND_HEADERS} 794RND+= ${HDRDIR}/__random/${hdr} 795.endfor 796 797INCSGROUPS+= RNG 798RNGDIR= ${CXXINCLUDEDIR}/__ranges 799RNG_HEADERS+= access.h 800RNG_HEADERS+= all.h 801RNG_HEADERS+= common_view.h 802RNG_HEADERS+= concepts.h 803RNG_HEADERS+= copyable_box.h 804RNG_HEADERS+= counted.h 805RNG_HEADERS+= dangling.h 806RNG_HEADERS+= data.h 807RNG_HEADERS+= drop_view.h 808RNG_HEADERS+= empty.h 809RNG_HEADERS+= empty_view.h 810RNG_HEADERS+= enable_borrowed_range.h 811RNG_HEADERS+= enable_view.h 812RNG_HEADERS+= filter_view.h 813RNG_HEADERS+= iota_view.h 814RNG_HEADERS+= join_view.h 815RNG_HEADERS+= lazy_split_view.h 816RNG_HEADERS+= non_propagating_cache.h 817RNG_HEADERS+= owning_view.h 818RNG_HEADERS+= range_adaptor.h 819RNG_HEADERS+= rbegin.h 820RNG_HEADERS+= ref_view.h 821RNG_HEADERS+= rend.h 822RNG_HEADERS+= reverse_view.h 823RNG_HEADERS+= single_view.h 824RNG_HEADERS+= size.h 825RNG_HEADERS+= subrange.h 826RNG_HEADERS+= take_view.h 827RNG_HEADERS+= transform_view.h 828RNG_HEADERS+= view_interface.h 829RNG_HEADERS+= views.h 830RNG_HEADERS+= zip_view.h 831.for hdr in ${RNG_HEADERS} 832RNG+= ${HDRDIR}/__ranges/${hdr} 833.endfor 834 835INCSGROUPS+= STR 836STRDIR= ${CXXINCLUDEDIR}/__string 837STR_HEADERS+= char_traits.h 838STR_HEADERS+= extern_template_lists.h 839.for hdr in ${STR_HEADERS} 840STR+= ${HDRDIR}/__string/${hdr} 841.endfor 842 843INCSGROUPS+= THR 844THRDIR= ${CXXINCLUDEDIR}/__thread 845THR_HEADERS+= poll_with_backoff.h 846THR_HEADERS+= timed_backoff_policy.h 847.for hdr in ${THR_HEADERS} 848THR+= ${HDRDIR}/__thread/${hdr} 849.endfor 850 851INCSGROUPS+= TTR 852TTRDIR= ${CXXINCLUDEDIR}/__type_traits 853TTR_HEADERS+= add_const.h 854TTR_HEADERS+= add_cv.h 855TTR_HEADERS+= add_lvalue_reference.h 856TTR_HEADERS+= add_pointer.h 857TTR_HEADERS+= add_rvalue_reference.h 858TTR_HEADERS+= add_volatile.h 859TTR_HEADERS+= aligned_storage.h 860TTR_HEADERS+= aligned_union.h 861TTR_HEADERS+= alignment_of.h 862TTR_HEADERS+= apply_cv.h 863TTR_HEADERS+= common_reference.h 864TTR_HEADERS+= common_type.h 865TTR_HEADERS+= conditional.h 866TTR_HEADERS+= conjunction.h 867TTR_HEADERS+= copy_cv.h 868TTR_HEADERS+= copy_cvref.h 869TTR_HEADERS+= decay.h 870TTR_HEADERS+= disjunction.h 871TTR_HEADERS+= enable_if.h 872TTR_HEADERS+= extent.h 873TTR_HEADERS+= has_unique_object_representation.h 874TTR_HEADERS+= has_virtual_destructor.h 875TTR_HEADERS+= integral_constant.h 876TTR_HEADERS+= is_abstract.h 877TTR_HEADERS+= is_aggregate.h 878TTR_HEADERS+= is_arithmetic.h 879TTR_HEADERS+= is_array.h 880TTR_HEADERS+= is_assignable.h 881TTR_HEADERS+= is_base_of.h 882TTR_HEADERS+= is_bounded_array.h 883TTR_HEADERS+= is_callable.h 884TTR_HEADERS+= is_class.h 885TTR_HEADERS+= is_compound.h 886TTR_HEADERS+= is_const.h 887TTR_HEADERS+= is_constant_evaluated.h 888TTR_HEADERS+= is_constructible.h 889TTR_HEADERS+= is_convertible.h 890TTR_HEADERS+= is_copy_assignable.h 891TTR_HEADERS+= is_copy_constructible.h 892TTR_HEADERS+= is_core_convertible.h 893TTR_HEADERS+= is_default_constructible.h 894TTR_HEADERS+= is_destructible.h 895TTR_HEADERS+= is_empty.h 896TTR_HEADERS+= is_enum.h 897TTR_HEADERS+= is_final.h 898TTR_HEADERS+= is_floating_point.h 899TTR_HEADERS+= is_function.h 900TTR_HEADERS+= is_fundamental.h 901TTR_HEADERS+= is_integral.h 902TTR_HEADERS+= is_literal_type.h 903TTR_HEADERS+= is_member_function_pointer.h 904TTR_HEADERS+= is_member_object_pointer.h 905TTR_HEADERS+= is_member_pointer.h 906TTR_HEADERS+= is_move_assignable.h 907TTR_HEADERS+= is_move_constructible.h 908TTR_HEADERS+= is_nothrow_assignable.h 909TTR_HEADERS+= is_nothrow_constructible.h 910TTR_HEADERS+= is_nothrow_convertible.h 911TTR_HEADERS+= is_nothrow_copy_assignable.h 912TTR_HEADERS+= is_nothrow_copy_constructible.h 913TTR_HEADERS+= is_nothrow_default_constructible.h 914TTR_HEADERS+= is_nothrow_destructible.h 915TTR_HEADERS+= is_nothrow_move_assignable.h 916TTR_HEADERS+= is_nothrow_move_constructible.h 917TTR_HEADERS+= is_null_pointer.h 918TTR_HEADERS+= is_object.h 919TTR_HEADERS+= is_pod.h 920TTR_HEADERS+= is_pointer.h 921TTR_HEADERS+= is_polymorphic.h 922TTR_HEADERS+= is_primary_template.h 923TTR_HEADERS+= is_reference.h 924TTR_HEADERS+= is_reference_wrapper.h 925TTR_HEADERS+= is_referenceable.h 926TTR_HEADERS+= is_same.h 927TTR_HEADERS+= is_scalar.h 928TTR_HEADERS+= is_scoped_enum.h 929TTR_HEADERS+= is_signed.h 930TTR_HEADERS+= is_signed_integer.h 931TTR_HEADERS+= is_standard_layout.h 932TTR_HEADERS+= is_trivial.h 933TTR_HEADERS+= is_trivially_assignable.h 934TTR_HEADERS+= is_trivially_constructible.h 935TTR_HEADERS+= is_trivially_copy_assignable.h 936TTR_HEADERS+= is_trivially_copy_constructible.h 937TTR_HEADERS+= is_trivially_copyable.h 938TTR_HEADERS+= is_trivially_default_constructible.h 939TTR_HEADERS+= is_trivially_destructible.h 940TTR_HEADERS+= is_trivially_move_assignable.h 941TTR_HEADERS+= is_trivially_move_constructible.h 942TTR_HEADERS+= is_unbounded_array.h 943TTR_HEADERS+= is_union.h 944TTR_HEADERS+= is_unsigned.h 945TTR_HEADERS+= is_unsigned_integer.h 946TTR_HEADERS+= is_valid_expansion.h 947TTR_HEADERS+= is_void.h 948TTR_HEADERS+= is_volatile.h 949TTR_HEADERS+= lazy.h 950TTR_HEADERS+= make_32_64_or_128_bit.h 951TTR_HEADERS+= make_signed.h 952TTR_HEADERS+= make_unsigned.h 953TTR_HEADERS+= nat.h 954TTR_HEADERS+= negation.h 955TTR_HEADERS+= promote.h 956TTR_HEADERS+= rank.h 957TTR_HEADERS+= remove_all_extents.h 958TTR_HEADERS+= remove_const.h 959TTR_HEADERS+= remove_cv.h 960TTR_HEADERS+= remove_cvref.h 961TTR_HEADERS+= remove_extent.h 962TTR_HEADERS+= remove_pointer.h 963TTR_HEADERS+= remove_reference.h 964TTR_HEADERS+= remove_volatile.h 965TTR_HEADERS+= type_identity.h 966TTR_HEADERS+= type_list.h 967TTR_HEADERS+= underlying_type.h 968TTR_HEADERS+= void_t.h 969.for hdr in ${TTR_HEADERS} 970TTR+= ${HDRDIR}/__type_traits/${hdr} 971.endfor 972 973INCSGROUPS+= UTL 974UTLDIR= ${CXXINCLUDEDIR}/__utility 975UTL_HEADERS+= as_const.h 976UTL_HEADERS+= auto_cast.h 977UTL_HEADERS+= cmp.h 978UTL_HEADERS+= declval.h 979UTL_HEADERS+= exchange.h 980UTL_HEADERS+= forward.h 981UTL_HEADERS+= in_place.h 982UTL_HEADERS+= integer_sequence.h 983UTL_HEADERS+= move.h 984UTL_HEADERS+= pair.h 985UTL_HEADERS+= piecewise_construct.h 986UTL_HEADERS+= priority_tag.h 987UTL_HEADERS+= rel_ops.h 988UTL_HEADERS+= swap.h 989UTL_HEADERS+= to_underlying.h 990UTL_HEADERS+= transaction.h 991UTL_HEADERS+= unreachable.h 992.for hdr in ${UTL_HEADERS} 993UTL+= ${HDRDIR}/__utility/${hdr} 994.endfor 995 996INCSGROUPS+= VAR 997VARDIR= ${CXXINCLUDEDIR}/__variant 998VAR_HEADERS+= monostate.h 999.for hdr in ${VAR_HEADERS} 1000VAR+= ${HDRDIR}/__variant/${hdr} 1001.endfor 1002 1003INCSGROUPS+= EXP 1004EXPDIR= ${CXXINCLUDEDIR}/experimental 1005EXP_HEADERS+= __config 1006EXP_HEADERS+= __memory 1007EXP_HEADERS+= algorithm 1008EXP_HEADERS+= coroutine 1009EXP_HEADERS+= deque 1010EXP_HEADERS+= forward_list 1011EXP_HEADERS+= functional 1012EXP_HEADERS+= iterator 1013EXP_HEADERS+= list 1014EXP_HEADERS+= map 1015EXP_HEADERS+= memory_resource 1016EXP_HEADERS+= propagate_const 1017EXP_HEADERS+= regex 1018EXP_HEADERS+= set 1019EXP_HEADERS+= simd 1020EXP_HEADERS+= string 1021EXP_HEADERS+= type_traits 1022EXP_HEADERS+= unordered_map 1023EXP_HEADERS+= unordered_set 1024EXP_HEADERS+= utility 1025EXP_HEADERS+= vector 1026.for hdr in ${EXP_HEADERS} 1027EXP+= ${HDRDIR}/experimental/${hdr} 1028.endfor 1029 1030INCSGROUPS+= EXT 1031EXTDIR= ${CXXINCLUDEDIR}/ext 1032EXT_HEADERS+= __hash 1033EXT_HEADERS+= hash_map 1034EXT_HEADERS+= hash_set 1035.for hdr in ${EXT_HEADERS} 1036EXT+= ${HDRDIR}/ext/${hdr} 1037.endfor 1038 1039.include <bsd.lib.mk> 1040