1 # $NetBSD: Makefile,v 1.35 2017/02/08 23:16:41 rin Exp $ 2 # Build a smaller ifconfig (i.e. for boot media) 3 4 NOMAN= # defined 5 6 .include <bsd.own.mk> 7 8 SRCDIR= ${.CURDIR}/../../../sbin/ifconfig 9 10 11 CPPFLAGS+= -DCRUNCHOPS 12 .if defined(SMALLPROG_INET6) && (${USE_INET6} != "no") 13 CPPFLAGS+= -DINET6 14 SRCS+= af_inet6.c 15 .endif 16 17 .ifdef SMALLPROG 18 CPPFLAGS+=-DSMALL 19 .endif 20 21 PROG= ifconfig 22 .include "${.CURDIR}/../../../sbin/ifconfig/Makefile.common" 23 24 .include <bsd.prog.mk> 25 26 .PATH: ${SRCDIR} 27