Makefile revision 1.49
1#	$NetBSD: Makefile,v 1.49 2010/11/05 16:23:56 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.
6# such stuff should be into Makefile.inc.
7
8.include <bsd.own.mk>
9
10MAN=	ifconfig.8
11
12#DBG+=-g
13SRCS= af_atalk.c af_iso.c af_link.c carp.c
14.if (${USE_INET6} != "no")
15CPPFLAGS+=	-DINET6
16SRCS+= af_inet6.c
17.endif
18
19.include "Makefile.inc"
20
21CPPFLAGS+=-I${NETBSDSRCDIR}/sys/dist/pf/
22SRCS+= pfsync.c
23
24.if ${MACHINE_ARCH} == "m68000"
25# XXX workaround for gcc -O1 bug (PR bin/40036 and toolchain/40066)
26COPTS.ifconfig.c+= -fno-loop-optimize
27.endif
28
29#
30# Compile-time debug flag.  If compiled with "make RUMP_ACTION=1",
31# make rump system calls to a server in another process.
32#
33.ifdef RUMP_ACTION
34.PATH:		${.CURDIR}/../../lib/libc/net
35CPPFLAGS+=	-DRUMP_SYS_NETWORKING -DRUMP_SYS_IOCTL -DRUMP_SYS_CLOSE
36CPPFLAGS+=	-DRUMP_ACTION
37LDADD+=		-lrumpclient
38DBG=		-g
39SRCS+=		getifaddrs.c
40.endif
41
42.include <bsd.prog.mk>
43