2014-08-06 22:17:26 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
# The include file <src.libnames.mk> define library names suitable
|
|
|
|
# for INTERNALLIB and PRIVATELIB definition
|
|
|
|
|
|
|
|
.if !target(__<bsd.init.mk>__)
|
|
|
|
.error src.libnames.mk cannot be included directly.
|
|
|
|
.endif
|
|
|
|
|
2014-11-24 21:31:08 +00:00
|
|
|
.include <src.opts.mk>
|
|
|
|
|
|
|
|
ROOTSRCDIR= ${.MAKE.MAKEFILES:M*/src.libnames.mk:H:H:H}
|
|
|
|
ROOTOBJDIR= ${.OBJDIR:S/${.CURDIR}//}${ROOTSRCDIR}
|
|
|
|
_PRIVATELIBS= \
|
|
|
|
atf_c \
|
|
|
|
atf_cxx \
|
|
|
|
bsdstat \
|
2015-05-04 16:28:54 +00:00
|
|
|
event \
|
2014-11-24 22:17:35 +00:00
|
|
|
heimipcc \
|
2014-11-25 07:13:31 +00:00
|
|
|
heimipcs \
|
2014-11-24 21:31:08 +00:00
|
|
|
ldns \
|
|
|
|
sqlite3 \
|
|
|
|
ssh \
|
|
|
|
ucl \
|
|
|
|
unbound
|
2014-11-24 22:29:16 +00:00
|
|
|
|
2014-11-24 21:31:08 +00:00
|
|
|
_INTERNALIBS= \
|
2014-11-25 16:51:06 +00:00
|
|
|
amu \
|
|
|
|
bsnmptools \
|
|
|
|
cron \
|
2014-12-01 17:49:42 +00:00
|
|
|
elftc \
|
2014-11-25 16:51:06 +00:00
|
|
|
fifolog \
|
2014-11-25 11:22:28 +00:00
|
|
|
ipf \
|
2014-11-25 16:51:06 +00:00
|
|
|
lpr \
|
2014-11-24 22:12:27 +00:00
|
|
|
mandoc \
|
2014-11-24 22:15:30 +00:00
|
|
|
netbsd \
|
2014-11-25 16:51:06 +00:00
|
|
|
ntp \
|
2015-03-30 13:30:15 +00:00
|
|
|
ntpevent \
|
2014-11-24 21:31:08 +00:00
|
|
|
ohash \
|
2014-11-25 16:51:06 +00:00
|
|
|
opts \
|
|
|
|
parse \
|
2014-11-24 21:31:08 +00:00
|
|
|
readline \
|
2014-11-25 09:54:05 +00:00
|
|
|
sl \
|
|
|
|
sm \
|
2014-11-25 14:28:15 +00:00
|
|
|
smdb \
|
|
|
|
smutil \
|
|
|
|
telnet \
|
2014-11-25 09:54:05 +00:00
|
|
|
vers
|
2014-11-24 21:31:08 +00:00
|
|
|
|
|
|
|
_LIBRARIES= \
|
2014-11-24 22:29:16 +00:00
|
|
|
${_PRIVATELIBS} \
|
|
|
|
${_INTERNALIBS} \
|
2014-11-25 07:13:31 +00:00
|
|
|
alias \
|
2014-11-24 21:31:08 +00:00
|
|
|
archive \
|
2014-11-24 22:17:35 +00:00
|
|
|
asn1 \
|
2014-11-25 16:51:06 +00:00
|
|
|
auditd \
|
2014-11-25 14:28:15 +00:00
|
|
|
begemot \
|
|
|
|
bluetooth \
|
2014-11-24 21:31:08 +00:00
|
|
|
bsdxml \
|
2014-11-25 14:28:15 +00:00
|
|
|
bsm \
|
2014-11-25 19:13:03 +00:00
|
|
|
bsnmp \
|
2014-11-24 21:31:08 +00:00
|
|
|
bz2 \
|
2014-11-25 21:16:44 +00:00
|
|
|
c \
|
|
|
|
c_pic \
|
2014-11-25 14:28:15 +00:00
|
|
|
calendar \
|
2014-11-24 21:31:08 +00:00
|
|
|
cam \
|
|
|
|
capsicum \
|
|
|
|
casper \
|
2014-11-24 22:17:35 +00:00
|
|
|
com_err \
|
2014-11-25 11:07:03 +00:00
|
|
|
compiler_rt \
|
2014-11-24 21:31:08 +00:00
|
|
|
crypt \
|
|
|
|
crypto \
|
2014-11-25 11:07:03 +00:00
|
|
|
ctf \
|
2014-11-24 21:31:08 +00:00
|
|
|
cuse \
|
|
|
|
cxxrt \
|
2015-02-06 16:09:01 +00:00
|
|
|
devctl \
|
2014-11-25 16:51:06 +00:00
|
|
|
devinfo \
|
2014-11-24 21:31:08 +00:00
|
|
|
devstat \
|
|
|
|
dialog \
|
|
|
|
dpv \
|
|
|
|
dwarf \
|
|
|
|
edit \
|
|
|
|
elf \
|
|
|
|
execinfo \
|
|
|
|
fetch \
|
|
|
|
figpar \
|
|
|
|
geom \
|
2014-11-25 14:28:15 +00:00
|
|
|
gnuregex \
|
2014-12-03 03:05:15 +00:00
|
|
|
gpio \
|
2014-11-24 21:31:08 +00:00
|
|
|
gssapi \
|
2014-11-25 21:16:44 +00:00
|
|
|
gssapi_krb5 \
|
2014-11-25 07:13:31 +00:00
|
|
|
hdb \
|
2014-11-24 22:17:35 +00:00
|
|
|
heimbase \
|
2014-11-25 07:13:31 +00:00
|
|
|
heimntlm \
|
|
|
|
heimsqlite \
|
2014-11-24 22:17:35 +00:00
|
|
|
hx509 \
|
2014-11-24 21:31:08 +00:00
|
|
|
ipsec \
|
|
|
|
jail \
|
2014-11-25 07:13:31 +00:00
|
|
|
kadm5clnt \
|
|
|
|
kadm5srv \
|
|
|
|
kafs5 \
|
|
|
|
kdc \
|
2014-11-24 21:31:08 +00:00
|
|
|
kiconv \
|
2014-11-24 22:17:35 +00:00
|
|
|
krb5 \
|
2014-11-25 19:13:03 +00:00
|
|
|
kvm \
|
2014-11-24 21:31:08 +00:00
|
|
|
l \
|
|
|
|
lzma \
|
|
|
|
m \
|
|
|
|
magic \
|
|
|
|
mandoc \
|
|
|
|
md \
|
|
|
|
memstat \
|
|
|
|
mp \
|
2015-04-09 21:26:38 +00:00
|
|
|
mt \
|
2014-11-24 21:31:08 +00:00
|
|
|
nandfs \
|
2014-12-28 15:38:50 +00:00
|
|
|
ncurses \
|
2014-11-25 19:13:03 +00:00
|
|
|
ncursesw \
|
2014-11-25 14:28:15 +00:00
|
|
|
netgraph \
|
|
|
|
ngatm \
|
2014-11-24 21:31:08 +00:00
|
|
|
nv \
|
|
|
|
opie \
|
|
|
|
pam \
|
|
|
|
pcap \
|
2014-11-25 16:51:06 +00:00
|
|
|
pcsclite \
|
2014-11-24 21:31:08 +00:00
|
|
|
pjdlog \
|
2014-11-25 16:51:06 +00:00
|
|
|
pmc \
|
2014-11-24 21:31:08 +00:00
|
|
|
proc \
|
|
|
|
procstat \
|
|
|
|
pthread \
|
|
|
|
radius \
|
|
|
|
readline \
|
2014-11-24 22:17:35 +00:00
|
|
|
roken \
|
2014-11-24 21:31:08 +00:00
|
|
|
rpcsec_gss \
|
2014-11-25 14:28:15 +00:00
|
|
|
rpcsvc \
|
2014-11-24 21:31:08 +00:00
|
|
|
rt \
|
|
|
|
sbuf \
|
2014-11-25 14:28:15 +00:00
|
|
|
sdp \
|
2014-11-24 21:31:08 +00:00
|
|
|
sm \
|
|
|
|
smb \
|
|
|
|
ssl \
|
2014-11-25 19:13:03 +00:00
|
|
|
ssp_nonshared \
|
2014-11-24 21:31:08 +00:00
|
|
|
stdthreads \
|
|
|
|
supcplusplus \
|
|
|
|
tacplus \
|
|
|
|
termcapw \
|
|
|
|
ufs \
|
2014-11-25 19:13:03 +00:00
|
|
|
ugidfw \
|
2014-11-24 21:31:08 +00:00
|
|
|
ulog \
|
|
|
|
usb \
|
2014-11-25 14:28:15 +00:00
|
|
|
usbhid \
|
2014-11-24 21:31:08 +00:00
|
|
|
util \
|
2014-11-25 16:51:06 +00:00
|
|
|
vmmapi \
|
2014-11-24 22:17:35 +00:00
|
|
|
wind \
|
2014-11-24 21:31:08 +00:00
|
|
|
wrap \
|
2014-11-25 11:13:21 +00:00
|
|
|
xo \
|
2014-11-24 21:31:08 +00:00
|
|
|
y \
|
2014-11-25 11:07:03 +00:00
|
|
|
ypclnt \
|
2014-11-24 21:31:08 +00:00
|
|
|
z
|
|
|
|
|
|
|
|
_DP_archive= z bz2 lzma bsdxml
|
|
|
|
.if ${MK_OPENSSL} != "no"
|
|
|
|
_DP_archive+= crypto
|
|
|
|
.else
|
|
|
|
_DP_archive+= md
|
|
|
|
.endif
|
|
|
|
_DP_ssl= crypto
|
|
|
|
_DP_ssh= crypto crypt
|
2014-11-25 22:10:31 +00:00
|
|
|
.if ${MK_LDNS} != "no"
|
|
|
|
_DP_ssh+= ldns z
|
|
|
|
.endif
|
2014-11-25 11:14:42 +00:00
|
|
|
_DP_edit= ncursesw
|
2014-11-24 21:31:08 +00:00
|
|
|
.if ${MK_OPENSSL} != "no"
|
|
|
|
_DP_bsnmp= crypto
|
|
|
|
.endif
|
2015-02-28 05:14:42 +00:00
|
|
|
_DP_geom= bsdxml sbuf
|
2014-11-24 21:31:08 +00:00
|
|
|
_DP_cam= sbuf
|
|
|
|
_DP_casper= capsicum nv pjdlog
|
|
|
|
_DP_capsicum= nv
|
|
|
|
_DP_pjdlog= util
|
|
|
|
_DP_opie= md
|
|
|
|
_DP_usb= pthread
|
|
|
|
_DP_unbound= pthread
|
|
|
|
_DP_rt= pthread
|
|
|
|
.if ${MK_OPENSSL} == "no"
|
|
|
|
_DP_radius= md
|
|
|
|
.else
|
|
|
|
_DP_radius= crypto
|
|
|
|
.endif
|
|
|
|
_DP_procstat= kvm util elf
|
|
|
|
.if ${MK_CXX} == "yes"
|
|
|
|
.if ${MK_LIBCPLUSPLUS} != "no"
|
|
|
|
_DP_proc= cxxrt
|
|
|
|
.else
|
|
|
|
_DP_proc= supcplusplus
|
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
.if ${MK_CDDL} != "no"
|
2014-11-24 23:58:04 +00:00
|
|
|
_DP_proc+= ctf
|
2014-11-24 21:31:08 +00:00
|
|
|
.endif
|
|
|
|
_DP_mp= crypto
|
|
|
|
_DP_memstat= kvm
|
|
|
|
_DP_magic= z
|
2015-04-09 21:26:38 +00:00
|
|
|
_DP_mt= bsdxml
|
2014-11-24 21:31:08 +00:00
|
|
|
_DP_ldns= crypto
|
|
|
|
.if ${MK_OPENSSL} != "no"
|
|
|
|
_DP_fetch= ssl crypto
|
|
|
|
.else
|
|
|
|
_DP_fetch= md
|
|
|
|
.endif
|
|
|
|
_DP_execinfo= elf
|
|
|
|
_DP_dwarf= elf
|
|
|
|
_DP_dpv= dialog figpar util
|
|
|
|
_DP_dialog= ncursesw m
|
|
|
|
_DP_cuse= pthread
|
|
|
|
_DP_atf_cxx= atf_c
|
|
|
|
_DP_devstat= kvm
|
2014-11-25 14:28:15 +00:00
|
|
|
_DP_pam= radius tacplus opie md util
|
|
|
|
.if ${MK_KERBEROS} != "no"
|
|
|
|
_DP_pam+= krb5
|
|
|
|
.endif
|
|
|
|
.if ${MK_OPENSSH} != "no"
|
|
|
|
_DP_pam+= ssh
|
|
|
|
.endif
|
|
|
|
.if ${MK_NIS} != "no"
|
|
|
|
_DP_pam+= ypclnt
|
|
|
|
.endif
|
2014-11-25 22:17:31 +00:00
|
|
|
_DP_krb5+= asn1 com_err crypt crypto hx509 roken wind heimbase heimipcc \
|
|
|
|
pthread
|
|
|
|
_DP_gssapi_krb5+= gssapi krb5 crypto roken asn1 com_err
|
2015-02-09 06:20:34 +00:00
|
|
|
_DP_lzma= pthread
|
2014-11-29 00:45:09 +00:00
|
|
|
_DP_ucl= m
|
2015-04-09 21:38:40 +00:00
|
|
|
_DP_vmmapi= util
|
2014-11-24 21:31:08 +00:00
|
|
|
|
|
|
|
# Define spacial cases
|
|
|
|
LDADD_supcplusplus= -lsupc++
|
2015-05-04 16:28:54 +00:00
|
|
|
LIBATF_C= $(DESTDIR)$(LIBDIR)/libprivateatf-c.a
|
|
|
|
LIBATF_CXX= $(DESTDIR)$(LIBDIR)/libprivateatf-c++.a
|
|
|
|
LDADD_atf_c= -lprivateatf-c
|
|
|
|
LDADD_atf_cxx= -lprivateatf-c++
|
|
|
|
|
|
|
|
.for _l in ${_PRIVATELIBS}
|
|
|
|
LIB${_l:tu}?= ${DESTDIR}${LIBDIR}/libprivate${_l}.a
|
|
|
|
.endfor
|
2014-11-24 21:31:08 +00:00
|
|
|
|
|
|
|
.for _l in ${_LIBRARIES}
|
|
|
|
.if ${_INTERNALIBS:M${_l}}
|
2014-11-24 21:39:28 +00:00
|
|
|
LDADD_${_l}_L+= -L${LIB${_l:tu}DIR}
|
2014-11-24 21:31:08 +00:00
|
|
|
.endif
|
|
|
|
DPADD_${_l}?= ${LIB${_l:tu}}
|
2015-05-04 16:28:54 +00:00
|
|
|
.if ${_PRIVATELIBS:M${_l}}
|
|
|
|
LDADD_${_l}?= -lprivate${_l}
|
|
|
|
.else
|
2014-11-24 21:39:28 +00:00
|
|
|
LDADD_${_l}?= ${LDADD_${_l}_L} -l${_l}
|
2015-05-04 16:28:54 +00:00
|
|
|
.endif
|
2014-11-24 22:32:18 +00:00
|
|
|
.if defined(_DP_${_l}) && defined(NO_SHARED)
|
2014-11-24 21:31:08 +00:00
|
|
|
.for _d in ${_DP_${_l}}
|
|
|
|
DPADD_${_l}+= ${DPADD_${_d}}
|
|
|
|
LDADD_${_l}+= ${LDADD_${_d}}
|
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
.endfor
|
|
|
|
|
2014-11-25 00:28:27 +00:00
|
|
|
DPADD_atf_cxx+= ${DPADD_atf_c}
|
|
|
|
LDADD_atf_cxx+= ${LDADD_atf_c}
|
|
|
|
|
2015-05-04 16:28:54 +00:00
|
|
|
DPADD_sqlite3+= ${DPADD_pthread}
|
|
|
|
LDADD_sqlite3+= ${LDADD_pthread}
|
|
|
|
|
2015-04-10 21:24:38 +00:00
|
|
|
DPADD_fifolog+= ${DPADD_z}
|
|
|
|
LDADD_fifolog+= ${LDADD_z}
|
|
|
|
|
2014-11-25 11:22:28 +00:00
|
|
|
DPADD_ipf+= ${DPADD_kvm}
|
|
|
|
LDADD_ipf+= ${LDADD_kvm}
|
|
|
|
|
2015-04-09 21:26:38 +00:00
|
|
|
DPADD_mt+= ${DPADD_sbuf}
|
|
|
|
LDADD_mt+= ${LDADD_sbuf}
|
|
|
|
|
2014-11-25 07:13:31 +00:00
|
|
|
# The following depends on libraries which are using pthread
|
|
|
|
DPADD_hdb+= ${DPADD_pthread}
|
|
|
|
LDADD_hdb+= ${LDADD_pthread}
|
|
|
|
DPADD_kadm5srv+= ${DPADD_pthread}
|
|
|
|
LDADD_kadm5srv+= ${LDADD_pthread}
|
2014-11-25 22:17:31 +00:00
|
|
|
DPADD_krb5+= ${DPADD_pthread}
|
|
|
|
LDADD_krb5+= ${LDADD_pthread}
|
|
|
|
DPADD_gssapi_krb5+= ${DPADD_pthread}
|
|
|
|
LDADD_gssapi_krb5+= ${LDADD_pthread}
|
2014-11-25 07:13:31 +00:00
|
|
|
|
2014-11-24 21:31:08 +00:00
|
|
|
.for _l in ${LIBADD}
|
|
|
|
.if ${_PRIVATELIBS:M${_l}}
|
|
|
|
USEPRIVATELIB+= ${_l}
|
|
|
|
.endif
|
2015-04-16 15:34:22 +00:00
|
|
|
DPADD+= ${DPADD_${_l}:Umissing-dpadd_${_l}}
|
2014-11-24 21:31:08 +00:00
|
|
|
LDADD+= ${LDADD_${_l}}
|
|
|
|
.endfor
|
2014-08-06 22:17:26 +00:00
|
|
|
|
2015-04-16 15:34:22 +00:00
|
|
|
.if defined(DPADD) && ${DPADD:Mmissing-dpadd_*}
|
|
|
|
.error Missing ${DPADD:Mmissing-dpadd_*:S/missing-dpadd_//:S/^/DPADD_/} variable add "${DPADD:Mmissing-dpadd_*:S/missing-dpadd_//}" to _LIBRARIES, _INTERNALLIBS, or _PRIVATELIBS and define "${DPADD:Mmissing-dpadd_*:S/missing-dpadd_//:S/^/LIB/:tu}".
|
|
|
|
.endif
|
|
|
|
|
2014-12-01 17:49:42 +00:00
|
|
|
LIBELFTCDIR= ${ROOTOBJDIR}/lib/libelftc
|
|
|
|
LIBELFTC?= ${LIBELFTCDIR}/libelftc.a
|
|
|
|
|
2014-08-06 22:17:26 +00:00
|
|
|
LIBREADLINEDIR= ${ROOTOBJDIR}/gnu/lib/libreadline/readline
|
|
|
|
LIBREADLINE?= ${LIBREADLINEDIR}/libreadline.a
|
2014-08-06 22:46:15 +00:00
|
|
|
|
|
|
|
LIBOHASHDIR= ${ROOTOBJDIR}/lib/libohash
|
|
|
|
LIBOHASH?= ${LIBOHASHDIR}/libohash.a
|
2014-11-22 21:03:05 +00:00
|
|
|
|
|
|
|
LIBMANDOCDIR= ${ROOTOBJDIR}/lib/libmandoc
|
|
|
|
LIBMANDOC?= ${LIBMANDOCDIR}/libmandoc.a
|
2014-11-24 21:31:08 +00:00
|
|
|
|
|
|
|
LIBSMDIR= ${ROOTOBJDIR}/lib/libsm
|
|
|
|
LIBSM?= ${LIBSMDIR}/libsm.a
|
2014-11-24 22:15:30 +00:00
|
|
|
|
2014-11-25 14:28:15 +00:00
|
|
|
LIBSMDBDIR= ${ROOTOBJDIR}/lib/libsmdb
|
|
|
|
LIBSMDB?= ${LIBSMDBDIR}/libsmdb.a
|
|
|
|
|
|
|
|
LIBSMUTILDIR= ${ROOTOBJDIR}/lib/libsmutil
|
|
|
|
LIBSMUTIL?= ${LIBSMDBDIR}/libsmutil.a
|
|
|
|
|
2014-11-25 00:12:25 +00:00
|
|
|
LIBNETBSDDIR?= ${ROOTOBJDIR}/lib/libnetbsd
|
2014-11-25 07:47:44 +00:00
|
|
|
LIBNETBSD?= ${LIBNETBSDDIR}/libnetbsd.a
|
2014-11-25 09:54:05 +00:00
|
|
|
|
|
|
|
LIBVERSDIR?= ${ROOTOBJDIR}/kerberos5/lib/libvers
|
|
|
|
LIBVERS?= ${LIBVERSDIR}/libvers.a
|
|
|
|
|
|
|
|
LIBSLDIR= ${ROOTOBJDIR}/kerberos5/lib/libsl
|
|
|
|
LIBSL?= ${LIBSLDIR}/libsl.a
|
2014-11-25 11:22:28 +00:00
|
|
|
|
|
|
|
LIBIPFDIR= ${ROOTOBJDIR}/sbin/ipf/libipf
|
|
|
|
LIBIPF?= ${LIBIPFDIR}/libipf.a
|
2014-11-25 14:28:15 +00:00
|
|
|
|
|
|
|
LIBTELNETDIR= ${ROOTOBJDIR}/lib/libtelnet
|
|
|
|
LIBTELNET?= ${LIBIPFDIR}/libtelnet.a
|
2014-11-25 16:51:06 +00:00
|
|
|
|
|
|
|
LIBCRONDIR= ${ROOTOBJDIR}/usr.sbin/cron/lib
|
|
|
|
LIBCRON?= ${LIBCRONDIR}/libcron.a
|
|
|
|
|
|
|
|
LIBNTPDIR= ${ROOTOBJDIR}/usr.sbin/ntp/libntp
|
|
|
|
LIBNTP?= ${LIBNTPDIR}/libntp.a
|
|
|
|
|
2015-03-30 13:30:15 +00:00
|
|
|
LIBNTPEVENTDIR= ${ROOTOBJDIR}/usr.sbin/ntp/libntpevent
|
|
|
|
LIBNTPEVENT?= ${LIBNTPDIR}/libntpevent.a
|
|
|
|
|
2014-11-25 16:51:06 +00:00
|
|
|
LIBOPTSDIR= ${ROOTOBJDIR}/usr.sbin/ntp/libopts
|
|
|
|
LIBOTPS?= ${LIBOPTSDIR}/libopts.a
|
|
|
|
|
|
|
|
LIBPARSEDIR= ${ROOTOBJDIR}/usr.sbin/ntp/libparse
|
2015-03-30 13:30:15 +00:00
|
|
|
LIBPARSE?= ${LIBPARSEDIR}/libparse.a
|
2014-11-25 16:51:06 +00:00
|
|
|
|
|
|
|
LIBLPRDIR= ${ROOTOBJDIR}/usr.sbin/lpr/common_source
|
|
|
|
LIBLPR?= ${LIBOPTSDIR}/liblpr.a
|
|
|
|
|
|
|
|
LIBFIFOLOGDIR= ${ROOTOBJDIR}/usr.sbin/fifolog/lib
|
|
|
|
LIBFIFOLOG?= ${LIBOPTSDIR}/libfifolog.a
|
|
|
|
|
|
|
|
LIBBSNMPTOOLSDIR= ${ROOTOBJDIR}/usr.sbin/bsnmpd/tools/libbsnmptools
|
|
|
|
LIBBSNMPTOOLS?= ${LIBBSNMPTOOLSDIR}/libbsnmptools.a
|
|
|
|
|
|
|
|
LIBAMUDIR= ${ROOTOBJDIR}/usr.sbin/amd/libamu
|
|
|
|
LIBAMU?= ${LIBAMUDIR}/libamu/libamu.a
|
2014-11-25 22:10:31 +00:00
|
|
|
|