Update post installation article url
[minix3.git] / libexec / telnetd / Makefile
blob62590a636c46ce7ca27cda8cbb6a976b79d5bcc4
1 # $NetBSD: Makefile,v 1.49 2012/01/09 16:36:48 christos Exp $
2 # from: @(#)Makefile 8.2 (Berkeley) 12/15/93
4 WARNS?= 4 # XXX: const issues in sys_term.c
6 .include <bsd.own.mk>
8 MAN= telnetd.8
10 PROG= telnetd
11 .if defined(__MINIX)
12 CPPFLAGS+=-DDIAGNOSTICS
13 .else # !defined(__MINIX)
14 CPPFLAGS+=-DLINEMODE -DKLUDGELINEMODE -DDIAGNOSTICS
15 .endif # !defined(__MINIX)
16 CPPFLAGS+=-DOLD_ENVIRON -DENV_HACK -DSECURELOGIN -DSUPPORT_UTMP -DSUPPORT_UTMPX
17 SRCS= authenc.c global.c slc.c state.c sys_term.c telnetd.c \
18 termstat.c utility.c
19 DPADD= ${LIBTELNETDIR}/libtelnet.a ${LIBTERMINFO} ${LIBUTIL}
20 LDADD+= ${LIBTELNETDIR}/libtelnet.a -lterminfo -lutil
22 CPPFLAGS+=-I${NETBSDSRCDIR}/lib
23 CPPFLAGS+=-I${.CURDIR}
25 LIBTELNETDIR!= cd ${.CURDIR}/../../lib/libtelnet; ${PRINTOBJDIR}
27 .if (${USE_KERBEROS} != "no")
28 CPPFLAGS+=-DKRB5 -DAUTHENTICATION -DENCRYPTION
29 LDADD+= -lkrb5 -lasn1 -lcom_err -lroken
30 DPADD+= ${LIBKRB5} ${LIBASN1} ${LIBCOM_ERR} ${LIBROKEN}
31 .endif
33 .if (${MKCRYPTO} != "no")
34 LDADD+=-ldes -lcrypto -lcrypt
35 DPADD+=${LIBDES} ${LIBCRYPTO} ${LIBCRYPT}
36 .endif
38 .if (${USE_PAM} != "no")
39 LDADD+= -lpam ${PAM_STATIC_LDADD}
40 DPADD+= ${LIBPAM} ${PAM_STATIC_DPADD}
41 .endif
43 .include <bsd.prog.mk>