1# $NetBSD: Makefile,v 1.43 2015/06/06 13:48:37 joerg Exp $ 2# from: @(#)Makefile 8.1 (Berkeley) 6/12/93 3 4.include <bsd.own.mk> 5 6USE_FORT?= yes # setgid 7 8RUMPPRG=netstat 9#SRCS= atalk.c bpf.c fast_ipsec.c if.c inet.c inet6.c 10SRCS= atalk.c bpf.c if.c inet.c inet6.c \ 11 main.c mbuf.c mroute.c mroute6.c pfkey.c pfsync.c route.c \ 12 unix.c vtw.c rtutil.c 13.if !defined(__MINIX) 14BINGRP= kmem 15BINMODE=2555 16.endif # !defined(__MINIX) 17LDADD= -lutil -lkvm 18DPADD= ${LIBUTIL} ${LIBKVM} 19.if !defined(__MINIX) 20CPPFLAGS+= -DIPSEC -I${.CURDIR} 21.else # defined(__MINIX) 22CPPFLAGS+= -I${.CURDIR} 23.endif # defined(__MINIX) 24CPPFLAGS+= -I${NETBSDSRCDIR}/sys/dist/pf 25CPPFLAGS+= -I${NETBSDSRCDIR}/sbin/route 26 27.PATH: ${.CURDIR}/../../lib/libc/gen 28.PATH: ${.CURDIR}/../../lib/libc/net 29.PATH: ${.CURDIR}/../../sbin/route 30CPPFLAGS+= -DRUMP_ACTION 31RUMPSRCS+= sysctlbyname.c sysctlgetmibinfo.c sysctlnametomib.c 32RUMPSRCS+= if_indextoname.c getifaddrs.c getnameinfo.c 33 34.if (${USE_INET6} != "no") 35CPPFLAGS+= -DINET6 36.endif 37 38.if defined(__MINIX) 39# FIXME: compilation on ARM fails on a format string warning because of a 40# mismatch between the PRIxPTR format and the uintptr_t type, which should not 41# be possible. This is a bug in the ARM port, but I have no idea how to solve 42# that. For now, simply do not fail the build on this error. --dcvmoole 43CPPFLAGS+= -Wno-error=format 44.endif # defined(__MINIX) 45 46.include <bsd.prog.mk> 47