Remove building with NOCRYPTO option
[minix.git] / usr.bin / login / Makefile
blob22672782e64b421782cb22e1dbce1de2b100a9bb
1 # $NetBSD: Makefile,v 1.56 2013/08/11 06:32:13 dholland Exp $
2 # @(#)Makefile 8.1 (Berkeley) 7/19/93
4 .include <bsd.own.mk>
6 USE_FORT?= yes # setuid
7 PROG= login
8 SRCS= copyrightstr.c
9 DPADD+= ${LIBUTIL} ${LIBCRYPT}
10 LDADD+= -lutil -lcrypt
11 BINOWN= root
12 BINMODE=4555
14 SRCS+= common.c
15 .if (${USE_PAM} != "no")
16 SRCS+= login_pam.c
17 LDADD+= -lpam ${PAM_STATIC_LDADD}
18 DPADD+= ${LIBPAM} ${PAM_STATIC_DPADD}
19 .else # USE_PAM == no
20 SRCS+= login.c
21 # MINIX: -DLOGIN_CAP
22 CPPFLAGS+= -DSUPPORT_UTMP -DSUPPORT_UTMPX
24 .if (${USE_KERBEROS} != "no")
25 SRCS+= k5login.c
26 CPPFLAGS+=-DKERBEROS5
27 DPADD+= ${LIBKRB5} ${LIBASN1}
28 LDADD+= -lkrb5 -lasn1
30 DPADD+= ${LIBCRYPTO} ${LIBROKEN} ${LIBCOM_ERR}
31 LDADD+= -lcrypto -lroken -lcom_err
32 .endif
34 .if (${USE_SKEY} != "no")
35 CPPFLAGS+=-DSKEY
36 DPADD+= ${LIBSKEY}
37 LDADD+= -lskey
38 .endif
39 .endif # USE_PAM == no
41 CLEANFILES+= copyrightstr.c
43 copyrightstr.c: ${NETBSDSRCDIR}/sys/conf/copyright
44 ${_MKTARGET_CREATE}
45 rm -f ${.TARGET}
46 ${TOOL_AWK} '\
47 BEGIN { print "const char copyrightstr[] =" }\
48 { print "\""$$0"\\n\""}\
49 END { print "\"\\n\";" }\
50 ' ${.ALLSRC} > ${.TARGET}
53 .include <bsd.prog.mk>