mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-19 10:53:58 +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
48 lines
1.2 KiB
Makefile
48 lines
1.2 KiB
Makefile
# $FreeBSD$
|
|
|
|
TELNETDIR= ${.CURDIR}/../../contrib/telnet
|
|
.PATH: ${TELNETDIR}/telnet
|
|
|
|
PROG= telnet
|
|
|
|
SRCS= commands.c main.c network.c ring.c sys_bsd.c \
|
|
telnet.c terminal.c utilities.c
|
|
|
|
CFLAGS+= -DKLUDGELINEMODE -DUSE_TERMIO -DENV_HACK -DOPIE \
|
|
-I${TELNETDIR} -I${TELNETDIR}/libtelnet/
|
|
|
|
.if exists(${.OBJDIR}/../../lib/libtelnet)
|
|
LIBTELNET= ${.OBJDIR}/../../lib/libtelnet/libtelnet.a
|
|
.else
|
|
LIBTELNET= ${.CURDIR}/../../lib/libtelnet/libtelnet.a
|
|
.endif
|
|
|
|
DPADD= ${LIBTERMCAP} ${LIBTELNET}
|
|
LDADD= -ltermcap ${LIBTELNET}
|
|
|
|
.if !defined(RELEASE_CRUNCH)
|
|
CFLAGS+= -DINET6 -DIPSEC
|
|
DPADD+= ${LIBIPSEC}
|
|
LDADD+= -lipsec
|
|
.else
|
|
.PATH: ${TELNETDIR}/libtelnet
|
|
SRCS+= genget.c getent.c misc.c
|
|
CFLAGS+= -DHAS_CGETENT
|
|
.endif
|
|
|
|
.if !defined(RELEASE_CRUNCH)
|
|
.if !defined(NOCRYPT) && !defined(NO_OPENSSL)
|
|
SRCS+= authenc.c
|
|
CFLAGS+= -DENCRYPTION -DAUTHENTICATION -DIPSEC
|
|
DPADD+= ${LIBMP} ${LIBCRYPTO} ${LIBCRYPT} ${LIBIPSEC} ${LIBPAM}
|
|
LDADD+= -lmp -lcrypto -lcrypt -lipsec ${MINUSLPAM}
|
|
.if !defined(NO_KERBEROS)
|
|
CFLAGS+= -DKRB5 -DFORWARD -Dnet_write=telnet_net_write
|
|
DPADD+= ${LIBKRB5} ${LIBASN1} ${LIBCOM_ERR} ${LIBROKEN}
|
|
LDADD+= -lkrb5 -lasn1 -lcom_err -lroken
|
|
.endif
|
|
.endif
|
|
.endif
|
|
|
|
.include <bsd.prog.mk>
|