# RCSid: $Id: Rmakefile,v 2.7 2003/02/22 02:07:26 greg Exp $ # # 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 CFLAGS = -DSTRICT -I../common -L../lib $(OPT) $(MACH) CC = cc MLIB = -lm LIBDIR = /usr/local/lib/ray INSTDIR = /usr/local/bin all: oconv getbbox oconv: oconv.o sphere.o writeoct.o o_face.o \ o_cone.o o_instance.o bbox.o initotypes.o $(CC) $(CFLAGS) -o oconv oconv.o writeoct.o sphere.o o_face.o \ o_cone.o o_instance.o bbox.o \ initotypes.o -lrt $(MLIB) getbbox: getbbox.o readobj2.o bbox.o init2otypes.o $(CC) $(CFLAGS) -o getbbox getbbox.o readobj2.o \ bbox.o init2otypes.o -lrt $(MLIB) install: oconv getbbox cp oconv getbbox $(INSTDIR) clean: set nonomatch; rm -f oconv getbbox *.o core 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 oconv.o: ../common/paths.h bbox.o o_cone.o: ../common/cone.h bbox.o o_face.o: ../common/face.h bbox.o getbbox.o o_instance.o: ../common/instance.h ../common/octree.h o_face.o: ../common/plocate.h clip.o plocate.o: ../common/fvect.h initotypes.o init2otypes.o: ../common/otypes.h