# Generated automatically from Makefile.in by configure.
#
# Copyright (c) 1987 Regents of the University of California.
# All rights reserved.
#
# Redistribution and use in source and binary forms are permitted
# provided that the above copyright notice and this paragraph are
# duplicated in all such forms and that any documentation,
# advertising materials, and other materials related to such
# distribution and use acknowledge that the software was developed
# by the University of California, Berkeley.  The name of the
# University may not be used to endorse or promote products derived
# from this software without specific prior written permission.
# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
# WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
#
#	@(#)Makefile	5.10 (Berkeley) 9/20/88
#
SHELL = /bin/sh
srcdir = .


prefix = /usr/local
exec_prefix = ${prefix}
bindir = $(exec_prefix)/bin
libdir = $(exec_prefix)/lib
snmplibdir = $(prefix)/lib/snmp

CFLAGS=-g -O2 -Dfreebsd2
CPPFLAGS= -I../.. -I$(srcdir)/../.. -I$(srcdir)/../../snmplib
LDFLAGS=

INSTALL = /usr/bin/install -c

CC = cc $(CPPFLAGS)

LIBS=	-lsnmp -lkvm -lm 
LDFLAGS= -L../../snmplib
USELIBS=../../snmplib/libsnmp.a
SRCS=	inet.c if.c main.c route.c 
OBJS=	inet.o if.o main.o route.o
TARG= snmpnetstat

all: $(TARG)

snmpnetstat: ${OBJS} ${USELIBS}
	${CC} -o $@ ${CFLAGS} ${OBJS} ${LDFLAGS} ${LIBS}

distclean: clean

clean:
	rm -f ${OBJS} core snmpnetstat

cleandir: clean
	rm -f ${MAN} tags .depend

lint: ${SRCS}
	lint ${CFLAGS} ${SRCS}

tags: ${SRCS}
	ctags ${SRCS}

installdirs:
	@$(SHELL) $(srcdir)/../../mkinstalldirs $(snmplibdir) $(bindir)

install: installdirs $(TARG)
	@for i in $(TARG) ; do $(INSTALL) $$i $(bindir) ; echo "install:  installed $$i in $(bindir)" ; done

depend: 
	makedepend $(CPPFLAGS) $(srcdir)/*.c

nosysdepend:
	makedepend $(CPPFLAGS) *.c
	perl -n -i.bak -e ' if (/^# DO NOT DELETE THIS LINE/) {$$doit=1;} if ($$doit == 1) {s#/usr/include/[^\s]+##g ; print if (! /^[\w]+\.o:\s*$$/);} else {print;}' Makefile

# DO NOT DELETE THIS LINE -- make depend depends on it.

if.o: ../../config.h ../../mib_module_config.h ../../agent/mibgroup/struct.h
if.o:   main.h
if.o: ./../../snmplib/asn1.h ./../../snmplib/snmp.h
if.o: ./../../snmplib/snmp_impl.h ./../../snmplib/snmp_api.h
if.o: ./../../snmplib/snmp_client.h ./../../snmplib/mib.h netstat.h
inet.o: ../../config.h ../../mib_module_config.h
inet.o: ../../agent/mibgroup/struct.h 
inet.o:   main.h
inet.o: ./../../snmplib/asn1.h ./../../snmplib/snmp_impl.h
inet.o: ./../../snmplib/snmp_api.h ./../../snmplib/snmp_client.h
inet.o: ./../../snmplib/mib.h ./../../snmplib/snmp.h netstat.h
main.o: ../../config.h ../../mib_module_config.h
main.o: ../../agent/mibgroup/struct.h 
main.o:  ./../../snmplib/asn1.h ./../../snmplib/mib.h
main.o: ./../../snmplib/snmp.h ./../../snmplib/snmp_api.h
main.o: ./../../snmplib/snmp_impl.h ./../../snmplib/snmp_client.h
main.o: ./../../snmplib/party.h ./../../snmplib/context.h
main.o: ./../../snmplib/view.h ./../../snmplib/acl.h netstat.h
route.o: ../../config.h ../../mib_module_config.h
route.o: ../../agent/mibgroup/struct.h 
route.o:   main.h
route.o: ./../../snmplib/asn1.h ./../../snmplib/snmp.h
route.o: ./../../snmplib/snmp_impl.h ./../../snmplib/snmp_api.h
route.o: ./../../snmplib/snmp_client.h ./../../snmplib/mib.h netstat.h
