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