1 1.59 lukem # $NetBSD: Makefile,v 1.59 2023/06/03 09:09:17 lukem Exp $ 2 1.10 jtc # @(#)Makefile 8.1 (Berkeley) 7/19/93 3 1.1 cgd 4 1.30 thorpej .include <bsd.own.mk> 5 1.30 thorpej 6 1.47 tls USE_FORT?= yes # setuid 7 1.1 cgd PROG= login 8 1.44 manu SRCS= copyrightstr.c 9 1.14 christos DPADD+= ${LIBUTIL} ${LIBCRYPT} 10 1.14 christos LDADD+= -lutil -lcrypt 11 1.16 mycroft BINOWN= root 12 1.16 mycroft BINMODE=4555 13 1.44 manu 14 1.51 christos SRCS+= common.c 15 1.44 manu .if (${USE_PAM} != "no") 16 1.44 manu SRCS+= login_pam.c 17 1.45 he LDADD+= -lpam ${PAM_STATIC_LDADD} 18 1.45 he DPADD+= ${LIBPAM} ${PAM_STATIC_DPADD} 19 1.48 lukem .else # USE_PAM == no 20 1.44 manu SRCS+= login.c 21 1.37 christos CPPFLAGS+=-DLOGIN_CAP -DSUPPORT_UTMP -DSUPPORT_UTMPX 22 1.15 mycroft 23 1.44 manu .if (${USE_KERBEROS} != "no") 24 1.44 manu SRCS+= k5login.c 25 1.52 elric CPPFLAGS+=-DKERBEROS5 26 1.57 mrg LDADD+= ${LIBKRB5_LDADD} 27 1.57 mrg DPADD+= ${LIBKRB5_DPADD} 28 1.44 manu .endif 29 1.44 manu 30 1.35 thorpej .if (${USE_SKEY} != "no") 31 1.16 mycroft CPPFLAGS+=-DSKEY 32 1.14 christos DPADD+= ${LIBSKEY} 33 1.14 christos LDADD+= -lskey 34 1.7 cgd .endif 35 1.48 lukem .endif # USE_PAM == no 36 1.18 mycroft 37 1.42 lukem CLEANFILES+= copyrightstr.c 38 1.42 lukem 39 1.42 lukem copyrightstr.c: ${NETBSDSRCDIR}/sys/conf/copyright 40 1.42 lukem ${_MKTARGET_CREATE} 41 1.42 lukem rm -f ${.TARGET} 42 1.49 apb ${TOOL_AWK} '\ 43 1.42 lukem BEGIN { print "const char copyrightstr[] =" }\ 44 1.42 lukem { print "\""$$0"\\n\""}\ 45 1.42 lukem END { print "\"\\n\";" }\ 46 1.42 lukem ' ${.ALLSRC} > ${.TARGET} 47 1.42 lukem 48 1.59 lukem COPTS.parse.c+= ${CC_WNO_STRINGOP_TRUNCATION} 49 1.59 lukem COPTS.common.c+= ${CC_WNO_STRINGOP_TRUNCATION} 50 1.23 thorpej 51 1.18 mycroft .include <bsd.prog.mk> 52