-#
-# Copyright (c) 1983 Regents of the University of California.
-# All rights reserved. The Berkeley software License Agreement
-# specifies the terms and conditions for redistribution.
-#
-# @(#)Makefile 5.6 (Berkeley) %G%
-#
-OBJS= host.o inet.o if.o main.o mbuf.o route.o unix.o ns.o bbnnet.o
-CFLAGS=-O
-DESTDIR=
-
-netstat: ${OBJS}
- ${CC} ${OBJS} -o netstat
-
-install: netstat
- install -s -m 2755 -g kmem netstat ${DESTDIR}/usr/ucb/netstat
-
-clean:
- rm -f *.o core a.out errs netstat
-
-depend:
+# @(#)Makefile 8.1 (Berkeley) 6/12/93
+
+PROG= netstat
+SRCS= if.c inet.c iso.c main.c mbuf.c mroute.c ns.c route.c \
+ tp_astring.c unix.c
+CFLAGS+=-I/sys
+.PATH: ${.CURDIR}/../../sys/netiso
+BINGRP= kmem
+BINMODE=2555
+LDADD= -lkvm
+DPADD= ${LIBKVM}
+
+.include <bsd.prog.mk>