#	$NetBSD: Makefile,v 1.10 1994/12/23 06:52:56 jtc Exp $
#	@(#)Makefile	8.1 (Berkeley) 7/19/93

PROG=	login
SRCS=	login.c doutmp.c getpass.c getpwbyname.c

BINOWN?=root
BINMODE=555
BINDIR=/usr/local/libexec

USE_SKEY=yes
USE_CRYPT=yes
USE_SSL=no
USE_FWTK=yes

.include <prog.mk>

TELNETLIB=

.ifmake all
# work out what default path we should use, from /bin/sh
# but lose '.'
.if ! defined(DEFPATH) || empty(DEFPATH)
DEFPATH!= strings /bin/sh | grep /bin: | grep -v = | sed -e 's/^:*\(.*[^:]\):*/\1/' | tail -1
.endif
DEFPATH?=/usr/bin:/bin

CFLAGS+= -D_PATH_DEFPATH=\"${DEFPATH}\"
.if ${MACHINE} != "irix" ||  ${MACHINE} != "IRIX.mips"
.if exists(/usr/sbin)
CFLAGS+= -D_PATH_DEFROOTPATH=\"/usr/sbin:${DEFPATH}\"
.endif
.endif
.endif
