snj doesn't like my accent, so use proper English month names.
[netbsd-mini2440.git] / sbin / ifconfig / Makefile
blob0f2c8d37ec7bece8bf392ed64ffb05cf0b74134f
1 # $NetBSD: Makefile,v 1.45 2009/09/16 14:59:45 tsutsui Exp $
2 # @(#)Makefile 8.1 (Berkeley) 6/5/93
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.
8 .include <bsd.own.mk>
10 MAN= ifconfig.8
12 #CFLAGS+=-g
13 SRCS= af_atalk.c af_iso.c af_link.c carp.c
14 .if (${USE_INET6} != "no")
15 CPPFLAGS+= -DINET6
16 SRCS+= af_inet6.c
17 .endif
19 .include "Makefile.inc"
21 CPPFLAGS+=-I${NETBSDSRCDIR}/sys/dist/pf/
22 SRCS+= pfsync.c
24 .if ${MACHINE_ARCH} == "m68000"
25 # XXX workaround for gcc -O1 bug (PR bin/40036 and toolchain/40066)
26 COPTS.ifconfig.c+= -fno-loop-optimize
27 .endif
30 # Compile-time debug flag. If compiled with "make RUMP_ACTION=1",
31 # make rump system calls. This allows to single-step ioctl commands
32 # to figure out where ioctl's go in the kernel.
34 .ifdef RUMP_ACTION
35 CPPFLAGS+= -DRUMP_SYS_NETWORKING -DRUMP_SYS_IOCTL -DRUMP_SYS_CLOSE
36 CPPFLAGS+= -DRUMP_ACTION
37 LDADD+= -lrumpnet_virtif -lrumpnet_netinet -lrumpnet_net -lrumpnet
38 LDADD+= -lrump -lrumpuser -lpthread
39 DBG= -g
40 .endif
42 .include <bsd.prog.mk>