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 bsdstat \ 19 devdctl \ 20 event \ 21 heimipcc \ 22 heimipcs \ 23 ifconfig \ 24 ldns \ 25 sqlite3 \ 26 ssh \ 27 ucl \ 28 unbound \ 29 zstd 30 31_INTERNALLIBS= \ 32 amu \ 33 bsnmptools \ 34 cron \ 35 elftc \ 36 fifolog \ 37 ipf \ 38 lpr \ 39 netbsd \ 40 ntp \ 41 ntpevent \ 42 openbsd \ 43 opts \ 44 parse \ 45 pe \ 46 pmcstat \ 47 readline \ 48 sl \ 49 sm \ 50 smdb \ 51 smutil \ 52 telnet \ 53 vers 54 55_LIBRARIES= \ 56 ${_PRIVATELIBS} \ 57 ${_INTERNALLIBS} \ 58 ${LOCAL_LIBRARIES} \ 59 80211 \ 60 alias \ 61 archive \ 62 asn1 \ 63 auditd \ 64 avl \ 65 begemot \ 66 bluetooth \ 67 bsdxml \ 68 bsm \ 69 bsnmp \ 70 bz2 \ 71 c \ 72 c_pic \ 73 calendar \ 74 cam \ 75 casper \ 76 cap_dns \ 77 cap_grp \ 78 cap_pwd \ 79 cap_random \ 80 cap_sysctl \ 81 cap_syslog \ 82 com_err \ 83 compiler_rt \ 84 crypt \ 85 crypto \ 86 ctf \ 87 cuse \ 88 cxxrt \ 89 devctl \ 90 devdctl \ 91 devinfo \ 92 devstat \ 93 dialog \ 94 dl \ 95 dpv \ 96 dtrace \ 97 dwarf \ 98 edit \ 99 efivar \ 100 elf \ 101 execinfo \ 102 fetch \ 103 figpar \ 104 geom \ 105 gnuregex \ 106 gpio \ 107 gssapi \ 108 gssapi_krb5 \ 109 hdb \ 110 heimbase \ 111 heimntlm \ 112 heimsqlite \ 113 hx509 \ 114 ipsec \ 115 jail \ 116 kadm5clnt \ 117 kadm5srv \ 118 kafs5 \ 119 kdc \ 120 kiconv \ 121 krb5 \ 122 kvm \ 123 l \ 124 lzma \ 125 m \ 126 magic \ 127 md \ 128 memstat \ 129 mp \ 130 mt \ 131 nandfs \ 132 ncurses \ 133 ncursesw \ 134 netgraph \ 135 ngatm \ 136 nv \ 137 nvpair \ 138 opie \ 139 pam \ 140 panel \ 141 panelw \ 142 pcap \ 143 pcsclite \ 144 pjdlog \ 145 pmc \ 146 proc \ 147 procstat \ 148 pthread \ 149 radius \ 150 readline \ 151 roken \ 152 rpcsec_gss \ 153 rpcsvc \ 154 rt \ 155 rtld_db \ 156 sbuf \ 157 sdp \ 158 sm \ 159 smb \ 160 ssl \ 161 ssp_nonshared \ 162 stdthreads \ 163 supcplusplus \ 164 sysdecode \ 165 tacplus \ 166 termcap \ 167 termcapw \ 168 ufs \ 169 ugidfw \ 170 ulog \ 171 umem \ 172 usb \ 173 usbhid \ 174 util \ 175 uutil \ 176 vmmapi \ 177 wind \ 178 wrap \ 179 xo \ 180 y \ 181 ypclnt \ 182 z \ 183 zfs_core \ 184 zfs \ 185 zpool \ 186 187.if ${MK_BLACKLIST} != "no" 188_LIBRARIES+= \ 189 blacklist \ 190 191.endif 192 193.if ${MK_OFED} != "no" 194_LIBRARIES+= \ 195 cxgb4 \ 196 ibcm \ 197 ibcommon \ 198 ibmad \ 199 ibsdp \ 200 ibumad \ 201 ibverbs \ 202 mlx4 \ 203 mthca \ 204 opensm \ 205 osmcomp \ 206 osmvendor \ 207 rdmacm \ 208 209.endif 210 211# Each library's LIBADD needs to be duplicated here for static linkage of 212# 2nd+ order consumers. Auto-generating this would be better. 213_DP_80211= sbuf bsdxml 214_DP_archive= z bz2 lzma bsdxml 215_DP_zstd= pthread 216.if ${MK_BLACKLIST} != "no" 217_DP_blacklist+= pthread 218.endif 219.if ${MK_OPENSSL} != "no" 220_DP_archive+= crypto 221.else 222_DP_archive+= md 223.endif 224_DP_sqlite3= pthread 225_DP_ssl= crypto 226_DP_ssh= crypto crypt z 227.if ${MK_LDNS} != "no" 228_DP_ssh+= ldns 229.endif 230_DP_edit= ncursesw 231.if ${MK_OPENSSL} != "no" 232_DP_bsnmp= crypto 233.endif 234_DP_geom= bsdxml sbuf 235_DP_cam= sbuf 236_DP_kvm= elf 237_DP_casper= nv 238_DP_cap_dns= nv 239_DP_cap_grp= nv 240_DP_cap_pwd= nv 241_DP_cap_random= nv 242_DP_cap_sysctl= nv 243_DP_cap_syslog= nv 244_DP_pjdlog= util 245_DP_opie= md 246_DP_usb= pthread 247_DP_unbound= ssl crypto pthread 248_DP_rt= pthread 249.if ${MK_OPENSSL} == "no" 250_DP_radius= md 251.else 252_DP_radius= crypto 253.endif 254_DP_rtld_db= elf procstat 255_DP_procstat= kvm util elf 256.if ${MK_CXX} == "yes" 257.if ${MK_LIBCPLUSPLUS} != "no" 258_DP_proc= cxxrt 259.else 260_DP_proc= supcplusplus 261.endif 262.endif 263.if ${MK_CDDL} != "no" 264_DP_proc+= ctf 265.endif 266_DP_proc+= elf procstat rtld_db util 267_DP_mp= crypto 268_DP_memstat= kvm 269_DP_magic= z 270_DP_mt= sbuf bsdxml 271_DP_ldns= crypto 272.if ${MK_OPENSSL} != "no" 273_DP_fetch= ssl crypto 274.else 275_DP_fetch= md 276.endif 277_DP_execinfo= elf 278_DP_dwarf= elf 279_DP_dpv= dialog figpar util ncursesw 280_DP_dialog= ncursesw m 281_DP_cuse= pthread 282_DP_atf_cxx= atf_c 283_DP_devstat= kvm 284_DP_pam= radius tacplus opie md util 285.if ${MK_KERBEROS} != "no" 286_DP_pam+= krb5 287.endif 288.if ${MK_OPENSSH} != "no" 289_DP_pam+= ssh 290.endif 291.if ${MK_NIS} != "no" 292_DP_pam+= ypclnt 293.endif 294_DP_readline= ncursesw 295_DP_roken= crypt 296_DP_kadm5clnt= com_err krb5 roken 297_DP_kadm5srv= com_err hdb krb5 roken 298_DP_heimntlm= crypto com_err krb5 roken 299_DP_hx509= asn1 com_err crypto roken wind 300_DP_hdb= asn1 com_err krb5 roken sqlite3 301_DP_asn1= com_err roken 302_DP_kdc= roken hdb hx509 krb5 heimntlm asn1 crypto 303_DP_wind= com_err roken 304_DP_heimbase= pthread 305_DP_heimipcc= heimbase roken pthread 306_DP_heimipcs= heimbase roken pthread 307_DP_kafs5= asn1 krb5 roken 308_DP_krb5+= asn1 com_err crypt crypto hx509 roken wind heimbase heimipcc 309_DP_gssapi_krb5+= gssapi krb5 crypto roken asn1 com_err 310_DP_lzma= pthread 311_DP_ucl= m 312_DP_vmmapi= util 313_DP_ctf= z 314_DP_dtrace= ctf elf proc pthread rtld_db 315_DP_xo= util 316# The libc dependencies are not strictly needed but are defined to make the 317# assert happy. 318_DP_c= compiler_rt 319.if ${MK_SSP} != "no" 320_DP_c+= ssp_nonshared 321.endif 322_DP_stdthreads= pthread 323_DP_tacplus= md 324_DP_panel= ncurses 325_DP_panelw= ncursesw 326_DP_rpcsec_gss= gssapi 327_DP_smb= kiconv 328_DP_ulog= md 329_DP_fifolog= z 330_DP_ipf= kvm 331_DP_zfs= md pthread umem util uutil m nvpair avl bsdxml geom nvpair z \ 332 zfs_core 333_DP_zfs_core= nvpair 334_DP_zpool= md pthread z nvpair avl umem 335.if ${MK_OFED} != "no" 336_DP_cxgb4= ibverbs pthread 337_DP_ibcm= ibverbs 338_DP_ibmad= ibcommon ibumad 339_DP_ibumad= ibcommon 340_DP_mlx4= ibverbs pthread 341_DP_mthca= ibverbs pthread 342_DP_opensm= pthread 343_DP_osmcomp= pthread 344_DP_osmvendor= ibumad opensm osmcomp pthread 345_DP_rdmacm= ibverbs 346.endif 347 348# Define special cases 349LDADD_supcplusplus= -lsupc++ 350LIBATF_C= ${LIBDESTDIR}${LIBDIR_BASE}/libprivateatf-c.a 351LIBATF_CXX= ${LIBDESTDIR}${LIBDIR_BASE}/libprivateatf-c++.a 352LDADD_atf_c= -lprivateatf-c 353LDADD_atf_cxx= -lprivateatf-c++ 354 355.for _l in ${_PRIVATELIBS} 356LIB${_l:tu}?= ${LIBDESTDIR}${LIBDIR_BASE}/libprivate${_l}.a 357.endfor 358 359.for _l in ${_LIBRARIES} 360.if ${_INTERNALLIBS:M${_l}} 361LDADD_${_l}_L+= -L${LIB${_l:tu}DIR} 362.endif 363DPADD_${_l}?= ${LIB${_l:tu}} 364.if ${_PRIVATELIBS:M${_l}} 365LDADD_${_l}?= -lprivate${_l} 366.else 367LDADD_${_l}?= ${LDADD_${_l}_L} -l${_l} 368.endif 369# Add in all dependencies for static linkage. 370.if defined(_DP_${_l}) && (${_INTERNALLIBS:M${_l}} || \ 371 (defined(NO_SHARED) && (${NO_SHARED} != "no" && ${NO_SHARED} != "NO"))) 372.for _d in ${_DP_${_l}} 373DPADD_${_l}+= ${DPADD_${_d}} 374LDADD_${_l}+= ${LDADD_${_d}} 375.endfor 376.endif 377.endfor 378 379# These are special cases where the library is broken and anything that uses 380# it needs to add more dependencies. Broken usually means that it has a 381# cyclic dependency and cannot link its own dependencies. This is bad, please 382# fix the library instead. 383# Unless the library itself is broken then the proper place to define 384# dependencies is _DP_* above. 385 386# libatf-c++ exposes libatf-c abi hence we need to explicit link to atf_c for 387# atf_cxx 388DPADD_atf_cxx+= ${DPADD_atf_c} 389LDADD_atf_cxx+= ${LDADD_atf_c} 390 391# Detect LDADD/DPADD that should be LIBADD, before modifying LDADD here. 392_BADLDADD= 393.for _l in ${LDADD:M-l*:N-l*/*:C,^-l,,} 394.if ${_LIBRARIES:M${_l}} && !${_PRIVATELIBS:M${_l}} 395_BADLDADD+= ${_l} 396.endif 397.endfor 398.if !empty(_BADLDADD) 399.error ${.CURDIR}: These libraries should be LIBADD+=foo rather than DPADD/LDADD+=-lfoo: ${_BADLDADD} 400.endif 401 402.for _l in ${LIBADD} 403DPADD+= ${DPADD_${_l}} 404LDADD+= ${LDADD_${_l}} 405.endfor 406 407# INTERNALLIB definitions. 408LIBELFTCDIR= ${OBJTOP}/lib/libelftc 409LIBELFTC?= ${LIBELFTCDIR}/libelftc.a 410 411LIBPEDIR= ${OBJTOP}/lib/libpe 412LIBPE?= ${LIBPEDIR}/libpe.a 413 414LIBREADLINEDIR= ${OBJTOP}/gnu/lib/libreadline/readline 415LIBREADLINE?= ${LIBREADLINEDIR}/libreadline.a 416 417LIBOPENBSDDIR= ${OBJTOP}/lib/libopenbsd 418LIBOPENBSD?= ${LIBOPENBSDDIR}/libopenbsd.a 419 420LIBSMDIR= ${OBJTOP}/lib/libsm 421LIBSM?= ${LIBSMDIR}/libsm.a 422 423LIBSMDBDIR= ${OBJTOP}/lib/libsmdb 424LIBSMDB?= ${LIBSMDBDIR}/libsmdb.a 425 426LIBSMUTILDIR= ${OBJTOP}/lib/libsmutil 427LIBSMUTIL?= ${LIBSMUTILDIR}/libsmutil.a 428 429LIBNETBSDDIR?= ${OBJTOP}/lib/libnetbsd 430LIBNETBSD?= ${LIBNETBSDDIR}/libnetbsd.a 431 432LIBVERSDIR?= ${OBJTOP}/kerberos5/lib/libvers 433LIBVERS?= ${LIBVERSDIR}/libvers.a 434 435LIBSLDIR= ${OBJTOP}/kerberos5/lib/libsl 436LIBSL?= ${LIBSLDIR}/libsl.a 437 438LIBIPFDIR= ${OBJTOP}/sbin/ipf/libipf 439LIBIPF?= ${LIBIPFDIR}/libipf.a 440 441LIBTELNETDIR= ${OBJTOP}/lib/libtelnet 442LIBTELNET?= ${LIBTELNETDIR}/libtelnet.a 443 444LIBCRONDIR= ${OBJTOP}/usr.sbin/cron/lib 445LIBCRON?= ${LIBCRONDIR}/libcron.a 446 447LIBNTPDIR= ${OBJTOP}/usr.sbin/ntp/libntp 448LIBNTP?= ${LIBNTPDIR}/libntp.a 449 450LIBNTPEVENTDIR= ${OBJTOP}/usr.sbin/ntp/libntpevent 451LIBNTPEVENT?= ${LIBNTPEVENTDIR}/libntpevent.a 452 453LIBOPTSDIR= ${OBJTOP}/usr.sbin/ntp/libopts 454LIBOPTS?= ${LIBOPTSDIR}/libopts.a 455 456LIBPARSEDIR= ${OBJTOP}/usr.sbin/ntp/libparse 457LIBPARSE?= ${LIBPARSEDIR}/libparse.a 458 459LIBLPRDIR= ${OBJTOP}/usr.sbin/lpr/common_source 460LIBLPR?= ${LIBLPRDIR}/liblpr.a 461 462LIBFIFOLOGDIR= ${OBJTOP}/usr.sbin/fifolog/lib 463LIBFIFOLOG?= ${LIBFIFOLOGDIR}/libfifolog.a 464 465LIBBSNMPTOOLSDIR= ${OBJTOP}/usr.sbin/bsnmpd/tools/libbsnmptools 466LIBBSNMPTOOLS?= ${LIBBSNMPTOOLSDIR}/libbsnmptools.a 467 468LIBAMUDIR= ${OBJTOP}/usr.sbin/amd/libamu 469LIBAMU?= ${LIBAMUDIR}/libamu.a 470 471LIBPMCSTATDIR= ${OBJTOP}/lib/libpmcstat 472LIBPMCSTAT?= ${LIBPMCSTATDIR}/libpmcstat.a 473 474# Define a directory for each library. This is useful for adding -L in when 475# not using a --sysroot or for meta mode bootstrapping when there is no 476# Makefile.depend. These are sorted by directory. 477LIBAVLDIR= ${OBJTOP}/cddl/lib/libavl 478LIBCTFDIR= ${OBJTOP}/cddl/lib/libctf 479LIBDTRACEDIR= ${OBJTOP}/cddl/lib/libdtrace 480LIBNVPAIRDIR= ${OBJTOP}/cddl/lib/libnvpair 481LIBUMEMDIR= ${OBJTOP}/cddl/lib/libumem 482LIBUUTILDIR= ${OBJTOP}/cddl/lib/libuutil 483LIBZFSDIR= ${OBJTOP}/cddl/lib/libzfs 484LIBZFS_COREDIR= ${OBJTOP}/cddl/lib/libzfs_core 485LIBZPOOLDIR= ${OBJTOP}/cddl/lib/libzpool 486LIBCXGB4DIR= ${OBJTOP}/contrib/ofed/usr.lib/libcxgb4 487LIBIBCMDIR= ${OBJTOP}/contrib/ofed/usr.lib/libibcm 488LIBIBCOMMONDIR= ${OBJTOP}/contrib/ofed/usr.lib/libibcommon 489LIBIBMADDIR= ${OBJTOP}/contrib/ofed/usr.lib/libibmad 490LIBIBUMADDIR= ${OBJTOP}/contrib/ofed/usr.lib/libibumad 491LIBIBVERBSDIR= ${OBJTOP}/contrib/ofed/usr.lib/libibverbs 492LIBMLX4DIR= ${OBJTOP}/contrib/ofed/usr.lib/libmlx4 493LIBMTHCADIR= ${OBJTOP}/contrib/ofed/usr.lib/libmthca 494LIBOPENSMDIR= ${OBJTOP}/contrib/ofed/usr.lib/libopensm 495LIBOSMCOMPDIR= ${OBJTOP}/contrib/ofed/usr.lib/libosmcomp 496LIBOSMVENDORDIR= ${OBJTOP}/contrib/ofed/usr.lib/libosmvendor 497LIBRDMACMDIR= ${OBJTOP}/contrib/ofed/usr.lib/librdmacm 498LIBIBSDPDIR= ${OBJTOP}/contrib/ofed/usr.lib/libsdp 499LIBDIALOGDIR= ${OBJTOP}/gnu/lib/libdialog 500LIBGCOVDIR= ${OBJTOP}/gnu/lib/libgcov 501LIBGOMPDIR= ${OBJTOP}/gnu/lib/libgomp 502LIBGNUREGEXDIR= ${OBJTOP}/gnu/lib/libregex 503LIBSSPDIR= ${OBJTOP}/gnu/lib/libssp 504LIBSSP_NONSHAREDDIR= ${OBJTOP}/gnu/lib/libssp/libssp_nonshared 505LIBSUPCPLUSPLUSDIR= ${OBJTOP}/gnu/lib/libsupc++ 506LIBASN1DIR= ${OBJTOP}/kerberos5/lib/libasn1 507LIBGSSAPI_KRB5DIR= ${OBJTOP}/kerberos5/lib/libgssapi_krb5 508LIBGSSAPI_NTLMDIR= ${OBJTOP}/kerberos5/lib/libgssapi_ntlm 509LIBGSSAPI_SPNEGODIR= ${OBJTOP}/kerberos5/lib/libgssapi_spnego 510LIBHDBDIR= ${OBJTOP}/kerberos5/lib/libhdb 511LIBHEIMBASEDIR= ${OBJTOP}/kerberos5/lib/libheimbase 512LIBHEIMIPCCDIR= ${OBJTOP}/kerberos5/lib/libheimipcc 513LIBHEIMIPCSDIR= ${OBJTOP}/kerberos5/lib/libheimipcs 514LIBHEIMNTLMDIR= ${OBJTOP}/kerberos5/lib/libheimntlm 515LIBHX509DIR= ${OBJTOP}/kerberos5/lib/libhx509 516LIBKADM5CLNTDIR= ${OBJTOP}/kerberos5/lib/libkadm5clnt 517LIBKADM5SRVDIR= ${OBJTOP}/kerberos5/lib/libkadm5srv 518LIBKAFS5DIR= ${OBJTOP}/kerberos5/lib/libkafs5 519LIBKDCDIR= ${OBJTOP}/kerberos5/lib/libkdc 520LIBKRB5DIR= ${OBJTOP}/kerberos5/lib/libkrb5 521LIBROKENDIR= ${OBJTOP}/kerberos5/lib/libroken 522LIBWINDDIR= ${OBJTOP}/kerberos5/lib/libwind 523LIBATF_CDIR= ${OBJTOP}/lib/atf/libatf-c 524LIBATF_CXXDIR= ${OBJTOP}/lib/atf/libatf-c++ 525LIBALIASDIR= ${OBJTOP}/lib/libalias/libalias 526LIBBLACKLISTDIR= ${OBJTOP}/lib/libblacklist 527LIBBLOCKSRUNTIMEDIR= ${OBJTOP}/lib/libblocksruntime 528LIBBSNMPDIR= ${OBJTOP}/lib/libbsnmp/libbsnmp 529LIBCASPERDIR= ${OBJTOP}/lib/libcasper/libcasper 530LIBCAP_DNSDIR= ${OBJTOP}/lib/libcasper/services/cap_dns 531LIBCAP_GRPDIR= ${OBJTOP}/lib/libcasper/services/cap_grp 532LIBCAP_PWDDIR= ${OBJTOP}/lib/libcasper/services/cap_pwd 533LIBCAP_RANDOMDIR= ${OBJTOP}/lib/libcasper/services/cap_random 534LIBCAP_SYSCTLDIR= ${OBJTOP}/lib/libcasper/services/cap_sysctl 535LIBCAP_SYSLOGDIR= ${OBJTOP}/lib/libcasper/services/cap_syslog 536LIBBSDXMLDIR= ${OBJTOP}/lib/libexpat 537LIBKVMDIR= ${OBJTOP}/lib/libkvm 538LIBPTHREADDIR= ${OBJTOP}/lib/libthr 539LIBMDIR= ${OBJTOP}/lib/msun 540LIBFORMDIR= ${OBJTOP}/lib/ncurses/form 541LIBFORMLIBWDIR= ${OBJTOP}/lib/ncurses/formw 542LIBMENUDIR= ${OBJTOP}/lib/ncurses/menu 543LIBMENULIBWDIR= ${OBJTOP}/lib/ncurses/menuw 544LIBNCURSESDIR= ${OBJTOP}/lib/ncurses/ncurses 545LIBNCURSESWDIR= ${OBJTOP}/lib/ncurses/ncursesw 546LIBPANELDIR= ${OBJTOP}/lib/ncurses/panel 547LIBPANELWDIR= ${OBJTOP}/lib/ncurses/panelw 548LIBCRYPTODIR= ${OBJTOP}/secure/lib/libcrypto 549LIBSSHDIR= ${OBJTOP}/secure/lib/libssh 550LIBSSLDIR= ${OBJTOP}/secure/lib/libssl 551LIBTEKENDIR= ${OBJTOP}/sys/teken/libteken 552LIBEGACYDIR= ${OBJTOP}/tools/build 553LIBLNDIR= ${OBJTOP}/usr.bin/lex/lib 554 555LIBTERMCAPDIR= ${LIBNCURSESDIR} 556LIBTERMCAPWDIR= ${LIBNCURSESWDIR} 557 558# Default other library directories to lib/libNAME. 559.for lib in ${_LIBRARIES} 560LIB${lib:tu}DIR?= ${OBJTOP}/lib/lib${lib} 561.endfor 562 563# Validate that listed LIBADD are valid. 564.for _l in ${LIBADD} 565.if empty(_LIBRARIES:M${_l}) 566_BADLIBADD+= ${_l} 567.endif 568.endfor 569.if !empty(_BADLIBADD) 570.error ${.CURDIR}: Invalid LIBADD used which may need to be added to ${_this:T}: ${_BADLIBADD} 571.endif 572 573# Sanity check that libraries are defined here properly when building them. 574.if defined(LIB) && ${_LIBRARIES:M${LIB}} != "" 575.if !empty(LIBADD) && \ 576 (!defined(_DP_${LIB}) || ${LIBADD:O:u} != ${_DP_${LIB}:O:u}) 577.error ${.CURDIR}: Missing or incorrect _DP_${LIB} entry in ${_this:T}. Should match LIBADD for ${LIB} ('${LIBADD}' vs '${_DP_${LIB}}') 578.endif 579# Note that OBJTOP is not yet defined here but for the purpose of the check 580# it is fine as it resolves to the SRC directory. 581.if !defined(LIB${LIB:tu}DIR) || !exists(${SRCTOP}/${LIB${LIB:tu}DIR:S,^${OBJTOP}/,,}) 582.error ${.CURDIR}: Missing or incorrect value for LIB${LIB:tu}DIR in ${_this:T}: ${LIB${LIB:tu}DIR:S,^${OBJTOP}/,,} 583.endif 584.if ${_INTERNALLIBS:M${LIB}} != "" && !defined(LIB${LIB:tu}) 585.error ${.CURDIR}: Missing value for LIB${LIB:tu} in ${_this:T}. Likely should be: LIB${LIB:tu}?= $${LIB${LIB:tu}DIR}/lib${LIB}.a 586.endif 587.endif 588 589.endif # !target(__<src.libnames.mk>__) 590