1158910Srwatson# $NetBSD: Makefile,v 1.40 2022/05/11 10:45:48 rin Exp $
2158910Srwatson# Build a smaller ifconfig (i.e. for boot media)
3158910Srwatson
4158910Srwatson# You can drop IEEE 802.11 support by setting NOIEEE80211=1 in
5158910Srwatson# parent Makefile's. This saves ~9KB for, e.g., m68k.
6158910Srwatson
7158910SrwatsonNOMAN=		# defined
8158910SrwatsonSMALLPROG=1
9158910Srwatson
10158910Srwatson.include <bsd.own.mk>
11158910Srwatson
12158910SrwatsonPROG=		ifconfig
13158910SrwatsonSRCDIR=		${.CURDIR}/../../../sbin/ifconfig
14158910Srwatson
15158910SrwatsonCPPFLAGS+=	-DCRUNCHOPS
16158910Srwatson
17158910Srwatson.if defined(SMALLPROG_INET6) && (${USE_INET6} != "no")
18158910SrwatsonCPPFLAGS+=	-DINET6
19158910SrwatsonSRCS+=		af_inet6.c
20158910Srwatson.endif
21158910Srwatson
22158910Srwatson.PATH:		${SRCDIR}
23158910Srwatson
24158910Srwatson.include "${SRCDIR}/Makefile.common"
25158910Srwatson
26158910Srwatson.include <bsd.prog.mk>
27158910Srwatson