Makefile revision 1.34
1#	$NetBSD: Makefile,v 1.34 2011/06/22 02:49:44 mrg Exp $
2#	from: @(#)Makefile	8.2 (Berkeley) 4/3/94
3
4.include <bsd.own.mk>
5
6USE_FORT?= yes	# network client
7
8PROG=	ftp
9SRCS=	cmds.c cmdtab.c complete.c domacro.c fetch.c ftp.c main.c \
10	progressbar.c ruserpass.c util.c
11
12# Uncomment the following to provide defaults for gate-ftp operation
13#
14#CPPFLAGS+=-DGATE_SERVER=\"ftp-gw.host\" # -DGATE_PORT=21
15
16.if defined(SMALLPROG)
17CPPFLAGS+=-DNO_EDITCOMPLETE -DNO_ABOUT -DNO_AUTH -DNO_HELP -DNO_STATUS -DNO_DEBUG -DNO_USAGE
18.else
19LDADD+=	-ledit -lterminfo
20DPADD+=	${LIBEDIT} ${LIBTERMINFO}
21.endif
22
23.if (!defined(SMALLPROG) || defined(SMALLPROG_INET6)) && (${USE_INET6} != "no")
24CPPFLAGS+= -DINET6
25.endif
26
27cmds.o fetch.o: version.h
28main.o:	ftp_var.h
29
30.include <bsd.prog.mk>
31
32# XXX
33.if ${HAVE_GCC} == 45
34COPTS.main.c+=	-Wno-error
35COPTS.ftp.c+=	-Wno-error
36.endif
37