summaryrefslogtreecommitdiffstats
path: root/kerberos5/lib
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2014-11-25 09:57:42 +0000
committerbapt <bapt@FreeBSD.org>2014-11-25 09:57:42 +0000
commit3200f33f2420477e5df82a363db975f2901c289d (patch)
treebb41aaf2a8a206515fdcf1f5a5d9fa6523213ef1 /kerberos5/lib
parentb4ca360a6a4a7cf10023bda2d444cd8c32503833 (diff)
downloadFreeBSD-src-3200f33f2420477e5df82a363db975f2901c289d.zip
FreeBSD-src-3200f33f2420477e5df82a363db975f2901c289d.tar.gz
Convert kerberos to LIBADD and reduce overlinking of the kerberos binaries and
libraries
Diffstat (limited to 'kerberos5/lib')
-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
18 files changed, 20 insertions, 39 deletions
diff --git a/kerberos5/lib/libasn1/Makefile b/kerberos5/lib/libasn1/Makefile
index 02e6a49..d445b8b 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 a883c7d..6116767 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 cfe0716..ac546f7 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 0906265..9216808 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 a1ed806..1f99fc4 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 b6a61d0..b6bf526 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 eaab2d2..1016541 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 31fd4af..b1201f6 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 2f0415d..d35fc38 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 b98537a..8cad7e7 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 3bffda6..66e456d 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 c413b5d..1f3401e 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 5c3a191..adf49a5 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 6d66578..6b7a4cd 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 fa9792d..14b0797 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 4128762..d5b49a5 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 cf9368b..aade99a 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 6d0b9c0..a489566 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
OpenPOWER on IntegriCloud