1 1.43 pooka # $NetBSD: Makefile,v 1.43 2009/06/02 23:41:35 pooka Exp $ 2 1.7 cgd # @(#)Makefile 8.1 (Berkeley) 6/5/93 3 1.1 cgd 4 1.28 yamt # when making a change to this file, please check if the change is 5 1.28 yamt # also needed for src/distrib/utils/x_ifconfig/Makefile. 6 1.28 yamt 7 1.16 lukem .include <bsd.own.mk> 8 1.16 lukem 9 1.6 cgd MAN= ifconfig.8 10 1.8 itojun 11 1.40 uebayasi #CFLAGS+=-g 12 1.38 dyoung SRCS= af_atalk.c af_iso.c af_link.c carp.c 13 1.16 lukem .if (${USE_INET6} != "no") 14 1.38 dyoung CPPFLAGS+= -DINET6 15 1.38 dyoung SRCS+= af_inet6.c 16 1.16 lukem .endif 17 1.11 itojun 18 1.38 dyoung .include "Makefile.inc" 19 1.15 dsl 20 1.39 tsutsui .if ${MACHINE_ARCH} == "m68000" 21 1.39 tsutsui # XXX workaround for gcc -O1 bug (PR bin/40036 and toolchain/40066) 22 1.39 tsutsui COPTS.ifconfig.c+= -fno-loop-optimize 23 1.39 tsutsui .endif 24 1.39 tsutsui 25 1.42 pooka # 26 1.42 pooka # Compile-time debug flag. If compiled with "make RUMP_ACTION=1", 27 1.42 pooka # make rump system calls. This allows to single-step ioctl commands 28 1.42 pooka # to figure out where ioctl's go in the kernel. 29 1.42 pooka # 30 1.42 pooka .ifdef RUMP_ACTION 31 1.43 pooka CPPFLAGS+= -DRUMP_SYS_NETWORKING -DRUMP_SYS_IOCTL -DRUMP_SYS_CLOSE 32 1.43 pooka CPPFLAGS+= -DRUMP_ACTION 33 1.42 pooka LDADD+= -lrumpnet_virtif -lrumpnet_netinet -lrumpnet_net -lrumpnet 34 1.42 pooka LDADD+= -lrump -lrumpuser -lpthread 35 1.42 pooka DBG= -g 36 1.42 pooka .endif 37 1.42 pooka 38 1.1 cgd .include <bsd.prog.mk> 39