# attach iv interviews
.SUFFIXES: .o .C
CXX=CC
CXXFLAGS=-I.
.C.o:
	-@set `fs sysname`; eval systype=$$4; if [ ! -d .o.$$systype ]; then mkdir .o.$$systype; fi; if [ ! -f $@ ]; then rm -f $@; ln -s .o.@sys/$@ $@; fi
	$(CXX) $(CXXFLAGS) -c $*.C

wordlist:
	egrep -v '\.' e40-3.dxf | sort -u

e40.scan:
	perl -ne '$$foo=$$_; chop($$foo); $$_=<>; print "$$foo $$_";' > e40.scan < e40-3.dxf

#Vax:
#LIB=-L/mit/interviews/vaxlib/  -lgraphic -lInterViewsX11 -lX11 -lm
#RT:
#LIB=-L/mit/iv/RT_MWE/iv/installed/lib/RT/ -lgraphic -lInterViewsX11 -lX11 -lm
LIB=-L./ivlib -lgraphic -lInterViewsX11 -lX11 -lm

autoview: autoview.o
	$(CXX) $(CXXFLAGS) -o autoview autoview.o $(LIB)

