1# $FreeBSD: src/libexec/telnetd/Makefile,v 1.31 2006/07/31 19:15:09 yar Exp $ 2 3# Do not define -DKLUDGELINEMODE, as it does not interact well with many 4# telnet implementations. 5 6PROG= telnetd 7MAN= telnetd.8 8 9SRCS= global.c slc.c state.c sys_term.c telnetd.c \ 10 termstat.c utility.c 11 12WARNS?= 2 13 14CFLAGS+= -DLINEMODE -DUSE_TERMIO -DDIAGNOSTICS -DOLD_ENVIRON -DENV_HACK \ 15 -I${.CURDIR}/../../lib 16 17.if !defined(NO_INET6) 18CFLAGS+= -DINET6 19.endif 20 21LIBTELNET= ${.OBJDIR}/../../lib/libtelnet/libtelnet.a 22 23DPADD= ${LIBUTIL} ${LIBTERMCAP} ${LIBTELNET} 24LDADD= -lutil -ltermcap ${LIBTELNET} 25 26.if !defined(NO_OPENSSL) 27SRCS+= authenc.c 28CFLAGS+= -DAUTHENTICATION -DENCRYPTION 29DPADD+= ${LIBCRYPTO} ${LIBCRYPT} ${LIBPAM} 30LDADD+= -lcrypto -lcrypt ${MINUSLPAM} 31.endif 32 33.include <bsd.prog.mk> 34