1 |
# RCSid: $Id$ |
2 |
# |
3 |
# Compiles for octree conversion program |
4 |
# |
5 |
# The compile define "STRICT" enforces strict intersection calculations |
6 |
# so that no cube which does not intersect an object contains that object. |
7 |
# Otherwise, a somewhat faster more lax approach is taken by certain routines. |
8 |
# |
9 |
|
10 |
OPT = -O |
11 |
MACH = -DBSD |
12 |
CFLAGS = -DSTRICT -I../common -L../lib $(OPT) $(MACH) |
13 |
CC = cc |
14 |
MLIB = -lm |
15 |
|
16 |
LIBDIR = /usr/local/lib/ray |
17 |
|
18 |
INSTDIR = /usr/local/bin |
19 |
|
20 |
all: oconv getbbox obj2mesh |
21 |
|
22 |
oconv: oconv.o sphere.o writeoct.o o_face.o \ |
23 |
o_cone.o o_instance.o bbox.o initotypes.o |
24 |
$(CC) $(CFLAGS) -o oconv oconv.o writeoct.o sphere.o o_face.o \ |
25 |
o_cone.o o_instance.o bbox.o \ |
26 |
initotypes.o -lrt $(MLIB) |
27 |
|
28 |
getbbox: getbbox.o readobj2.o bbox.o init2otypes.o |
29 |
$(CC) $(CFLAGS) -o getbbox getbbox.o readobj2.o \ |
30 |
bbox.o init2otypes.o -lrt $(MLIB) |
31 |
|
32 |
obj2mesh: obj2mesh.o cvmesh.o wfconv.o o_face.o writemesh.o |
33 |
$(CC) $(CFLAGS) -o obj2mesh obj2mesh.o cvmesh.o wfconv.o \ |
34 |
o_face.o writemesh.o -lrt |
35 |
|
36 |
install: oconv getbbox obj2mesh |
37 |
cp oconv getbbox obj2mesh $(INSTDIR) |
38 |
|
39 |
clean: |
40 |
set nonomatch; rm -f oconv getbbox *.o core |
41 |
|
42 |
bbox.o initotypes.o o_cone.o o_face.o \ |
43 |
o_instance.o oconv.o sphere.o \ |
44 |
cvmesh.o obj2mesh.o wfconv.o \ |
45 |
writeoct.o: ../common/standard.h ../common/mat4.h ../common/fvect.h |
46 |
|
47 |
initotypes.o o_cone.o o_face.o oconv.o \ |
48 |
sphere.o writeoct.o: ../common/octree.h |
49 |
|
50 |
bbox.o o_cone.o o_face.o o_instance.o oconv.o \ |
51 |
sphere.o writeoct.o: ../common/object.h |
52 |
|
53 |
bbox.o initotypes.o oconv.o obj2mesh.o \ |
54 |
sphere.o writeoct.o: ../common/otypes.h |
55 |
|
56 |
oconv.o: ../common/paths.h |
57 |
|
58 |
bbox.o o_cone.o: ../common/cone.h |
59 |
|
60 |
bbox.o o_face.o: ../common/face.h |
61 |
|
62 |
bbox.o getbbox.o o_instance.o: ../common/instance.h \ |
63 |
../common/mesh.h ../common/octree.h |
64 |
|
65 |
o_face.o: ../common/plocate.h |
66 |
|
67 |
clip.o plocate.o: ../common/fvect.h |
68 |
|
69 |
initotypes.o init2otypes.o: ../common/otypes.h |
70 |
|
71 |
cvmesh.o obj2mesh.o wfconv.o: cvmesh.h \ |
72 |
../common/octree.h ../common/object.h ../common/mesh.h |
73 |
|
74 |
cvmesh.o: ../common/otypes.h ../common/face.h |