xref: /freebsd/share/mk/src.libnames.mk (revision 47dd1d1b619cc035b82b49a91a25544309ff95ae)
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		c_nossp_pic \
35		cron \
36		elftc \
37		fifolog \
38		ipf \
39		lpr \
40		netbsd \
41		ntp \
42		ntpevent \
43		openbsd \
44		opts \
45		parse \
46		pe \
47		pmcstat \
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		ipt \
116		jail \
117		kadm5clnt \
118		kadm5srv \
119		kafs5 \
120		kdc \
121		kiconv \
122		krb5 \
123		kvm \
124		l \
125		lzma \
126		m \
127		magic \
128		md \
129		memstat \
130		mp \
131		mt \
132		nandfs \
133		ncurses \
134		ncursesw \
135		netgraph \
136		ngatm \
137		nv \
138		nvpair \
139		opencsd \
140		opie \
141		pam \
142		panel \
143		panelw \
144		pcap \
145		pcsclite \
146		pjdlog \
147		pmc \
148		proc \
149		procstat \
150		pthread \
151		radius \
152		regex \
153		roken \
154		rpcsec_gss \
155		rpcsvc \
156		rt \
157		rtld_db \
158		sbuf \
159		sdp \
160		sm \
161		smb \
162		ssl \
163		ssp_nonshared \
164		stdthreads \
165		supcplusplus \
166		sysdecode \
167		tacplus \
168		termcap \
169		termcapw \
170		ufs \
171		ugidfw \
172		ulog \
173		umem \
174		usb \
175		usbhid \
176		util \
177		uutil \
178		vmmapi \
179		wind \
180		wrap \
181		xo \
182		y \
183		ypclnt \
184		z \
185		zfs_core \
186		zfs \
187		zpool \
188
189.if ${MK_BLACKLIST} != "no"
190_LIBRARIES+= \
191		blacklist \
192
193.endif
194
195.if ${MK_OFED} != "no"
196_LIBRARIES+= \
197		cxgb4 \
198		ibcm \
199		ibmad \
200		ibnetdisc \
201		ibumad \
202		ibverbs \
203		mlx4 \
204		mlx5 \
205		rdmacm \
206		osmcomp \
207		opensm \
208		osmvendor
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_roken=	crypt
295_DP_kadm5clnt=	com_err krb5 roken
296_DP_kadm5srv=	com_err hdb krb5 roken
297_DP_heimntlm=	crypto com_err krb5 roken
298_DP_hx509=	asn1 com_err crypto roken wind
299_DP_hdb=	asn1 com_err krb5 roken sqlite3
300_DP_asn1=	com_err roken
301_DP_kdc=	roken hdb hx509 krb5 heimntlm asn1 crypto
302_DP_wind=	com_err roken
303_DP_heimbase=	pthread
304_DP_heimipcc=	heimbase roken pthread
305_DP_heimipcs=	heimbase roken pthread
306_DP_kafs5=	asn1 krb5 roken
307_DP_krb5+=	asn1 com_err crypt crypto hx509 roken wind heimbase heimipcc
308_DP_gssapi_krb5+=	gssapi krb5 crypto roken asn1 com_err
309_DP_lzma=	pthread
310_DP_ucl=	m
311_DP_vmmapi=	util
312_DP_opencsd=	cxxrt
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
336# OFED support
337.if ${MK_OFED} != "no"
338_DP_cxgb4=	ibverbs pthread
339_DP_ibcm=	ibverbs
340_DP_ibmad=	ibumad
341_DP_ibnetdisc=	osmcomp ibmad ibumad
342_DP_ibumad=
343_DP_ibverbs=
344_DP_mlx4=	ibverbs pthread
345_DP_mlx5=	ibverbs pthread
346_DP_rdmacm=	ibverbs
347_DP_osmcomp=	pthread
348_DP_opensm=	pthread
349_DP_osmvendor=	ibumad pthread
350.endif
351
352# Define special cases
353LDADD_supcplusplus=	-lsupc++
354LIBATF_C=	${LIBDESTDIR}${LIBDIR_BASE}/libprivateatf-c.a
355LIBATF_CXX=	${LIBDESTDIR}${LIBDIR_BASE}/libprivateatf-c++.a
356LDADD_atf_c=	-lprivateatf-c
357LDADD_atf_cxx=	-lprivateatf-c++
358
359.for _l in ${_PRIVATELIBS}
360LIB${_l:tu}?=	${LIBDESTDIR}${LIBDIR_BASE}/libprivate${_l}.a
361.endfor
362
363.for _l in ${_LIBRARIES}
364.if ${_INTERNALLIBS:M${_l}} || !defined(SYSROOT)
365LDADD_${_l}_L+=		-L${LIB${_l:tu}DIR}
366.endif
367DPADD_${_l}?=	${LIB${_l:tu}}
368.if ${_PRIVATELIBS:M${_l}}
369LDADD_${_l}?=	-lprivate${_l}
370.else
371LDADD_${_l}?=	${LDADD_${_l}_L} -l${_l}
372.endif
373# Add in all dependencies for static linkage.
374.if defined(_DP_${_l}) && (${_INTERNALLIBS:M${_l}} || \
375    (defined(NO_SHARED) && (${NO_SHARED} != "no" && ${NO_SHARED} != "NO")))
376.for _d in ${_DP_${_l}}
377DPADD_${_l}+=	${DPADD_${_d}}
378LDADD_${_l}+=	${LDADD_${_d}}
379.endfor
380.endif
381.endfor
382
383# These are special cases where the library is broken and anything that uses
384# it needs to add more dependencies.  Broken usually means that it has a
385# cyclic dependency and cannot link its own dependencies.  This is bad, please
386# fix the library instead.
387# Unless the library itself is broken then the proper place to define
388# dependencies is _DP_* above.
389
390# libatf-c++ exposes libatf-c abi hence we need to explicit link to atf_c for
391# atf_cxx
392DPADD_atf_cxx+=	${DPADD_atf_c}
393LDADD_atf_cxx+=	${LDADD_atf_c}
394
395# Detect LDADD/DPADD that should be LIBADD, before modifying LDADD here.
396_BADLDADD=
397.for _l in ${LDADD:M-l*:N-l*/*:C,^-l,,}
398.if ${_LIBRARIES:M${_l}} && !${_PRIVATELIBS:M${_l}}
399_BADLDADD+=	${_l}
400.endif
401.endfor
402.if !empty(_BADLDADD)
403.error ${.CURDIR}: These libraries should be LIBADD+=foo rather than DPADD/LDADD+=-lfoo: ${_BADLDADD}
404.endif
405
406.for _l in ${LIBADD}
407DPADD+=		${DPADD_${_l}}
408LDADD+=		${LDADD_${_l}}
409.endfor
410
411# INTERNALLIB definitions.
412LIBELFTCDIR=	${OBJTOP}/lib/libelftc
413LIBELFTC?=	${LIBELFTCDIR}/libelftc.a
414
415LIBPEDIR=	${OBJTOP}/lib/libpe
416LIBPE?=		${LIBPEDIR}/libpe.a
417
418LIBOPENBSDDIR=	${OBJTOP}/lib/libopenbsd
419LIBOPENBSD?=	${LIBOPENBSDDIR}/libopenbsd.a
420
421LIBSMDIR=	${OBJTOP}/lib/libsm
422LIBSM?=		${LIBSMDIR}/libsm.a
423
424LIBSMDBDIR=	${OBJTOP}/lib/libsmdb
425LIBSMDB?=	${LIBSMDBDIR}/libsmdb.a
426
427LIBSMUTILDIR=	${OBJTOP}/lib/libsmutil
428LIBSMUTIL?=	${LIBSMUTILDIR}/libsmutil.a
429
430LIBNETBSDDIR?=	${OBJTOP}/lib/libnetbsd
431LIBNETBSD?=	${LIBNETBSDDIR}/libnetbsd.a
432
433LIBVERSDIR?=	${OBJTOP}/kerberos5/lib/libvers
434LIBVERS?=	${LIBVERSDIR}/libvers.a
435
436LIBSLDIR=	${OBJTOP}/kerberos5/lib/libsl
437LIBSL?=		${LIBSLDIR}/libsl.a
438
439LIBIPFDIR=	${OBJTOP}/sbin/ipf/libipf
440LIBIPF?=	${LIBIPFDIR}/libipf.a
441
442LIBTELNETDIR=	${OBJTOP}/lib/libtelnet
443LIBTELNET?=	${LIBTELNETDIR}/libtelnet.a
444
445LIBCRONDIR=	${OBJTOP}/usr.sbin/cron/lib
446LIBCRON?=	${LIBCRONDIR}/libcron.a
447
448LIBNTPDIR=	${OBJTOP}/usr.sbin/ntp/libntp
449LIBNTP?=	${LIBNTPDIR}/libntp.a
450
451LIBNTPEVENTDIR=	${OBJTOP}/usr.sbin/ntp/libntpevent
452LIBNTPEVENT?=	${LIBNTPEVENTDIR}/libntpevent.a
453
454LIBOPTSDIR=	${OBJTOP}/usr.sbin/ntp/libopts
455LIBOPTS?=	${LIBOPTSDIR}/libopts.a
456
457LIBPARSEDIR=	${OBJTOP}/usr.sbin/ntp/libparse
458LIBPARSE?=	${LIBPARSEDIR}/libparse.a
459
460LIBLPRDIR=	${OBJTOP}/usr.sbin/lpr/common_source
461LIBLPR?=	${LIBLPRDIR}/liblpr.a
462
463LIBFIFOLOGDIR=	${OBJTOP}/usr.sbin/fifolog/lib
464LIBFIFOLOG?=	${LIBFIFOLOGDIR}/libfifolog.a
465
466LIBBSNMPTOOLSDIR=	${OBJTOP}/usr.sbin/bsnmpd/tools/libbsnmptools
467LIBBSNMPTOOLS?=	${LIBBSNMPTOOLSDIR}/libbsnmptools.a
468
469LIBAMUDIR=	${OBJTOP}/usr.sbin/amd/libamu
470LIBAMU?=	${LIBAMUDIR}/libamu.a
471
472LIBPMCSTATDIR=	${OBJTOP}/lib/libpmcstat
473LIBPMCSTAT?=	${LIBPMCSTATDIR}/libpmcstat.a
474
475LIBC_NOSSP_PICDIR=	${OBJTOP}/lib/libc
476LIBC_NOSSP_PIC?=	${LIBC_NOSSP_PICDIR}/libc_nossp_pic.a
477
478# Define a directory for each library.  This is useful for adding -L in when
479# not using a --sysroot or for meta mode bootstrapping when there is no
480# Makefile.depend.  These are sorted by directory.
481LIBAVLDIR=	${OBJTOP}/cddl/lib/libavl
482LIBCTFDIR=	${OBJTOP}/cddl/lib/libctf
483LIBDTRACEDIR=	${OBJTOP}/cddl/lib/libdtrace
484LIBNVPAIRDIR=	${OBJTOP}/cddl/lib/libnvpair
485LIBUMEMDIR=	${OBJTOP}/cddl/lib/libumem
486LIBUUTILDIR=	${OBJTOP}/cddl/lib/libuutil
487LIBZFSDIR=	${OBJTOP}/cddl/lib/libzfs
488LIBZFS_COREDIR=	${OBJTOP}/cddl/lib/libzfs_core
489LIBZPOOLDIR=	${OBJTOP}/cddl/lib/libzpool
490
491# OFED support
492LIBCXGB4DIR=	${OBJTOP}/contrib/ofed/libcxgb4
493LIBIBCMDIR=	${OBJTOP}/contrib/ofed/libibcm
494LIBIBMADDIR=	${OBJTOP}/contrib/ofed/libibmad
495LIBIBNETDISCDIR=${OBJTOP}/contrib/ofed/libibnetdisc
496LIBIBUMADDIR=	${OBJTOP}/contrib/ofed/libibumad
497LIBIBVERBSDIR=	${OBJTOP}/contrib/ofed/libibverbs
498LIBMLX4DIR=	${OBJTOP}/contrib/ofed/libmlx4
499LIBMLX5DIR=	${OBJTOP}/contrib/ofed/libmlx5
500LIBRDMACMDIR=	${OBJTOP}/contrib/ofed/librdmacm
501LIBOSMCOMPDIR=	${OBJTOP}/contrib/ofed/opensm/complib
502LIBOPENSMDIR=	${OBJTOP}/contrib/ofed/opensm/libopensm
503LIBOSMVENDORDIR=${OBJTOP}/contrib/ofed/opensm/libvendor
504
505LIBDIALOGDIR=	${OBJTOP}/gnu/lib/libdialog
506LIBGCOVDIR=	${OBJTOP}/gnu/lib/libgcov
507LIBGOMPDIR=	${OBJTOP}/gnu/lib/libgomp
508LIBGNUREGEXDIR=	${OBJTOP}/gnu/lib/libregex
509LIBSSPDIR=	${OBJTOP}/gnu/lib/libssp
510LIBSSP_NONSHAREDDIR=	${OBJTOP}/gnu/lib/libssp/libssp_nonshared
511LIBSUPCPLUSPLUSDIR=	${OBJTOP}/gnu/lib/libsupc++
512LIBASN1DIR=	${OBJTOP}/kerberos5/lib/libasn1
513LIBGSSAPI_KRB5DIR=	${OBJTOP}/kerberos5/lib/libgssapi_krb5
514LIBGSSAPI_NTLMDIR=	${OBJTOP}/kerberos5/lib/libgssapi_ntlm
515LIBGSSAPI_SPNEGODIR=	${OBJTOP}/kerberos5/lib/libgssapi_spnego
516LIBHDBDIR=	${OBJTOP}/kerberos5/lib/libhdb
517LIBHEIMBASEDIR=	${OBJTOP}/kerberos5/lib/libheimbase
518LIBHEIMIPCCDIR=	${OBJTOP}/kerberos5/lib/libheimipcc
519LIBHEIMIPCSDIR=	${OBJTOP}/kerberos5/lib/libheimipcs
520LIBHEIMNTLMDIR=	${OBJTOP}/kerberos5/lib/libheimntlm
521LIBHX509DIR=	${OBJTOP}/kerberos5/lib/libhx509
522LIBKADM5CLNTDIR=	${OBJTOP}/kerberos5/lib/libkadm5clnt
523LIBKADM5SRVDIR=	${OBJTOP}/kerberos5/lib/libkadm5srv
524LIBKAFS5DIR=	${OBJTOP}/kerberos5/lib/libkafs5
525LIBKDCDIR=	${OBJTOP}/kerberos5/lib/libkdc
526LIBKRB5DIR=	${OBJTOP}/kerberos5/lib/libkrb5
527LIBROKENDIR=	${OBJTOP}/kerberos5/lib/libroken
528LIBWINDDIR=	${OBJTOP}/kerberos5/lib/libwind
529LIBATF_CDIR=	${OBJTOP}/lib/atf/libatf-c
530LIBATF_CXXDIR=	${OBJTOP}/lib/atf/libatf-c++
531LIBALIASDIR=	${OBJTOP}/lib/libalias/libalias
532LIBBLACKLISTDIR=	${OBJTOP}/lib/libblacklist
533LIBBLOCKSRUNTIMEDIR=	${OBJTOP}/lib/libblocksruntime
534LIBBSNMPDIR=	${OBJTOP}/lib/libbsnmp/libbsnmp
535LIBCASPERDIR=	${OBJTOP}/lib/libcasper/libcasper
536LIBCAP_DNSDIR=	${OBJTOP}/lib/libcasper/services/cap_dns
537LIBCAP_GRPDIR=	${OBJTOP}/lib/libcasper/services/cap_grp
538LIBCAP_PWDDIR=	${OBJTOP}/lib/libcasper/services/cap_pwd
539LIBCAP_RANDOMDIR=	${OBJTOP}/lib/libcasper/services/cap_random
540LIBCAP_SYSCTLDIR=	${OBJTOP}/lib/libcasper/services/cap_sysctl
541LIBCAP_SYSLOGDIR=	${OBJTOP}/lib/libcasper/services/cap_syslog
542LIBBSDXMLDIR=	${OBJTOP}/lib/libexpat
543LIBKVMDIR=	${OBJTOP}/lib/libkvm
544LIBPTHREADDIR=	${OBJTOP}/lib/libthr
545LIBMDIR=	${OBJTOP}/lib/msun
546LIBFORMDIR=	${OBJTOP}/lib/ncurses/form
547LIBFORMLIBWDIR=	${OBJTOP}/lib/ncurses/formw
548LIBMENUDIR=	${OBJTOP}/lib/ncurses/menu
549LIBMENULIBWDIR=	${OBJTOP}/lib/ncurses/menuw
550LIBNCURSESDIR=	${OBJTOP}/lib/ncurses/ncurses
551LIBNCURSESWDIR=	${OBJTOP}/lib/ncurses/ncursesw
552LIBPANELDIR=	${OBJTOP}/lib/ncurses/panel
553LIBPANELWDIR=	${OBJTOP}/lib/ncurses/panelw
554LIBCRYPTODIR=	${OBJTOP}/secure/lib/libcrypto
555LIBSSHDIR=	${OBJTOP}/secure/lib/libssh
556LIBSSLDIR=	${OBJTOP}/secure/lib/libssl
557LIBTEKENDIR=	${OBJTOP}/sys/teken/libteken
558LIBEGACYDIR=	${OBJTOP}/tools/build
559LIBLNDIR=	${OBJTOP}/usr.bin/lex/lib
560
561LIBTERMCAPDIR=	${LIBNCURSESDIR}
562LIBTERMCAPWDIR=	${LIBNCURSESWDIR}
563
564# Default other library directories to lib/libNAME.
565.for lib in ${_LIBRARIES}
566LIB${lib:tu}DIR?=	${OBJTOP}/lib/lib${lib}
567.endfor
568
569# Validate that listed LIBADD are valid.
570.for _l in ${LIBADD}
571.if empty(_LIBRARIES:M${_l})
572_BADLIBADD+= ${_l}
573.endif
574.endfor
575.if !empty(_BADLIBADD)
576.error ${.CURDIR}: Invalid LIBADD used which may need to be added to ${_this:T}: ${_BADLIBADD}
577.endif
578
579# Sanity check that libraries are defined here properly when building them.
580.if defined(LIB) && ${_LIBRARIES:M${LIB}} != ""
581.if !empty(LIBADD) && \
582    (!defined(_DP_${LIB}) || ${LIBADD:O:u} != ${_DP_${LIB}:O:u})
583.error ${.CURDIR}: Missing or incorrect _DP_${LIB} entry in ${_this:T}.  Should match LIBADD for ${LIB} ('${LIBADD}' vs '${_DP_${LIB}}')
584.endif
585# Note that OBJTOP is not yet defined here but for the purpose of the check
586# it is fine as it resolves to the SRC directory.
587.if !defined(LIB${LIB:tu}DIR) || !exists(${SRCTOP}/${LIB${LIB:tu}DIR:S,^${OBJTOP}/,,})
588.error ${.CURDIR}: Missing or incorrect value for LIB${LIB:tu}DIR in ${_this:T}: ${LIB${LIB:tu}DIR:S,^${OBJTOP}/,,}
589.endif
590.if ${_INTERNALLIBS:M${LIB}} != "" && !defined(LIB${LIB:tu})
591.error ${.CURDIR}: Missing value for LIB${LIB:tu} in ${_this:T}.  Likely should be: LIB${LIB:tu}?= $${LIB${LIB:tu}DIR}/lib${LIB}.a
592.endif
593.endif
594
595.endif	# !target(__<src.libnames.mk>__)
596