summaryrefslogtreecommitdiffstats
path: root/usr.bin/telnet/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/telnet/Makefile')
-rw-r--r--usr.bin/telnet/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/usr.bin/telnet/Makefile b/usr.bin/telnet/Makefile
index fee9815..19222b4 100644
--- a/usr.bin/telnet/Makefile
+++ b/usr.bin/telnet/Makefile
@@ -42,7 +42,7 @@ CFLAGS+=-I${.CURDIR}/../../lib
#CFLAGS+= -DKRB4
LDADD= -ltermcap -ltelnet
-#LDADD+= -lkrb -ldes
+#LDADD+=-lkrb -ldes
DPADD= ${LIBTERMCAP}
SRCS= authenc.c commands.c main.c network.c ring.c sys_bsd.c telnet.c \
@@ -53,6 +53,13 @@ CRYPT_SRC= authenc.c commands.c externs.h main.c network.c
CRYPT_SRC+= ring.c ring.h telnet.c terminal.c utilities.c Makefile
NOCRYPT_DIR=${.CURDIR}/Nocrypt
+.if defined(SOCKS)
+CFLAGS+=-DSOCKS
+CFLAGS+=-Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten \
+ -Daccept=Raccept -Drcmd=Rrcmd -Dbind=Rbind -Dselect=Rselect
+LDADD+= -lsocks
+.endif
+
.include <bsd.prog.mk>
nocrypt:
OpenPOWER on IntegriCloud