# @(#)Makefile 8.2 (Berkeley) 4/4/94 # $FreeBSD: src/libexec/ftpd/Makefile,v 1.52 2003/01/26 19:02:56 yar Exp $ .include "../Makefile.inc" .if defined(BSDTYPE) && ( ${BSDTYPE} == "NetBSD" ) .include .endif ### Basic feature set CFLAGS+=-DSETPROCTITLE -DVIRTUAL_HOSTING ## IPv6 support. CFLAGS+=-DINET6 ## Normally next lines will be included from ./Makefile.inc with help of the ## config.sh script. ## The support for sendfile(2). #CFLAGS+=-DUSE_SENDFILE ## Disable usage the EUID of the current user, not root, for data transfers in ## active mode. This flag MUST be set for many *BSD operating systems, but ## not for Linux ones. #CFLAGS+=-DBSDORIG_BIND ## The support for the login_cap functionality. .if defined(BSDTYPE) && ( ${BSDTYPE} == "FreeBSD" ) CFLAGS+=-DLOGIN_CAP .endif ### ### Enable internal ls support FTPD_INTERNAL_LS = 1 ### ### Enable TLS/SSL support SSL_SUPPORT = 1 ### ### Support for "SITE MD5" command CFLAGS+=-DUSE_MD5 ## Uncomment next lines if TLS/SSL enhancement is disabled #DPADD+= ${LIBMD} #LDADD+= -lmd ### ### Support for tcp_wrappers CFLAGS+=-DTCPWRAPPERS LDADD+= -lwrap ### ### ### You shouldn't need to edit anything below ### .if exists(${.CURDIR}/Makefile.inc) .include "${.CURDIR}/Makefile.inc" .endif PROG= ftpd MAN= ftpd.8 ftpchroot.5 xferlog.5 SRCS+= ftpd.c ftpcmd.y logwtmp.c popen.c ## Opt flags CFLAGS+=-Wall YFLAGS= WFORMAT=0 DPADD+= ${LIBCRYPT} ${LIBUTIL} LDADD+= -lcrypt -lutil ### Internal ls support .if defined(FTPD_INTERNAL_LS) LSDIR= ../contrib/ls .PATH: ${.CURDIR}/${LSDIR} SRCS+= ls.c cmp.c print.c util.c CFLAGS+=-DINTERNAL_LS -Dmain=ls_main -I${.CURDIR}/${LSDIR} DPADD+= ${LIBM} LDADD+= -lm .endif ### TLS/SSL support .if defined(SSL_SUPPORT) CFLAGS+=-DUSE_SSL LDADD+= -lssl -lcrypto ../port/libbsdport.a .endif ## Next lines must present regardless of TLS/SSL support state .PATH: ${.CURDIR}/../ssl SRCS+= sslapp.c ssl_port.c ssl_port_ftpd.c CFLAGS+=-I../ssl -I../port ### ### PAM support .if !defined(NO_PAM) CFLAGS+=-DUSE_PAM DPADD+= ${LIBPAM} LDADD+= ${MINUSLPAM} .endif ### S-Key support (FreeBSD 4) #SRCS+= skey-stuff.c #CFLAGS+= -DSKEY #DPADD+= ${LIBSKEY} #LDADD+= -lskey ### OPIE support (FreeBSD 5) ## XXX Kluge! Conversation mechanism needs to be fixed. #CFLAGS+=-DHAVE_OPIE #DPADD+= ${LIBOPIE} #LDADD+= -lopie .if defined(BSDTYPE) && ( ${BSDTYPE} == "NetBSD" ) .include .else .include "../port/bsd_prog.mk" .endif