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