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 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_archive= z bz2 lzma bsdxml zstd 250_DP_zstd= pthread 251.if ${MK_BLACKLIST} != "no" 252_DP_blacklist+= pthread 253.endif 254_DP_crypto= pthread 255.if ${MK_OPENSSL} != "no" 256_DP_archive+= crypto 257.else 258_DP_archive+= md 259.endif 260_DP_sqlite3= pthread 261_DP_ssl= crypto 262_DP_ssh= crypto crypt z 263.if ${MK_LDNS} != "no" 264_DP_ssh+= ldns 265.endif 266_DP_edit= ncursesw 267.if ${MK_OPENSSL} != "no" 268_DP_bsnmp= crypto 269.endif 270_DP_geom= bsdxml sbuf 271_DP_cam= sbuf 272_DP_kvm= elf 273_DP_kyua_cli= kyua_drivers kyua_engine kyua_model kyua_store kyua_utils 274_DP_kyua_drivers= kyua_model kyua_engine kyua_store 275_DP_kyua_engine= lutok kyua_utils 276_DP_kyua_model= lutok 277_DP_kyua_utils= lutok 278_DP_kyua_store= kyua_model kyua_utils sqlite3 279_DP_casper= nv 280_DP_cap_dns= nv 281_DP_cap_fileargs= nv 282_DP_cap_grp= nv 283_DP_cap_pwd= nv 284_DP_cap_sysctl= nv 285_DP_cap_syslog= nv 286.if ${MK_OFED} != "no" 287_DP_pcap= ibverbs mlx5 288.endif 289_DP_pjdlog= util 290_DP_opie= md 291_DP_usb= pthread 292_DP_unbound= ssl crypto pthread 293_DP_rt= pthread 294.if ${MK_OPENSSL} == "no" 295_DP_radius= md 296.else 297_DP_radius= crypto 298.endif 299_DP_rtld_db= elf procstat 300_DP_procstat= kvm util elf 301.if ${MK_CXX} == "yes" 302.if ${MK_LIBCPLUSPLUS} != "no" 303_DP_proc= cxxrt 304.else 305_DP_proc= supcplusplus 306.endif 307.endif 308.if ${MK_CDDL} != "no" 309_DP_proc+= ctf 310.endif 311_DP_proc+= elf procstat rtld_db util 312_DP_mp= crypto 313_DP_memstat= kvm 314_DP_magic= z 315_DP_mt= sbuf bsdxml 316_DP_ldns= ssl crypto 317_DP_lua= m 318_DP_lutok= lua 319.if ${MK_OPENSSL} != "no" 320_DP_fetch= ssl crypto 321.else 322_DP_fetch= md 323.endif 324_DP_execinfo= elf 325_DP_dwarf= elf 326_DP_dpv= dialog figpar util ncursesw 327_DP_dialog= ncursesw m 328_DP_cuse= pthread 329_DP_atf_cxx= atf_c 330_DP_gtest= pthread regex 331_DP_gmock= gtest 332_DP_gmock_main= gmock 333_DP_gtest_main= gtest 334_DP_devstat= kvm 335_DP_pam= radius tacplus opie md util 336.if ${MK_KERBEROS} != "no" 337_DP_pam+= krb5 338.endif 339.if ${MK_OPENSSH} != "no" 340_DP_pam+= ssh 341.endif 342.if ${MK_NIS} != "no" 343_DP_pam+= ypclnt 344.endif 345_DP_roken= crypt 346_DP_kadm5clnt= com_err krb5 roken 347_DP_kadm5srv= com_err hdb krb5 roken 348_DP_heimntlm= crypto com_err krb5 roken 349_DP_hx509= asn1 com_err crypto roken wind 350_DP_hdb= asn1 com_err krb5 roken sqlite3 351_DP_asn1= com_err roken 352_DP_kdc= roken hdb hx509 krb5 heimntlm asn1 crypto 353_DP_wind= com_err roken 354_DP_heimbase= pthread 355_DP_heimipcc= heimbase roken pthread 356_DP_heimipcs= heimbase roken pthread 357_DP_kafs5= asn1 krb5 roken 358_DP_krb5+= asn1 com_err crypt crypto hx509 roken wind heimbase heimipcc 359_DP_gssapi_krb5+= gssapi krb5 crypto roken asn1 com_err 360_DP_lzma= md pthread 361_DP_ucl= m 362_DP_vmmapi= util 363_DP_opencsd= cxxrt 364_DP_ctf= spl z 365_DP_dtrace= ctf elf proc pthread rtld_db 366_DP_xo= util 367_DP_ztest= geom m nvpair umem zpool pthread avl zfs_core spl zutil zfs uutil icp 368# The libc dependencies are not strictly needed but are defined to make the 369# assert happy. 370_DP_c= compiler_rt 371.if ${MK_SSP} != "no" && \ 372 (${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH:Mpower*} != "") 373_DP_c+= ssp_nonshared 374.endif 375_DP_stats= sbuf pthread 376_DP_stdthreads= pthread 377_DP_tacplus= md 378_DP_panel= ncurses 379_DP_panelw= ncursesw 380_DP_rpcsec_gss= gssapi 381_DP_smb= kiconv 382_DP_ulog= md 383_DP_fifolog= z 384_DP_ipf= kvm 385_DP_tpool= spl 386_DP_uutil= avl spl 387_DP_zfs= md pthread umem util uutil m avl bsdxml crypto geom nvpair \ 388 z zfs_core zutil 389_DP_zfsbootenv= zfs nvpair 390_DP_zfs_core= nvpair 391_DP_zpool= md pthread z icp spl nvpair avl umem 392_DP_zutil= avl tpool 393_DP_be= zfs spl nvpair zfsbootenv 394_DP_netmap= 395_DP_ifconfig= m 396 397# OFED support 398.if ${MK_OFED} != "no" 399_DP_cxgb4= ibverbs pthread 400_DP_ibcm= ibverbs 401_DP_ibmad= ibumad 402_DP_ibnetdisc= osmcomp ibmad ibumad 403_DP_ibumad= 404_DP_ibverbs= 405_DP_mlx4= ibverbs pthread 406_DP_mlx5= ibverbs pthread 407_DP_rdmacm= ibverbs 408_DP_osmcomp= pthread 409_DP_opensm= pthread 410_DP_osmvendor= ibumad pthread 411.endif 412 413# Define special cases 414LDADD_supcplusplus= -lsupc++ 415LIBATF_C= ${LIBDESTDIR}${LIBDIR_BASE}/libprivateatf-c.a 416LIBATF_CXX= ${LIBDESTDIR}${LIBDIR_BASE}/libprivateatf-c++.a 417LDADD_atf_c= -lprivateatf-c 418LDADD_atf_cxx= -lprivateatf-c++ 419 420LIBGMOCK= ${LIBDESTDIR}${LIBDIR_BASE}/libprivategmock.a 421LIBGMOCK_MAIN= ${LIBDESTDIR}${LIBDIR_BASE}/libprivategmock_main.a 422LIBGTEST= ${LIBDESTDIR}${LIBDIR_BASE}/libprivategtest.a 423LIBGTEST_MAIN= ${LIBDESTDIR}${LIBDIR_BASE}/libprivategtest_main.a 424LDADD_gmock= -lprivategmock 425LDADD_gtest= -lprivategtest 426LDADD_gmock_main= -lprivategmock_main 427LDADD_gtest_main= -lprivategtest_main 428 429.for _l in ${_PRIVATELIBS} 430LIB${_l:tu}?= ${LIBDESTDIR}${LIBDIR_BASE}/libprivate${_l}.a 431.endfor 432 433.if ${MK_PIE} != "no" 434PIE_SUFFIX= _pie 435.endif 436 437.for _l in ${_LIBRARIES} 438.if ${_INTERNALLIBS:M${_l}} || !defined(SYSROOT) 439LDADD_${_l}_L+= -L${LIB${_l:tu}DIR} 440.endif 441DPADD_${_l}?= ${LIB${_l:tu}} 442.if ${_PRIVATELIBS:M${_l}} 443LDADD_${_l}?= -lprivate${_l} 444.elif ${_INTERNALLIBS:M${_l}} 445LDADD_${_l}?= ${LDADD_${_l}_L} -l${_l:S/${PIE_SUFFIX}//}${PIE_SUFFIX} 446.else 447LDADD_${_l}?= ${LDADD_${_l}_L} -l${_l} 448.endif 449# Add in all dependencies for static linkage. 450.if defined(_DP_${_l}) && (${_INTERNALLIBS:M${_l}} || \ 451 (defined(NO_SHARED) && ${NO_SHARED:tl} != "no")) 452.for _d in ${_DP_${_l}} 453DPADD_${_l}+= ${DPADD_${_d}} 454LDADD_${_l}+= ${LDADD_${_d}} 455.endfor 456.endif 457.endfor 458 459# These are special cases where the library is broken and anything that uses 460# it needs to add more dependencies. Broken usually means that it has a 461# cyclic dependency and cannot link its own dependencies. This is bad, please 462# fix the library instead. 463# Unless the library itself is broken then the proper place to define 464# dependencies is _DP_* above. 465 466# libatf-c++ exposes libatf-c abi hence we need to explicit link to atf_c for 467# atf_cxx 468DPADD_atf_cxx+= ${DPADD_atf_c} 469LDADD_atf_cxx+= ${LDADD_atf_c} 470 471DPADD_gmock+= ${DPADD_gtest} 472LDADD_gmock+= ${LDADD_gtest} 473 474DPADD_gmock_main+= ${DPADD_gmock} 475LDADD_gmock_main+= ${LDADD_gmock} 476 477DPADD_gtest_main+= ${DPADD_gtest} 478LDADD_gtest_main+= ${LDADD_gtest} 479 480# Detect LDADD/DPADD that should be LIBADD, before modifying LDADD here. 481_BADLDADD= 482.for _l in ${LDADD:M-l*:N-l*/*:C,^-l,,} 483.if ${_LIBRARIES:M${_l}} && !${_PRIVATELIBS:M${_l}} 484_BADLDADD+= ${_l} 485.endif 486.endfor 487.if !empty(_BADLDADD) 488.error ${.CURDIR}: These libraries should be LIBADD+=foo rather than DPADD/LDADD+=-lfoo: ${_BADLDADD} 489.endif 490 491.for _l in ${LIBADD} 492DPADD+= ${DPADD_${_l}} 493LDADD+= ${LDADD_${_l}} 494.endfor 495 496_LIB_OBJTOP?= ${OBJTOP} 497# INTERNALLIB definitions. 498LIBELFTCDIR= ${_LIB_OBJTOP}/lib/libelftc 499LIBELFTC?= ${LIBELFTCDIR}/libelftc${PIE_SUFFIX}.a 500 501LIBKYUA_CLIDIR= ${_LIB_OBJTOP}/lib/kyua/cli 502LIBKYUA_CLI?= ${LIBKYUA_CLIDIR}/libkyua_cli${PIE_SUFFIX}.a 503 504LIBKYUA_DRIVERSDIR= ${_LIB_OBJTOP}/lib/kyua/drivers 505LIBKYUA_DRIVERS?= ${LIBKYUA_DRIVERSDIR}/libkyua_drivers${PIE_SUFFIX}.a 506 507LIBKYUA_ENGINEDIR= ${_LIB_OBJTOP}/lib/kyua/engine 508LIBKYUA_ENGINE?= ${LIBKYUA_ENGINEDIR}/libkyua_engine${PIE_SUFFIX}.a 509 510LIBKYUA_MODELDIR= ${_LIB_OBJTOP}/lib/kyua/model 511LIBKYUA_MODEL?= ${LIBKYUA_MODELDIR}/libkyua_model${PIE_SUFFIX}.a 512 513LIBKYUA_STOREDIR= ${_LIB_OBJTOP}/lib/kyua/store 514LIBKYUA_STORE?= ${LIBKYUA_STOREDIR}/libkyua_store${PIE_SUFFIX}.a 515 516LIBKYUA_UTILSDIR= ${_LIB_OBJTOP}/lib/kyua/utils 517LIBKYUA_UTILS?= ${LIBKYUA_UTILSDIR}/libkyua_utils${PIE_SUFFIX}.a 518 519LIBLUADIR= ${_LIB_OBJTOP}/lib/liblua 520LIBLUA?= ${LIBLUADIR}/liblua${PIE_SUFFIX}.a 521 522LIBLUTOKDIR= ${_LIB_OBJTOP}/lib/liblutok 523LIBLUTOK?= ${LIBLUTOKDIR}/liblutok${PIE_SUFFIX}.a 524 525LIBPEDIR= ${_LIB_OBJTOP}/lib/libpe 526LIBPE?= ${LIBPEDIR}/libpe${PIE_SUFFIX}.a 527 528LIBOPENBSDDIR= ${_LIB_OBJTOP}/lib/libopenbsd 529LIBOPENBSD?= ${LIBOPENBSDDIR}/libopenbsd${PIE_SUFFIX}.a 530 531LIBSMDIR= ${_LIB_OBJTOP}/lib/libsm 532LIBSM?= ${LIBSMDIR}/libsm${PIE_SUFFIX}.a 533 534LIBSMDBDIR= ${_LIB_OBJTOP}/lib/libsmdb 535LIBSMDB?= ${LIBSMDBDIR}/libsmdb${PIE_SUFFIX}.a 536 537LIBSMUTILDIR= ${_LIB_OBJTOP}/lib/libsmutil 538LIBSMUTIL?= ${LIBSMUTILDIR}/libsmutil${PIE_SUFFIX}.a 539 540LIBNETBSDDIR?= ${_LIB_OBJTOP}/lib/libnetbsd 541LIBNETBSD?= ${LIBNETBSDDIR}/libnetbsd${PIE_SUFFIX}.a 542 543LIBVERSDIR?= ${_LIB_OBJTOP}/kerberos5/lib/libvers 544LIBVERS?= ${LIBVERSDIR}/libvers${PIE_SUFFIX}.a 545 546LIBSLDIR= ${_LIB_OBJTOP}/kerberos5/lib/libsl 547LIBSL?= ${LIBSLDIR}/libsl${PIE_SUFFIX}.a 548 549LIBIFCONFIGDIR= ${_LIB_OBJTOP}/lib/libifconfig 550LIBIFCONFIG?= ${LIBIFCONFIGDIR}/libifconfig${PIE_SUFFIX}.a 551 552LIBIPFDIR= ${_LIB_OBJTOP}/sbin/ipf/libipf 553LIBIPF?= ${LIBIPFDIR}/libipf${PIE_SUFFIX}.a 554 555LIBTELNETDIR= ${_LIB_OBJTOP}/lib/libtelnet 556LIBTELNET?= ${LIBTELNETDIR}/libtelnet${PIE_SUFFIX}.a 557 558LIBCRONDIR= ${_LIB_OBJTOP}/usr.sbin/cron/lib 559LIBCRON?= ${LIBCRONDIR}/libcron${PIE_SUFFIX}.a 560 561LIBNTPDIR= ${_LIB_OBJTOP}/usr.sbin/ntp/libntp 562LIBNTP?= ${LIBNTPDIR}/libntp${PIE_SUFFIX}.a 563 564LIBNTPEVENTDIR= ${_LIB_OBJTOP}/usr.sbin/ntp/libntpevent 565LIBNTPEVENT?= ${LIBNTPEVENTDIR}/libntpevent${PIE_SUFFIX}.a 566 567LIBOPTSDIR= ${_LIB_OBJTOP}/usr.sbin/ntp/libopts 568LIBOPTS?= ${LIBOPTSDIR}/libopts${PIE_SUFFIX}.a 569 570LIBPARSEDIR= ${_LIB_OBJTOP}/usr.sbin/ntp/libparse 571LIBPARSE?= ${LIBPARSEDIR}/libparse${PIE_SUFFIX}.a 572 573LIBLPRDIR= ${_LIB_OBJTOP}/usr.sbin/lpr/common_source 574LIBLPR?= ${LIBLPRDIR}/liblpr${PIE_SUFFIX}.a 575 576LIBFIFOLOGDIR= ${_LIB_OBJTOP}/usr.sbin/fifolog/lib 577LIBFIFOLOG?= ${LIBFIFOLOGDIR}/libfifolog${PIE_SUFFIX}.a 578 579LIBBSNMPTOOLSDIR= ${_LIB_OBJTOP}/usr.sbin/bsnmpd/tools/libbsnmptools 580LIBBSNMPTOOLS?= ${LIBBSNMPTOOLSDIR}/libbsnmptools${PIE_SUFFIX}.a 581 582LIBAMUDIR= ${_LIB_OBJTOP}/usr.sbin/amd/libamu 583LIBAMU?= ${LIBAMUDIR}/libamu${PIE_SUFFIX}.a 584 585LIBBE?= ${LIBBEDIR}/libbe${PIE_SUFFIX}.a 586 587LIBPMCSTATDIR= ${_LIB_OBJTOP}/lib/libpmcstat 588LIBPMCSTAT?= ${LIBPMCSTATDIR}/libpmcstat${PIE_SUFFIX}.a 589 590LIBC_NOSSP_PICDIR= ${_LIB_OBJTOP}/lib/libc 591LIBC_NOSSP_PIC?= ${LIBC_NOSSP_PICDIR}/libc_nossp_pic.a 592 593# Define a directory for each library. This is useful for adding -L in when 594# not using a --sysroot or for meta mode bootstrapping when there is no 595# Makefile.depend. These are sorted by directory. 596LIBAVLDIR= ${OBJTOP}/cddl/lib/libavl 597LIBCTFDIR= ${OBJTOP}/cddl/lib/libctf 598LIBDTRACEDIR= ${OBJTOP}/cddl/lib/libdtrace 599LIBICPDIR= ${OBJTOP}/cddl/lib/libicp 600LIBNVPAIRDIR= ${OBJTOP}/cddl/lib/libnvpair 601LIBUMEMDIR= ${OBJTOP}/cddl/lib/libumem 602LIBUUTILDIR= ${OBJTOP}/cddl/lib/libuutil 603LIBZFSDIR= ${OBJTOP}/cddl/lib/libzfs 604LIBZFS_COREDIR= ${OBJTOP}/cddl/lib/libzfs_core 605LIBZFSBOOTENVDIR= ${OBJTOP}/cddl/lib/libzfsbootenv 606LIBZPOOLDIR= ${OBJTOP}/cddl/lib/libzpool 607LIBZUTILDIR= ${OBJTOP}/cddl/lib/libzutil 608LIBTPOOLDIR= ${OBJTOP}/cddl/lib/libtpool 609 610# OFED support 611LIBCXGB4DIR= ${OBJTOP}/lib/ofed/libcxgb4 612LIBIBCMDIR= ${OBJTOP}/lib/ofed/libibcm 613LIBIBMADDIR= ${OBJTOP}/lib/ofed/libibmad 614LIBIBNETDISCDIR=${OBJTOP}/lib/ofed/libibnetdisc 615LIBIBUMADDIR= ${OBJTOP}/lib/ofed/libibumad 616LIBIBVERBSDIR= ${OBJTOP}/lib/ofed/libibverbs 617LIBMLX4DIR= ${OBJTOP}/lib/ofed/libmlx4 618LIBMLX5DIR= ${OBJTOP}/lib/ofed/libmlx5 619LIBRDMACMDIR= ${OBJTOP}/lib/ofed/librdmacm 620LIBOSMCOMPDIR= ${OBJTOP}/lib/ofed/complib 621LIBOPENSMDIR= ${OBJTOP}/lib/ofed/libopensm 622LIBOSMVENDORDIR=${OBJTOP}/lib/ofed/libvendor 623 624LIBDIALOGDIR= ${OBJTOP}/gnu/lib/libdialog 625LIBGNUREGEXDIR= ${OBJTOP}/gnu/lib/libregex 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