aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2014-11-25 09:57:42 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2014-11-25 09:57:42 +0000
commitd65af1e7b1ff4806881f2c46d684d004b70e5cc9 (patch)
treebb41aaf2a8a206515fdcf1f5a5d9fa6523213ef1
parent85abe78406f14f8a494562f48e279c8a060f6a90 (diff)
downloadsrc-d65af1e7b1ff4806881f2c46d684d004b70e5cc9.tar.gz
src-d65af1e7b1ff4806881f2c46d684d004b70e5cc9.zip
Convert kerberos to LIBADD and reduce overlinking of the kerberos binaries and
libraries
Notes
Notes: svn path=/head/; revision=275022
-rw-r--r--kerberos5/Makefile.inc3
-rw-r--r--kerberos5/lib/libasn1/Makefile3
-rw-r--r--kerberos5/lib/libgssapi_krb5/Makefile4
-rw-r--r--kerberos5/lib/libgssapi_ntlm/Makefile3
-rw-r--r--kerberos5/lib/libgssapi_spnego/Makefile3
-rw-r--r--kerberos5/lib/libhdb/Makefile4
-rw-r--r--kerberos5/lib/libheimbase/Makefile2
-rw-r--r--kerberos5/lib/libheimipcc/Makefile3
-rw-r--r--kerberos5/lib/libheimipcs/Makefile4
-rw-r--r--kerberos5/lib/libheimntlm/Makefile3
-rw-r--r--kerberos5/lib/libheimsqlite/Makefile3
-rw-r--r--kerberos5/lib/libhx509/Makefile3
-rw-r--r--kerberos5/lib/libkadm5clnt/Makefile3
-rw-r--r--kerberos5/lib/libkadm5srv/Makefile3
-rw-r--r--kerberos5/lib/libkafs5/Makefile3
-rw-r--r--kerberos5/lib/libkdc/Makefile4
-rw-r--r--kerberos5/lib/libkrb5/Makefile5
-rw-r--r--kerberos5/lib/libroken/Makefile3
-rw-r--r--kerberos5/lib/libwind/Makefile3
-rw-r--r--kerberos5/libexec/digest-service/Makefile6
-rw-r--r--kerberos5/libexec/hprop/Makefile7
-rw-r--r--kerberos5/libexec/hpropd/Makefile7
-rw-r--r--kerberos5/libexec/ipropd-master/Makefile7
-rw-r--r--kerberos5/libexec/ipropd-slave/Makefile7
-rw-r--r--kerberos5/libexec/kadmind/Makefile7
-rw-r--r--kerberos5/libexec/kcm/Makefile8
-rw-r--r--kerberos5/libexec/kdc/Makefile4
-rw-r--r--kerberos5/libexec/kdigest/Makefile5
-rw-r--r--kerberos5/libexec/kfd/Makefile5
-rw-r--r--kerberos5/libexec/kimpersonate/Makefile5
-rw-r--r--kerberos5/libexec/kpasswdd/Makefile7
-rw-r--r--kerberos5/tools/asn1_compile/Makefile5
-rw-r--r--kerberos5/tools/slc/Makefile5
-rw-r--r--kerberos5/usr.bin/hxtool/Makefile3
-rw-r--r--kerberos5/usr.bin/kadmin/Makefile11
-rw-r--r--kerberos5/usr.bin/kcc/Makefile5
-rw-r--r--kerberos5/usr.bin/kdestroy/Makefile5
-rw-r--r--kerberos5/usr.bin/kf/Makefile5
-rw-r--r--kerberos5/usr.bin/kgetcred/Makefile3
-rw-r--r--kerberos5/usr.bin/kinit/Makefile5
-rw-r--r--kerberos5/usr.bin/kpasswd/Makefile5
-rw-r--r--kerberos5/usr.bin/ksu/Makefile5
-rw-r--r--kerberos5/usr.bin/string2key/Makefile4
-rw-r--r--kerberos5/usr.bin/verify_krb5_conf/Makefile5
-rw-r--r--kerberos5/usr.sbin/iprop-log/Makefile5
-rw-r--r--kerberos5/usr.sbin/kstash/Makefile7
-rw-r--r--kerberos5/usr.sbin/ktutil/Makefile5
47 files changed, 70 insertions, 150 deletions
diff --git a/kerberos5/Makefile.inc b/kerberos5/Makefile.inc
index f53eadd6f47f..6048589df445 100644
--- a/kerberos5/Makefile.inc
+++ b/kerberos5/Makefile.inc
@@ -16,9 +16,6 @@ LDAPCFLAGS= -I${OPENLDAPBASE}/include -DOPENLDAP=1 -DLDAP_DEPRECATED=1
LDAPLDFLAGS= -L${OPENLDAPBASE}/lib -Wl,-rpath,${OPENLDAPBASE}/lib
.endif
-LIBVERS= ${.OBJDIR}/../../lib/libvers/libvers.a
-LIBSL= ${.OBJDIR}/../../lib/libsl/libsl.a
-
.if defined(SRCS)
ETSRCS= \
diff --git a/kerberos5/lib/libasn1/Makefile b/kerberos5/lib/libasn1/Makefile
index 02e6a4975fd4..d445b8b386d4 100644
--- a/kerberos5/lib/libasn1/Makefile
+++ b/kerberos5/lib/libasn1/Makefile
@@ -3,8 +3,7 @@
LIB= asn1
LDFLAGS= -Wl,--no-undefined
INCS= asn1_err.h asn1-common.h heim_asn1.h der.h der-protos.h der-private.h
-LDADD= -lcom_err -lroken
-DPADD= ${LIBCOM_ERR} ${LIBROKEN}
+LIBADD= com_err roken
VERSION_MAP= ${.CURDIR}/version.map
SRCS= asn1_err.c \
diff --git a/kerberos5/lib/libgssapi_krb5/Makefile b/kerberos5/lib/libgssapi_krb5/Makefile
index a883c7d4d8ae..6116767e45a4 100644
--- a/kerberos5/lib/libgssapi_krb5/Makefile
+++ b/kerberos5/lib/libgssapi_krb5/Makefile
@@ -2,9 +2,7 @@
LIB= gssapi_krb5
LDFLAGS= -Wl,-Bsymbolic -Wl,--no-undefined
-LDADD= -lgssapi -lkrb5 -lhx509 -lcrypto -lroken -lasn1 -lcom_err -lcrypt
-DPADD= ${LIBGSSAPI} ${LIBKRB5} ${LIBHX509} ${LIBCRYPTO} ${LIBROKEN} ${LIBASN1} \
- ${LIBCOM_ERR} ${LIBCRYPT}
+LIBADD= gssapi krb5 crypto roken asn1 com_err
SHLIB_MAJOR= 10
INCS= ${KRB5DIR}/lib/gssapi/gssapi/gssapi_krb5.h
diff --git a/kerberos5/lib/libgssapi_ntlm/Makefile b/kerberos5/lib/libgssapi_ntlm/Makefile
index cfe071677a32..ac546f716642 100644
--- a/kerberos5/lib/libgssapi_ntlm/Makefile
+++ b/kerberos5/lib/libgssapi_ntlm/Makefile
@@ -2,8 +2,7 @@
LIB= gssapi_ntlm
LDFLAGS= -Wl,-Bsymbolic -Wl,--no-undefined
-LDADD= -lcrypto -lgssapi -lkrb5 -lhx509 -lheimntlm -lroken
-DPADD= ${LIBCRYPTO} ${LIBGSSAPI} ${LIBKRB5} ${LIBHX509} ${LIBHEIMNTLM} ${LIBROKEN}
+LIBADD= crypto gssapi krb5 heimntlm roken
SHLIB_MAJOR= 10
SRCS= accept_sec_context.c \
diff --git a/kerberos5/lib/libgssapi_spnego/Makefile b/kerberos5/lib/libgssapi_spnego/Makefile
index 09062655d0e1..92168082b417 100644
--- a/kerberos5/lib/libgssapi_spnego/Makefile
+++ b/kerberos5/lib/libgssapi_spnego/Makefile
@@ -2,8 +2,7 @@
LIB= gssapi_spnego
LDFLAGS= -Wl,-Bsymbolic -Wl,--no-undefined
-LDADD= -lgssapi -lheimbase -lasn1 -lroken
-DPADD= ${LIBGSSAPI} ${LIBHEIMBASE} ${LIBASN1} ${LIBROKEN}
+LIBADD= gssapi heimbase asn1 roken
SHLIB_MAJOR= 10
SRCS= accept_sec_context.c \
diff --git a/kerberos5/lib/libhdb/Makefile b/kerberos5/lib/libhdb/Makefile
index a1ed80612896..1f99fc451731 100644
--- a/kerberos5/lib/libhdb/Makefile
+++ b/kerberos5/lib/libhdb/Makefile
@@ -3,8 +3,8 @@
LIB= hdb
LDFLAGS= -Wl,--no-undefined
VERSION_MAP= ${KRB5DIR}/lib/hdb/version-script.map
-LDADD= -lasn1 -lcom_err -lkrb5 -lroken -lheimsqlite
-DPADD= ${LIBASN1} ${LIBCOM_ERR} ${LIBKRB5} ${LIBROKEN} ${LIBHEIMSQLITE} ${LDAPDPADD}
+LIBADD= asn1 com_err krb5 roken heimsqlite
+DPADD= ${LDAPDPADD}
MAN= HDB.3 hdb_entry_ex.3
diff --git a/kerberos5/lib/libheimbase/Makefile b/kerberos5/lib/libheimbase/Makefile
index b6a61d0e9e0d..b6bf526b3522 100644
--- a/kerberos5/lib/libheimbase/Makefile
+++ b/kerberos5/lib/libheimbase/Makefile
@@ -2,7 +2,7 @@
LIB= heimbase
LDFLAGS= -Wl,--no-undefined
-LDADD= -lpthread
+LIBADD= pthread
VERSION_MAP= ${KRB5DIR}/base/version-script.map
INCS= heimbase.h
diff --git a/kerberos5/lib/libheimipcc/Makefile b/kerberos5/lib/libheimipcc/Makefile
index eaab2d24d1fb..1016541af412 100644
--- a/kerberos5/lib/libheimipcc/Makefile
+++ b/kerberos5/lib/libheimipcc/Makefile
@@ -2,8 +2,7 @@
LIB= heimipcc
PRIVATELIB=
-LDADD= -lheimbase -lroken -lpthread
-DPADD= ${LIBHEIMBASE} ${LIBROKEN} ${LIBPTHREAD}
+LIBADD= heimbase roken pthread
SRCS= \
client.c \
diff --git a/kerberos5/lib/libheimipcs/Makefile b/kerberos5/lib/libheimipcs/Makefile
index 31fd4afa1a56..b1201f65a842 100644
--- a/kerberos5/lib/libheimipcs/Makefile
+++ b/kerberos5/lib/libheimipcs/Makefile
@@ -2,9 +2,7 @@
LIB= heimipcs
PRIVATELIB=
-LDADD= -lheimbase -lroken
-LDFLAGS= -pthread
-DPADD= ${LIBHEIMBASE} ${LIBROKEN}
+LIBADD= heimbase roken pthread
SRCS= \
server.c \
diff --git a/kerberos5/lib/libheimntlm/Makefile b/kerberos5/lib/libheimntlm/Makefile
index 2f0415d9b42e..d35fc38accae 100644
--- a/kerberos5/lib/libheimntlm/Makefile
+++ b/kerberos5/lib/libheimntlm/Makefile
@@ -2,8 +2,7 @@
LIB= heimntlm
LDFLAGS= -Wl,--no-undefined
-LDADD= -lcrypto -lcom_err -lkrb5 -lroken
-DPADD= ${LIBCRYPTO} ${LIBCOM_ERR} ${LIBKRB5} ${LIBROKEN}
+LIBADD= crypto com_err krb5 roken
SRCS= ntlm.c ntlm_err.c
INCS= heimntlm.h heimntlm-protos.h ntlm_err.h
CFLAGS+=-I${KRB5DIR}/lib/ntlm -I${KRB5DIR}/lib/roken
diff --git a/kerberos5/lib/libheimsqlite/Makefile b/kerberos5/lib/libheimsqlite/Makefile
index b98537a3324f..8cad7e7202ad 100644
--- a/kerberos5/lib/libheimsqlite/Makefile
+++ b/kerberos5/lib/libheimsqlite/Makefile
@@ -2,8 +2,7 @@
LIB= heimsqlite
SRCS= sqlite3.c
-DPADD= ${LIBPTHREAD}
-LDADD= -lpthread
+LIBADD= pthread
CFLAGS+=-I${KRB5DIR}/lib/sqlite
.include <bsd.lib.mk>
diff --git a/kerberos5/lib/libhx509/Makefile b/kerberos5/lib/libhx509/Makefile
index 3bffda6eb0e4..66e456d88cc9 100644
--- a/kerberos5/lib/libhx509/Makefile
+++ b/kerberos5/lib/libhx509/Makefile
@@ -3,8 +3,7 @@
LIB= hx509
LDFLAGS= -Wl,--no-undefined
VERSION_MAP= ${KRB5DIR}/lib/hx509/version-script.map
-LDADD= -lasn1 -lcom_err -lcrypto -lroken -lwind
-DPADD= ${LIBASN1} ${LIBCOM_ERR} ${LIBCRYPTO} ${LIBROKEN} ${LIBWIND}
+LIBADD= asn1 com_err crypto roken wind
MAN= hx509.3 \
hx509_ca.3 \
diff --git a/kerberos5/lib/libkadm5clnt/Makefile b/kerberos5/lib/libkadm5clnt/Makefile
index c413b5d3cac8..1f3401e636d5 100644
--- a/kerberos5/lib/libkadm5clnt/Makefile
+++ b/kerberos5/lib/libkadm5clnt/Makefile
@@ -2,8 +2,7 @@
LIB= kadm5clnt
LDFLAGS= -Wl,--no-undefined
-LDADD= -lcom_err -lkrb5 -lroken
-DPADD= ${LIBCOM_ERR} ${LIBKRB5} ${LIBROKEN}
+LIBADD= com_err krb5 roken
INCS= admin.h \
kadm5-private.h \
diff --git a/kerberos5/lib/libkadm5srv/Makefile b/kerberos5/lib/libkadm5srv/Makefile
index 5c3a1916880c..adf49a5b1af5 100644
--- a/kerberos5/lib/libkadm5srv/Makefile
+++ b/kerberos5/lib/libkadm5srv/Makefile
@@ -2,8 +2,7 @@
LIB= kadm5srv
LDFLAGS= -Wl,--no-undefined
-LDADD= -lcom_err -lhdb -lkrb5 -lroken
-DPADD= ${LIBCOM_ERR} ${LIBHDB} ${LIBKRB5} ${LIBROKEN}
+LIBADD= com_err hdb krb5 roken
VERSION_MAP= ${KRB5DIR}/lib/kadm5/version-script.map
MAN= kadm5_pwcheck.3
diff --git a/kerberos5/lib/libkafs5/Makefile b/kerberos5/lib/libkafs5/Makefile
index 6d66578cb247..6b7a4cda6d7a 100644
--- a/kerberos5/lib/libkafs5/Makefile
+++ b/kerberos5/lib/libkafs5/Makefile
@@ -1,9 +1,8 @@
# $FreeBSD$
LIB= kafs5
-LDADD= -lasn1 -lroken -lkrb5
LDFLAGS= -Wl,--no-undefined
-DPADD= ${LIBASN1} ${LIBKRB5} ${LIBROKEN}
+LIBADD= asn1 krb5 roken
INCS= kafs.h
MAN= kafs5.3
VERSION_MAP= ${.CURDIR}/version.map
diff --git a/kerberos5/lib/libkdc/Makefile b/kerberos5/lib/libkdc/Makefile
index fa9792da08b6..14b0797e2738 100644
--- a/kerberos5/lib/libkdc/Makefile
+++ b/kerberos5/lib/libkdc/Makefile
@@ -3,9 +3,7 @@
LIB= kdc
LDFLAGS= -Wl,--no-undefined
VERSION_MAP= ${KRB5DIR}/kdc/version-script.map
-LDADD= -lroken -lhdb -lhx509 -lkrb5 -lheimntlm -lasn1 -lcrypt -lcrypto
-DPADD= ${LIBROKEN} ${LIBHDB} ${LIBHX509} ${LIBKRB5} ${LIBHEIMNTLM} \
- ${LIBASN1} ${LIBCRYPT} ${LIBCRYPTO}
+LIBADD= roken hdb hx509 krb5 heimntlm asn1 crypto
INCS= kdc.h \
kdc-protos.h
diff --git a/kerberos5/lib/libkrb5/Makefile b/kerberos5/lib/libkrb5/Makefile
index 4128762967a5..d5b49a5eb5a7 100644
--- a/kerberos5/lib/libkrb5/Makefile
+++ b/kerberos5/lib/libkrb5/Makefile
@@ -3,9 +3,7 @@
LIB= krb5
LDFLAGS= -Wl,--no-undefined
VERSION_MAP= ${KRB5DIR}/lib/krb5/version-script.map
-LDADD= -lasn1 -lcom_err -lcrypt -lcrypto -lhx509 -lroken -lwind -lheimbase ${LDHEIMIPCC}
-DPADD= ${LIBASN1} ${LIBCOM_ERR} ${LIBCRYPT} ${LIBCRYPTO} ${LIBHX509} ${LIBROKEN} ${LIBWIND} ${LIBHEIMBASE} ${LIBHEIMIPCC}
-USEPRIVATELIB= heimipcc
+LIBADD= asn1 com_err crypt crypto hx509 roken wind heimbase heimipcc
INCS= heim_err.h \
heim_threads.h \
@@ -628,3 +626,4 @@ CFLAGS+= -I${KRB5DIR}/lib/krb5 \
.include <bsd.lib.mk>
.PATH: ${KRB5DIR}/lib/krb5 ${KRB5DIR}/lib/asn1 ${KRB5DIR}/include ${.CURDIR}/../../include ${KRB5DIR}/doc/doxyout/krb5/man/man3/
+USEPRIVATELIB= heimipcc
diff --git a/kerberos5/lib/libroken/Makefile b/kerberos5/lib/libroken/Makefile
index cf9368bbf3ee..aade99ae625b 100644
--- a/kerberos5/lib/libroken/Makefile
+++ b/kerberos5/lib/libroken/Makefile
@@ -1,8 +1,7 @@
# $FreeBSD$
LIB= roken
-LDADD= -lcrypt
-DPADD= ${LIBCRYPT}
+LIBADD= crypt
VERSION_MAP= ${KRB5DIR}/lib/roken/version-script.map
INCS= roken.h \
roken-common.h \
diff --git a/kerberos5/lib/libwind/Makefile b/kerberos5/lib/libwind/Makefile
index 6d0b9c08e200..a489566efbb3 100644
--- a/kerberos5/lib/libwind/Makefile
+++ b/kerberos5/lib/libwind/Makefile
@@ -3,8 +3,7 @@
LIB= wind
LDFLAGS= -Wl,--no-undefined
VERSION_MAP= ${KRB5DIR}/lib/wind/version-script.map
-LDADD= -lcom_err -lroken
-DPADD= ${LIBCOM_ERR} ${LIBROKEN}
+LIBADD= com_err roken
INCS= wind.h \
wind_err.h
diff --git a/kerberos5/libexec/digest-service/Makefile b/kerberos5/libexec/digest-service/Makefile
index 0c45c37ed1cb..f018aac64da8 100644
--- a/kerberos5/libexec/digest-service/Makefile
+++ b/kerberos5/libexec/digest-service/Makefile
@@ -8,11 +8,7 @@ CFLAGS+= -I${KRB5DIR}/kdc \
-I${KRB5DIR}/lib/ipc \
-I${KRB5DIR}/lib/wind \
-I${KRB5DIR}/lib/roken
-DPADD= ${LIBHDB} ${LIBKDC} ${LIBHEIMIPCS} ${LIBKRB5} ${LIBROKEN} ${LIBASN1} \
- ${LIBCRYPTO} ${LIBCRYPT} ${LIBVERS}
-LDADD= -lhdb -lkdc ${LDHEIMIPCS} -lkrb5 -lroken -lasn1 -lcrypto -lcrypt \
- ${LIBVERS} -lheimntlm
-USEPRIVATELIB= heimipcs
+LIBADD= hdb kdc heimipcs krb5 roken asn1 crypto vers heimntlm
.include <bsd.prog.mk>
diff --git a/kerberos5/libexec/hprop/Makefile b/kerberos5/libexec/hprop/Makefile
index ac1dffa81a65..88f3dadcff71 100644
--- a/kerberos5/libexec/hprop/Makefile
+++ b/kerberos5/libexec/hprop/Makefile
@@ -10,10 +10,9 @@ CFLAGS+=-I${KRB5DIR}/lib/hx509
CFLAGS+=-I${KRB5DIR}/lib/ntlm
CFLAGS+=-I${KRB5DIR}/kdc
CFLAGS+=-I${.OBJDIR}/../../lib/libkrb5
-DPADD= ${LIBHDB} ${LIBKRB5} ${LIBHX509} ${LIBROKEN} ${LIBVERS} \
- ${LIBASN1} ${LIBCRYPTO} ${LIBCRYPT} ${LIBCOM_ERR} ${LDAPDPADD}
-LDADD= -lhdb -lkrb5 -lhx509 -lroken ${LIBVERS} \
- -lasn1 -lcrypto -lcrypt -lcom_err ${LDAPLDADD}
+LIBADD= hdb krb5 roken vers
+DPADD= ${LDAPDPADD}
+LDADD= ${LDAPLDADD}
LDFLAGS=${LDAPLDFLAGS}
.include <bsd.prog.mk>
diff --git a/kerberos5/libexec/hpropd/Makefile b/kerberos5/libexec/hpropd/Makefile
index e0722bd38640..9f7f9e712838 100644
--- a/kerberos5/libexec/hpropd/Makefile
+++ b/kerberos5/libexec/hpropd/Makefile
@@ -4,10 +4,9 @@ PROG= hpropd
MAN= hpropd.8
CFLAGS+=-I${KRB5DIR}/lib/roken -I${KRB5DIR}/lib/krb5 -I${KRB5DIR}/lib/asn1 \
-I${KRB5DIR}/kdc ${LDAPCFLAGS}
-DPADD= ${LIBHDB} ${LIBKRB5} ${LIBHX509} ${LIBROKEN} ${LIBVERS} \
- ${LIBASN1} ${LIBCRYPTO} ${LIBCRYPT} ${LIBCOM_ERR} ${LDAPDPADD}
-LDADD= -lhdb -lkrb5 -lhx509 -lroken ${LIBVERS} \
- -lasn1 -lcrypto -lcrypt -lcom_err ${LDAPLDADD}
+LIBADD= hdb krb5 roken vers
+DPADD= ${LDAPDPADD}
+LDADD= ${LDAPLDADD}
LDFLAGS=${LDAPLDFLAGS}
.include <bsd.prog.mk>
diff --git a/kerberos5/libexec/ipropd-master/Makefile b/kerberos5/libexec/ipropd-master/Makefile
index 99a4f9c3ca30..53e6adebf5fb 100644
--- a/kerberos5/libexec/ipropd-master/Makefile
+++ b/kerberos5/libexec/ipropd-master/Makefile
@@ -5,10 +5,9 @@ MAN= iprop.8
SRCS= ipropd_common.c ipropd_master.c kadm5_err.h
CFLAGS+=-I${KRB5DIR}/lib/krb5 -I${KRB5DIR}/lib/asn1 -I${KRB5DIR}/lib/roken \
-I. ${LDAPCFLAGS}
-DPADD= ${LIBKADM5SRV} ${LIBHDB} ${LIBKRB5} ${LIBHX509} ${LIBROKEN} ${LIBVERS} \
- ${LIBASN1} ${LIBCRYPTO} ${LIBCRYPT} ${LIBCOM_ERR} ${LDAPDPADD}
-LDADD= -lkadm5srv -lhdb -lkrb5 -lhx509 -lroken ${LIBVERS} \
- -lasn1 -lcrypto -lcrypt -lcom_err ${LDAPLDADD}
+LIBADD= kadm5srv hdb krb5 roken vers
+DPADD= ${LDAPDPADD}
+LDADD= ${LDAPLDADD}
LDFLAGS=${LDAPLDFLAGS}
foo::
diff --git a/kerberos5/libexec/ipropd-slave/Makefile b/kerberos5/libexec/ipropd-slave/Makefile
index 8a72d9e8b2e2..cae84aa5ffb5 100644
--- a/kerberos5/libexec/ipropd-slave/Makefile
+++ b/kerberos5/libexec/ipropd-slave/Makefile
@@ -5,10 +5,9 @@ MAN=
SRCS= ipropd_common.c ipropd_slave.c kadm5_err.h
CFLAGS+=-I${KRB5DIR}/lib/krb5 -I${KRB5DIR}/lib/asn1 -I${KRB5DIR}/lib/roken \
-I. ${LDAPCFLAGS}
-DPADD= ${LIBKADM5SRV} ${LIBHDB} ${LIBKRB5} ${LIBHX509} ${LIBROKEN} ${LIBVERS} \
- ${LIBASN1} ${LIBCRYPTO} ${LIBCRYPT} ${LIBCOM_ERR} ${LDAPDPADD}
-LDADD= -lkadm5srv -lhdb -lkrb5 -lhx509 -lroken ${LIBVERS} \
- -lasn1 -lcrypto -lcrypt -lcom_err ${LDAPLDADD}
+LIBADD= kadm5srv hdb krb5 roken vers
+DPADD= ${LDAPDPADD}
+LDADD= ${LDAPLDADD}
LDFLAGS=${LDAPLDFLAGS}
.include <bsd.prog.mk>
diff --git a/kerberos5/libexec/kadmind/Makefile b/kerberos5/libexec/kadmind/Makefile
index f88ac2f1b330..27200d6d98ca 100644
--- a/kerberos5/libexec/kadmind/Makefile
+++ b/kerberos5/libexec/kadmind/Makefile
@@ -9,10 +9,9 @@ SRCS= rpc.c \
CFLAGS+=-I${KRB5DIR}/lib/krb5 -I${KRB5DIR}/lib/asn1 -I${KRB5DIR}/lib/roken \
${LDAPCFLAGS}
-DPADD= ${LIBKADM5SRV} ${LIBGSSAPI} ${LIBHDB} ${LIBKRB5} ${LIBROKEN} \
- ${LIBASN1} ${LIBVERS} ${LIBCRYPTO} ${LIBCRYPT} ${LDAPDPADD}
-LDADD= -lkadm5srv -lgssapi -lhdb -lkrb5 -lroken \
- -lasn1 ${LIBVERS} -lcrypto -lcrypt ${LDAPLDADD}
+LIBADD= kadm5srv gssapi hdb krb5 roken vers
+DPADD= ${LDAPDPADD}
+LDADD= ${LDAPLDADD}
LDFLAGS=${LDAPLDFLAGS}
.include <bsd.prog.mk>
diff --git a/kerberos5/libexec/kcm/Makefile b/kerberos5/libexec/kcm/Makefile
index c0e15447ab38..fa7a0cfce9cf 100644
--- a/kerberos5/libexec/kcm/Makefile
+++ b/kerberos5/libexec/kcm/Makefile
@@ -19,11 +19,9 @@ SRCS= acl.c \
CFLAGS+=-I${KRB5DIR}/lib/krb5 -I${KRB5DIR}/lib/asn1 -I${KRB5DIR}/lib/roken \
-I${KRB5DIR}/kcm -I${KRB5DIR}/lib/ipc ${LDAPCFLAGS}
-DPADD= ${LIBHDB} ${LIBKRB5} ${LIBROKEN} ${LIBASN1} ${LIBHEIMNTLM} \
- ${LIBHEIMIPCS} ${LIBCRYPTO} ${LIBCRYPT} ${LIBVERS} ${LDAPDPADD}
-LDADD= -lhdb -lkrb5 -lroken -lasn1 -lheimntlm ${LDHEIMIPCS} \
- -lcrypto -lcrypt ${LIBVERS} ${LDAPLDADD}
-USEPRIVATELIB= heimipcs
+LIBADD= krb5 roken heimntlm heimipcs crypto
+DPADD= ${LDAPDPADD}
+LDADD= ${LIBVERS} ${LDAPLDADD}
LDFLAGS=${LDAPLDFLAGS}
.include <bsd.prog.mk>
diff --git a/kerberos5/libexec/kdc/Makefile b/kerberos5/libexec/kdc/Makefile
index 4ca5c3a201b2..c88a5cd7040e 100644
--- a/kerberos5/libexec/kdc/Makefile
+++ b/kerberos5/libexec/kdc/Makefile
@@ -10,9 +10,7 @@ SRCS= config.c \
CFLAGS+=-I${KRB5DIR}/lib/krb5 -I${KRB5DIR}/lib/asn1 -I${KRB5DIR}/lib/roken \
-I${KRB5DIR}/kdc ${LDAPCFLAGS}
-DPADD= ${LIBKDC} ${LIBHDB} ${LIBKRB5} ${LIBROKEN} ${LIBASN1} \
- ${LIBCRYPTO} ${LIBCRYPT} ${LIBVERS}
-LDADD= -lkdc -lhdb -lkrb5 -lroken -lasn1 -lcrypto -lcrypt ${LIBVERS}
+LIBADD= kdc hdb krb5 roken crypt vers
.include <bsd.prog.mk>
diff --git a/kerberos5/libexec/kdigest/Makefile b/kerberos5/libexec/kdigest/Makefile
index c88e3b990f0f..f9b42e56851e 100644
--- a/kerberos5/libexec/kdigest/Makefile
+++ b/kerberos5/libexec/kdigest/Makefile
@@ -5,10 +5,7 @@ MAN= kdigest.8
CFLAGS+= -I${KRB5DIR}/lib/asn1 \
-I${KRB5DIR}/lib/roken \
-I${KRB5DIR}/lib/sl -I.
-DPADD= ${LIBKRB5} ${LIBHEIMNTLM} ${LIBROKEN} ${LIBASN1} ${LIBCRYPTO} \
- ${LIBCRYPT} ${LIBSL} ${LIBVERS} ${LIBEDIT}
-LDADD= -lkrb5 -lheimntlm -lroken -lasn1 -lcrypto -lcrypt ${LIBSL} \
- ${LIBVERS} -ledit
+LIBADD= krb5 heimntlm roken crypto edit sl vers
SRCS= kdigest.c \
kdigest-commands.c \
kdigest-commands.h
diff --git a/kerberos5/libexec/kfd/Makefile b/kerberos5/libexec/kfd/Makefile
index f5081f18bed2..82df3adbb6da 100644
--- a/kerberos5/libexec/kfd/Makefile
+++ b/kerberos5/libexec/kfd/Makefile
@@ -4,10 +4,7 @@ PROG= kfd
MAN= kfd.8
CFLAGS+= -I${KRB5DIR}/lib/asn1 \
-I${KRB5DIR}/lib/roken
-DPADD= ${LIBKRB5} ${LIBROKEN} ${LIBASN1} ${LIBCRYPTO} \
- ${LIBCRYPT} ${LIBVERS}
-LDADD= -lkrb5 -lroken -lasn1 -lcrypto -lcrypt \
- ${LIBVERS}
+LIBADD= krb5 roken vers
.include <bsd.prog.mk>
diff --git a/kerberos5/libexec/kimpersonate/Makefile b/kerberos5/libexec/kimpersonate/Makefile
index 32f97772c9b5..3c94db6857d0 100644
--- a/kerberos5/libexec/kimpersonate/Makefile
+++ b/kerberos5/libexec/kimpersonate/Makefile
@@ -6,10 +6,7 @@ CFLAGS+= -I${KRB5DIR}/lib/hx509 \
-I${KRB5DIR}/lib/asn1 \
-I${KRB5DIR}/lib/roken \
-I${KRB5DIR}/lib/sl -I.
-DPADD= ${LIBKAFS5} ${LIBKRB5} ${LIBHEIMNTLM} ${LIBROKEN} ${LIBASN1} ${LIBCRYPTO} \
- ${LIBCRYPT} ${LIBVERS}
-LDADD= -lkafs5 -lkrb5 -lheimntlm -lroken -lasn1 -lcrypto -lcrypt \
- ${LIBVERS}
+LIBADD= krb5 roken asn1 vers
.include <bsd.prog.mk>
diff --git a/kerberos5/libexec/kpasswdd/Makefile b/kerberos5/libexec/kpasswdd/Makefile
index 22876861edaa..2fe79646aae6 100644
--- a/kerberos5/libexec/kpasswdd/Makefile
+++ b/kerberos5/libexec/kpasswdd/Makefile
@@ -3,10 +3,9 @@
PROG= kpasswdd
MAN= kpasswdd.8
CFLAGS+=-I${KRB5DIR}/lib/roken -I../../lib/libhdb ${LDAPCFLAGS}
-DPADD= ${LIBKADM5SRV} ${LIBHDB} ${LIBKRB5} ${LIBHX509} ${LIBROKEN} ${LIBVERS} \
- ${LIBASN1} ${LIBCRYPTO} ${LIBCRYPT} ${LIBCOM_ERR} ${LDAPDPADD}
-LDADD= -lkadm5srv -lhdb -lkrb5 -lhx509 -lroken ${LIBVERS} \
- -lasn1 -lcrypto -lcrypt -lcom_err ${LDAPLDADD}
+LIBADD= kadm5srv hdb krb5 roken vers asn1
+DPADD= ${LDAPDPADD}
+LDADD= ${LDAPLDADD}
LDFLAGS=${LDAPLDFLAGS}
.include <bsd.prog.mk>
diff --git a/kerberos5/tools/asn1_compile/Makefile b/kerberos5/tools/asn1_compile/Makefile
index 88224da89eff..54c2fdf81967 100644
--- a/kerberos5/tools/asn1_compile/Makefile
+++ b/kerberos5/tools/asn1_compile/Makefile
@@ -3,8 +3,9 @@
PROG= asn1_compile
MAN=
LIBROKEN_A= ${.OBJDIR}/../../lib/libroken/libroken.a
-LDADD= ${LIBROKEN_A} ${LIBVERS}
-DPADD= ${LIBROKEN_A} ${LIBVERS}
+LIBADD= vers
+LDADD= ${LIBROKEN_A}
+DPADD= ${LIBROKEN_A}
SRCS= \
asn1parse.y \
diff --git a/kerberos5/tools/slc/Makefile b/kerberos5/tools/slc/Makefile
index 1a26e7cd7959..cabd5893884c 100644
--- a/kerberos5/tools/slc/Makefile
+++ b/kerberos5/tools/slc/Makefile
@@ -2,8 +2,9 @@
PROG= slc
LIBROKEN_A= ${.OBJDIR}/../../lib/libroken/libroken.a
-LDADD= ${LIBROKEN_A} ${LIBVERS}
-DPADD= ${LIBROKEN_A} ${LIBVERS}
+LIBADD= vers
+LDADD= ${LIBROKEN_A}
+DPADD= ${LIBROKEN_A}
MAN=
SRCS= roken.h \
diff --git a/kerberos5/usr.bin/hxtool/Makefile b/kerberos5/usr.bin/hxtool/Makefile
index 3946484b78a1..53612fd1274f 100644
--- a/kerberos5/usr.bin/hxtool/Makefile
+++ b/kerberos5/usr.bin/hxtool/Makefile
@@ -6,8 +6,7 @@ CFLAGS+= -I${KRB5DIR}/lib/hx509 \
-I${KRB5DIR}/lib/asn1 \
-I${KRB5DIR}/lib/roken \
-I${KRB5DIR}/lib/sl -I.
-DPADD= ${LIBHX509} ${LIBROKEN} ${LIBASN1} ${LIBCRYPTO} ${LIBCRYPT} ${LIBSL} ${LIBVERS} ${LIBEDIT}
-LDADD= -lhx509 -lroken -lasn1 -lcrypto -lcrypt ${LIBSL} ${LIBVERS} -ledit
+LIBADD= hx509 roken asn1 crypto sl vers edit
SRCS= hxtool.c hxtool-commands.c hxtool-commands.h
hxtool-commands.h: hxtool-commands.in
diff --git a/kerberos5/usr.bin/kadmin/Makefile b/kerberos5/usr.bin/kadmin/Makefile
index 8ea3efc01564..b3b84b9ab0ce 100644
--- a/kerberos5/usr.bin/kadmin/Makefile
+++ b/kerberos5/usr.bin/kadmin/Makefile
@@ -26,14 +26,9 @@ SRCS= add_enctype.c \
CFLAGS+=-I${KRB5DIR}/lib/asn1 -I${KRB5DIR}/lib/krb5 -I${KRB5DIR}/lib/roken \
-I${KRB5DIR}/lib/sl -I. ${LDAPCFLAGS}
-DPADD= ${LIBKADM5CLNT} ${LIBKADM5SRV} ${LIBHDB} ${LIBKRB5} ${LIBHX509} \
- ${LIBSL} ${LIBROKEN} ${LIBVERS} ${LIBASN1} \
- ${LIBCRYPTO} ${LIBCRYPT} ${LIBCOM_ERR} \
- ${LIBEDIT} ${LIBNCURSESW} ${LDAPDPADD}
-LDADD= -lkadm5clnt -lkadm5srv -lhdb -lkrb5 -lhx509 \
- ${LIBSL} -lroken ${LIBVERS} -lasn1 \
- -lcrypto -lcrypt -lcom_err \
- -ledit -lncursesw ${LDAPLDADD}
+LIBADD= kadm5clnt kadm5srv hdb krb5 roken vers sl asn1 crypto edit
+DPADD= ${LDAPDPADD}
+LDADD= ${LDAPLDADD}
LDFLAGS=${LDAPLDFLAGS}
.include <bsd.prog.mk>
diff --git a/kerberos5/usr.bin/kcc/Makefile b/kerberos5/usr.bin/kcc/Makefile
index 3da43d7a35b2..cde73f5f7f9e 100644
--- a/kerberos5/usr.bin/kcc/Makefile
+++ b/kerberos5/usr.bin/kcc/Makefile
@@ -8,10 +8,7 @@ CFLAGS+= -I${KRB5DIR}/lib/hx509 \
-I${KRB5DIR}/lib/asn1 \
-I${KRB5DIR}/lib/roken \
-I${KRB5DIR}/lib/sl -I.
-DPADD= ${LIBKRB5} ${LIBHEIMNTLM} ${LIBROKEN} ${LIBASN1} ${LIBCRYPTO} \
- ${LIBCRYPT} ${LIBKAFS5} ${LIBSL} ${LIBVERS} ${LIBEDIT}
-LDADD= -lkrb5 -lheimntlm -lroken -lasn1 -lcrypto -lcrypt -lkafs5 ${LIBSL} \
- ${LIBVERS} -ledit
+LIBADD= krb5 roken asn1 kafs5 edit sl vers
SRCS= kcc.c \
kcc-commands.c \
kcc-commands.h \
diff --git a/kerberos5/usr.bin/kdestroy/Makefile b/kerberos5/usr.bin/kdestroy/Makefile
index b3946e42fd29..23e90237c658 100644
--- a/kerberos5/usr.bin/kdestroy/Makefile
+++ b/kerberos5/usr.bin/kdestroy/Makefile
@@ -2,10 +2,7 @@
PROG= kdestroy
CFLAGS+=-I${KRB5DIR}/lib/roken
-DPADD= ${LIBKAFS5} ${LIBKRB5} ${LIBHEIMNTLM} ${LIBROKEN} ${LIBVERS} \
- ${LIBASN1} ${LIBCRYPTO} ${LIBCRYPT}
-LDADD= -lkafs5 -lkrb5 -lheimntlm -lroken ${LIBVERS} \
- -lasn1 -lcrypto -lcrypt
+LIBADD= kafs5 krb5 roken vers
MAN= kdestroy.1
.include <bsd.prog.mk>
diff --git a/kerberos5/usr.bin/kf/Makefile b/kerberos5/usr.bin/kf/Makefile
index c9d3fceb14f8..44d91830baaf 100644
--- a/kerberos5/usr.bin/kf/Makefile
+++ b/kerberos5/usr.bin/kf/Makefile
@@ -4,10 +4,7 @@ PROG= kf
MAN= kf.1
CFLAGS+= -I${KRB5DIR}/lib/asn1 \
-I${KRB5DIR}/lib/roken
-DPADD= ${LIBKRB5} ${LIBROKEN} ${LIBASN1} ${LIBCRYPTO} \
- ${LIBCRYPT} ${LIBVERS}
-LDADD= -lkrb5 -lroken -lasn1 -lcrypto -lcrypt \
- ${LIBVERS}
+LIBADD= krb5 roken vers
.include <bsd.prog.mk>
diff --git a/kerberos5/usr.bin/kgetcred/Makefile b/kerberos5/usr.bin/kgetcred/Makefile
index dac38adcc18a..1451154f9cf8 100644
--- a/kerberos5/usr.bin/kgetcred/Makefile
+++ b/kerberos5/usr.bin/kgetcred/Makefile
@@ -3,8 +3,7 @@
PROG= kgetcred
CFLAGS+= -I${KRB5DIR}/lib/asn1 \
-I${KRB5DIR}/lib/roken
-DPADD= ${LIBKRB5} ${LIBROKEN} ${LIBASN1} ${LIBCRYPTO} ${LIBCRYPT} ${LIBVERS}
-LDADD= -lkrb5 -lroken -lasn1 -lcrypto -lcrypt ${LIBVERS}
+LIBADD= krb5 roken asn1 vers
.include <bsd.prog.mk>
diff --git a/kerberos5/usr.bin/kinit/Makefile b/kerberos5/usr.bin/kinit/Makefile
index e0229f98079d..7622b8da956e 100644
--- a/kerberos5/usr.bin/kinit/Makefile
+++ b/kerberos5/usr.bin/kinit/Makefile
@@ -2,10 +2,7 @@
PROG= kinit
CFLAGS+=-I${KRB5DIR}/lib/roken
-DPADD= ${LIBKAFS5} ${LIBKRB5} ${LIBHEIMNTLM} ${LIBROKEN} ${LIBVERS} \
- ${LIBASN1} ${LIBCRYPTO} ${LIBCRYPT}
-LDADD= -lkafs5 -lkrb5 -lheimntlm -lroken ${LIBVERS} \
- -lasn1 -lcrypto -lcrypt -lcom_err
+LIBADD= kafs5 krb5 heimntlm roken crypto vers
.include <bsd.prog.mk>
diff --git a/kerberos5/usr.bin/kpasswd/Makefile b/kerberos5/usr.bin/kpasswd/Makefile
index a9ab1c99ec89..66cb4569a650 100644
--- a/kerberos5/usr.bin/kpasswd/Makefile
+++ b/kerberos5/usr.bin/kpasswd/Makefile
@@ -2,10 +2,7 @@
PROG= kpasswd
CFLAGS+=-I${KRB5DIR}/lib/roken
-DPADD= ${LIBKRB5} ${LIBHX509} ${LIBROKEN} ${LIBVERS} \
- ${LIBASN1} ${LIBCRYPTO} ${LIBCRYPT} ${LIBCOM_ERR}
-LDADD= -lkrb5 -lhx509 -lroken ${LIBVERS} \
- -lasn1 -lcrypto -lcrypt -lcom_err
+LIBADD= hdb krb5 roken vers crypto
.include <bsd.prog.mk>
diff --git a/kerberos5/usr.bin/ksu/Makefile b/kerberos5/usr.bin/ksu/Makefile
index 9e2786577ff8..ebd39c677b54 100644
--- a/kerberos5/usr.bin/ksu/Makefile
+++ b/kerberos5/usr.bin/ksu/Makefile
@@ -8,10 +8,7 @@ PRECIOUSPROG=
MAN=
SRCS= su.c
CFLAGS+=-I${KRB5DIR}/lib/roken
-DPADD= ${LIBKAFS5} ${LIBKRB5} ${LIBHX509} ${LIBROKEN} ${LIBVERS} \
- ${LIBASN1} ${LIBCRYPTO} ${LIBCRYPT} ${LIBCOM_ERR}
-LDADD= -lkafs5 -lkrb5 -lhx509 -lroken ${LIBVERS} \
- -lasn1 -lcrypto -lcrypt -lcom_err
+LIBADD= kafs5 krb5 roken vers crypto crypt
.include <bsd.prog.mk>
diff --git a/kerberos5/usr.bin/string2key/Makefile b/kerberos5/usr.bin/string2key/Makefile
index fc790e24dd88..eb7b2043fac0 100644
--- a/kerberos5/usr.bin/string2key/Makefile
+++ b/kerberos5/usr.bin/string2key/Makefile
@@ -7,9 +7,7 @@ CFLAGS+= -I${KRB5DIR}/kdc \
-I${KRB5DIR}/lib/krb5 \
-I${KRB5DIR}/lib/roken \
-I${KRB5DIR}/lib/windc
-DPADD= ${LIBHDB} ${LIBKRB5} ${LIBROKEN} ${LIBASN1} ${LIBCRYPTO} \
- ${LIBCRYPT} ${LIBVERS}
-LDADD= -lhdb -lkrb5 -lroken -lasn1 -lcrypto -lcrypt ${LIBVERS}
+LIBADD= krb5 roken crypto vers
.include <bsd.prog.mk>
diff --git a/kerberos5/usr.bin/verify_krb5_conf/Makefile b/kerberos5/usr.bin/verify_krb5_conf/Makefile
index 830e66a29115..ced75436e523 100644
--- a/kerberos5/usr.bin/verify_krb5_conf/Makefile
+++ b/kerberos5/usr.bin/verify_krb5_conf/Makefile
@@ -3,10 +3,7 @@
PROG= verify_krb5_conf
MAN= verify_krb5_conf.8
CFLAGS+=-I${KRB5DIR}/lib/asn1 -I${KRB5DIR}/lib/krb5 -I${KRB5DIR}/lib/roken
-DPADD= ${LIBKAFS5} ${LIBKRB5} ${LIBHX509} ${LIBROKEN} ${LIBVERS} \
- ${LIBASN1} ${LIBCRYPTO} ${LIBCRYPT} ${LIBCOM_ERR}
-LDADD= -lkafs5 -lkrb5 -lhx509 -lroken ${LIBVERS} \
- -lasn1 -lcrypto -lcrypt -lcom_err
+LIBADD= krb5 roken vers
.include <bsd.prog.mk>
diff --git a/kerberos5/usr.sbin/iprop-log/Makefile b/kerberos5/usr.sbin/iprop-log/Makefile
index 176012a9e7d9..f31be516fb28 100644
--- a/kerberos5/usr.sbin/iprop-log/Makefile
+++ b/kerberos5/usr.sbin/iprop-log/Makefile
@@ -8,10 +8,7 @@ CFLAGS+= -I${KRB5DIR}/lib/kadm5 \
-I${KRB5DIR}/lib/roken \
-I${KRB5DIR}/lib/sl \
-I.
-DPADD= ${LIBKADM5SRV} ${LIBHDB} ${LIBKRB5} ${LIBASN1} ${LIBCRYPTO} \
- ${LIBCRYPT} ${LIBSL} ${LIBROKEN} ${LIBVERS} ${LIBEDIT}
-LDADD= -lkadm5srv -lhdb -lkrb5 -lasn1 -lcrypto -lcrypt ${LIBSL} -lroken \
- ${LIBVERS} -ledit
+LIBADD= kadm5srv hdb krb5 roken edit sl vers
iprop-commands.h: iprop-commands.in
${SLC} ${.ALLSRC:M*.in}
diff --git a/kerberos5/usr.sbin/kstash/Makefile b/kerberos5/usr.sbin/kstash/Makefile
index 024e45dba917..d96c96c75121 100644
--- a/kerberos5/usr.sbin/kstash/Makefile
+++ b/kerberos5/usr.sbin/kstash/Makefile
@@ -4,10 +4,9 @@ PROG= kstash
MAN= kstash.8
CFLAGS+=-I${KRB5DIR}/lib/asn1 -I${KRB5DIR}/lib/krb5 -I${KRB5DIR}/lib/roken \
-I${KRB5DIR}/kdc ${LDAPCFLAGS}
-DPADD= ${LIBHDB} ${LIBKRB5} ${LIBROKEN} ${LIBVERS} \
- ${LIBASN1} ${LIBCRYPTO} ${LIBCRYPT} ${LDAPDPADD}
-LDADD= -lhdb -lkrb5 -lroken ${LIBVERS} \
- -lasn1 -lcrypto -lcrypt ${LDAPLDADD}
+LIBADD= hdb krb5 crypto vers
+DPADD= ${LDAPDPADD}
+LDADD= ${LDAPLDADD}
LDFLAGS=${LDAPLDFLAGS}
.include <bsd.prog.mk>
diff --git a/kerberos5/usr.sbin/ktutil/Makefile b/kerberos5/usr.sbin/ktutil/Makefile
index f7d340f78e9a..fe45494c40cb 100644
--- a/kerberos5/usr.sbin/ktutil/Makefile
+++ b/kerberos5/usr.sbin/ktutil/Makefile
@@ -17,10 +17,7 @@ SRCS= add.c \
rename.c
CFLAGS+=-I${KRB5DIR}/lib/roken -I${KRB5DIR}/lib/sl -I.
-DPADD= ${LIBKADM5CLNT} ${LIBKRB5} ${LIBSL} ${LIBROKEN} ${LIBVERS} \
- ${LIBASN1} ${LIBCRYPTO} ${LIBCRYPT} ${LIBEDIT}
-LDADD= -lkadm5clnt -lkrb5 ${LIBSL} -lroken ${LIBVERS} \
- -lasn1 -lcrypto -lcrypt -ledit
+LIBADD= kadm5clnt krb5 roken crypto edit sl vers
.include <bsd.prog.mk>