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