Makefile revision 1.43
11.43Spooka#	$NetBSD: Makefile,v 1.43 2009/06/02 23:41:35 pooka Exp $
21.7Scgd#	@(#)Makefile	8.1 (Berkeley) 6/5/93
31.1Scgd
41.28Syamt# when making a change to this file, please check if the change is
51.28Syamt# also needed for src/distrib/utils/x_ifconfig/Makefile.
61.28Syamt
71.16Slukem.include <bsd.own.mk>
81.16Slukem
91.6ScgdMAN=	ifconfig.8
101.8Sitojun
111.40Suebayasi#CFLAGS+=-g
121.38SdyoungSRCS= af_atalk.c af_iso.c af_link.c carp.c
131.16Slukem.if (${USE_INET6} != "no")
141.38SdyoungCPPFLAGS+=	-DINET6
151.38SdyoungSRCS+= af_inet6.c
161.16Slukem.endif
171.11Sitojun
181.38Sdyoung.include "Makefile.inc"
191.15Sdsl
201.39Stsutsui.if ${MACHINE_ARCH} == "m68000"
211.39Stsutsui# XXX workaround for gcc -O1 bug (PR bin/40036 and toolchain/40066)
221.39StsutsuiCOPTS.ifconfig.c+= -fno-loop-optimize
231.39Stsutsui.endif
241.39Stsutsui
251.42Spooka#
261.42Spooka# Compile-time debug flag.  If compiled with "make RUMP_ACTION=1",
271.42Spooka# make rump system calls.  This allows to single-step ioctl commands
281.42Spooka# to figure out where ioctl's go in the kernel.
291.42Spooka#
301.42Spooka.ifdef RUMP_ACTION
311.43SpookaCPPFLAGS+=	-DRUMP_SYS_NETWORKING -DRUMP_SYS_IOCTL -DRUMP_SYS_CLOSE
321.43SpookaCPPFLAGS+=	-DRUMP_ACTION
331.42SpookaLDADD+=		-lrumpnet_virtif -lrumpnet_netinet -lrumpnet_net -lrumpnet
341.42SpookaLDADD+=		-lrump -lrumpuser -lpthread
351.42SpookaDBG=		-g
361.42Spooka.endif
371.42Spooka
381.1Scgd.include <bsd.prog.mk>
39