1 # $NetBSD: Makefile,v 1.40 2022/05/11 10:45:48 rin Exp $ 2 # Build a smaller ifconfig (i.e. for boot media) 3 4 # You can drop IEEE 802.11 support by setting NOIEEE80211=1 in 5 # parent Makefile's. This saves ~9KB for, e.g., m68k. 6 7 NOMAN= # defined 8 SMALLPROG=1 9 10 .include <bsd.own.mk> 11 12 PROG= ifconfig 13 SRCDIR= ${.CURDIR}/../../../sbin/ifconfig 14 15 CPPFLAGS+= -DCRUNCHOPS 16 17 .if defined(SMALLPROG_INET6) && (${USE_INET6} != "no") 18 CPPFLAGS+= -DINET6 19 SRCS+= af_inet6.c 20 .endif 21 22 .PATH: ${SRCDIR} 23 24 .include "${SRCDIR}/Makefile.common" 25 26 .include <bsd.prog.mk> 27