1 1.42 he # $NetBSD: Makefile,v 1.42 2005/03/04 20:41:09 he Exp $ 2 1.4 cgd # from: @(#)Makefile 8.2 (Berkeley) 12/15/93 3 1.3 mycroft 4 1.25 thorpej .include <bsd.own.mk> 5 1.25 thorpej 6 1.12 scottr MAN= telnetd.8 7 1.20 itojun 8 1.1 cgd PROG= telnetd 9 1.34 itojun CPPFLAGS+=-DLINEMODE -DKLUDGELINEMODE -DDIAGNOSTICS 10 1.33 christos CPPFLAGS+=-DOLD_ENVIRON -DENV_HACK -DSECURELOGIN -DSUPPORT_UTMP -DSUPPORT_UTMPX 11 1.4 cgd SRCS= authenc.c global.c slc.c state.c sys_term.c telnetd.c \ 12 1.1 cgd termstat.c utility.c 13 1.42 he DPADD= ${LIBTELNETDIR}/libtelnet.a ${LIBTERMCAP} ${LIBUTIL} 14 1.42 he LDADD+= ${LIBTELNETDIR}/libtelnet.a -ltermcap -lutil 15 1.6 jtk 16 1.32 lukem CPPFLAGS+=-I${NETBSDSRCDIR}/lib 17 1.25 thorpej CPPFLAGS+=-I${.CURDIR} 18 1.35 itojun 19 1.35 itojun LIBTELNETDIR!= cd ${.CURDIR}/../../lib/libtelnet; ${PRINTOBJDIR} 20 1.25 thorpej 21 1.38 dyoung .if (${USE_KERBEROS} != "no") 22 1.24 thorpej CPPFLAGS+=-I${DESTDIR}/usr/include/krb5 23 1.39 chs CPPFLAGS+=-DKRB5 -DAUTHENTICATION -DENCRYPTION 24 1.39 chs LDADD+= -lkrb5 -lasn1 -lcrypto 25 1.39 chs DPADD+= ${LIBKRB5} ${LIBASN1} ${LIBCRYPTO} 26 1.36 itojun 27 1.36 itojun .if (${USE_KERBEROS4} != "no") 28 1.36 itojun CPPFLAGS+=-DKRB4 29 1.40 lha LDADD+= -lkrb 30 1.40 lha DPADD+= ${LIBKRB} 31 1.36 itojun .endif 32 1.36 itojun 33 1.41 christos .if (${USE_PAM} != "no") 34 1.42 he LDADD+= -lpam ${PAM_STATIC_LDADD} 35 1.42 he DPADD+= ${LIBPAM} ${PAM_STATIC_DPADD} 36 1.41 christos .endif 37 1.41 christos 38 1.32 lukem VERS!= cd ${NETBSDSRCDIR}/lib/libvers && ${PRINTOBJDIR} 39 1.27 assar 40 1.40 lha LDADD+= -ldes -lcom_err -L${VERS} -lvers -lroken 41 1.40 lha DPADD+= ${LIBDES} ${LIBCOM_ERR} ${LIBROKEN} 42 1.36 itojun 43 1.25 thorpej .endif 44 1.4 cgd 45 1.21 thorpej .include <bsd.prog.mk> 46