2005-02-11 18:13:28 +03:00
|
|
|
# $NetBSD: Makefile,v 1.30 2005/02/11 15:13:28 jmc Exp $
|
1997-01-09 23:18:21 +03:00
|
|
|
# from: @(#)Makefile 8.2 (Berkeley) 4/3/94
|
1993-03-21 12:45:37 +03:00
|
|
|
|
2005-01-10 05:58:58 +03:00
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
1993-03-21 12:45:37 +03:00
|
|
|
PROG= ftp
|
Abstract out progress bar support into progressbar.[ch], for inclusion
in external programs (conditionalized on -DSTANDALONE_PROGRESS).
The following moved from util.c to progressbar.c:
alarmtimer(), progressmeter(), psummary(), ptransfer(),
xsignal(), xsignal_restart()
The following moved from extern.h and ftp_var.h to progressbar.h:
STALLTIME, verbose, fromatty, progress, quit_time, ttywidth
2003-01-21 19:08:06 +03:00
|
|
|
SRCS= cmds.c cmdtab.c complete.c domacro.c fetch.c ftp.c main.c \
|
|
|
|
progressbar.c ruserpass.c util.c
|
1997-01-19 17:19:02 +03:00
|
|
|
|
1997-08-18 14:20:13 +04:00
|
|
|
# Uncomment the following to provide defaults for gate-ftp operation
|
|
|
|
#
|
1997-10-14 19:09:22 +04:00
|
|
|
#CPPFLAGS+=-DGATE_SERVER=\"ftp-gw.host\" # -DGATE_PORT=21
|
1997-08-18 14:20:13 +04:00
|
|
|
|
2002-10-17 10:16:48 +04:00
|
|
|
.if defined(SMALLPROG)
|
2005-02-11 18:13:28 +03:00
|
|
|
CPPFLAGS+=-DNO_EDITCOMPLETE -DNO_ABOUT -DNO_AUTH -DNO_HELP -DNO_STATUS
|
2002-10-17 10:16:48 +04:00
|
|
|
.else
|
|
|
|
LDADD+= -ledit -ltermcap
|
|
|
|
DPADD+= ${LIBEDIT} ${LIBTERMCAP}
|
|
|
|
.endif
|
|
|
|
|
2005-01-10 05:58:58 +03:00
|
|
|
.if (!defined(SMALLPROG) || defined(SMALLPROG_INET6)) && (${USE_INET6} != "no")
|
1999-07-02 12:07:40 +04:00
|
|
|
CPPFLAGS+= -DINET6
|
2002-10-17 10:16:48 +04:00
|
|
|
.endif
|
1999-07-02 12:07:40 +04:00
|
|
|
|
1999-12-12 05:14:53 +03:00
|
|
|
cmds.o fetch.o: version.h
|
1999-10-01 11:58:02 +04:00
|
|
|
main.o: ftp_var.h
|
|
|
|
|
1993-03-21 12:45:37 +03:00
|
|
|
.include <bsd.prog.mk>
|