mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-26 11:47:31 +00:00
d37df47d31
of releases. The -DNOCRYPT build option still exists for anyone who really wants to build non-cryptographic binaries, but the "crypto" release distribution is now part of "base", and anyone installing from a release will get cryptographic binaries. Approved by: re (scottl), markm Discussed on: freebsd-current, in late April 2004
46 lines
1.1 KiB
Makefile
46 lines
1.1 KiB
Makefile
# $FreeBSD$
|
|
|
|
# Do not define -DKLUDGELINEMODE, as it does not interact well with many
|
|
# telnet implementations.
|
|
|
|
TELNETDIR= ${.CURDIR}/../../contrib/telnet
|
|
.PATH: ${TELNETDIR}/telnetd
|
|
|
|
PROG= telnetd
|
|
MAN= telnetd.8
|
|
|
|
SRCS= global.c slc.c state.c sys_term.c telnetd.c \
|
|
termstat.c utility.c
|
|
|
|
CFLAGS+= -DLINEMODE -DUSE_TERMIO -DDIAGNOSTICS -DOLD_ENVIRON \
|
|
-DENV_HACK \
|
|
-I${TELNETDIR} -DINET6
|
|
|
|
WARNS?= 2
|
|
WFORMAT?= 0
|
|
|
|
.if exists(${.OBJDIR}/../../lib/libtelnet)
|
|
LIBTELNET= ${.OBJDIR}/../../lib/libtelnet/libtelnet.a
|
|
.else
|
|
LIBTELNET= ${.CURDIR}/../../lib/libtelnet/libtelnet.a
|
|
.endif
|
|
|
|
DPADD= ${LIBUTIL} ${LIBTERMCAP} ${LIBTELNET}
|
|
LDADD= -lutil -ltermcap ${LIBTELNET}
|
|
|
|
.if !defined(RELEASE_CRUNCH)
|
|
.if !defined(NOCRYPT) && !defined(NO_OPENSSL)
|
|
SRCS+= authenc.c
|
|
CFLAGS+= -DAUTHENTICATION -DENCRYPTION
|
|
DPADD+= ${LIBMP} ${LIBCRYPTO} ${LIBCRYPT} ${LIBPAM}
|
|
LDADD+= -lmp -lcrypto -lcrypt ${MINUSLPAM}
|
|
.if !defined(NO_KERBEROS)
|
|
CFLAGS+= -DKRB5 -DFORWARD -Dnet_write=telnet_net_write
|
|
DPADD+= ${LIBKRB5} ${LIBASN1} ${LIBROKEN} ${LIBCOM_ERR}
|
|
LDADD+= -lkrb5 -lasn1 -lroken -lcom_err
|
|
.endif
|
|
.endif
|
|
.endif
|
|
|
|
.include <bsd.prog.mk>
|