#
# 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 Display Programs
#
SRCS=	BuildNetworkTable.c GetNeighborTable.c ProcessNeighborTable.c main.c
HDRS=	BuildNetworkTable.h GetNeighborTable.h ProcessNeighborTable.h 
OBJS=	BuildNetworkTable.o GetNeighborTable.o ProcessNeighborTable.o main.o
#
DEFINES=
INCLUDES=-I../../../include

CFLAGS=	 ${INCLUDES} ${DEFINES} ${ACFLAGS}
LDFLAGS= -L${LIBDIR} -lctools -lProblemManager -lStatusFileManager ${BSDLIB}

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

all: meritpoller 

install: 
	rm -f ${BINDIR}/meritpoller
	cp nsfnett3Roverd meritRoverd meritpoller umnetRoverd cicnetRoverd ${BINDIR}

meritpoller:	${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 meritpoller version.c version.o

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

lint: ${SRCS}
	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.

BuildNetworkTable.c:
GetNeighborTable.c:
ProcessNeighborTable.c:
main.c:

# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
