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 |
OPT = -O |
12 |
MACH = -DBSD |
13 |
CFLAGS = -DSTRICT $(OPT) $(MACH) -I../common -L../lib |
14 |
CC = cc |
15 |
MLIB = -lm |
16 |
|
17 |
LIBDIR = /usr/local/lib/ray |
18 |
|
19 |
INSTDIR = /usr/local/bin |
20 |
|
21 |
all: oconv getbbox |
22 |
|
23 |
oconv: oconv.o sphere.o writeoct.o o_face.o plocate.o \ |
24 |
clip.o o_cone.o o_instance.o bbox.o initotypes.o readfargs.o malloc.o |
25 |
$(CC) $(CFLAGS) -o oconv oconv.o writeoct.o sphere.o o_face.o \ |
26 |
plocate.o clip.o o_cone.o o_instance.o bbox.o readfargs.o \ |
27 |
initotypes.o malloc.o -lrt $(MLIB) |
28 |
|
29 |
getbbox: getbbox.o readobj2.o bbox.o init2otypes.o |
30 |
$(CC) $(CFLAGS) -o getbbox getbbox.o readobj2.o \ |
31 |
bbox.o init2otypes.o -lrt $(MLIB) |
32 |
|
33 |
install: oconv getbbox |
34 |
cp oconv getbbox $(INSTDIR) |
35 |
|
36 |
clean: |
37 |
set nonomatch; rm -f oconv getbbox *.o core |
38 |
|
39 |
readfargs.o: readfargs.c ../common/object.h |
40 |
$(CC) $(CFLAGS) -DMEMHOG -c readfargs.c |
41 |
|
42 |
bbox.o initotypes.o o_cone.o o_face.o \ |
43 |
o_instance.o oconv.o sphere.o \ |
44 |
writeoct.o: ../common/standard.h ../common/mat4.h ../common/fvect.h |
45 |
|
46 |
initotypes.o o_cone.o o_face.o oconv.o \ |
47 |
sphere.o writeoct.o: ../common/octree.h |
48 |
|
49 |
bbox.o o_cone.o o_face.o o_instance.o oconv.o \ |
50 |
sphere.o writeoct.o: ../common/object.h |
51 |
|
52 |
bbox.o initotypes.o oconv.o \ |
53 |
sphere.o writeoct.o: ../common/otypes.h |
54 |
|
55 |
oconv.o: ../common/paths.h |
56 |
|
57 |
bbox.o o_cone.o: ../common/cone.h |
58 |
|
59 |
bbox.o o_face.o: ../common/face.h |
60 |
|
61 |
bbox.o o_instance.o: ../common/instance.h ../common/octree.h |
62 |
|
63 |
clip.o o_face.o plocate.o: plocate.h |
64 |
|
65 |
clip.o plocate.o: ../common/fvect.h |
66 |
|
67 |
initotypes.o init2otypes.o: ../common/otypes.h |