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