]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - 6/libexec/telnetd/Makefile
Clone Kip's Xen on stable/6 tree so that I can work on improving FreeBSD/amd64
[FreeBSD/FreeBSD.git] / 6 / libexec / telnetd / Makefile
1 # $FreeBSD$
2
3 # Do not define -DKLUDGELINEMODE, as it does not interact well with many
4 # telnet implementations.
5
6 TELNETDIR=      ${.CURDIR}/../../contrib/telnet
7 .PATH:          ${TELNETDIR}/telnetd
8
9 PROG=           telnetd
10 MAN=            telnetd.8
11
12 SRCS=           global.c slc.c state.c sys_term.c telnetd.c \
13                 termstat.c utility.c
14
15 CFLAGS+=        -DLINEMODE -DUSE_TERMIO -DDIAGNOSTICS -DOLD_ENVIRON \
16                 -DENV_HACK \
17                 -I${TELNETDIR} -DINET6
18
19 WARNS?=         2
20 WFORMAT?=       0
21
22 LIBTELNET=      ${.OBJDIR}/../../lib/libtelnet/libtelnet.a
23
24 DPADD=          ${LIBUTIL} ${LIBTERMCAP} ${LIBTELNET}
25 LDADD=          -lutil -ltermcap ${LIBTELNET}
26
27 .if !defined(RELEASE_CRUNCH)
28 .if !defined(NO_CRYPT) && !defined(NO_OPENSSL)
29 SRCS+=          authenc.c
30 CFLAGS+=        -DAUTHENTICATION -DENCRYPTION
31 DPADD+=         ${LIBMP} ${LIBCRYPTO} ${LIBCRYPT} ${LIBPAM}
32 LDADD+=         -lmp -lcrypto -lcrypt ${MINUSLPAM}
33 .if !defined(NO_KERBEROS)
34 CFLAGS+=        -DKRB5 -DFORWARD -Dnet_write=telnet_net_write
35 DPADD+=         ${LIBKRB5} ${LIBASN1} ${LIBROKEN} ${LIBCOM_ERR}
36 LDADD+=         -lkrb5 -lasn1 -lroken -lcom_err
37 .endif
38 .endif
39 .endif
40
41 .include <bsd.prog.mk>