]> CyberLeo.Net >> Repos - FreeBSD/releng/9.0.git/blob - usr.bin/netstat/Makefile
Copy stable/9 to releng/9.0 as part of the FreeBSD 9.0-RELEASE release
[FreeBSD/releng/9.0.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 CFLAGS+=-fno-strict-aliasing
12
13 CFLAGS+=-DIPSEC
14 CFLAGS+=-DSCTP
15
16 .if ${MK_INET6_SUPPORT} != "no"
17 SRCS+=  inet6.c
18 CFLAGS+=-DINET6
19 .endif
20
21 .if ${MK_OFED} != "no"
22 CFLAGS+=-DSDP
23 .endif
24
25 BINGRP= kmem
26 BINMODE=2555
27 DPADD=  ${LIBKVM} ${LIBMEMSTAT} ${LIBUTIL}
28 LDADD=  -lkvm -lmemstat -lutil
29
30 .if ${MK_NETGRAPH_SUPPORT} != "no"
31 SRCS+=  netgraph.c
32 DPADD+= ${LIBNETGRAPH}
33 LDADD+= -lnetgraph
34 CFLAGS+=-DNETGRAPH
35 .endif
36
37 .if ${MK_IPX_SUPPORT} != "no"
38 SRCS+=  ipx.c
39 DPADD+= ${LIBIPX}
40 LDADD+= -lipx
41 CFLAGS+=-DIPX
42 .endif
43
44 .include <bsd.prog.mk>