iso9660fs: initialize buffer cache
[minix.git] / usr.bin / login / Makefile
blobeb36b441ad63b2d9d47065103c9466b46282bd14
1 # $NetBSD: Makefile,v 1.55 2012/04/24 16:52:26 christos Exp $
2 # @(#)Makefile 8.1 (Berkeley) 7/19/93
4 WARNS?= 5
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+= -DSUPPORT_UTMP -DSUPPORT_UTMPX #-DLOGIN_CAP
25 .if (${USE_KERBEROS} != "no")
26 SRCS+= k5login.c
27 CPPFLAGS+=-DKERBEROS5
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>