#	from: @(#)Makefile	8.2 (Berkeley) 12/15/93
#	$Id: Makefile,v 1.14 1997/03/11 20:42:42 sjg Exp $

PROG=	stelnetd
# set these as needed/supported in ../Makefile.${MACHINE}.inc
#CFLAGS+=-DLINEMODE -DKLUDGELINEMODE -DUSE_TERMIO 
CFLAGS+=-DOLD_ENVIRON -DENV_HACK -DDIAGNOSTICS -DSecurID
.if ! exists(/netbsd)
.if exists(/usr/local/libexec/login-ts)
CFLAGS+= -D_PATH_LOGIN=\"/usr/local/libexec/login-ts\"
.else
.if exists(/usr/local/libexec/login)
CFLAGS+= -D_PATH_LOGIN=\"/usr/local/libexec/login\"
.endif
.endif
.endif
SRCS=	authenc.c global.c slc.c state.c sys_term.c telnetd.c \
	termstat.c utility.c
DPADD=	${LIBUTIL} ${LIBTERM}
.if exists(/usr/lib/libutil.a)
LIBS=	-lutil
.endif
LIBS+=	${TERMLIB} -ltelnet
MAN8=	telnetd.0
LIBS+= -ltcp -lmisc
SRCS+= pkesvr.c

BINDIR=/usr/local/libexec

.include "prog.mk"

.if exists(${.CURDIR}/Makefile.${MACHINE}.inc)
.include "${.CURDIR}/Makefile.${MACHINE}.inc"
.endif

TERMLIB?= -ltermcap 
