]> CyberLeo.Net >> Repos - FreeBSD/releng/10.2.git/blob - usr.bin/netstat/Makefile
- Copy stable/10@285827 to releng/10.2 in preparation for 10.2-RC1
[FreeBSD/releng/10.2.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         flowtable.c
10
11 WARNS?= 3
12 CFLAGS+=-fno-strict-aliasing
13
14 CFLAGS+=-DIPSEC
15 CFLAGS+=-DSCTP
16
17 .if ${MK_INET_SUPPORT} != "no"
18 CFLAGS+=-DINET
19 .endif
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 .if ${MK_PF} != "no"
31 CFLAGS+=-DPF
32 .endif
33
34 BINGRP= kmem
35 BINMODE=2555
36 DPADD=  ${LIBKVM} ${LIBMEMSTAT} ${LIBUTIL}
37 LDADD=  -lkvm -lmemstat -lutil
38
39 .if ${MK_NETGRAPH_SUPPORT} != "no"
40 SRCS+=  netgraph.c
41 DPADD+= ${LIBNETGRAPH}
42 LDADD+= -lnetgraph
43 CFLAGS+=-DNETGRAPH
44 .endif
45
46 .if ${MK_IPX_SUPPORT} != "no"
47 SRCS+=  ipx.c
48 DPADD+= ${LIBIPX}
49 LDADD+= -lipx
50 CFLAGS+=-DIPX
51 .endif
52
53 .include <bsd.prog.mk>