Makefile revision 1.42
1#	$NetBSD: Makefile,v 1.42 2009/05/26 16:03:24 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_ACTION
32LDADD+=		-lrumpnet_virtif -lrumpnet_netinet -lrumpnet_net -lrumpnet
33LDADD+=		-lrump -lrumpuser -lpthread
34DBG=		-g
35.endif
36
37.include <bsd.prog.mk>
38