#
# 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.
#
# Make Definitions file for the Internet Rover statistics collection routines
#
SRCS=	dsuchk.c dsuchk2.c
HDRS=	
OBJS=	dsuchk.o dsuchk2.o
#
#DEFINES= -D_BSD -DDEBUG_TEST_USING_ZERO_THRESHOLD
DEFINES= -D_BSD
INCLUDES=-I../../include -I../../../../include
CFLAGS=	 ${INCLUDES} ${DEFINES} ${ACFLAGS}
LDFLAGS= -L${LIBDIR} -lctools -lfastsnmpapi -lLinkfileio ${ALDFLAGS}

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

all: dsuchk reversecat updatelinkfile

install: 
	cp dsuchk reversecat updatelinkfile ${BINDIR}
	cp CircuitCheck UpdateLinkFile ${BINDIR}
	cp isclean Notify printlink ${BINDIR}

dsuchk:	${OBJS} 
	${CC} -o $@ ${OBJS} ${LDFLAGS} 

updatelinkfile:	updatelinkfile.o
	${CC} -o $@ updatelinkfile.o ${LDFLAGS} 

reversecat: reversecat.o
	${CC} -o $@ reversecat.o ${ALDFLAGS} 

clean:
	rm -f *.o core dsuchk reversecat updatelinkfile

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

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

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

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

dsuchk.c:
dsuchk2.c:

# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
