| 1 |
greg |
2.7 |
# RCSid: $Id$ |
| 2 |
greg |
1.1 |
# |
| 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 |
greg |
1.4 |
OPT = -O |
| 11 |
greg |
1.25 |
MACH = -DBSD |
| 12 |
greg |
2.7 |
CFLAGS = -DSTRICT -I../common -L../lib $(OPT) $(MACH) |
| 13 |
greg |
2.2 |
CC = cc |
| 14 |
greg |
2.4 |
MLIB = -lm |
| 15 |
greg |
1.1 |
|
| 16 |
greg |
1.13 |
LIBDIR = /usr/local/lib/ray |
| 17 |
|
|
|
| 18 |
greg |
1.23 |
INSTDIR = /usr/local/bin |
| 19 |
greg |
1.1 |
|
| 20 |
greg |
2.8 |
all: oconv getbbox obj2mesh |
| 21 |
greg |
1.14 |
|
| 22 |
greg |
2.6 |
oconv: oconv.o sphere.o writeoct.o o_face.o \ |
| 23 |
greg |
2.7 |
o_cone.o o_instance.o bbox.o initotypes.o |
| 24 |
greg |
2.2 |
$(CC) $(CFLAGS) -o oconv oconv.o writeoct.o sphere.o o_face.o \ |
| 25 |
greg |
2.7 |
o_cone.o o_instance.o bbox.o \ |
| 26 |
|
|
initotypes.o -lrt $(MLIB) |
| 27 |
greg |
1.1 |
|
| 28 |
greg |
2.3 |
getbbox: getbbox.o readobj2.o bbox.o init2otypes.o |
| 29 |
greg |
2.2 |
$(CC) $(CFLAGS) -o getbbox getbbox.o readobj2.o \ |
| 30 |
greg |
2.4 |
bbox.o init2otypes.o -lrt $(MLIB) |
| 31 |
greg |
1.14 |
|
| 32 |
greg |
2.8 |
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 |
greg |
1.9 |
|
| 39 |
|
|
clean: |
| 40 |
greg |
1.17 |
set nonomatch; rm -f oconv getbbox *.o core |
| 41 |
greg |
1.13 |
|
| 42 |
greg |
1.15 |
bbox.o initotypes.o o_cone.o o_face.o \ |
| 43 |
greg |
1.16 |
o_instance.o oconv.o sphere.o \ |
| 44 |
greg |
2.8 |
cvmesh.o obj2mesh.o wfconv.o \ |
| 45 |
greg |
1.16 |
writeoct.o: ../common/standard.h ../common/mat4.h ../common/fvect.h |
| 46 |
greg |
1.1 |
|
| 47 |
greg |
1.15 |
initotypes.o o_cone.o o_face.o oconv.o \ |
| 48 |
greg |
1.16 |
sphere.o writeoct.o: ../common/octree.h |
| 49 |
greg |
1.1 |
|
| 50 |
greg |
1.15 |
bbox.o o_cone.o o_face.o o_instance.o oconv.o \ |
| 51 |
greg |
1.16 |
sphere.o writeoct.o: ../common/object.h |
| 52 |
greg |
1.1 |
|
| 53 |
greg |
2.8 |
bbox.o initotypes.o oconv.o obj2mesh.o \ |
| 54 |
greg |
1.16 |
sphere.o writeoct.o: ../common/otypes.h |
| 55 |
greg |
2.5 |
|
| 56 |
|
|
oconv.o: ../common/paths.h |
| 57 |
greg |
1.1 |
|
| 58 |
greg |
1.16 |
bbox.o o_cone.o: ../common/cone.h |
| 59 |
greg |
1.8 |
|
| 60 |
greg |
1.16 |
bbox.o o_face.o: ../common/face.h |
| 61 |
greg |
1.1 |
|
| 62 |
greg |
2.8 |
bbox.o getbbox.o o_instance.o: ../common/instance.h \ |
| 63 |
|
|
../common/mesh.h ../common/octree.h |
| 64 |
greg |
1.1 |
|
| 65 |
greg |
2.6 |
o_face.o: ../common/plocate.h |
| 66 |
greg |
1.19 |
|
| 67 |
greg |
1.24 |
clip.o plocate.o: ../common/fvect.h |
| 68 |
|
|
|
| 69 |
greg |
2.3 |
initotypes.o init2otypes.o: ../common/otypes.h |
| 70 |
greg |
2.8 |
|
| 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 |