]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/blob - usr.bin/netstat/Makefile
MFC r228650:
[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 .if ${CC:T:Mclang} == "clang"
12 # XXX: Work around a clang false positive with format string warnings
13 # and ntohs macros (see LLVM PR 11313).
14 NO_WFORMAT=
15 .endif
16 CFLAGS+=-fno-strict-aliasing
17
18 CFLAGS+=-DIPSEC
19 CFLAGS+=-DSCTP
20
21 .if ${MK_INET6_SUPPORT} != "no"
22 SRCS+=  inet6.c
23 CFLAGS+=-DINET6
24 .endif
25
26 .if ${MK_OFED} != "no"
27 CFLAGS+=-DSDP
28 .endif
29
30 BINGRP= kmem
31 BINMODE=2555
32 DPADD=  ${LIBKVM} ${LIBMEMSTAT} ${LIBUTIL}
33 LDADD=  -lkvm -lmemstat -lutil
34
35 .if ${MK_NETGRAPH_SUPPORT} != "no"
36 SRCS+=  netgraph.c
37 DPADD+= ${LIBNETGRAPH}
38 LDADD+= -lnetgraph
39 CFLAGS+=-DNETGRAPH
40 .endif
41
42 .if ${MK_IPX_SUPPORT} != "no"
43 SRCS+=  ipx.c
44 DPADD+= ${LIBIPX}
45 LDADD+= -lipx
46 CFLAGS+=-DIPX
47 .endif
48
49 .include <bsd.prog.mk>