No empty .Rs/.Re
[netbsd-mini2440.git] / usr.bin / login / Makefile
blobd4e932a7f76cf244aaffc166ceaabc3224b056e5
1 # $NetBSD: Makefile,v 1.50 2009/04/14 22:15:22 lukem Exp $
2 # @(#)Makefile 8.1 (Berkeley) 7/19/93
4 WARNS?= 2 # XXX -Wcast-qual issues
6 .include <bsd.own.mk>
8 USE_FORT?= yes # setuid
9 PROG= login
10 SRCS= copyrightstr.c
11 DPADD+= ${LIBUTIL} ${LIBCRYPT}
12 LDADD+= -lutil -lcrypt
13 BINOWN= root
14 BINMODE=4555
16 SRCS+= common.c
17 .if (${USE_PAM} != "no")
18 SRCS+= login_pam.c
19 LDADD+= -lpam ${PAM_STATIC_LDADD}
20 DPADD+= ${LIBPAM} ${PAM_STATIC_DPADD}
21 .else # USE_PAM == no
22 SRCS+= login.c
23 CPPFLAGS+=-DLOGIN_CAP -DSUPPORT_UTMP -DSUPPORT_UTMPX
25 .if (${USE_KERBEROS} != "no")
26 SRCS+= k5login.c
27 CPPFLAGS+=-DKERBEROS5 -I${DESTDIR}/usr/include/krb5
28 DPADD+= ${LIBKRB5} ${LIBASN1}
29 LDADD+= -lkrb5 -lasn1
31 DPADD+= ${LIBCRYPTO} ${LIBROKEN} ${LIBCOM_ERR}
32 LDADD+= -lcrypto -lroken -lcom_err
33 .endif
35 .if (${USE_SKEY} != "no")
36 CPPFLAGS+=-DSKEY
37 DPADD+= ${LIBSKEY}
38 LDADD+= -lskey
39 .endif
40 .endif # USE_PAM == no
42 CLEANFILES+= copyrightstr.c
44 copyrightstr.c: ${NETBSDSRCDIR}/sys/conf/copyright
45 ${_MKTARGET_CREATE}
46 rm -f ${.TARGET}
47 ${TOOL_AWK} '\
48 BEGIN { print "const char copyrightstr[] =" }\
49 { print "\""$$0"\\n\""}\
50 END { print "\"\\n\";" }\
51 ' ${.ALLSRC} > ${.TARGET}
54 .include <bsd.prog.mk>