1 # $FreeBSD: src/usr.bin/ftp/Makefile,v 1.11.2.1 2000/05/16 04:25:19 cpiazza Exp $
2 # $NetBSD: Makefile,v 1.15 1997/10/18 15:31:20 lukem Exp $
3 # from: @(#)Makefile 8.2 (Berkeley) 4/3/94
5 # Uncomment the following to provide defaults for gate-ftp operation
7 #CFLAGS+=-DGATE_SERVER=\"ftp-gw.host\" # -DGATE_PORT=21
9 CONTRIBDIR
= ${.CURDIR
}/..
/..
/contrib
/tnftp
10 .PATH
: ${CONTRIBDIR}/src
13 SRCS
= cmds.c cmdtab.c complete.c domacro.c fetch.c ftp.c main.c \
14 progressbar.c ruserpass.c util.c
16 CFLAGS
+=-I
${.CURDIR
} -I
${.OBJDIR
} -I
${CONTRIBDIR} \
17 -I
${.CURDIR
}/..
/..
/lib
/libc
/stdtime \
18 -D__dead
=__dead2
-DUSE_GLOB_H
19 LDADD
= -lprivate_edit
-lprivate_ncurses
-lutil
20 DPADD
= ${LIBEDIT} ${LIBNCURSES} ${LIBUTIL}
21 LDFLAGS
+= -rpath
/lib
/priv
-L
${_SHLIBDIRPREFIX}/usr
/lib
/priv
23 .if
!defined
(NO_CRYPT
)
25 CFLAGS
+= -DWITH_SSL
-I
${.CURDIR
}/..
/..
/crypto
/libressl
/include
26 LDADD
+= -lprivate_ssl
-lprivate_crypto
27 DPADD
+= ${LIBRESSL} ${LIBRECRYPTO}
30 LINKS
= ${BINDIR}/ftp
${BINDIR}/pftp \
31 ${BINDIR}/ftp
${BINDIR}/gate-ftp
32 MLINKS
= ftp
.1 pftp
.1 \
37 .
include <bsd.prog.mk
>