11.40Srin# $NetBSD: Makefile,v 1.40 2022/05/11 10:45:48 rin Exp $
21.1Sgwr# Build a smaller ifconfig (i.e. for boot media)
31.1Sgwr
41.40Srin# You can drop IEEE 802.11 support by setting NOIEEE80211=1 in
51.40Srin# parent Makefile's. This saves ~9KB for, e.g., m68k.
61.40Srin
71.38SrinNOMAN=		# defined
81.39SchristosSMALLPROG=1
91.34Srin
101.27Sdyoung.include <bsd.own.mk>
111.1Sgwr
121.38SrinPROG=		ifconfig
131.27SdyoungSRCDIR=		${.CURDIR}/../../../sbin/ifconfig
141.21Slukem
151.38SrinCPPFLAGS+=	-DCRUNCHOPS
161.22Syamt
171.21Slukem.if defined(SMALLPROG_INET6) && (${USE_INET6} != "no")
181.32ShannkenCPPFLAGS+=	-DINET6
191.38SrinSRCS+=		af_inet6.c
201.23Syamt.endif
211.23Syamt
221.37Srin.PATH:		${SRCDIR}
231.37Srin
241.38Srin.include "${SRCDIR}/Makefile.common"
251.22Syamt
261.1Sgwr.include <bsd.prog.mk>
27