Changeset View
Changeset View
Standalone View
Standalone View
usr.bin/netstat/Makefile
# @(#)Makefile 8.1 (Berkeley) 6/12/93 | # @(#)Makefile 8.1 (Berkeley) 6/12/93 | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
.include <src.opts.mk> | .include <src.opts.mk> | ||||
PROG= netstat | PROG= netstat | ||||
SRCS= if.c inet.c main.c mbuf.c mroute.c netisr.c nl_symbols.c route.c \ | SRCS= if.c inet.c main.c mbuf.c mroute.c netisr.c nl_symbols.c route.c \ | ||||
unix.c mroute6.c ipsec.c bpf.c pfkey.c sctp.c common.c nhops.c nhgrp.c \ | unix.c mroute6.c ipsec.c bpf.c pfkey.c sctp.c common.c nhops.c nhgrp.c \ | ||||
route_netlink.c \ | |||||
nl_defs.h | nl_defs.h | ||||
nl_symbols.c: nlist_symbols | nl_symbols.c: nlist_symbols | ||||
awk '\ | awk '\ | ||||
BEGIN { \ | BEGIN { \ | ||||
print "#include <sys/param.h>"; \ | print "#include <sys/param.h>"; \ | ||||
print "#include <nlist.h>"; \ | print "#include <nlist.h>"; \ | ||||
print "struct nlist nl[] = {"; \ | print "struct nlist nl[] = {"; \ | ||||
Show All 39 Lines | |||||
BINGRP= kmem | BINGRP= kmem | ||||
BINMODE=2555 | BINMODE=2555 | ||||
LIBADD= kvm memstat xo util | LIBADD= kvm memstat xo util | ||||
.if ${MK_NETGRAPH_SUPPORT} != "no" | .if ${MK_NETGRAPH_SUPPORT} != "no" | ||||
SRCS+= netgraph.c | SRCS+= netgraph.c | ||||
LIBADD+= netgraph | LIBADD+= netgraph | ||||
CFLAGS+=-DNETGRAPH | CFLAGS+=-DNETGRAPH | ||||
.endif | |||||
.if ${MK_NETLINK_SUPPORT} != "no" | |||||
SRCS+= route_netlink.c | |||||
.else | |||||
CFLAGS+=-DWITHOUT_NETLINK | |||||
.endif | .endif | ||||
.include <bsd.prog.mk> | .include <bsd.prog.mk> |