mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-25 11:37:56 +00:00
0153eb6688
Currently supports only reporting on live systems via sysctl, kmem support needs to be edded. MFC after: 1 week Sponsored by: Juniper Networks
41 lines
688 B
Makefile
41 lines
688 B
Makefile
# @(#)Makefile 8.1 (Berkeley) 6/12/93
|
|
# $FreeBSD$
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
PROG= netstat
|
|
SRCS= if.c inet.c main.c mbuf.c mroute.c netisr.c route.c \
|
|
unix.c atalk.c mroute6.c ipsec.c bpf.c pfkey.c sctp.c
|
|
|
|
WARNS?= 3
|
|
CFLAGS+=-fno-strict-aliasing
|
|
|
|
CFLAGS+=-DIPSEC
|
|
CFLAGS+=-DSCTP
|
|
|
|
.if ${MK_INET6_SUPPORT} != "no"
|
|
SRCS+= inet6.c
|
|
CFLAGS+=-DINET6
|
|
.endif
|
|
|
|
BINGRP= kmem
|
|
BINMODE=2555
|
|
DPADD= ${LIBKVM} ${LIBMEMSTAT} ${LIBUTIL}
|
|
LDADD= -lkvm -lmemstat -lutil
|
|
|
|
.if ${MK_NETGRAPH_SUPPORT} != "no"
|
|
SRCS+= netgraph.c
|
|
DPADD+= ${LIBNETGRAPH}
|
|
LDADD+= -lnetgraph
|
|
CFLAGS+=-DNETGRAPH
|
|
.endif
|
|
|
|
.if ${MK_IPX_SUPPORT} != "no"
|
|
SRCS+= ipx.c
|
|
DPADD+= ${LIBIPX}
|
|
LDADD+= -lipx
|
|
CFLAGS+=-DIPX
|
|
.endif
|
|
|
|
.include <bsd.prog.mk>
|