Makefile revision 1.44
1# $NetBSD: Makefile,v 1.44 2009/09/15 09:22:07 he 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 9MAN= ifconfig.8 10 11#CFLAGS+=-g 12SRCS= af_atalk.c af_iso.c af_link.c carp.c 13.if (${USE_INET6} != "no") 14CPPFLAGS+= -DINET6 15SRCS+= af_inet6.c 16.endif 17 18.include "Makefile.inc" 19 20CPPFLAGS+=-I ${.CURDIR}/../../sys/dist/pf/ 21SRCS+= pfsync.c 22 23.if ${MACHINE_ARCH} == "m68000" 24# XXX workaround for gcc -O1 bug (PR bin/40036 and toolchain/40066) 25COPTS.ifconfig.c+= -fno-loop-optimize 26.endif 27 28# 29# Compile-time debug flag. If compiled with "make RUMP_ACTION=1", 30# make rump system calls. This allows to single-step ioctl commands 31# to figure out where ioctl's go in the kernel. 32# 33.ifdef RUMP_ACTION 34CPPFLAGS+= -DRUMP_SYS_NETWORKING -DRUMP_SYS_IOCTL -DRUMP_SYS_CLOSE 35CPPFLAGS+= -DRUMP_ACTION 36LDADD+= -lrumpnet_virtif -lrumpnet_netinet -lrumpnet_net -lrumpnet 37LDADD+= -lrump -lrumpuser -lpthread 38DBG= -g 39.endif 40 41.include <bsd.prog.mk> 42