#
# Copyright (c) 1992 Regents of the University of Michigan.
# All rights reserved.
#
# Redistribution and use in source and binary forms are permitted
# provided that this notice is preserved and that due credit is given
# to the University of Michigan at Ann Arbor. 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'' without express or implied warranty.
#
# Fast SNMP API library
#
DEFINES=	-Dunix
INCLUDES=	-I../../../include -I../include
CFLAGS=		${INCLUDES} ${DEFINES} ${ACFLAGS}

SRCS=	snmp.c snmp_auth.c asn1.c mib.c parse.c snmp_api.c Address.c \
	Bindings.c VarList.c commands.c mib_descio.c
OBJS=	snmp.o snmp_auth.o asn1.o mib.o parse.o snmp_api.o Address.o \
	Bindings.o VarList.o commands.o mib_descio.o 
HDRS=

default:
	( cd ../../.. ; make fastsnmpapi )

all:	fastsnmpapi.a

fastsnmpapi.a: ${OBJS} ${LIBC}
	  ar cru fastsnmpapi.a ${OBJS}
	  cp fastsnmpapi.a ${LIBDIR}/libfastsnmpapi.a
	  ranlib ${LIBDIR}/libfastsnmpapi.a

.c.o:
	${CC} ${CFLAGS} -c $*.c

depend: ${SRCS}
	mkdep ${CFLAGS} ${SRCS}

install:
	cp fastsnmpapi.a ${LIBDIR}/libfastsnmpapi.a
	ranlib ${LIBDIR}/libfastsnmpapi.a

lint: ${SRCS} ${HDRS}
	lint -Dlint ${DEFINES} ${INCLUDES} ${SRCS}

tags:
	ctags -t ${SRCS} ${HDRS}

clean:
	rm -f *.o core *.a 

# DO NOT DELETE THIS LINE -- mkdep uses it.
# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.

snmp.c:
snmp_auth.c:
asn1.c:
mib.c:
parse.c:
snmp_api.c:
Address.c:
Bindings.c:
VarList.c:
commands.c:
mib_descio.c:

# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
