make -DINET6 conditional with MACHINE_ARCH.

checked after a comment from "Simon J. Gerraty" <sjg@quick.com.au>
This commit is contained in:
itojun 2000-05-04 03:27:09 +00:00
parent f077f10640
commit 3b30be92ba
2 changed files with 9 additions and 3 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.6 1999/06/25 01:07:56 cgd Exp $
# $NetBSD: Makefile,v 1.7 2000/05/04 03:27:09 itojun Exp $
# Build a smaller ftp (i.e. for boot media)
PROG= ftp
@ -14,6 +14,9 @@ SRCS= cmds.c cmdtab.c complete.c domacro.c fetch.c ftp.c main.c ruserpass.c \
util.c
CPPFLAGS+= -DNO_EDITCOMPLETE -DNO_ABOUT -I${SRCDIR}
.if (${MACHINE_ARCH} == "i386") || (${MACHINE_ARCH} == "hpcmips")
CPPFLAGS+= -DINET6
.endif
all: ${PROG}

View File

@ -1,11 +1,14 @@
# $NetBSD: Makefile,v 1.9 2000/01/04 08:33:53 itojun Exp $
# $NetBSD: Makefile,v 1.10 2000/05/04 03:27:10 itojun Exp $
# Build a smaller ifconfig (i.e. for boot media)
PROG= ifconfig
MKMAN= no
SRCDIR= ${.CURDIR}/../../../sbin/ifconfig
CPPFLAGS+= -DINET6 -DINET_ONLY -I${SRCDIR}
CPPFLAGS+= -DINET_ONLY -I${SRCDIR}
.if (${MACHINE_ARCH} == "i386") || (${MACHINE_ARCH} == "hpcmips")
CPPFLAGS+= -DINET6
.endif
all: ${PROG}