<sys/socket.h>: turn off MSG_NOSIGNAL
[minix3.git] / libexec / ftpd / Makefile
blob1ca6f34551df9df8417f63c9fb3e387f3bba66d5
1 # $NetBSD: Makefile,v 1.63 2011/08/14 11:46:28 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 .ifdef __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
14 DPADD+= ${LIBCRYPT} ${LIBUTIL}
15 LDADD+= -lcrypt -lutil
16 MAN= ftpd.conf.5 ftpusers.5 ftpd.8
17 MLINKS= ftpusers.5 ftpchroot.5
19 .if defined(NO_INTERNAL_LS)
20 CPPFLAGS+=-DNO_INTERNAL_LS
21 .else
22 # for `internal' ls
23 SRCS+= ls.c cmp.c print.c util.c
24 .PATH: ${NETBSDSRCDIR}/bin/ls
25 .endif
27 .if (${USE_INET6} != "no")
28 CPPFLAGS+=-DINET6
29 .endif
31 .if (${USE_PAM} != "no")
32 CPPFLAGS+=-DUSE_PAM
33 DPADD+= ${LIBPAM} ${PAM_STATIC_DPADD}
34 LDADD+= -lpam ${PAM_STATIC_LDADD}
35 .else # USE_PAM == no
36 .if (${USE_SKEY} != "no")
37 CPPFLAGS+=-DSKEY
38 DPADD+= ${LIBSKEY}
39 LDADD+= -lskey
40 .endif
41 .endif # USE_PAM == no
43 ftpd.o ftpcmd.o: version.h
45 #.if (${USE_KERBEROS} != "no")
47 #.PATH: ${NETBSDSRCDIR}/usr.bin/login
49 #SRCS+= k5login.c
50 #CPPFLAGS+=-DKERBEROS5
51 #DPADD+= ${LIBKRB5} ${LIBASN1}
52 #LDADD+= -lkrb5 -lasn1
54 #DPADD+= ${LIBCRYPTO} ${{LIBCRYPT} ${LIBROKEN} ${LIBCOM_ERR}
55 #LDADD+= -lcrypto -lcrypt -lroken -lcom_err
57 #.endif
59 .include <bsd.prog.mk>