Home | History | Annotate | Line # | Download | only in ifconfig
Makefile revision 1.43
      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 
      9 MAN=	ifconfig.8
     10 
     11 #CFLAGS+=-g
     12 SRCS= af_atalk.c af_iso.c af_link.c carp.c
     13 .if (${USE_INET6} != "no")
     14 CPPFLAGS+=	-DINET6
     15 SRCS+= 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)
     22 COPTS.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
     31 CPPFLAGS+=	-DRUMP_SYS_NETWORKING -DRUMP_SYS_IOCTL -DRUMP_SYS_CLOSE
     32 CPPFLAGS+=	-DRUMP_ACTION
     33 LDADD+=		-lrumpnet_virtif -lrumpnet_netinet -lrumpnet_net -lrumpnet
     34 LDADD+=		-lrump -lrumpuser -lpthread
     35 DBG=		-g
     36 .endif
     37 
     38 .include <bsd.prog.mk>
     39