1# $FreeBSD: head/libexec/telnetd/Makefile 265420 2014-05-06 04:22:01Z imp $
2
3# Do not define -DKLUDGELINEMODE, as it does not interact well with many
4# telnet implementations.
5
6.include <src.opts.mk>
7
8TELNETDIR= ${.CURDIR}/../../contrib/telnet
9.PATH: ${TELNETDIR}/telnetd
--- 16 unchanged lines hidden (view full) ---
26
27CFLAGS+= -I${TELNETDIR}
28
29LIBTELNET= ${.OBJDIR}/../../lib/libtelnet/libtelnet.a
30
31DPADD= ${LIBUTIL} ${LIBTERMCAP} ${LIBTELNET}
32LDADD= -lutil -ltermcap ${LIBTELNET}
33
34# XXX for src/release/picobsd
35.if !defined(RELEASE_CRUNCH)
36.if ${MK_OPENSSL} != "no"
37SRCS+= authenc.c
38CFLAGS+= -DAUTHENTICATION -DENCRYPTION
39DPADD+= ${LIBMP} ${LIBCRYPTO} ${LIBCRYPT} ${LIBPAM}
40LDADD+= -lmp -lcrypto -lcrypt ${MINUSLPAM}
41.endif
42
43.if ${MK_KERBEROS_SUPPORT} != "no"
44CFLAGS+= -DKRB5 -DFORWARD -Dnet_write=telnet_net_write
45DPADD+= ${LIBKRB5} ${LIBHX509} ${LIBASN1} ${LIBROKEN} ${LIBCOM_ERR}
46LDADD+= -lkrb5 -lhx509 -lasn1 -lroken -lcom_err
47.endif
48.endif
49
50.include <bsd.prog.mk>
2
3# Do not define -DKLUDGELINEMODE, as it does not interact well with many
4# telnet implementations.
5
6.include <src.opts.mk>
7
8TELNETDIR= ${.CURDIR}/../../contrib/telnet
9.PATH: ${TELNETDIR}/telnetd
--- 16 unchanged lines hidden (view full) ---
26
27CFLAGS+= -I${TELNETDIR}
28
29LIBTELNET= ${.OBJDIR}/../../lib/libtelnet/libtelnet.a
30
31DPADD= ${LIBUTIL} ${LIBTERMCAP} ${LIBTELNET}
32LDADD= -lutil -ltermcap ${LIBTELNET}
33
34# XXX for src/release/picobsd
35.if !defined(RELEASE_CRUNCH)
36.if ${MK_OPENSSL} != "no"
37SRCS+= authenc.c
38CFLAGS+= -DAUTHENTICATION -DENCRYPTION
39DPADD+= ${LIBMP} ${LIBCRYPTO} ${LIBCRYPT} ${LIBPAM}
40LDADD+= -lmp -lcrypto -lcrypt ${MINUSLPAM}
41.endif
42
43.if ${MK_KERBEROS_SUPPORT} != "no"
44CFLAGS+= -DKRB5 -DFORWARD -Dnet_write=telnet_net_write
45DPADD+= ${LIBKRB5} ${LIBHX509} ${LIBASN1} ${LIBROKEN} ${LIBCOM_ERR}
46LDADD+= -lkrb5 -lhx509 -lasn1 -lroken -lcom_err
47.endif
48.endif
49
50.include <bsd.prog.mk>