df27f833ef06a8b330e09a89233320a54ecfa369
[dragonfly.git] / usr.bin / ftp / Makefile
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
5
6 # Uncomment the following to provide defaults for gate-ftp operation
7 #
8 #CFLAGS+=-DGATE_SERVER=\"ftp-gw.host\" # -DGATE_PORT=21
9
10 CONTRIBDIR= ${.CURDIR}/../../contrib/tnftp
11 .PATH:  ${CONTRIBDIR}
12
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
16
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}
21
22 .if !defined(NO_OPENSSL)
23 SRCS+=  ssl.c
24 CFLAGS+=-DWITH_SSL
25 LDADD+= -lssl -lcrypto
26 DPADD+= ${LIBSSL} ${LIBCRYPTO}
27 .endif
28
29 LINKS=  ${BINDIR}/ftp ${BINDIR}/pftp \
30         ${BINDIR}/ftp ${BINDIR}/gate-ftp
31 MLINKS= ftp.1 pftp.1 \
32         ftp.1 gate-ftp.1
33
34 WARNS?= 3
35
36 .include <bsd.prog.mk>