ftp: Update files for tnftp-20121224 import.
[dragonfly.git] / usr.bin / ftp / Makefile
blobdf27f833ef06a8b330e09a89233320a54ecfa369
1 # $FreeBSD: src/usr.bin/ftp/Makefile,v 1.11.2.1 2000/05/16 04:25:19 cpiazza Exp $
2 # $DragonFly: src/usr.bin/ftp/Makefile,v 1.5 2008/05/17 22:01:12 pavalos Exp $
3 # $NetBSD: Makefile,v 1.15 1997/10/18 15:31:20 lukem Exp $
4 # from: @(#)Makefile 8.2 (Berkeley) 4/3/94
6 # Uncomment the following to provide defaults for gate-ftp operation
8 #CFLAGS+=-DGATE_SERVER=\"ftp-gw.host\" # -DGATE_PORT=21
10 CONTRIBDIR= ${.CURDIR}/../../contrib/tnftp
11 .PATH: ${CONTRIBDIR}
13 PROG= ftp
14 SRCS= cmds.c cmdtab.c complete.c domacro.c fetch.c ftp.c main.c \
15 progressbar.c ruserpass.c util.c
17 CFLAGS+=-DINET6 -I${.OBJDIR} -I${CONTRIBDIR} -I${.CURDIR}/../../lib/libc/stdtime
18 CFLAGS+=-D__dead=__dead2
19 LDADD= -ledit -ltermcap -lutil
20 DPADD= ${LIBEDIT} ${LIBTERMCAP} ${LIBUTIL}
22 .if !defined(NO_OPENSSL)
23 SRCS+= ssl.c
24 CFLAGS+=-DWITH_SSL
25 LDADD+= -lssl -lcrypto
26 DPADD+= ${LIBSSL} ${LIBCRYPTO}
27 .endif
29 LINKS= ${BINDIR}/ftp ${BINDIR}/pftp \
30 ${BINDIR}/ftp ${BINDIR}/gate-ftp
31 MLINKS= ftp.1 pftp.1 \
32 ftp.1 gate-ftp.1
34 WARNS?= 3
36 .include <bsd.prog.mk>