1# $FreeBSD$ 2# 3# The include file <src.libnames.mk> define library names suitable 4# for INTERNALLIB and PRIVATELIB definition 5 6.if !target(__<bsd.init.mk>__) 7.error src.libnames.mk cannot be included directly. 8.endif 9 10.if !target(__<src.libnames.mk>__) 11__<src.libnames.mk>__: 12 13.include <src.opts.mk> 14 15_PRIVATELIBS= \ 16 atf_c \ 17 atf_cxx \ 18 auditd \ 19 bsdstat \ 20 devdctl \ 21 event1 \ 22 gmock \ 23 gtest \ 24 gmock_main \ 25 gtest_main \ 26 heimipcc \ 27 heimipcs \ 28 ldns \ 29 sqlite3 \ 30 ssh \ 31 ucl \ 32 unbound \ 33 zstd 34 35_INTERNALLIBS= \ 36 amu \ 37 bsnmptools \ 38 c_nossp_pic \ 39 cron \ 40 elftc \ 41 fifolog \ 42 ifconfig \ 43 ipf \ 44 kyua_cli \ 45 kyua_drivers \ 46 kyua_engine \ 47 kyua_model \ 48 kyua_store \ 49 kyua_utils \ 50 lpr \ 51 lua \ 52 lutok \ 53 netbsd \ 54 ntp \ 55 ntpevent \ 56 openbsd \ 57 opts \ 58 parse \ 59 pe \ 60 pmcstat \ 61 sl \ 62 sm \ 63 smdb \ 64 smutil \ 65 telnet \ 66 vers 67 68_LIBRARIES= \ 69 ${_PRIVATELIBS} \ 70 ${_INTERNALLIBS} \ 71 ${LOCAL_LIBRARIES} \ 72 80211 \ 73 9p \ 74 alias \ 75 archive \ 76 asn1 \ 77 avl \ 78 be \ 79 begemot \ 80 bluetooth \ 81 bsdxml \ 82 bsm \ 83 bsnmp \ 84 bz2 \ 85 c \ 86 c_pic \ 87 calendar \ 88 cam \ 89 casper \ 90 cap_dns \ 91 cap_fileargs \ 92 cap_grp \ 93 cap_net \ 94 cap_pwd \ 95 cap_sysctl \ 96 cap_syslog \ 97 com_err \ 98 compiler_rt \ 99 crypt \ 100 crypto \ 101 ctf \ 102 cuse \ 103 cxxrt \ 104 devctl \ 105 devdctl \ 106 devinfo \ 107 devstat \ 108 dialog \ 109 dl \ 110 dpv \ 111 dtrace \ 112 dwarf \ 113 edit \ 114 efivar \ 115 elf \ 116 execinfo \ 117 fetch \ 118 figpar \ 119 geom \ 120 gpio \ 121 gssapi \ 122 gssapi_krb5 \ 123 hdb \ 124 heimbase \ 125 heimntlm \ 126 heimsqlite \ 127 hx509 \ 128 icp \ 129 ipsec \ 130 ipt \ 131 jail \ 132 kadm5clnt \ 133 kadm5srv \ 134 kafs5 \ 135 kdc \ 136 kiconv \ 137 krb5 \ 138 kvm \ 139 l \ 140 lzma \ 141 m \ 142 magic \ 143 md \ 144 memstat \ 145 mp \ 146 mt \ 147 ncurses \ 148 ncursesw \ 149 netgraph \ 150 netmap \ 151 ngatm \ 152 nv \ 153 nvpair \ 154 opencsd \ 155 opie \ 156 pam \ 157 panel \ 158 panelw \ 159 pcap \ 160 pcsclite \ 161 pjdlog \ 162 pmc \ 163 proc \ 164 procstat \ 165 pthread \ 166 radius \ 167 regex \ 168 roken \ 169 rpcsec_gss \ 170 rpcsvc \ 171 rt \ 172 rtld_db \ 173 sbuf \ 174 sdp \ 175 sm \ 176 smb \ 177 spl \ 178 ssl \ 179 ssp_nonshared \ 180 stats \ 181 stdthreads \ 182 supcplusplus \ 183 sysdecode \ 184 tacplus \ 185 termcap \ 186 termcapw \ 187 tpool \ 188 ufs \ 189 ugidfw \ 190 ulog \ 191 umem \ 192 usb \ 193 usbhid \ 194 util \ 195 uutil \ 196 vmmapi \ 197 wind \ 198 wrap \ 199 xo \ 200 y \ 201 ypclnt \ 202 z \ 203 zfs_core \ 204 zfs \ 205 zfsbootenv \ 206 zpool \ 207 zutil 208 209.if ${MK_BLACKLIST} != "no" 210_LIBRARIES+= \ 211 blacklist \ 212 213.endif 214 215.if ${MK_OFED} != "no" 216_LIBRARIES+= \ 217 cxgb4 \ 218 ibcm \ 219 ibmad \ 220 ibnetdisc \ 221 ibumad \ 222 ibverbs \ 223 mlx4 \ 224 mlx5 \ 225 rdmacm \ 226 osmcomp \ 227 opensm \ 228 osmvendor 229.endif 230 231.if ${MK_BEARSSL} == "yes" 232_LIBRARIES+= \ 233 bearssl \ 234 secureboot \ 235 236LIBBEARSSL?= ${LIBBEARSSLDIR}/libbearssl.a 237LIBSECUREBOOT?= ${LIBSECUREBOOTDIR}/libsecureboot.a 238.endif 239 240.if ${MK_VERIEXEC} == "yes" 241_LIBRARIES+= veriexec 242 243LIBVERIEXEC?= ${LIBVERIEXECDIR}/libveriexec.a 244.endif 245 246# Each library's LIBADD needs to be duplicated here for static linkage of 247# 2nd+ order consumers. Auto-generating this would be better. 248_DP_80211= sbuf bsdxml 249_DP_9p= sbuf 250_DP_archive= z bz2 lzma bsdxml zstd 251_DP_zstd= pthread 252.if ${MK_BLACKLIST} != "no" 253_DP_blacklist+= pthread 254.endif 255_DP_crypto= pthread 256.if ${MK_OPENSSL} != "no" 257_DP_archive+= crypto 258.else 259_DP_archive+= md 260.endif 261_DP_sqlite3= pthread 262_DP_ssl= crypto 263_DP_ssh= crypto crypt z 264.if ${MK_LDNS} != "no" 265_DP_ssh+= ldns 266.endif 267_DP_edit= ncursesw 268.if ${MK_OPENSSL} != "no" 269_DP_bsnmp= crypto 270.endif 271_DP_geom= bsdxml sbuf 272_DP_cam= sbuf 273_DP_kvm= elf 274_DP_kyua_cli= kyua_drivers kyua_engine kyua_model kyua_store kyua_utils 275_DP_kyua_drivers= kyua_model kyua_engine kyua_store 276_DP_kyua_engine= lutok kyua_utils 277_DP_kyua_model= lutok 278_DP_kyua_utils= lutok 279_DP_kyua_store= kyua_model kyua_utils sqlite3 280_DP_casper= nv 281_DP_cap_dns= nv 282_DP_cap_fileargs= nv 283_DP_cap_grp= nv 284_DP_cap_pwd= nv 285_DP_cap_sysctl= nv 286_DP_cap_syslog= nv 287.if ${MK_OFED} != "no" 288_DP_pcap= ibverbs mlx5 289.endif 290_DP_pjdlog= util 291_DP_opie= md 292_DP_usb= pthread 293_DP_unbound= ssl crypto pthread 294_DP_rt= pthread 295.if ${MK_OPENSSL} == "no" 296_DP_radius= md 297.else 298_DP_radius= crypto 299.endif 300_DP_rtld_db= elf procstat 301_DP_procstat= kvm util elf 302.if ${MK_CXX} == "yes" 303.if ${MK_LIBCPLUSPLUS} != "no" 304_DP_proc= cxxrt 305.else 306_DP_proc= supcplusplus 307.endif 308.endif 309.if ${MK_CDDL} != "no" 310_DP_proc+= ctf 311.endif 312_DP_proc+= elf procstat rtld_db util 313_DP_mp= crypto 314_DP_memstat= kvm 315_DP_magic= z 316_DP_mt= sbuf bsdxml 317_DP_ldns= ssl crypto 318_DP_lua= m 319_DP_lutok= lua 320.if ${MK_OPENSSL} != "no" 321_DP_fetch= ssl crypto 322.else 323_DP_fetch= md 324.endif 325_DP_execinfo= elf 326_DP_dwarf= elf 327_DP_dpv= dialog figpar util ncursesw 328_DP_dialog= ncursesw m 329_DP_cuse= pthread 330_DP_atf_cxx= atf_c 331_DP_gtest= pthread regex 332_DP_gmock= gtest 333_DP_gmock_main= gmock 334_DP_gtest_main= gtest 335_DP_devstat= kvm 336_DP_pam= radius tacplus opie md util 337.if ${MK_KERBEROS} != "no" 338_DP_pam+= krb5 339.endif 340.if ${MK_OPENSSH} != "no" 341_DP_pam+= ssh 342.endif 343.if ${MK_NIS} != "no" 344_DP_pam+= ypclnt 345.endif 346_DP_roken= crypt 347_DP_kadm5clnt= com_err krb5 roken 348_DP_kadm5srv= com_err hdb krb5 roken 349_DP_heimntlm= crypto com_err krb5 roken 350_DP_hx509= asn1 com_err crypto roken wind 351_DP_hdb= asn1 com_err krb5 roken sqlite3 352_DP_asn1= com_err roken 353_DP_kdc= roken hdb hx509 krb5 heimntlm asn1 crypto 354_DP_wind= com_err roken 355_DP_heimbase= pthread 356_DP_heimipcc= heimbase roken pthread 357_DP_heimipcs= heimbase roken pthread 358_DP_kafs5= asn1 krb5 roken 359_DP_krb5+= asn1 com_err crypt crypto hx509 roken wind heimbase heimipcc 360_DP_gssapi_krb5+= gssapi krb5 crypto roken asn1 com_err 361_DP_lzma= md pthread 362_DP_ucl= m 363_DP_vmmapi= util 364_DP_opencsd= cxxrt 365_DP_ctf= spl z 366_DP_dtrace= ctf elf proc pthread rtld_db 367_DP_xo= util 368_DP_ztest= geom m nvpair umem zpool pthread avl zfs_core spl zutil zfs uutil icp 369# The libc dependencies are not strictly needed but are defined to make the 370# assert happy. 371_DP_c= compiler_rt 372.if ${MK_SSP} != "no" && \ 373 (${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH:Mpower*} != "") 374_DP_c+= ssp_nonshared 375.endif 376_DP_stats= sbuf pthread 377_DP_stdthreads= pthread 378_DP_tacplus= md 379_DP_panel= ncurses 380_DP_panelw= ncursesw 381_DP_rpcsec_gss= gssapi 382_DP_smb= kiconv 383_DP_ulog= md 384_DP_fifolog= z 385_DP_ipf= kvm 386_DP_tpool= spl 387_DP_uutil= avl spl 388_DP_zfs= md pthread umem util uutil m avl bsdxml crypto geom nvpair \ 389 z zfs_core zutil 390_DP_zfsbootenv= zfs nvpair 391_DP_zfs_core= nvpair 392_DP_zpool= md pthread z icp spl nvpair avl umem 393_DP_zutil= avl tpool 394_DP_be= zfs spl nvpair zfsbootenv 395_DP_netmap= 396_DP_ifconfig= m 397 398# OFED support 399.if ${MK_OFED} != "no" 400_DP_cxgb4= ibverbs pthread 401_DP_ibcm= ibverbs 402_DP_ibmad= ibumad 403_DP_ibnetdisc= osmcomp ibmad ibumad 404_DP_ibumad= 405_DP_ibverbs= 406_DP_mlx4= ibverbs pthread 407_DP_mlx5= ibverbs pthread 408_DP_rdmacm= ibverbs 409_DP_osmcomp= pthread 410_DP_opensm= pthread 411_DP_osmvendor= ibumad pthread 412.endif 413 414# Define special cases 415LDADD_supcplusplus= -lsupc++ 416LIBATF_C= ${LIBDESTDIR}${LIBDIR_BASE}/libprivateatf-c.a 417LIBATF_CXX= ${LIBDESTDIR}${LIBDIR_BASE}/libprivateatf-c++.a 418LDADD_atf_c= -lprivateatf-c 419LDADD_atf_cxx= -lprivateatf-c++ 420 421LIBGMOCK= ${LIBDESTDIR}${LIBDIR_BASE}/libprivategmock.a 422LIBGMOCK_MAIN= ${LIBDESTDIR}${LIBDIR_BASE}/libprivategmock_main.a 423LIBGTEST= ${LIBDESTDIR}${LIBDIR_BASE}/libprivategtest.a 424LIBGTEST_MAIN= ${LIBDESTDIR}${LIBDIR_BASE}/libprivategtest_main.a 425LDADD_gmock= -lprivategmock 426LDADD_gtest= -lprivategtest 427LDADD_gmock_main= -lprivategmock_main 428LDADD_gtest_main= -lprivategtest_main 429 430.for _l in ${_PRIVATELIBS} 431LIB${_l:tu}?= ${LIBDESTDIR}${LIBDIR_BASE}/libprivate${_l}.a 432.endfor 433 434.if ${MK_PIE} != "no" 435PIE_SUFFIX= _pie 436.endif 437 438.for _l in ${_LIBRARIES} 439.if ${_INTERNALLIBS:M${_l}} || !defined(SYSROOT) 440LDADD_${_l}_L+= -L${LIB${_l:tu}DIR} 441.endif 442DPADD_${_l}?= ${LIB${_l:tu}} 443.if ${_PRIVATELIBS:M${_l}} 444LDADD_${_l}?= -lprivate${_l} 445.elif ${_INTERNALLIBS:M${_l}} 446LDADD_${_l}?= ${LDADD_${_l}_L} -l${_l:S/${PIE_SUFFIX}//}${PIE_SUFFIX} 447.else 448LDADD_${_l}?= ${LDADD_${_l}_L} -l${_l} 449.endif 450# Add in all dependencies for static linkage. 451.if defined(_DP_${_l}) && (${_INTERNALLIBS:M${_l}} || \ 452 (defined(NO_SHARED) && ${NO_SHARED:tl} != "no")) 453.for _d in ${_DP_${_l}} 454DPADD_${_l}+= ${DPADD_${_d}} 455LDADD_${_l}+= ${LDADD_${_d}} 456.endfor 457.endif 458.endfor 459 460# These are special cases where the library is broken and anything that uses 461# it needs to add more dependencies. Broken usually means that it has a 462# cyclic dependency and cannot link its own dependencies. This is bad, please 463# fix the library instead. 464# Unless the library itself is broken then the proper place to define 465# dependencies is _DP_* above. 466 467# libatf-c++ exposes libatf-c abi hence we need to explicit link to atf_c for 468# atf_cxx 469DPADD_atf_cxx+= ${DPADD_atf_c} 470LDADD_atf_cxx+= ${LDADD_atf_c} 471 472DPADD_gmock+= ${DPADD_gtest} 473LDADD_gmock+= ${LDADD_gtest} 474 475DPADD_gmock_main+= ${DPADD_gmock} 476LDADD_gmock_main+= ${LDADD_gmock} 477 478DPADD_gtest_main+= ${DPADD_gtest} 479LDADD_gtest_main+= ${LDADD_gtest} 480 481# Detect LDADD/DPADD that should be LIBADD, before modifying LDADD here. 482_BADLDADD= 483.for _l in ${LDADD:M-l*:N-l*/*:C,^-l,,} 484.if ${_LIBRARIES:M${_l}} && !${_PRIVATELIBS:M${_l}} 485_BADLDADD+= ${_l} 486.endif 487.endfor 488.if !empty(_BADLDADD) 489.error ${.CURDIR}: These libraries should be LIBADD+=foo rather than DPADD/LDADD+=-lfoo: ${_BADLDADD} 490.endif 491 492.for _l in ${LIBADD} 493DPADD+= ${DPADD_${_l}} 494LDADD+= ${LDADD_${_l}} 495.endfor 496 497_LIB_OBJTOP?= ${OBJTOP} 498# INTERNALLIB definitions. 499LIBELFTCDIR= ${_LIB_OBJTOP}/lib/libelftc 500LIBELFTC?= ${LIBELFTCDIR}/libelftc${PIE_SUFFIX}.a 501 502LIBKYUA_CLIDIR= ${_LIB_OBJTOP}/lib/kyua/cli 503LIBKYUA_CLI?= ${LIBKYUA_CLIDIR}/libkyua_cli${PIE_SUFFIX}.a 504 505LIBKYUA_DRIVERSDIR= ${_LIB_OBJTOP}/lib/kyua/drivers 506LIBKYUA_DRIVERS?= ${LIBKYUA_DRIVERSDIR}/libkyua_drivers${PIE_SUFFIX}.a 507 508LIBKYUA_ENGINEDIR= ${_LIB_OBJTOP}/lib/kyua/engine 509LIBKYUA_ENGINE?= ${LIBKYUA_ENGINEDIR}/libkyua_engine${PIE_SUFFIX}.a 510 511LIBKYUA_MODELDIR= ${_LIB_OBJTOP}/lib/kyua/model 512LIBKYUA_MODEL?= ${LIBKYUA_MODELDIR}/libkyua_model${PIE_SUFFIX}.a 513 514LIBKYUA_STOREDIR= ${_LIB_OBJTOP}/lib/kyua/store 515LIBKYUA_STORE?= ${LIBKYUA_STOREDIR}/libkyua_store${PIE_SUFFIX}.a 516 517LIBKYUA_UTILSDIR= ${_LIB_OBJTOP}/lib/kyua/utils 518LIBKYUA_UTILS?= ${LIBKYUA_UTILSDIR}/libkyua_utils${PIE_SUFFIX}.a 519 520LIBLUADIR= ${_LIB_OBJTOP}/lib/liblua 521LIBLUA?= ${LIBLUADIR}/liblua${PIE_SUFFIX}.a 522 523LIBLUTOKDIR= ${_LIB_OBJTOP}/lib/liblutok 524LIBLUTOK?= ${LIBLUTOKDIR}/liblutok${PIE_SUFFIX}.a 525 526LIBPEDIR= ${_LIB_OBJTOP}/lib/libpe 527LIBPE?= ${LIBPEDIR}/libpe${PIE_SUFFIX}.a 528 529LIBOPENBSDDIR= ${_LIB_OBJTOP}/lib/libopenbsd 530LIBOPENBSD?= ${LIBOPENBSDDIR}/libopenbsd${PIE_SUFFIX}.a 531 532LIBSMDIR= ${_LIB_OBJTOP}/lib/libsm 533LIBSM?= ${LIBSMDIR}/libsm${PIE_SUFFIX}.a 534 535LIBSMDBDIR= ${_LIB_OBJTOP}/lib/libsmdb 536LIBSMDB?= ${LIBSMDBDIR}/libsmdb${PIE_SUFFIX}.a 537 538LIBSMUTILDIR= ${_LIB_OBJTOP}/lib/libsmutil 539LIBSMUTIL?= ${LIBSMUTILDIR}/libsmutil${PIE_SUFFIX}.a 540 541LIBNETBSDDIR?= ${_LIB_OBJTOP}/lib/libnetbsd 542LIBNETBSD?= ${LIBNETBSDDIR}/libnetbsd${PIE_SUFFIX}.a 543 544LIBVERSDIR?= ${_LIB_OBJTOP}/kerberos5/lib/libvers 545LIBVERS?= ${LIBVERSDIR}/libvers${PIE_SUFFIX}.a 546 547LIBSLDIR= ${_LIB_OBJTOP}/kerberos5/lib/libsl 548LIBSL?= ${LIBSLDIR}/libsl${PIE_SUFFIX}.a 549 550LIBIFCONFIGDIR= ${_LIB_OBJTOP}/lib/libifconfig 551LIBIFCONFIG?= ${LIBIFCONFIGDIR}/libifconfig${PIE_SUFFIX}.a 552 553LIBIPFDIR= ${_LIB_OBJTOP}/sbin/ipf/libipf 554LIBIPF?= ${LIBIPFDIR}/libipf${PIE_SUFFIX}.a 555 556LIBTELNETDIR= ${_LIB_OBJTOP}/lib/libtelnet 557LIBTELNET?= ${LIBTELNETDIR}/libtelnet${PIE_SUFFIX}.a 558 559LIBCRONDIR= ${_LIB_OBJTOP}/usr.sbin/cron/lib 560LIBCRON?= ${LIBCRONDIR}/libcron${PIE_SUFFIX}.a 561 562LIBNTPDIR= ${_LIB_OBJTOP}/usr.sbin/ntp/libntp 563LIBNTP?= ${LIBNTPDIR}/libntp${PIE_SUFFIX}.a 564 565LIBNTPEVENTDIR= ${_LIB_OBJTOP}/usr.sbin/ntp/libntpevent 566LIBNTPEVENT?= ${LIBNTPEVENTDIR}/libntpevent${PIE_SUFFIX}.a 567 568LIBOPTSDIR= ${_LIB_OBJTOP}/usr.sbin/ntp/libopts 569LIBOPTS?= ${LIBOPTSDIR}/libopts${PIE_SUFFIX}.a 570 571LIBPARSEDIR= ${_LIB_OBJTOP}/usr.sbin/ntp/libparse 572LIBPARSE?= ${LIBPARSEDIR}/libparse${PIE_SUFFIX}.a 573 574LIBLPRDIR= ${_LIB_OBJTOP}/usr.sbin/lpr/common_source 575LIBLPR?= ${LIBLPRDIR}/liblpr${PIE_SUFFIX}.a 576 577LIBFIFOLOGDIR= ${_LIB_OBJTOP}/usr.sbin/fifolog/lib 578LIBFIFOLOG?= ${LIBFIFOLOGDIR}/libfifolog${PIE_SUFFIX}.a 579 580LIBBSNMPTOOLSDIR= ${_LIB_OBJTOP}/usr.sbin/bsnmpd/tools/libbsnmptools 581LIBBSNMPTOOLS?= ${LIBBSNMPTOOLSDIR}/libbsnmptools${PIE_SUFFIX}.a 582 583LIBAMUDIR= ${_LIB_OBJTOP}/usr.sbin/amd/libamu 584LIBAMU?= ${LIBAMUDIR}/libamu${PIE_SUFFIX}.a 585 586LIBBE?= ${LIBBEDIR}/libbe${PIE_SUFFIX}.a 587 588LIBPMCSTATDIR= ${_LIB_OBJTOP}/lib/libpmcstat 589LIBPMCSTAT?= ${LIBPMCSTATDIR}/libpmcstat${PIE_SUFFIX}.a 590 591LIBC_NOSSP_PICDIR= ${_LIB_OBJTOP}/lib/libc 592LIBC_NOSSP_PIC?= ${LIBC_NOSSP_PICDIR}/libc_nossp_pic.a 593 594# Define a directory for each library. This is useful for adding -L in when 595# not using a --sysroot or for meta mode bootstrapping when there is no 596# Makefile.depend. These are sorted by directory. 597LIBAVLDIR= ${OBJTOP}/cddl/lib/libavl 598LIBCTFDIR= ${OBJTOP}/cddl/lib/libctf 599LIBDTRACEDIR= ${OBJTOP}/cddl/lib/libdtrace 600LIBICPDIR= ${OBJTOP}/cddl/lib/libicp 601LIBNVPAIRDIR= ${OBJTOP}/cddl/lib/libnvpair 602LIBUMEMDIR= ${OBJTOP}/cddl/lib/libumem 603LIBUUTILDIR= ${OBJTOP}/cddl/lib/libuutil 604LIBZFSDIR= ${OBJTOP}/cddl/lib/libzfs 605LIBZFS_COREDIR= ${OBJTOP}/cddl/lib/libzfs_core 606LIBZFSBOOTENVDIR= ${OBJTOP}/cddl/lib/libzfsbootenv 607LIBZPOOLDIR= ${OBJTOP}/cddl/lib/libzpool 608LIBZUTILDIR= ${OBJTOP}/cddl/lib/libzutil 609LIBTPOOLDIR= ${OBJTOP}/cddl/lib/libtpool 610 611# OFED support 612LIBCXGB4DIR= ${OBJTOP}/lib/ofed/libcxgb4 613LIBIBCMDIR= ${OBJTOP}/lib/ofed/libibcm 614LIBIBMADDIR= ${OBJTOP}/lib/ofed/libibmad 615LIBIBNETDISCDIR=${OBJTOP}/lib/ofed/libibnetdisc 616LIBIBUMADDIR= ${OBJTOP}/lib/ofed/libibumad 617LIBIBVERBSDIR= ${OBJTOP}/lib/ofed/libibverbs 618LIBMLX4DIR= ${OBJTOP}/lib/ofed/libmlx4 619LIBMLX5DIR= ${OBJTOP}/lib/ofed/libmlx5 620LIBRDMACMDIR= ${OBJTOP}/lib/ofed/librdmacm 621LIBOSMCOMPDIR= ${OBJTOP}/lib/ofed/complib 622LIBOPENSMDIR= ${OBJTOP}/lib/ofed/libopensm 623LIBOSMVENDORDIR=${OBJTOP}/lib/ofed/libvendor 624 625LIBDIALOGDIR= ${OBJTOP}/gnu/lib/libdialog 626LIBSSPDIR= ${OBJTOP}/lib/libssp 627LIBSSP_NONSHAREDDIR= ${OBJTOP}/lib/libssp_nonshared 628LIBASN1DIR= ${OBJTOP}/kerberos5/lib/libasn1 629LIBGSSAPI_KRB5DIR= ${OBJTOP}/kerberos5/lib/libgssapi_krb5 630LIBGSSAPI_NTLMDIR= ${OBJTOP}/kerberos5/lib/libgssapi_ntlm 631LIBGSSAPI_SPNEGODIR= ${OBJTOP}/kerberos5/lib/libgssapi_spnego 632LIBHDBDIR= ${OBJTOP}/kerberos5/lib/libhdb 633LIBHEIMBASEDIR= ${OBJTOP}/kerberos5/lib/libheimbase 634LIBHEIMIPCCDIR= ${OBJTOP}/kerberos5/lib/libheimipcc 635LIBHEIMIPCSDIR= ${OBJTOP}/kerberos5/lib/libheimipcs 636LIBHEIMNTLMDIR= ${OBJTOP}/kerberos5/lib/libheimntlm 637LIBHX509DIR= ${OBJTOP}/kerberos5/lib/libhx509 638LIBKADM5CLNTDIR= ${OBJTOP}/kerberos5/lib/libkadm5clnt 639LIBKADM5SRVDIR= ${OBJTOP}/kerberos5/lib/libkadm5srv 640LIBKAFS5DIR= ${OBJTOP}/kerberos5/lib/libkafs5 641LIBKDCDIR= ${OBJTOP}/kerberos5/lib/libkdc 642LIBKRB5DIR= ${OBJTOP}/kerberos5/lib/libkrb5 643LIBROKENDIR= ${OBJTOP}/kerberos5/lib/libroken 644LIBWINDDIR= ${OBJTOP}/kerberos5/lib/libwind 645LIBATF_CDIR= ${OBJTOP}/lib/atf/libatf-c 646LIBATF_CXXDIR= ${OBJTOP}/lib/atf/libatf-c++ 647LIBGMOCKDIR= ${OBJTOP}/lib/googletest/gmock 648LIBGMOCK_MAINDIR= ${OBJTOP}/lib/googletest/gmock_main 649LIBGTESTDIR= ${OBJTOP}/lib/googletest/gtest 650LIBGTEST_MAINDIR= ${OBJTOP}/lib/googletest/gtest_main 651LIBALIASDIR= ${OBJTOP}/lib/libalias/libalias 652LIBBLACKLISTDIR= ${OBJTOP}/lib/libblacklist 653LIBBLOCKSRUNTIMEDIR= ${OBJTOP}/lib/libblocksruntime 654LIBBSNMPDIR= ${OBJTOP}/lib/libbsnmp/libbsnmp 655LIBCASPERDIR= ${OBJTOP}/lib/libcasper/libcasper 656LIBCAP_DNSDIR= ${OBJTOP}/lib/libcasper/services/cap_dns 657LIBCAP_GRPDIR= ${OBJTOP}/lib/libcasper/services/cap_grp 658LIBCAP_NETDIR= ${OBJTOP}/lib/libcasper/services/cap_net 659LIBCAP_PWDDIR= ${OBJTOP}/lib/libcasper/services/cap_pwd 660LIBCAP_SYSCTLDIR= ${OBJTOP}/lib/libcasper/services/cap_sysctl 661LIBCAP_SYSLOGDIR= ${OBJTOP}/lib/libcasper/services/cap_syslog 662LIBBSDXMLDIR= ${OBJTOP}/lib/libexpat 663LIBKVMDIR= ${OBJTOP}/lib/libkvm 664LIBPTHREADDIR= ${OBJTOP}/lib/libthr 665LIBMDIR= ${OBJTOP}/lib/msun 666LIBFORMDIR= ${OBJTOP}/lib/ncurses/form 667LIBFORMLIBWDIR= ${OBJTOP}/lib/ncurses/formw 668LIBMENUDIR= ${OBJTOP}/lib/ncurses/menu 669LIBMENULIBWDIR= ${OBJTOP}/lib/ncurses/menuw 670LIBNCURSESDIR= ${OBJTOP}/lib/ncurses/ncurses 671LIBNCURSESWDIR= ${OBJTOP}/lib/ncurses/ncursesw 672LIBPANELDIR= ${OBJTOP}/lib/ncurses/panel 673LIBPANELWDIR= ${OBJTOP}/lib/ncurses/panelw 674LIBCRYPTODIR= ${OBJTOP}/secure/lib/libcrypto 675LIBSPLDIR= ${OBJTOP}/cddl/lib/libspl 676LIBSSHDIR= ${OBJTOP}/secure/lib/libssh 677LIBSSLDIR= ${OBJTOP}/secure/lib/libssl 678LIBTEKENDIR= ${OBJTOP}/sys/teken/libteken 679LIBEGACYDIR= ${OBJTOP}/tools/build 680LIBLNDIR= ${OBJTOP}/usr.bin/lex/lib 681 682LIBTERMCAPDIR= ${LIBNCURSESDIR} 683LIBTERMCAPWDIR= ${LIBNCURSESWDIR} 684 685# Default other library directories to lib/libNAME. 686.for lib in ${_LIBRARIES} 687LIB${lib:tu}DIR?= ${OBJTOP}/lib/lib${lib} 688.endfor 689 690# Validate that listed LIBADD are valid. 691.for _l in ${LIBADD} 692.if empty(_LIBRARIES:M${_l}) 693_BADLIBADD+= ${_l} 694.endif 695.endfor 696.if !empty(_BADLIBADD) 697.error ${.CURDIR}: Invalid LIBADD used which may need to be added to ${_this:T}: ${_BADLIBADD} 698.endif 699 700# Sanity check that libraries are defined here properly when building them. 701.if defined(LIB) && ${_LIBRARIES:M${LIB}} != "" 702.if !empty(LIBADD) && \ 703 (!defined(_DP_${LIB}) || ${LIBADD:O:u} != ${_DP_${LIB}:O:u}) 704.error ${.CURDIR}: Missing or incorrect _DP_${LIB} entry in ${_this:T}. Should match LIBADD for ${LIB} ('${LIBADD}' vs '${_DP_${LIB}}') 705.endif 706# Note that OBJTOP is not yet defined here but for the purpose of the check 707# it is fine as it resolves to the SRC directory. 708.if !defined(LIB${LIB:tu}DIR) || !exists(${SRCTOP}/${LIB${LIB:tu}DIR:S,^${OBJTOP}/,,}) 709.error ${.CURDIR}: Missing or incorrect value for LIB${LIB:tu}DIR in ${_this:T}: ${LIB${LIB:tu}DIR:S,^${OBJTOP}/,,} 710.endif 711.if ${_INTERNALLIBS:M${LIB}} != "" && !defined(LIB${LIB:tu}) 712.error ${.CURDIR}: Missing value for LIB${LIB:tu} in ${_this:T}. Likely should be: LIB${LIB:tu}?= $${LIB${LIB:tu}DIR}/lib${LIB}.a 713.endif 714.endif 715 716.endif # !target(__<src.libnames.mk>__) 717