worldstone: add -s for statistical profiling
[minix.git] / usr.bin / login / Makefile
blob088b50447b2bf2cd4a427d8e0f61494d29df65c0
1 # $NetBSD: Makefile,v 1.52 2011/04/24 21:42:06 elric Exp $
2 # @(#)Makefile 8.1 (Berkeley) 7/19/93
4 WARNS?= 2 # XXX -Wcast-qual issues
6 USE_PAM?= no
7 USE_KERBEROS?= no
9 .include <bsd.own.mk>
11 USE_FORT?= no # setuid
12 PROG= login
13 SRCS= copyrightstr.c
14 DPADD+= ${LIBUTIL} ${LIBCRYPT}
15 LDADD+= -lutil -lcrypt
16 BINOWN= root
17 BINMODE=4555
19 SRCS+= common.c
20 .if (${USE_PAM} != "no")
21 SRCS+= login_pam.c
22 LDADD+= -lpam ${PAM_STATIC_LDADD}
23 DPADD+= ${LIBPAM} ${PAM_STATIC_DPADD}
24 .else # USE_PAM == no
25 SRCS+= login.c
26 CPPFLAGS+= -DSUPPORT_UTMP -DSUPPORT_UTMPX #-DLOGIN_CAP
28 .if (${USE_KERBEROS} != "no")
29 SRCS+= k5login.c
30 CPPFLAGS+=-DKERBEROS5
31 DPADD+= ${LIBKRB5} ${LIBASN1}
32 LDADD+= -lkrb5 -lasn1
34 DPADD+= ${LIBCRYPTO} ${LIBROKEN} ${LIBCOM_ERR}
35 LDADD+= -lcrypto -lroken -lcom_err
36 .endif
38 .if (${USE_SKEY} != "no")
39 CPPFLAGS+=-DSKEY
40 DPADD+= ${LIBSKEY}
41 LDADD+= -lskey
42 .endif
43 .endif # USE_PAM == no
45 CLEANFILES+= copyrightstr.c
47 copyrightstr.c: ${NETBSDSRCDIR}/sys/conf/copyright
48 ${_MKTARGET_CREATE}
49 rm -f ${.TARGET}
50 ${TOOL_AWK} '\
51 BEGIN { print "const char copyrightstr[] =" }\
52 { print "\""$$0"\\n\""}\
53 END { print "\"\\n\";" }\
54 ' ${.ALLSRC} > ${.TARGET}
57 .include <bsd.prog.mk>