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


#
# Paths
#
prefix		= /var/snmp
exec_prefix	= /var/snmp
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		= $(LIBTOOL) --mode=install /usr/bin/install -c
SED		= sed
LN_S		= ln -s
#AUTOCONF	= 
#AUTOHEADER	= 
AUTOCONF	= autoconf
AUTOHEADER	= autoheader

#
# Compiler arguments
#
CFLAGS		= -g -O2 -Dlinux
EXTRACPPFLAGS	= -x c
LDFLAGS		=  
LIBTOOL		= $(SHELL) $(top_builddir)/libtool 
EXEEXT		= 
SHVFLAGS	= -release 0.$(VERSION)

# Misc Compiling Stuff
CC	        = mips-uclibc-gcc
# version number is prefixed by a 0 for a better shared library version number
LIB_LD_CMD      = $(LIBTOOL) --mode=link $(CC) $(CFLAGS) -rpath $(libdir) $(SHVFLAGS) -o
LIB_EXTENSION   = la
LIB_VERSION     =
LIB_LDCONFIG_CMD = $(LIBTOOL) --mode=finish $(libdir)
LINK		= $(LIBTOOL) --mode=link $(CC)
# RANLIB 	= ranlib
RANLIB		= :

# libtool definitions
.SUFFIXES: .c .o .lo
.c.lo:
	$(LIBTOOL) --mode=compile $(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $<
#
# 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
#
top_builddir=../..
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
LOBJS=	inet.lo inet6.lo if.lo main.lo route.lo winstub.lo
TARG= snmpnetstat$(EXEEXT)

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

#LOCAL_LIBS = -L../../snmplib
LOCAL_LIBS =
#LIBS=	 $(CC_RUNTIME_ARG) -lsnmp -ldl -lm 
USELIBS= ../../snmplib/libsnmp.$(LIB_EXTENSION)$(LIB_VERSION)
LIBS=	 ../../snmplib/libsnmp.$(LIB_EXTENSION)$(LIB_VERSION) -ldl -lm 

all: $(TARG)

snmpnetstat$(EXEEXT): ${LOBJS} ${USELIBS}
	${LINK} -o $@ ${LOBJS} ${LOCAL_LIBS} ${LDFLAGS} ${LIBS}

distclean: clean

clean:
	rm -f core *.o *.lo *.exe $(TARG) $(SBINTARG)
	rm -rf .libs

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) -o.lo $(srcdir)/*.c

nosysdepend:
	makedepend $(CPPFLAGS) -o.lo *.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.lo: ../../config.h ../../s/linux.h ../../s/sysv.h ../../s/generic.h
if.lo: ../../m/generic.h  
if.lo:  main.h ./../../snmplib/asn1.h
if.lo: ./../../snmplib/snmp.h ./../../snmplib/snmp_api.h
if.lo: ./../../snmplib/snmp_impl.h ./../../snmplib/snmp_client.h
if.lo: ./../../snmplib/mib.h ./../../snmplib/snmp_debug.h
if.lo: ../../snmplib/system.h netstat.h
inet6.lo: ../../config.h ../../s/linux.h ../../s/sysv.h ../../s/generic.h
inet6.lo: ../../m/generic.h
inet.lo: ../../config.h ../../s/linux.h ../../s/sysv.h ../../s/generic.h
inet.lo: ../../m/generic.h  
inet.lo:  main.h ./../../snmplib/asn1.h
inet.lo: ./../../snmplib/snmp_api.h ./../../snmplib/snmp_impl.h
inet.lo: ./../../snmplib/snmp_client.h ./../../snmplib/mib.h
inet.lo: ./../../snmplib/snmp.h netstat.h
main.lo: ../../config.h ../../s/linux.h ../../s/sysv.h ../../s/generic.h
main.lo: ../../m/generic.h  
main.lo:  ./../../snmplib/getopt.h
main.lo:  ./../../snmplib/asn1.h
main.lo: ./../../snmplib/mib.h ./../../snmplib/snmp.h
main.lo: ./../../snmplib/snmp_api.h ./../../snmplib/snmp_impl.h
main.lo: ./../../snmplib/snmp_client.h ../../version.h
main.lo: ./../../snmplib/snmp_debug.h ./../../snmplib/system.h
main.lo: ./../../snmplib/default_store.h netstat.h
route.lo: ../../config.h ../../s/linux.h ../../s/sysv.h ../../s/generic.h
route.lo: ../../m/generic.h  
route.lo:  main.h ./../../snmplib/asn1.h
route.lo: ./../../snmplib/snmp.h ./../../snmplib/snmp_api.h
route.lo: ./../../snmplib/snmp_impl.h ./../../snmplib/snmp_client.h
route.lo: ./../../snmplib/mib.h netstat.h
winstub.lo: ../../config.h ../../s/linux.h ../../s/sysv.h ../../s/generic.h
winstub.lo: ../../m/generic.h
