# Generated automatically from Makefile.in by configure.
#
# Minimum environment and virtual path setup
#
SHELL		= /bin/sh
srcdir		= .
top_srcdir	= ../..


#
# Paths
#
prefix		= /usr/local
exec_prefix	= /usr/local
bindir		= ${exec_prefix}/bin
sbindir		= ${exec_prefix}/sbin
libdir		= ${exec_prefix}/lib
datadir		= ${prefix}/share
includedir	= ${prefix}/include/ucd-snmp
mandir		= ${prefix}/man
man1dir		= $(mandir)/man1
man3dir		= $(mandir)/man3
man5dir		= $(mandir)/man5
man8dir		= $(mandir)/man8
snmplibdir	= $(datadir)/snmp
mibdir		= $(snmplibdir)/mibs
persistentdir	= /var/ucd-snmp


#
# Programs
#
INSTALL		= /usr/bin/install -c
SED		= sed
RANLIB		= ranlib

#
# Compiler arguments
#
CFLAGS		= -g -O2 -Dlinux
EXTRACPPFLAGS	= -x c
LDFLAGS		=  

#
# Shared library commands (or not)
#
SHLIB_CFLAGS		= 
SHLIB_EXTENSION		= a
SHLIB_VERSION		= 
SHLIB_LDCONFIG_CMD	= :
SHLIB_LD_CMD		= ar cr
SHLIB_LD_LIBS		= 
CC_RUNTIME_ARG		= 

#
# 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
#
SRCS=	inet.c inet6.c if.c main.c route.c winstub.c
OBJS=	inet.o inet6.o if.o main.o route.o winstub.o
TARG= snmpnetstat

CPPFLAGS=-I../.. -I$(srcdir)/../.. -I$(srcdir)/../../snmplib 
CC = gcc $(CPPFLAGS)

LOCAL_LIBS = -L../../snmplib
LIBS=	 $(CC_RUNTIME_ARG) -lsnmp -ldb1 -lz -lm -lelf 

all: $(TARG)

snmpnetstat: ${OBJS} ${USELIBS}
	${CC} -o $@ ${OBJS} ${LOCAL_LIBS} ${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 $(top_srcdir)/makenosysdepend.pl Makefile

makefileindepend: nosysdepend
	perl $(top_srcdir)/makefileindepend.pl

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

if.o: ../../config.h ../../s/linux.h ../../s/sysv.h ../../s/generic.h
if.o: ../../m/generic.h  
if.o: ./../../snmplib/getopt.h 
if.o: main.h ./../../snmplib/asn1.h ./../../snmplib/snmp.h
if.o: ./../../snmplib/snmp_api.h ./../../snmplib/snmp_impl.h
if.o: ./../../snmplib/snmp_client.h ./../../snmplib/mib.h
if.o: ./../../snmplib/snmp_debug.h ../../snmplib/system.h
if.o:   netstat.h
inet.o: ../../config.h ../../s/linux.h ../../s/sysv.h ../../s/generic.h
inet.o: ../../m/generic.h  
inet.o: ./../../snmplib/getopt.h  
inet.o:  main.h ./../../snmplib/asn1.h
inet.o: ./../../snmplib/snmp_api.h ./../../snmplib/snmp_impl.h
inet.o: ./../../snmplib/snmp_client.h ./../../snmplib/mib.h
inet.o: ./../../snmplib/snmp.h netstat.h
inet6.o: ../../config.h ../../s/linux.h ../../s/sysv.h ../../s/generic.h
inet6.o: ../../m/generic.h
main.o: ../../config.h ../../s/linux.h ../../s/sysv.h ../../s/generic.h
main.o: ../../m/generic.h  
main.o: ./../../snmplib/getopt.h 
main.o: ./../../snmplib/asn1.h ./../../snmplib/mib.h ./../../snmplib/snmp.h
main.o: ./../../snmplib/snmp_api.h ./../../snmplib/snmp_impl.h
main.o: ./../../snmplib/snmp_client.h ../../version.h
main.o: ./../../snmplib/snmp_debug.h ./../../snmplib/system.h
main.o: ./../../snmplib/default_store.h netstat.h
route.o: ../../config.h ../../s/linux.h ../../s/sysv.h ../../s/generic.h
route.o: ../../m/generic.h  
route.o: ./../../snmplib/getopt.h  
route.o:   main.h
route.o: ./../../snmplib/asn1.h ./../../snmplib/snmp.h
route.o: ./../../snmplib/snmp_api.h ./../../snmplib/snmp_impl.h
route.o: ./../../snmplib/snmp_client.h ./../../snmplib/mib.h netstat.h
winstub.o: ../../config.h ../../s/linux.h ../../s/sysv.h ../../s/generic.h
winstub.o: ../../m/generic.h
