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