1# From: @(#)Makefile 8.2 (Berkeley) 12/15/93
2# $FreeBSD: head/lib/libtelnet/Makefile 267147 2014-06-06 04:09:07Z imp $
3
4.include <src.opts.mk>
5
6TELNETDIR= ${.CURDIR}/../../contrib/telnet
7.PATH: ${TELNETDIR}/libtelnet
8
9LIB= telnet
10
11INTERNALLIB=
12
13SRCS= genget.c getent.c misc.c
14CFLAGS+= -I${TELNETDIR}
15
16WARNS?= 2
17
18.if ${MK_OPENSSL} != "no"
19SRCS+= encrypt.c auth.c enc_des.c sra.c pk.c
20CFLAGS+= -DENCRYPTION -DAUTHENTICATION -DSRA
21.endif
22
23.if ${MK_KERBEROS_SUPPORT} != "no"
24SRCS+= kerberos5.c
25CFLAGS+= -DKRB5 -I${KRB5DIR}/lib/krb5 -I${KRB5OBJDIR} -I${ASN1OBJDIR}
26CFLAGS+= -DFORWARD -Dnet_write=telnet_net_write
27.endif
28
29INCS= ${TELNETDIR}/arpa/telnet.h
30INCSDIR= ${INCLUDEDIR}/arpa
31
32.include <bsd.lib.mk>
2# $FreeBSD: head/lib/libtelnet/Makefile 267147 2014-06-06 04:09:07Z imp $
3
4.include <src.opts.mk>
5
6TELNETDIR= ${.CURDIR}/../../contrib/telnet
7.PATH: ${TELNETDIR}/libtelnet
8
9LIB= telnet
10
11INTERNALLIB=
12
13SRCS= genget.c getent.c misc.c
14CFLAGS+= -I${TELNETDIR}
15
16WARNS?= 2
17
18.if ${MK_OPENSSL} != "no"
19SRCS+= encrypt.c auth.c enc_des.c sra.c pk.c
20CFLAGS+= -DENCRYPTION -DAUTHENTICATION -DSRA
21.endif
22
23.if ${MK_KERBEROS_SUPPORT} != "no"
24SRCS+= kerberos5.c
25CFLAGS+= -DKRB5 -I${KRB5DIR}/lib/krb5 -I${KRB5OBJDIR} -I${ASN1OBJDIR}
26CFLAGS+= -DFORWARD -Dnet_write=telnet_net_write
27.endif
28
29INCS= ${TELNETDIR}/arpa/telnet.h
30INCSDIR= ${INCLUDEDIR}/arpa
31
32.include <bsd.lib.mk>