turns printfs back on
[freebsd-src/fkvm-freebsd.git] / libexec / telnetd / Makefile
blob3ad8a4e4a94afc7b4fdee3fc364a8757ba22cffa
1 # $FreeBSD$
3 # Do not define -DKLUDGELINEMODE, as it does not interact well with many
4 # telnet implementations.
6 .include <bsd.own.mk>
8 TELNETDIR= ${.CURDIR}/../../contrib/telnet
9 .PATH: ${TELNETDIR}/telnetd
11 PROG= telnetd
12 MAN= telnetd.8
14 SRCS= global.c slc.c state.c sys_term.c telnetd.c \
15 termstat.c utility.c
17 WARNS?= 2
18 WFORMAT?= 0
20 CFLAGS+= -DLINEMODE -DUSE_TERMIO -DDIAGNOSTICS -DOLD_ENVIRON -DENV_HACK
22 .if ${MK_INET6_SUPPORT} != "no"
23 CFLAGS+= -DINET6
24 .endif
26 CFLAGS+= -I${TELNETDIR}
28 LIBTELNET= ${.OBJDIR}/../../lib/libtelnet/libtelnet.a
30 DPADD= ${LIBUTIL} ${LIBTERMCAP} ${LIBTELNET}
31 LDADD= -lutil -ltermcap ${LIBTELNET}
33 # XXX for src/release/picobsd
34 .if !defined(RELEASE_CRUNCH)
35 .if ${MK_OPENSSL} != "no"
36 SRCS+= authenc.c
37 CFLAGS+= -DAUTHENTICATION -DENCRYPTION
38 DPADD+= ${LIBMP} ${LIBCRYPTO} ${LIBCRYPT} ${LIBPAM}
39 LDADD+= -lmp -lcrypto -lcrypt ${MINUSLPAM}
40 .endif
42 .if ${MK_KERBEROS_SUPPORT} != "no"
43 CFLAGS+= -DKRB5 -DFORWARD -Dnet_write=telnet_net_write
44 DPADD+= ${LIBKRB5} ${LIBHX509} ${LIBASN1} ${LIBROKEN} ${LIBCOM_ERR}
45 LDADD+= -lkrb5 -lhx509 -lasn1 -lroken -lcom_err
46 .endif
47 .endif
49 .include <bsd.prog.mk>