1 # $NetBSD: Makefile,v 1.31.18.1 2008/06/02 13:21:22 mjf Exp $ 2 # @(#)Makefile 8.1 (Berkeley) 6/5/93 3 4 # when making a change to this file, please check if the change is 5 # also needed for src/distrib/utils/x_ifconfig/Makefile. 6 7 .include <bsd.own.mk> 8 9 PROG= ifconfig 10 MAN= ifconfig.8 11 12 WARNS= 4 13 14 CPPFLAGS+= -I${NETBSDSRCDIR}/sys/ 15 16 .if (${USE_INET6} != "no") 17 CPPFLAGS+=-DINET6 18 .endif 19 20 DPADD+=${LIBUTIL} 21 DPADD+=${LIBPROP} 22 LDADD+=-lutil 23 LDADD+=-lprop 24 25 INCS=af_atalk.h af_inet.h af_inetany.h af_iso.h af_link.h agr.h carp.h env.h 26 INCS+=extern.h ieee80211.h parse.h tunnel.h util.h vlan.h 27 28 SRCS= ifconfig.c 29 30 SRCS+= af_atalk.c 31 SRCS+= af_inet.c 32 SRCS+= af_inetany.c 33 .if (${USE_INET6} != "no") 34 SRCS+= af_inet6.c 35 INCS+= af_inet6.h 36 .endif 37 SRCS+= af_link.c 38 SRCS+= af_iso.c 39 SRCS+= carp.c 40 41 SRCS+= agr.c 42 SRCS+= ieee80211.c 43 SRCS+= tunnel.c 44 SRCS+= vlan.c 45 SRCS+= parse.c 46 SRCS+= env.c 47 SRCS+= util.c 48 49 .include <bsd.prog.mk> 50