#
#	Internet Rover Makefile		WB Norton    	5/13/91
#					Merit Computer Network
#					Version 2.0
#
#   Make Definitions file for the Internet Rover Problem Display Programs
#
#	Text-Based Display - is the Display program that uses curses
#
#	Motif-Based xdisplay - uses the Motif libraries and has a similiar
#				set of functions available in a point and
#				click fashion.
#
#		xdisplay2 is a experimental X-based display that combines the
#				MeritRover and the Internet Rover on the same
#				Application Shell.
#
#LIBRARIES=-lcurses -ltermcap
DEPEND=../Ctools/ctools.o ../ProblemManager/ProblemManager.o ../ProblemManager/ProblemFileio.o 

LIBRARIES=-lcurses /lib/libPW.a
CFLAGS=-g

.c.o:
	echo 'static char *Version="'$* ${PINGKYVERSION}' compiled on '`hostname` at `date`'";' >version.h ; \
	cc ${CFLAGS} -c $<

#VPATH = ../MISC
BIN = ../BIN

all:
	make Display
	make xdisplay

Display: Display.o ${DEPEND}
	cc -o Display Display.o ${DEPEND} ${LIBRARIES}
	cp Display ../InetRover/Display
	cp Display ../MeritRover/Display

print:
	lpr -Pnext *.c *.h Makefile

clean:
	-rm *.o core 
	-rm Display xdisplay 
	-rm PROBLEM.FILE problemlog.* pingky.cycle CHECKING

xdisplay:	xdisplay.o ${DEPEND}
	cc -o xdisplay xdisplay.o ${DEPEND} /lib/libPW.a -lXm -lXt -lXext -lX11
	cp xdisplay ../InetRover/xdisplay
	cp xdisplay ../MeritRover/xdisplay

xdisplay2:	xdisplay2.o ${DEPEND}
	cc -o xdisplay2 xdisplay2.o ${DEPEND} /lib/libPW.a ../InetRover/Hostfileio.o  -lXm -lXt -lXmu  -lXext -lX11

lcat:	lcat.o
	cc -o lcat lcat.o
