install:  TKRT TCL_LIB FILES
	make DOC
	cp bin/iom ${GOOD_ROOT_DIR}/bin

###################################################################################

TAR = $(HOME)/tar/iom.tar
YART = ../YART

###################################################################################


YART_LIB_DIR =  ${YART}/src
YART_LIB     =  $(YART_LIB_DIR)/libYART.a
TKRT         =  ../YART/bin/tkrt

TCL =  tcl/alertbox.tcl tcl/buildPrLst.tcl tcl/buttons.tcl tcl/camera.tcl tcl/enumbutton.tcl tcl/frame.tcl tcl/inputbox.tcl tcl/pixmap.tcl  tcl/rgbsc.tcl  tcl/output.tcl tcl/tree.tcl tcl/canvas.tcl tcl/popup.tcl tcl/exec.tcl tcl/fsbox.tcl tcl/error.tcl tcl/s_util.tcl

CLS = cls/main.cls cls/classes.cls cls/fillstyle.cls  cls/manipul.cls cls/resolution.cls cls/surface.cls cls/topbox.cls cls/pixmap.cls cls/tree.cls cls/object.cls cls/iwidget.cls cls/idevice.cls cls/scene.cls cls/frame.cls cls/scale.cls cls/placer.cls cls/camera.cls cls/shell.cls cls/error.cls cls/vedit.cls cls/manpage.cls

DEMOS = demos/funfair.iom demos/vertex.iom demos/analyt.iom demos/rotate.iom

ETCS = etc/buildFILES.tcl etc/buildTclIndex.tcl etc/iom.Xdefaults etc/makedoc 

BITMAPS = bitmaps/Angle.xbm bitmaps/Axes.xbm bitmaps/Cone.xbm bitmaps/Cylinder.xbm bitmaps/Far.xbm bitmaps/Near.xbm bitmaps/Node.xbm bitmaps/OFFPolygon.xbm bitmaps/Plane.xbm bitmaps/Polygon.xbm bitmaps/Quader.xbm bitmaps/Rotation.xbm bitmaps/Sit.xbm bitmaps/Sphere.xbm bitmaps/Table.xbm bitmaps/Text.xbm bitmaps/Top.xbm bitmaps/Torus.xbm bitmaps/Translation.xbm bitmaps/Twist.xbm bitmaps/Ellipsoid.xbm bitmaps/SplineSurface.xbm bitmaps/Radius.xbm bitmaps/Polyhedron.xbm bitmaps/Polyline.xbm bitmaps/RotationSurface.xbm

ALL_FILES = $(DEMOS) $(BITMAPS) $(TCL) $(CLS) tcl/iom_init.tcl bin/iom Makefile README.IOM INSTALL.IOM ${ETCS} FILES 

# the tcl index rules

TCL_LIB:        tclIndex
tclIndex:       $(TCL) $(CLS)
	        etc/buildTclIndex.tcl  $(TCL) $(CLS)
	       
DOC:		
		etc/makedoc

FILES:          $(TCL) $(CLS) $(DEMOS)
	        etc/buildFILES.tcl  $(TCL) $(CLS) $(DEMOS)

TAR: $(TAR)
$(TAR):    $(ALL_FILES)
	   rm -f $(TAR).gz
	   tar cf $(TAR) $(ALL_FILES)	
	   gzip $(TAR)
	   mv $(TAR).gz $(HOME)/tar/iom.tz

# build the Tk YART shell:

TKRT: 
	cd $(YART_LIB_DIR); make TKRT		



