xref: /freebsd/usr.bin/netstat/Makefile (revision 690f477d75324543e57e2b45354c6e0670b9a5f7)
19b50d902SRodney W. Grimes#	@(#)Makefile	8.1 (Berkeley) 6/12/93
29f5b04e9SDavid Malone# $FreeBSD$
39b50d902SRodney W. Grimes
4e1fe3dbaSRuslan Ermilov.include <bsd.own.mk>
5e1fe3dbaSRuslan Ermilov
69b50d902SRodney W. GrimesPROG=	netstat
7b7dd94d5SYaroslav TykhiySRCS=	if.c inet.c main.c mbuf.c mcast.c mroute.c route.c \
8690f477dSSam Leffler	unix.c atalk.c mroute6.c ipsec.c bpf.c pfkey.c sctp.c
97f1a7653SXin LI
10096146f8SYaroslav TykhiyWARNS?=	3
110aad0f22SJohn BirrellCFLAGS+=-fno-strict-aliasing
127f1a7653SXin LI
1332cd1d96SJun-ichiro itojun HaginoCFLAGS+=-DIPSEC
1474fd40c9SRandall StewartCFLAGS+=-DSCTP
15b7dd94d5SYaroslav Tykhiy
16f18f2fc7SCeri Davies.if ${MK_INET6_SUPPORT} != "no"
17f18f2fc7SCeri DaviesSRCS+=	inet6.c
18f18f2fc7SCeri DaviesCFLAGS+=-DINET6
19f18f2fc7SCeri Davies.endif
2063bf4575SJulian Elischer
219b50d902SRodney W. GrimesBINGRP=	kmem
229b50d902SRodney W. GrimesBINMODE=2555
23690f477dSSam LefflerDPADD=	${LIBKVM} ${LIBMEMSTAT} ${LIBUTIL}
24690f477dSSam LefflerLDADD=	-lkvm -lmemstat -lutil
25690f477dSSam Leffler
26690f477dSSam Leffler.if ${MK_NETGRAPH_SUPPORT} != "no"
27690f477dSSam LefflerSRCS+=	netgraph.c
28690f477dSSam LefflerDPADD+=	${LIBNETGRAPH}
29690f477dSSam LefflerLDADD+=	-lnetgraph
30690f477dSSam LefflerCFLAGS+=-DNETGRAPH
31690f477dSSam Leffler.endif
329b50d902SRodney W. Grimes
33f18f2fc7SCeri Davies.if ${MK_IPX_SUPPORT} != "no"
34f18f2fc7SCeri DaviesSRCS+=	ipx.c
35f18f2fc7SCeri DaviesDPADD+=	${LIBIPX}
36f18f2fc7SCeri DaviesLDADD+=	-lipx
37f18f2fc7SCeri DaviesCFLAGS+=-DIPX
38f18f2fc7SCeri Davies.endif
399cc22e5cSPoul-Henning Kamp
409b50d902SRodney W. Grimes.include <bsd.prog.mk>
41