1# $FreeBSD: head/usr.bin/telnet/Makefile 267147 2014-06-06 04:09:07Z imp $
2
3.include <src.opts.mk>
4
5TELNETDIR= ${.CURDIR}/../../contrib/telnet
6.PATH: ${TELNETDIR}/telnet
7
8PROG= telnet
9
--- 19 unchanged lines hidden (view full) ---
29DPADD+= ${LIBIPSEC}
30LDADD+= -lipsec
31.else
32.PATH: ${TELNETDIR}/libtelnet
33SRCS+= genget.c getent.c misc.c
34CFLAGS+= -DHAS_CGETENT
35.endif
36
37.if ${MK_OPENSSL} != "no"
38SRCS+= authenc.c
39CFLAGS+= -DENCRYPTION -DAUTHENTICATION -DIPSEC
40DPADD+= ${LIBMP} ${LIBCRYPTO} ${LIBCRYPT} ${LIBIPSEC} ${LIBPAM}
41LDADD+= -lmp -lcrypto -lcrypt -lipsec ${MINUSLPAM}
42.endif
43
44.if ${MK_KERBEROS_SUPPORT} != "no"
45CFLAGS+= -DKRB5 -DFORWARD -Dnet_write=telnet_net_write
46DPADD+= ${LIBKRB5} ${LIBHX509} ${LIBASN1} ${LIBCOM_ERR} ${LIBROKEN}
47LDADD+= -lkrb5 -lhx509 -lasn1 -lcom_err -lroken
48.endif
49
50.include <bsd.prog.mk>
2
3.include <src.opts.mk>
4
5TELNETDIR= ${.CURDIR}/../../contrib/telnet
6.PATH: ${TELNETDIR}/telnet
7
8PROG= telnet
9
--- 19 unchanged lines hidden (view full) ---
29DPADD+= ${LIBIPSEC}
30LDADD+= -lipsec
31.else
32.PATH: ${TELNETDIR}/libtelnet
33SRCS+= genget.c getent.c misc.c
34CFLAGS+= -DHAS_CGETENT
35.endif
36
37.if ${MK_OPENSSL} != "no"
38SRCS+= authenc.c
39CFLAGS+= -DENCRYPTION -DAUTHENTICATION -DIPSEC
40DPADD+= ${LIBMP} ${LIBCRYPTO} ${LIBCRYPT} ${LIBIPSEC} ${LIBPAM}
41LDADD+= -lmp -lcrypto -lcrypt -lipsec ${MINUSLPAM}
42.endif
43
44.if ${MK_KERBEROS_SUPPORT} != "no"
45CFLAGS+= -DKRB5 -DFORWARD -Dnet_write=telnet_net_write
46DPADD+= ${LIBKRB5} ${LIBHX509} ${LIBASN1} ${LIBCOM_ERR} ${LIBROKEN}
47LDADD+= -lkrb5 -lhx509 -lasn1 -lcom_err -lroken
48.endif
49
50.include <bsd.prog.mk>