# SCCSid "$SunId$ LBL" # # Compiles for octree conversion program # # The compile define "STRICT" enforces strict intersection calculations # so that no cube which does not intersect an object contains that object. # Otherwise, a somewhat faster more lax approach is taken by certain routines. # OPT = -O MACH = -DBSD -DSTRUCTASSIGN -f68881 /usr/lib/libm.il CFLAGS = -DSTRICT $(OPT) $(MACH) -I../common LIBDIR = /usr/local/lib/ray INSTDIR = /lumen/lumen/ray/bin.sun3 all: oconv getbbox oconv: oconv.o sphere.o writeoct.o o_face.o plocate.o \ clip.o o_cone.o o_instance.o bbox.o initotypes.o readfargs.o cc $(CFLAGS) -o oconv oconv.o writeoct.o sphere.o o_face.o \ plocate.o clip.o o_cone.o o_instance.o bbox.o readfargs.o \ initotypes.o ../common/librt.a -lm getbbox: getbbox.o readobj2.o bbox.o initotypes2.o cc $(CFLAGS) -o getbbox getbbox.o readobj2.o \ bbox.o initotypes2.o ../common/librt.a -lm install: oconv getbbox cp oconv getbbox $(INSTDIR) clean: set nonomatch; rm -f oconv getbbox *.o core oconv.o: oconv.c cc $(CFLAGS) -DDEFPATH=\":$(LIBDIR)\" -c oconv.c readfargs.o: readfargs.c ../common/object.h cc $(CFLAGS) -DMEMHOG -c readfargs.c bbox.o initotypes.o o_cone.o o_face.o \ o_instance.o oconv.o sphere.o \ writeoct.o: ../common/standard.h ../common/mat4.h ../common/fvect.h initotypes.o o_cone.o o_face.o oconv.o \ sphere.o writeoct.o: ../common/octree.h bbox.o o_cone.o o_face.o o_instance.o oconv.o \ sphere.o writeoct.o: ../common/object.h bbox.o initotypes.o oconv.o \ sphere.o writeoct.o: ../common/otypes.h bbox.o o_cone.o: ../common/cone.h bbox.o o_face.o: ../common/face.h bbox.o o_instance.o: ../common/instance.h ../common/octree.h clip.o o_face.o plocate.o: plocate.h initotypes.o initotypes2.o: ../common/otypes.h