#
# 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 Problem viewifs Programs
#
SRCS=	viewifs.c
HDRS=	
OBJS=	viewifs.o
#
DEFINES= 
INCLUDES= -I../../../../include -I../../include
CFLAGS=	 ${INCLUDES} ${DEFINES} ${ACFLAGS}
MYLIBS=	-lctools -lProblemManager -lfastsnmpapi
LDFLAGS= -L${LIBDIR} ${MYLIBS} ${CURSESLIB} ${TERMLIB} ${ALDFLAGS}

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

all: viewifs

install: 
	cp viewifs ${BINDIR}

viewifs: ${OBJS} version.c
	${CC} -o $@ version.c ${OBJS} ${LDFLAGS}

version.c: Version.c
	(u=$${USER-root} h=`hostname` t=`date` v=`cat ../../../../VERSION`; \
	sed -e "s|%WHEN%|$${t}|" \
	    -e "s|%VERSION%|$${v}|" \
	    -e "s|%WHOANDWHERE%|$${u}@$${h}|" \
	    < Version.c > version.c)

clean:
	rm -f *.o core viewifs version.c version.o

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.



# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
