From 6245c4c92b88c4d46a0eabe10bbfc3f6b8251bfc Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Mon, 2 Jul 2001 14:07:08 +0000 Subject: Fix building on non-kerberos systems --- libexec/login_krb4-or-pwd/Makefile | 25 ++++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-) (limited to 'libexec/login_krb4-or-pwd/Makefile') 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 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 -- cgit v1.2.3