]> CyberLeo.Net >> Repos - FreeBSD/releng/9.2.git/blob - usr.bin/telnet/Makefile
- Copy stable/9 to releng/9.2 as part of the 9.2-RELEASE cycle.
[FreeBSD/releng/9.2.git] / usr.bin / telnet / Makefile
1 # $FreeBSD$
2
3 .include <bsd.own.mk>
4
5 TELNETDIR=      ${.CURDIR}/../../contrib/telnet
6 .PATH:          ${TELNETDIR}/telnet
7
8 PROG=           telnet
9
10 SRCS=           commands.c main.c network.c ring.c sys_bsd.c \
11                 telnet.c terminal.c utilities.c
12
13 CFLAGS+=        -DKLUDGELINEMODE -DUSE_TERMIO -DENV_HACK -DOPIE \
14                 -I${TELNETDIR} -I${TELNETDIR}/libtelnet/
15
16 .if ${MK_INET6_SUPPORT} != "no"
17 CFLAGS+=        -DINET6
18 .endif
19
20 WARNS?=         2
21
22 LIBTELNET=      ${.OBJDIR}/../../lib/libtelnet/libtelnet.a
23
24 DPADD=          ${LIBTERMCAP} ${LIBTELNET}
25 LDADD=          -ltermcap ${LIBTELNET}
26
27 .if !defined(RELEASE_CRUNCH)
28 CFLAGS+=        -DIPSEC
29 DPADD+=         ${LIBIPSEC}
30 LDADD+=         -lipsec
31 .else
32 .PATH:         ${TELNETDIR}/libtelnet
33 SRCS+=          genget.c getent.c misc.c
34 CFLAGS+=        -DHAS_CGETENT
35 .endif
36
37 .if !defined(RELEASE_CRUNCH)
38 .if ${MK_OPENSSL} != "no"
39 SRCS+=          authenc.c 
40 CFLAGS+=        -DENCRYPTION -DAUTHENTICATION -DIPSEC
41 DPADD+=         ${LIBMP} ${LIBCRYPTO} ${LIBCRYPT} ${LIBIPSEC} ${LIBPAM}
42 LDADD+=         -lmp -lcrypto -lcrypt -lipsec ${MINUSLPAM}
43 .endif
44
45 .if ${MK_KERBEROS_SUPPORT} != "no"
46 CFLAGS+=        -DKRB5 -DFORWARD -Dnet_write=telnet_net_write
47 DPADD+=         ${LIBKRB5} ${LIBHX509} ${LIBASN1} ${LIBCOM_ERR} ${LIBROKEN}
48 LDADD+=         -lkrb5 -lhx509 -lasn1 -lcom_err -lroken
49 .endif
50 .endif
51
52 .include <bsd.prog.mk>