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