1994-05-27 12:33:43 +00:00
|
|
|
# @(#)Makefile 8.1 (Berkeley) 6/12/93
|
2001-12-10 21:13:08 +00:00
|
|
|
# $FreeBSD$
|
1994-05-27 12:33:43 +00:00
|
|
|
|
2014-05-06 04:22:01 +00:00
|
|
|
.include <src.opts.mk>
|
2006-03-17 18:54:44 +00:00
|
|
|
|
1994-05-27 12:33:43 +00:00
|
|
|
PROG= netstat
|
2010-02-22 15:57:36 +00:00
|
|
|
SRCS= if.c inet.c main.c mbuf.c mroute.c netisr.c route.c \
|
2014-03-14 06:29:43 +00:00
|
|
|
unix.c mroute6.c ipsec.c bpf.c pfkey.c sctp.c \
|
2014-02-07 15:18:23 +00:00
|
|
|
flowtable.c
|
2005-01-23 12:29:46 +00:00
|
|
|
|
2006-07-28 16:16:40 +00:00
|
|
|
WARNS?= 3
|
2007-11-20 02:07:30 +00:00
|
|
|
CFLAGS+=-fno-strict-aliasing
|
2005-01-23 12:29:46 +00:00
|
|
|
|
2000-07-04 16:26:46 +00:00
|
|
|
CFLAGS+=-DIPSEC
|
2007-06-09 13:44:09 +00:00
|
|
|
CFLAGS+=-DSCTP
|
2006-07-28 11:09:21 +00:00
|
|
|
|
2012-07-16 06:43:04 +00:00
|
|
|
.if ${MK_INET_SUPPORT} != "no"
|
|
|
|
CFLAGS+=-DINET
|
|
|
|
.endif
|
|
|
|
|
2007-06-10 06:18:04 +00:00
|
|
|
.if ${MK_INET6_SUPPORT} != "no"
|
|
|
|
SRCS+= inet6.c
|
|
|
|
CFLAGS+=-DINET6
|
|
|
|
.endif
|
1996-06-08 00:20:42 +00:00
|
|
|
|
2011-03-21 09:58:24 +00:00
|
|
|
.if ${MK_OFED} != "no"
|
|
|
|
CFLAGS+=-DSDP
|
|
|
|
.endif
|
|
|
|
|
2013-10-29 17:38:13 +00:00
|
|
|
.if ${MK_PF} != "no"
|
|
|
|
CFLAGS+=-DPF
|
|
|
|
.endif
|
|
|
|
|
1994-05-27 12:33:43 +00:00
|
|
|
BINGRP= kmem
|
|
|
|
BINMODE=2555
|
2014-11-25 14:29:10 +00:00
|
|
|
LIBADD= kvm memstat util
|
2008-09-21 22:02:26 +00:00
|
|
|
|
|
|
|
.if ${MK_NETGRAPH_SUPPORT} != "no"
|
|
|
|
SRCS+= netgraph.c
|
2014-11-25 14:29:10 +00:00
|
|
|
LIBADD+= netgraph
|
2008-09-21 22:02:26 +00:00
|
|
|
CFLAGS+=-DNETGRAPH
|
|
|
|
.endif
|
1994-05-27 12:33:43 +00:00
|
|
|
|
2015-02-21 23:47:20 +00:00
|
|
|
LIBADD+= xo
|
|
|
|
|
1994-05-27 12:33:43 +00:00
|
|
|
.include <bsd.prog.mk>
|