| 1 | greg | 1.1 | # SCCSid "$SunId$ LBL" | 
| 2 |  |  |  | 
| 3 |  |  | # | 
| 4 |  |  | #  Compiles for octree conversion program | 
| 5 |  |  | # | 
| 6 |  |  | #     The compile define "STRICT" enforces strict intersection calculations | 
| 7 |  |  | #  so that no cube which does not intersect an object contains that object. | 
| 8 |  |  | #  Otherwise, a somewhat faster more lax approach is taken by certain routines. | 
| 9 |  |  | # | 
| 10 |  |  |  | 
| 11 | greg | 1.4 | OPT = -O | 
| 12 | greg | 1.10 | MACH = -DBSD -DSTRUCTASSIGN -f68881 /usr/lib/libm.il | 
| 13 | greg | 1.16 | CFLAGS = -DSTRICT $(OPT) $(MACH) -I../common | 
| 14 | greg | 1.1 |  | 
| 15 | greg | 1.13 | LIBDIR = /usr/local/lib/ray | 
| 16 |  |  |  | 
| 17 | greg | 1.10 | INSTDIR = /lumen/lumen/ray/bin.sun3 | 
| 18 | greg | 1.1 |  | 
| 19 | greg | 1.14 | all:    oconv getbbox | 
| 20 |  |  |  | 
| 21 | greg | 1.15 | oconv:  oconv.o sphere.o writeoct.o o_face.o plocate.o \ | 
| 22 |  |  | clip.o o_cone.o o_instance.o bbox.o initotypes.o | 
| 23 |  |  | cc $(CFLAGS) -o oconv oconv.o writeoct.o sphere.o o_face.o \ | 
| 24 |  |  | plocate.o clip.o o_cone.o o_instance.o bbox.o \ | 
| 25 |  |  | initotypes.o ../common/librt.a -lm | 
| 26 | greg | 1.1 |  | 
| 27 | greg | 1.15 | getbbox:        getbbox.o readobj2.o bbox.o initotypes2.o | 
| 28 |  |  | cc $(CFLAGS) -o getbbox getbbox.o readobj2.o \ | 
| 29 |  |  | bbox.o initotypes2.o ../common/librt.a -lm | 
| 30 | greg | 1.14 |  | 
| 31 |  |  | install:        oconv getbbox | 
| 32 |  |  | cp oconv getbbox $(INSTDIR) | 
| 33 | greg | 1.9 |  | 
| 34 |  |  | clean: | 
| 35 | greg | 1.11 | set nonomatch; rm -f oconv *.o core | 
| 36 | greg | 1.13 |  | 
| 37 |  |  | oconv.o:        oconv.c | 
| 38 |  |  | cc $(CFLAGS) -DDEFPATH=\":$(LIBDIR)\" -c oconv.c | 
| 39 | greg | 1.1 |  | 
| 40 | greg | 1.15 | bbox.o initotypes.o o_cone.o o_face.o \ | 
| 41 | greg | 1.16 | o_instance.o oconv.o sphere.o \ | 
| 42 |  |  | writeoct.o:     ../common/standard.h ../common/mat4.h ../common/fvect.h | 
| 43 | greg | 1.1 |  | 
| 44 | greg | 1.15 | initotypes.o o_cone.o o_face.o oconv.o \ | 
| 45 | greg | 1.16 | sphere.o writeoct.o:    ../common/octree.h | 
| 46 | greg | 1.1 |  | 
| 47 | greg | 1.15 | bbox.o o_cone.o o_face.o o_instance.o oconv.o \ | 
| 48 | greg | 1.16 | sphere.o writeoct.o:    ../common/object.h | 
| 49 | greg | 1.1 |  | 
| 50 | greg | 1.15 | bbox.o initotypes.o oconv.o \ | 
| 51 | greg | 1.16 | sphere.o writeoct.o:    ../common/otypes.h | 
| 52 | greg | 1.1 |  | 
| 53 | greg | 1.16 | bbox.o o_cone.o:        ../common/cone.h | 
| 54 | greg | 1.8 |  | 
| 55 | greg | 1.16 | bbox.o o_face.o:        ../common/face.h | 
| 56 | greg | 1.1 |  | 
| 57 | greg | 1.16 | bbox.o o_instance.o:    ../common/instance.h ../common/octree.h | 
| 58 | greg | 1.1 |  | 
| 59 |  |  | clip.o o_face.o plocate.o:      plocate.h |