diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2001-07-02 14:07:08 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2001-07-02 14:07:08 +0000 |
commit | 6245c4c92b88c4d46a0eabe10bbfc3f6b8251bfc (patch) | |
tree | 368d718d18291d00959e4d74834a668c1fa2894c /libexec/login_krb4-or-pwd | |
parent | a586ea1c32f236af49b8cb5e5aa082c54b43a76a (diff) |
Fix building on non-kerberos systems
Diffstat (limited to 'libexec/login_krb4-or-pwd')
-rw-r--r-- | libexec/login_krb4-or-pwd/Makefile | 25 |
1 files changed, 18 insertions, 7 deletions
diff --git a/libexec/login_krb4-or-pwd/Makefile b/libexec/login_krb4-or-pwd/Makefile index 0c7e33043eb..3ec626172a1 100644 --- a/libexec/login_krb4-or-pwd/Makefile +++ b/libexec/login_krb4-or-pwd/Makefile @@ -1,12 +1,23 @@ -# $OpenBSD: Makefile,v 1.2 2001/06/26 05:03:27 hin Exp $ +# $OpenBSD: Makefile,v 1.3 2001/07/02 14:07:06 millert Exp $ + +.include <bsd.own.mk> PROG= login_krb4-or-pwd -SRCS= login_krb4.c login_passwd.c login.c -MAN= login_krb4-or-pwd.8 -DPADD= ${LIBUTIL} -LDADD= -lutil -lkrb -lcrypto -CFLAGS+=-Wall -Werror -DPASSWD -DKRB4 -I${.CURDIR}/../login_passwd -.PATH: ${.CURDIR}/../login_krb4 ${.CURDIR}/../login_passwd +SRCS= login.c login_passwd.c +MAN= ${PROG}.8 +CFLAGS+=-DPASSWD -Wall -Werror -I${.CURDIR}/../login_passwd + +.if (${KERBEROS:L} == "yes") +SRCS+= login_krb4.c +DPADD+= ${LIBKRB} ${LIBCRYPTO} ${LIBUTIL} +LDADD+= -lkrb -lcrypto -lutil +CFLAGS+=-DKRB4 +.PATH: ${.CURDIR}/../login_passwd ${.CURDIR}/../login_krb4 +.else +DPADD+= ${LIBUTIL} +LDADD+= -lutil +.PATH: ${.CURDIR}/../login_passwd +.endif BINOWN= root BINGRP= auth |