# Generated automatically from Makefile.in by configure.
#
# Makefile for snmplib
#
SHELL = /bin/sh
srcdir = .


prefix = /usr/local
exec_prefix = ${prefix}
libdir = $(exec_prefix)/lib
headerdir = $(exec_prefix)/include/snmp

INSTALL = /usr/bin/install -c

TARG=	libsnmp.a
CSRCS=	snmp_client.c mib.c parse.c snmp_api.c snmp.c snmp_auth.c asn1.c md5.c party.c context.c acl.c view.c party_parse.c context_parse.c acl_parse.c system.c
OBJS=	snmp_client.o mib.o parse.o snmp_api.o snmp.o snmp_auth.o asn1.o md5.o party.o context.o acl.o view.o party_parse.o context_parse.o acl_parse.o system.o

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

CC = cc $(CPPFLAGS)
RANLIB=ranlib

all: $(TARG)

libsnmp.a:    ${OBJS}
	ar r libsnmp.a ${OBJS}
	$(RANLIB) libsnmp.a

install:	$(TARG) installdirs
	@$(INSTALL) $(TARG) $(libdir) ; echo "install:  installed $(TARG) in $(libdir)"
	@$(INSTALL) *.h $(headerdir) ; echo "install:  installed headers in $(headerdir)"

installdirs:
	@$(SHELL) $(srcdir)/../mkinstalldirs $(libdir) $(headerdir)

../lib/libsnmp.a:	libsnmp.a
	cp libsnmp.a ../lib
	ranlib ../lib/libsnmp.a

parse:  mib.o parse.c
	$(CC) $(CFLAGS) -DTEST parse.c mib.o -o parse

lint:
	lint -nhx $(CSRCS)

clean:
	rm -f ${OBJS} ${TARG}
	rm -f ../lib/${TARG}

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.

acl.o: ../config.h ../mib_module_config.h ../agent/mibgroup/struct.h
acl.o:   asn1.h acl.h
acl_parse.o: ../config.h ../mib_module_config.h ../agent/mibgroup/struct.h
acl_parse.o:  asn1.h mib.h acl.h party.h context.h
asn1.o: ../config.h ../mib_module_config.h ../agent/mibgroup/struct.h
asn1.o:  asn1.h
context.o: ../config.h ../mib_module_config.h ../agent/mibgroup/struct.h
context.o:   asn1.h
context.o: context.h
context_parse.o: ../config.h ../mib_module_config.h
context_parse.o: ../agent/mibgroup/struct.h 
context_parse.o:  asn1.h mib.h context.h
context_parse.o: system.h
md5.o: ../config.h ../mib_module_config.h ../agent/mibgroup/struct.h
md5.o:   md5.h
mib.o: ../config.h ../mib_module_config.h ../agent/mibgroup/struct.h
mib.o: asn1.h snmp_api.h mib.h snmp.h snmp_impl.h parse.h
parse.o: ../config.h ../mib_module_config.h ../agent/mibgroup/struct.h
parse.o:   parse.h
party.o: ../config.h ../mib_module_config.h ../agent/mibgroup/struct.h
party.o:   asn1.h party.h
party_parse.o: ../config.h ../mib_module_config.h ../agent/mibgroup/struct.h
party_parse.o:  asn1.h mib.h party.h system.h
snmp.o: ../config.h ../mib_module_config.h ../agent/mibgroup/struct.h
snmp.o:   asn1.h snmp.h
snmp.o: snmp_impl.h mib.h
snmp_api.o: ../config.h ../mib_module_config.h ../agent/mibgroup/struct.h
snmp_api.o:  asn1.h snmp.h snmp_impl.h snmp_api.h
snmp_api.o: party.h context.h
snmp_auth.o: ../config.h ../mib_module_config.h ../agent/mibgroup/struct.h
snmp_auth.o:  asn1.h snmp_api.h mib.h snmp.h
snmp_auth.o: snmp_impl.h party.h context.h md5.h acl.h
snmp_client.o: ../config.h ../mib_module_config.h ../agent/mibgroup/struct.h
snmp_client.o:  asn1.h snmp_api.h snmp_client.h mib.h
snmp_client.o: snmp.h snmp_impl.h party.h context.h view.h acl.h
system.o: ../config.h ../mib_module_config.h ../agent/mibgroup/struct.h
system.o:  system.h
view.o: ../config.h ../mib_module_config.h ../agent/mibgroup/struct.h
view.o:   asn1.h view.h
