- Add depency ob ligssapi and the required c-file(s).

- Reorder libkafs so its possible to build w/o kerberos4
From Love.
This commit is contained in:
christos 2005-02-13 22:48:01 +00:00
parent 1b9aa59ad8
commit 0f037c7626

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.23 2005/02/13 18:15:05 christos Exp $
# $NetBSD: Makefile,v 1.24 2005/02/13 22:48:01 christos Exp $
.include <bsd.own.mk>
@ -24,17 +24,25 @@ DPADD+= ${LIBPAM}
.endif
.if (${USE_KERBEROS} != "no")
CPPFLAGS+=-DGSSAPI -I${DESTDIR}/usr/include/gssapi
SRCS += gss-genr.c auth2-gss.c gss-serv.c gss-serv-krb5.c
LDADD+= -lgssapi
DPADD+= ${LIBGSSAPI}
LDADD+= -lkafs
DPADD+= ${LIBKAFS}
CPPFLAGS+=-DKRB5 -I${DESTDIR}/usr/include/krb5
CPPFLAGS+=-I${DESTDIR}/usr/include/kerberosIV
SRCS+= auth-krb5.c auth2-krb5.c
LDADD+= -lkrb5 -lasn1
DPADD+= ${LIBKRB5} ${LIBASN1}
.if ${MKKERBEROS4} != "no"
CPPFLAGS+=-DKRB4 -DAFS
SRCS+= auth-krb4.c
LDADD+= -lkrb -ldes -lkafs
DPADD+= ${LIBKRB} ${LIBDES} ${LIBKAFS}
CPPFLAGS+=-DKRB4 -DAFS -I${DESTDIR}/usr/include/kerberosIV
SRCS+= auth-krb4.c radix.c
LDADD+= -lkrb -ldes
DPADD+= ${LIBKRB} ${LIBDES}
.endif
LDADD+= -lcom_err -lroken