1 1.49 christos # $NetBSD: Makefile,v 1.49 2012/01/09 16:36:48 christos Exp $ 2 1.4 cgd # from: @(#)Makefile 8.2 (Berkeley) 12/15/93 3 1.3 mycroft 4 1.49 christos WARNS?= 4 # XXX: const issues in sys_term.c 5 1.45 lukem 6 1.25 thorpej .include <bsd.own.mk> 7 1.25 thorpej 8 1.12 scottr MAN= telnetd.8 9 1.20 itojun 10 1.1 cgd PROG= telnetd 11 1.34 itojun CPPFLAGS+=-DLINEMODE -DKLUDGELINEMODE -DDIAGNOSTICS 12 1.33 christos CPPFLAGS+=-DOLD_ENVIRON -DENV_HACK -DSECURELOGIN -DSUPPORT_UTMP -DSUPPORT_UTMPX 13 1.4 cgd SRCS= authenc.c global.c slc.c state.c sys_term.c telnetd.c \ 14 1.1 cgd termstat.c utility.c 15 1.46 roy DPADD= ${LIBTELNETDIR}/libtelnet.a ${LIBTERMINFO} ${LIBUTIL} 16 1.46 roy LDADD+= ${LIBTELNETDIR}/libtelnet.a -lterminfo -lutil 17 1.6 jtk 18 1.32 lukem CPPFLAGS+=-I${NETBSDSRCDIR}/lib 19 1.25 thorpej CPPFLAGS+=-I${.CURDIR} 20 1.35 itojun 21 1.35 itojun LIBTELNETDIR!= cd ${.CURDIR}/../../lib/libtelnet; ${PRINTOBJDIR} 22 1.25 thorpej 23 1.38 dyoung .if (${USE_KERBEROS} != "no") 24 1.39 chs CPPFLAGS+=-DKRB5 -DAUTHENTICATION -DENCRYPTION 25 1.49 christos LDADD+= -lkrb5 -lasn1 -lcom_err -lroken 26 1.49 christos DPADD+= ${LIBKRB5} ${LIBASN1} ${LIBCOM_ERR} ${LIBROKEN} 27 1.49 christos .endif 28 1.49 christos 29 1.49 christos .if (${MKCRYPTO} != "no") 30 1.49 christos LDADD+=-ldes -lcrypto -lcrypt 31 1.49 christos DPADD+=${LIBDES} ${LIBCRYPTO} ${LIBCRYPT} 32 1.49 christos .endif 33 1.36 itojun 34 1.41 christos .if (${USE_PAM} != "no") 35 1.42 he LDADD+= -lpam ${PAM_STATIC_LDADD} 36 1.42 he DPADD+= ${LIBPAM} ${PAM_STATIC_DPADD} 37 1.41 christos .endif 38 1.41 christos 39 1.21 thorpej .include <bsd.prog.mk> 40