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


#
# Paths
#
prefix		= /usr/local
exec_prefix	= /usr/local
bindir		= ${exec_prefix}/bin
sbindir		= ${exec_prefix}/sbin
libdir		= ${exec_prefix}/lib
datadir		= ${prefix}/share
includedir	= /usr/local/arm-elf/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		= -Wl,-elf2flt 
LIBTOOL		= $(SHELL) $(top_builddir)/libtool 
#EXEEXT		= .gdb
SHVFLAGS	= -release 0.$(VERSION)

# Misc Compiling Stuff
#CC	        = arm-elf-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 -lm 
USELIBS= ../../snmplib/libsnmp.$(LIB_EXTENSION)$(LIB_VERSION)
LIBS=	 ../../snmplib/libsnmp.$(LIB_EXTENSION)$(LIB_VERSION) -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) *.gdb
	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 main.h ../../m/generic.h netstat.h ../../s/generic.h
if.lo: ../../s/linux.h ../../snmplib/asn1.h ../../snmplib/getopt.h
if.lo: ../../snmplib/mib.h ../../snmplib/snmp_api.h ../../snmplib/snmp_client.h
if.lo: ../../snmplib/snmp_debug.h ../../snmplib/snmp.h
if.lo: ../../snmplib/snmp_impl.h ../../snmplib/system.h ../../s/sysv.h
inet6.lo: ../../config.h ../../m/generic.h ../../s/generic.h ../../s/linux.h
inet6.lo: ../../s/sysv.h
inet.lo: ../../config.h main.h ../../m/generic.h netstat.h ../../s/generic.h
inet.lo: ../../s/linux.h ../../snmplib/asn1.h ../../snmplib/getopt.h
inet.lo: ../../snmplib/mib.h ../../snmplib/snmp_api.h
inet.lo: ../../snmplib/snmp_client.h ../../snmplib/snmp.h
inet.lo: ../../snmplib/snmp_impl.h ../../s/sysv.h 
main.lo: ../../config.h ../../m/generic.h netstat.h ../../s/generic.h
main.lo: ../../s/linux.h ../../snmplib/asn1.h ../../snmplib/default_store.h
main.lo: ../../snmplib/getopt.h ../../snmplib/mib.h ../../snmplib/snmp_api.h
main.lo: ../../snmplib/snmp_client.h ../../snmplib/snmp_debug.h
main.lo: ../../snmplib/snmp.h ../../snmplib/snmp_impl.h ../../snmplib/system.h
main.lo: ../../s/sysv.h  
main.lo: ../../version.h
route.lo: ../../config.h main.h ../../m/generic.h netstat.h ../../s/generic.h
route.lo: ../../s/linux.h ../../snmplib/asn1.h ../../snmplib/getopt.h
route.lo: ../../snmplib/mib.h ../../snmplib/snmp_api.h
route.lo: ../../snmplib/snmp_client.h ../../snmplib/snmp.h
route.lo: ../../snmplib/snmp_impl.h ../../s/sysv.h 
winstub.lo: ../../config.h ../../m/generic.h ../../s/generic.h ../../s/linux.h
winstub.lo: ../../s/sysv.h
