Makefile revision 228668
1#	@(#)Makefile	8.1 (Berkeley) 6/12/93
2# $FreeBSD: head/usr.bin/netstat/Makefile 228668 2011-12-17 22:32:00Z dim $
3
4.include <bsd.own.mk>
5
6PROG=	netstat
7SRCS=	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
10WARNS?=	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).
14NO_WFORMAT=
15.endif
16CFLAGS+=-fno-strict-aliasing
17
18CFLAGS+=-DIPSEC
19CFLAGS+=-DSCTP
20
21.if ${MK_INET6_SUPPORT} != "no"
22SRCS+=	inet6.c
23CFLAGS+=-DINET6
24.endif
25
26.if ${MK_OFED} != "no"
27CFLAGS+=-DSDP
28.endif
29
30BINGRP=	kmem
31BINMODE=2555
32DPADD=	${LIBKVM} ${LIBMEMSTAT} ${LIBUTIL}
33LDADD=	-lkvm -lmemstat -lutil
34
35.if ${MK_NETGRAPH_SUPPORT} != "no"
36SRCS+=	netgraph.c
37DPADD+=	${LIBNETGRAPH}
38LDADD+=	-lnetgraph
39CFLAGS+=-DNETGRAPH
40.endif
41
42.if ${MK_IPX_SUPPORT} != "no"
43SRCS+=	ipx.c
44DPADD+=	${LIBIPX}
45LDADD+=	-lipx
46CFLAGS+=-DIPX
47.endif
48
49.include <bsd.prog.mk>
50