xref: /freebsd/libexec/ftpd/Makefile (revision e9ac41698b2f322d55ccf9da50a3596edb2c1800)
1.include <src.opts.mk>
2
3PACKAGE=	ftpd
4
5CONFS=	ftpusers
6PROG=	ftpd
7MAN=	ftpd.8 ftpchroot.5
8SRCS=	ftpd.c ftpcmd.y logwtmp.c popen.c
9
10CFLAGS+=-DSETPROCTITLE -DLOGIN_CAP -DVIRTUAL_HOSTING
11CFLAGS+=-I${.CURDIR}
12YFLAGS=
13WARNS?=	2
14WFORMAT=0
15
16LIBADD=	crypt md util
17
18.PATH:	${SRCTOP}/bin/ls
19SRCS+=	ls.c cmp.c print.c util.c
20CFLAGS+=-Dmain=ls_main -I${SRCTOP}/bin/ls
21LIBADD+=	m
22
23.if ${MK_BLACKLIST_SUPPORT} != "no"
24CFLAGS+= -DUSE_BLACKLIST -I${SRCTOP}/contrib/blocklist/include
25SRCS+= blacklist.c
26LIBADD+= blacklist
27LDFLAGS+=-L${LIBBLACKLISTDIR}
28.endif
29
30.if ${MK_INET6_SUPPORT} != "no"
31CFLAGS+=-DINET6
32.endif
33
34.if ${MK_PAM_SUPPORT} != "no"
35CFLAGS+=-DUSE_PAM
36LIBADD+=	pam
37.endif
38
39.include <bsd.prog.mk>
40