| 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.5 |
MACH = -DBSD -DSTRUCTASSIGN -f68881 /usr/lib/f68881.il |
| 13 |
greg |
1.4 |
CFLAGS = -DSTRICT $(OPT) $(MACH) |
| 14 |
greg |
1.1 |
|
| 15 |
|
|
INSTDIR = /usr/local/ray |
| 16 |
|
|
|
| 17 |
greg |
1.2 |
INSTALL = install |
| 18 |
|
|
|
| 19 |
greg |
1.1 |
COMPAT = malloc.o |
| 20 |
|
|
|
| 21 |
greg |
1.7 |
oconv: misc.o objset.o oconv.o octree.o readobj.o \ |
| 22 |
greg |
1.1 |
readoct.o sphere.o fvect.o otypes.o writeoct.o o_face.o face.o plocate.o xf.o \ |
| 23 |
|
|
clip.o cone.o o_cone.o instance.o o_instance.o bbox.o savestr.o header.o \ |
| 24 |
greg |
1.7 |
mat4.o fgetline.o initotypes.o $(COMPAT) |
| 25 |
greg |
1.1 |
cc $(CFLAGS) -o oconv oconv.o readoct.o octree.o objset.o \ |
| 26 |
greg |
1.7 |
readobj.o writeoct.o fvect.o otypes.o sphere.o misc.o o_face.o \ |
| 27 |
greg |
1.1 |
face.o plocate.o clip.o cone.o o_cone.o instance.o o_instance.o mat4.o xf.o \ |
| 28 |
greg |
1.7 |
bbox.o savestr.o header.o fgetline.o initotypes.o $(COMPAT) -lm |
| 29 |
greg |
1.1 |
|
| 30 |
|
|
install: oconv |
| 31 |
greg |
1.2 |
$(INSTALL) oconv $(INSTDIR) |
| 32 |
greg |
1.1 |
|
| 33 |
|
|
xf.o: xf.c |
| 34 |
|
|
cc $(CFLAGS) -DINVXF -c xf.c |
| 35 |
|
|
|
| 36 |
greg |
1.7 |
bbox.o cone.o face.o initotypes.o misc.o o_cone.o o_face.o \ |
| 37 |
greg |
1.8 |
o_instance.o objset.o oconv.o instance.o octree.o otypes.o readobj.o \ |
| 38 |
|
|
readoct.o sphere.o writeoct.o xf.o: standard.h mat4.h fvect.h |
| 39 |
greg |
1.1 |
|
| 40 |
greg |
1.7 |
initotypes.o o_cone.o o_face.o objset.o oconv.o octree.o \ |
| 41 |
greg |
1.1 |
readoct.o sphere.o writeoct.o: octree.h |
| 42 |
|
|
|
| 43 |
|
|
bbox.o cone.o face.o o_cone.o o_face.o o_instance.o objset.o oconv.o \ |
| 44 |
|
|
instance.o otypes.o readobj.o readoct.o sphere.o writeoct.o: object.h |
| 45 |
|
|
|
| 46 |
greg |
1.7 |
bbox.o cone.o initotypes.o objset.o oconv.o otypes.o \ |
| 47 |
greg |
1.1 |
readobj.o readoct.o sphere.o writeoct.o: otypes.h |
| 48 |
greg |
1.8 |
|
| 49 |
|
|
mat4.o: mat4.h fvect.h |
| 50 |
greg |
1.1 |
|
| 51 |
|
|
fvect.o: fvect.h |
| 52 |
|
|
|
| 53 |
|
|
bbox.o cone.o o_cone.o: cone.h |
| 54 |
|
|
|
| 55 |
|
|
bbox.o face.o o_face.o: face.h |
| 56 |
|
|
|
| 57 |
|
|
bbox.o o_instance.o instance.o: instance.h octree.h |
| 58 |
|
|
|
| 59 |
|
|
clip.o o_face.o plocate.o: plocate.h |