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