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 \
|
2014-11-24 22:17:35 +00:00
|
|
|
heimipcc \
|
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 00:51:49 +00:00
|
|
|
event \
|
2014-11-24 22:12:27 +00:00
|
|
|
mandoc \
|
2014-11-24 22:15:30 +00:00
|
|
|
netbsd \
|
2014-11-24 21:31:08 +00:00
|
|
|
ohash \
|
|
|
|
readline \
|
|
|
|
sm
|
|
|
|
|
|
|
|
_LIBRARIES= \
|
2014-11-24 22:29:16 +00:00
|
|
|
${_PRIVATELIBS} \
|
|
|
|
${_INTERNALIBS} \
|
2014-11-24 21:31:08 +00:00
|
|
|
archive \
|
2014-11-24 22:17:35 +00:00
|
|
|
asn1 \
|
2014-11-24 21:31:08 +00:00
|
|
|
bsdxml \
|
|
|
|
bsnmp \
|
|
|
|
bz2 \
|
|
|
|
cam \
|
|
|
|
capsicum \
|
|
|
|
casper \
|
2014-11-24 23:58:04 +00:00
|
|
|
ctf \
|
2014-11-24 22:17:35 +00:00
|
|
|
com_err \
|
2014-11-24 21:31:08 +00:00
|
|
|
crypt \
|
|
|
|
crypto \
|
|
|
|
cuse \
|
|
|
|
cxxrt \
|
|
|
|
devstat \
|
|
|
|
dialog \
|
|
|
|
dpv \
|
|
|
|
dwarf \
|
|
|
|
edit \
|
|
|
|
elf \
|
|
|
|
execinfo \
|
|
|
|
fetch \
|
|
|
|
figpar \
|
|
|
|
geom \
|
|
|
|
gssapi \
|
2014-11-24 22:17:35 +00:00
|
|
|
heimbase \
|
|
|
|
hx509 \
|
2014-11-24 21:31:08 +00:00
|
|
|
ipsec \
|
|
|
|
jail \
|
|
|
|
kiconv \
|
|
|
|
kvm \
|
2014-11-24 22:17:35 +00:00
|
|
|
krb5 \
|
2014-11-24 21:31:08 +00:00
|
|
|
l \
|
|
|
|
lzma \
|
|
|
|
m \
|
|
|
|
magic \
|
|
|
|
mandoc \
|
|
|
|
md \
|
|
|
|
memstat \
|
|
|
|
mp \
|
|
|
|
nandfs \
|
|
|
|
ncursesw \
|
|
|
|
nv \
|
|
|
|
opie \
|
|
|
|
pam \
|
|
|
|
pcap \
|
|
|
|
pjdlog \
|
|
|
|
proc \
|
|
|
|
procstat \
|
|
|
|
pthread \
|
|
|
|
radius \
|
|
|
|
readline \
|
2014-11-24 22:17:35 +00:00
|
|
|
roken \
|
2014-11-24 21:31:08 +00:00
|
|
|
rpcsec_gss \
|
|
|
|
rt \
|
|
|
|
sbuf \
|
|
|
|
sm \
|
|
|
|
smb \
|
|
|
|
ssl \
|
|
|
|
stdthreads \
|
|
|
|
supcplusplus \
|
|
|
|
tacplus \
|
|
|
|
termcapw \
|
|
|
|
ufs \
|
|
|
|
ulog \
|
|
|
|
usb \
|
|
|
|
util \
|
2014-11-24 22:17:35 +00:00
|
|
|
wind \
|
2014-11-24 21:31:08 +00:00
|
|
|
wrap \
|
|
|
|
y \
|
|
|
|
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
|
|
|
|
_DP_edit= edit
|
|
|
|
.if ${MK_OPENSSL} != "no"
|
|
|
|
_DP_bsnmp= crypto
|
|
|
|
.endif
|
|
|
|
_DP_grom= bsdxml sbuf
|
|
|
|
_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
|
|
|
|
_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
|
|
|
|
|
|
|
|
# Define spacial cases
|
|
|
|
LDADD_supcplusplus= -lsupc++
|
2014-11-25 00:01:53 +00:00
|
|
|
LDADD_atf_c= -L${LIBATF_CDIR} -latf-c
|
|
|
|
LDADD_atf_cxx= -L${LIBATF_CXXDIR} -latf-c++
|
2014-11-24 21:31:08 +00:00
|
|
|
|
|
|
|
.for _l in ${_LIBRARIES}
|
|
|
|
.if ${_PRIVATELIBS: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
|
|
|
|
.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}}
|
2014-11-24 21:39:28 +00:00
|
|
|
LDADD_${_l}?= ${LDADD_${_l}_L} -l${_l}
|
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
|
|
|
|
|
|
|
|
# ucl needs and exposes libm
|
|
|
|
DPADD_ucl+= ${DPADD_m}
|
|
|
|
LDADD_ucl+= ${LDADD_m}
|
|
|
|
|
2014-11-24 22:17:35 +00:00
|
|
|
DPADD_sqlite3+= ${DPADD_pthread}
|
2014-11-24 22:35:32 +00:00
|
|
|
LDADD_sqlite3+= ${LDADD_pthread}
|
2014-11-24 22:17:35 +00:00
|
|
|
|
2014-11-25 00:28:27 +00:00
|
|
|
DPADD_atf_cxx+= ${DPADD_atf_c}
|
|
|
|
LDADD_atf_cxx+= ${LDADD_atf_c}
|
|
|
|
|
2014-11-24 21:31:08 +00:00
|
|
|
.for _l in ${LIBADD}
|
|
|
|
.if ${_PRIVATELIBS:M${_l}}
|
|
|
|
USEPRIVATELIB+= ${_l}
|
|
|
|
.endif
|
|
|
|
DPADD+= ${DPADD_${_l}}
|
|
|
|
LDADD+= ${LDADD_${_l}}
|
|
|
|
.endfor
|
2014-08-06 22:17:26 +00:00
|
|
|
|
2014-11-24 22:17:35 +00:00
|
|
|
.if defined(USEPRIVATELIB)
|
|
|
|
LDFLAGS+= -rpath ${LIBPRIVATEDIR}
|
|
|
|
.endif
|
|
|
|
|
2014-08-06 22:17:26 +00:00
|
|
|
LIBATF_CDIR= ${ROOTOBJDIR}/lib/atf/libatf-c
|
|
|
|
LDATF_C?= ${LIBATF_CDIR}/libatf-c.so
|
|
|
|
LIBATF_C?= ${LIBATF_CDIR}/libatf-c.a
|
|
|
|
|
|
|
|
LIBATF_CXXDIR= ${ROOTOBJDIR}/lib/atf/libatf-c++
|
|
|
|
LDATF_CXX?= ${LIBATF_CXXDIR}/libatf-c++.so
|
|
|
|
LIBATF_CXX?= ${LIBATF_CXXDIR}/libatf-c++.a
|
|
|
|
|
2014-08-13 19:43:22 +00:00
|
|
|
LIBBSDSTATDIR= ${ROOTOBJDIR}/lib/libbsdstat
|
|
|
|
LDBSDSTAT?= ${LIBBSDSTATDIR}/libbsdstat.so
|
|
|
|
LIBBSDSTAT?= ${LIBBSDSTATDIR}/libbsdstat.a
|
|
|
|
|
2014-10-13 22:15:26 +00:00
|
|
|
LIBEVENTDIR= ${ROOTOBJDIR}/lib/libevent
|
2014-11-24 21:31:08 +00:00
|
|
|
LDEVENT?= ${LIBEVENTDIR}/libevent.a
|
2014-10-13 22:15:26 +00:00
|
|
|
LIBEVENT?= ${LIBEVENTDIR}/libevent.a
|
|
|
|
|
2014-08-06 22:17:26 +00:00
|
|
|
LIBHEIMIPCCDIR= ${ROOTOBJDIR}/kerberos5/lib/libheimipcc
|
|
|
|
LDHEIMIPCC?= ${LIBHEIMIPCCDIR}/libheimipcc.so
|
|
|
|
LIBHEIMIPCC?= ${LIBHEIMIPCCDIR}/libheimipcc.a
|
|
|
|
|
|
|
|
LIBHEIMIPCSDIR= ${ROOTOBJDIR}/kerberos5/lib/libheimipcs
|
|
|
|
LDHEIMIPCS?= ${LIBHEIMIPCSDIR}/libheimipcs.so
|
|
|
|
LIBHEIMIPCS?= ${LIBHEIMIPCSDIR}/libheimipcs.a
|
|
|
|
|
|
|
|
LIBLDNSDIR= ${ROOTOBJDIR}/lib/libldns
|
|
|
|
LDLDNS?= ${LIBLDNSDIR}/libldns.so
|
|
|
|
LIBLDNS?= ${LIBLDNSDIR}/libldns.a
|
|
|
|
|
|
|
|
LIBSSHDIR= ${ROOTOBJDIR}/secure/lib/libssh
|
|
|
|
LDSSH?= ${LIBSSHDIR}/libssh.so
|
|
|
|
LIBSSH?= ${LIBSSHDIR}/libssh.a
|
|
|
|
|
|
|
|
LIBUNBOUNDDIR= ${ROOTOBJDIR}/lib/libunbound
|
|
|
|
LDUNBOUND?= ${LIBUNBOUNDDIR}/libunbound.so
|
|
|
|
LIBUNBOUND?= ${LIBUNBOUNDDIR}/libunbound.a
|
|
|
|
|
|
|
|
LIBUCLDIR= ${ROOTOBJDIR}/lib/libucl
|
|
|
|
LDUCL?= ${LIBUCLDIR}/libucl.so
|
|
|
|
LIBUCL?= ${LIBUCLDIR}/libucl.a
|
|
|
|
|
|
|
|
LIBREADLINEDIR= ${ROOTOBJDIR}/gnu/lib/libreadline/readline
|
|
|
|
LDREADLINE?= ${LIBREADLINEDIR}/libreadline.a
|
|
|
|
LIBREADLINE?= ${LIBREADLINEDIR}/libreadline.a
|
2014-08-06 22:46:15 +00:00
|
|
|
|
|
|
|
LIBOHASHDIR= ${ROOTOBJDIR}/lib/libohash
|
|
|
|
LDOHASH?= ${LIBOHASHDIR}/libohash.a
|
|
|
|
LIBOHASH?= ${LIBOHASHDIR}/libohash.a
|
2014-11-22 21:03:05 +00:00
|
|
|
|
|
|
|
LIBSQLITE3DIR= ${ROOTOBJDIR}/lib/libsqlite3
|
|
|
|
LDSQLITE3?= ${LIBSQLITE3DIR}/libsqlite3.so
|
|
|
|
LIBSQLITE3?= ${LIBSQLITE3DIR}/libsqlite3.a
|
|
|
|
|
|
|
|
LIBMANDOCDIR= ${ROOTOBJDIR}/lib/libmandoc
|
|
|
|
LIBMANDOC?= ${LIBMANDOCDIR}/libmandoc.a
|
2014-11-24 21:31:08 +00:00
|
|
|
|
|
|
|
LIBSMDIR= ${ROOTOBJDIR}/lib/libsm
|
|
|
|
LDSM?= ${LIBSMDIR}/libsm.a
|
|
|
|
LIBSM?= ${LIBSMDIR}/libsm.a
|
2014-11-24 22:15:30 +00:00
|
|
|
|
2014-11-25 00:12:25 +00:00
|
|
|
LIBNETBSDDIR?= ${ROOTOBJDIR}/lib/libnetbsd
|
|
|
|
LIBNETBSD?= ${ROOTOBJDIR}/libnetbsd.a
|