]> CyberLeo.Net >> Repos - FreeBSD/releng/7.2.git/blob - libexec/telnetd/Makefile
Create releng/7.2 from stable/7 in preparation for 7.2-RELEASE.
[FreeBSD/releng/7.2.git] / libexec / telnetd / Makefile
1 # $FreeBSD$
2
3 # Do not define -DKLUDGELINEMODE, as it does not interact well with many
4 # telnet implementations.
5
6 .include <bsd.own.mk>
7
8 TELNETDIR=      ${.CURDIR}/../../contrib/telnet
9 .PATH:          ${TELNETDIR}/telnetd
10
11 PROG=           telnetd
12 MAN=            telnetd.8
13
14 SRCS=           global.c slc.c state.c sys_term.c telnetd.c \
15                 termstat.c utility.c
16
17 WARNS?=         2
18 WFORMAT?=       0
19
20 CFLAGS+=        -DLINEMODE -DUSE_TERMIO -DDIAGNOSTICS -DOLD_ENVIRON -DENV_HACK
21
22 .if ${MK_INET6_SUPPORT} != "no"
23 CFLAGS+=        -DINET6
24 .endif
25
26 CFLAGS+=        -I${TELNETDIR}
27
28 LIBTELNET=      ${.OBJDIR}/../../lib/libtelnet/libtelnet.a
29
30 DPADD=          ${LIBUTIL} ${LIBTERMCAP} ${LIBTELNET}
31 LDADD=          -lutil -ltermcap ${LIBTELNET}
32
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
41
42 .if ${MK_KERBEROS_SUPPORT} != "no"
43 CFLAGS+=        -DKRB5 -DFORWARD -Dnet_write=telnet_net_write
44 DPADD+=         ${LIBKRB5} ${LIBASN1} ${LIBROKEN} ${LIBCOM_ERR}
45 LDADD+=         -lkrb5 -lasn1 -lroken -lcom_err
46 .endif
47 .endif
48
49 .include <bsd.prog.mk>