xref: /netbsd-src/sbin/ifconfig/Makefile (revision de4fa6c51a9708fc05f88b618fa6fad87c9508ec)
1#	$NetBSD: Makefile,v 1.43 2009/06/02 23:41:35 pooka 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
9MAN=	ifconfig.8
10
11#CFLAGS+=-g
12SRCS= af_atalk.c af_iso.c af_link.c carp.c
13.if (${USE_INET6} != "no")
14CPPFLAGS+=	-DINET6
15SRCS+= af_inet6.c
16.endif
17
18.include "Makefile.inc"
19
20.if ${MACHINE_ARCH} == "m68000"
21# XXX workaround for gcc -O1 bug (PR bin/40036 and toolchain/40066)
22COPTS.ifconfig.c+= -fno-loop-optimize
23.endif
24
25#
26# Compile-time debug flag.  If compiled with "make RUMP_ACTION=1",
27# make rump system calls.  This allows to single-step ioctl commands
28# to figure out where ioctl's go in the kernel.
29#
30.ifdef RUMP_ACTION
31CPPFLAGS+=	-DRUMP_SYS_NETWORKING -DRUMP_SYS_IOCTL -DRUMP_SYS_CLOSE
32CPPFLAGS+=	-DRUMP_ACTION
33LDADD+=		-lrumpnet_virtif -lrumpnet_netinet -lrumpnet_net -lrumpnet
34LDADD+=		-lrump -lrumpuser -lpthread
35DBG=		-g
36.endif
37
38.include <bsd.prog.mk>
39