xref: /netbsd-src/sbin/ifconfig/Makefile (revision 7e30e94394d0994ab9534f68a8f91665045c91ce)
1#	$NetBSD: Makefile,v 1.60 2017/02/08 23:34:15 rin 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.
6# such stuff should be into Makefile.inc.
7
8.include <bsd.own.mk>
9
10RUMPPRG=	ifconfig
11MAN=		ifconfig.8
12
13SRCS=		af_atalk.c af_link.c carp.c
14
15CPPFLAGS+=	-I${NETBSDSRCDIR}/sys/dist/pf/
16SRCS+=		pfsync.c
17
18.if (${USE_INET6} != "no")
19CPPFLAGS+=	-DINET6
20SRCS+=		af_inet6.c
21.endif
22
23.include "Makefile.common"
24
25.PATH:		${.CURDIR}/../../lib/libc/net
26RUMPSRCS=	getifaddrs.c getnameinfo.c if_indextoname.c
27.if (${MKRUMP} != "no")
28CPPFLAGS+=	-DRUMP_ACTION
29.endif
30
31.include <bsd.prog.mk>
32