]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/blob - usr.bin/netstat/Makefile
MFC r232263:
[FreeBSD/stable/9.git] / usr.bin / netstat / Makefile
1 #       @(#)Makefile    8.1 (Berkeley) 6/12/93
2 # $FreeBSD$
3
4 .include <bsd.own.mk>
5
6 PROG=   netstat
7 SRCS=   if.c inet.c main.c mbuf.c mroute.c netisr.c route.c \
8         unix.c atalk.c mroute6.c ipsec.c bpf.c pfkey.c sctp.c
9
10 WARNS?= 3
11 # XXX: Work around a clang false positive with format string warnings
12 # and ntohs macros (see LLVM PR 11313).
13 NO_WFORMAT.clang=
14 CFLAGS+=-fno-strict-aliasing
15
16 CFLAGS+=-DIPSEC
17 CFLAGS+=-DSCTP
18
19 .if ${MK_INET6_SUPPORT} != "no"
20 SRCS+=  inet6.c
21 CFLAGS+=-DINET6
22 .endif
23
24 .if ${MK_OFED} != "no"
25 CFLAGS+=-DSDP
26 .endif
27
28 BINGRP= kmem
29 BINMODE=2555
30 DPADD=  ${LIBKVM} ${LIBMEMSTAT} ${LIBUTIL}
31 LDADD=  -lkvm -lmemstat -lutil
32
33 .if ${MK_NETGRAPH_SUPPORT} != "no"
34 SRCS+=  netgraph.c
35 DPADD+= ${LIBNETGRAPH}
36 LDADD+= -lnetgraph
37 CFLAGS+=-DNETGRAPH
38 .endif
39
40 .if ${MK_IPX_SUPPORT} != "no"
41 SRCS+=  ipx.c
42 DPADD+= ${LIBIPX}
43 LDADD+= -lipx
44 CFLAGS+=-DIPX
45 .endif
46
47 .include <bsd.prog.mk>