]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - usr.bin/telnet/Makefile
This commit was generated by cvs2svn to compensate for changes in r147173,
[FreeBSD/FreeBSD.git] / usr.bin / telnet / Makefile
1 # $FreeBSD$
2
3 TELNETDIR=      ${.CURDIR}/../../contrib/telnet
4 .PATH:          ${TELNETDIR}/telnet
5
6 PROG=           telnet
7
8 SRCS=           commands.c main.c network.c ring.c sys_bsd.c \
9                 telnet.c terminal.c utilities.c
10
11 CFLAGS+=        -DKLUDGELINEMODE -DUSE_TERMIO -DENV_HACK -DOPIE \
12                 -I${TELNETDIR} -I${TELNETDIR}/libtelnet/
13
14 .if exists(${.OBJDIR}/../../lib/libtelnet)
15 LIBTELNET=      ${.OBJDIR}/../../lib/libtelnet/libtelnet.a
16 .else
17 LIBTELNET=      ${.CURDIR}/../../lib/libtelnet/libtelnet.a
18 .endif
19
20 DPADD=          ${LIBTERMCAP} ${LIBTELNET}
21 LDADD=          -ltermcap ${LIBTELNET}
22
23 .if !defined(RELEASE_CRUNCH)
24 CFLAGS+=        -DINET6 -DIPSEC
25 DPADD+=         ${LIBIPSEC}
26 LDADD+=         -lipsec
27 .else
28 .PATH:         ${TELNETDIR}/libtelnet
29 SRCS+=          genget.c getent.c misc.c
30 CFLAGS+=        -DHAS_CGETENT
31 .endif
32
33 .if !defined(RELEASE_CRUNCH)
34 .if !defined(NO_CRYPT) && !defined(NO_OPENSSL)
35 SRCS+=          authenc.c 
36 CFLAGS+=        -DENCRYPTION -DAUTHENTICATION -DIPSEC
37 DPADD+=         ${LIBMP} ${LIBCRYPTO} ${LIBCRYPT} ${LIBIPSEC} ${LIBPAM}
38 LDADD+=         -lmp -lcrypto -lcrypt -lipsec ${MINUSLPAM}
39 .if !defined(NO_KERBEROS)
40 CFLAGS+=        -DKRB5 -DFORWARD -Dnet_write=telnet_net_write
41 DPADD+=         ${LIBKRB5} ${LIBASN1} ${LIBCOM_ERR} ${LIBROKEN}
42 LDADD+=         -lkrb5 -lasn1 -lcom_err -lroken
43 .endif
44 .endif
45 .endif
46
47 .include <bsd.prog.mk>