Remove building with NOCRYPTO option
[minix3.git] / libexec / ftpd / Makefile
blob28dabd36b64e7864c5f824f08396e982ebcac9fd
1 # $NetBSD: Makefile,v 1.64 2015/01/25 15:53:49 christos Exp $
2 # @(#)Makefile 8.2 (Berkeley) 4/4/94
4 .include <bsd.own.mk>
6 PROG= ftpd
7 SRCS= cmds.c conf.c ftpd.c ftpcmd.y logutmp.c logwtmp.c popen.c
8 .if defined(__MINIX)
9 WARNS= # BJG too many warnings with clang right now
10 CPPFLAGS+=-I${.CURDIR}
11 .else
12 CPPFLAGS+=-I${.CURDIR} -DSUPPORT_UTMP -DSUPPORT_UTMPX -DLOGIN_CAP
13 .endif # defined(__MINIX)
14 DPADD+= ${LIBCRYPT} ${LIBUTIL}
15 LDADD+= -lcrypt -lutil
16 MAN= ftpd.conf.5 ftpusers.5 ftpd.8
17 MLINKS= ftpusers.5 ftpchroot.5
19 SRCS+= pfilter.c
20 LDADD+= -lblacklist
21 DPADD+= ${LIBBLACKLIST}
23 .if defined(NO_INTERNAL_LS)
24 CPPFLAGS+=-DNO_INTERNAL_LS
25 .else
26 # for `internal' ls
27 SRCS+= ls.c cmp.c print.c util.c
28 .PATH: ${NETBSDSRCDIR}/bin/ls
29 .endif
31 .if (${USE_INET6} != "no")
32 CPPFLAGS+=-DINET6
33 .endif
35 .if (${USE_PAM} != "no")
36 CPPFLAGS+=-DUSE_PAM
37 DPADD+= ${LIBPAM} ${PAM_STATIC_DPADD}
38 LDADD+= -lpam ${PAM_STATIC_LDADD}
39 .else # USE_PAM == no
40 .if (${USE_SKEY} != "no")
41 CPPFLAGS+=-DSKEY
42 DPADD+= ${LIBSKEY}
43 LDADD+= -lskey
44 .endif
45 .endif # USE_PAM == no
47 ftpd.o ftpcmd.o: version.h
49 #.if (${USE_KERBEROS} != "no")
51 #.PATH: ${NETBSDSRCDIR}/usr.bin/login
53 #SRCS+= k5login.c
54 #CPPFLAGS+=-DKERBEROS5
55 #DPADD+= ${LIBKRB5} ${LIBASN1}
56 #LDADD+= -lkrb5 -lasn1
58 #DPADD+= ${LIBCRYPTO} ${{LIBCRYPT} ${LIBROKEN} ${LIBCOM_ERR}
59 #LDADD+= -lcrypto -lcrypt -lroken -lcom_err
61 #.endif
63 .include <bsd.prog.mk>