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 |
+ |
# This is set to "1" by default, so -DSTRICT=0 now turns it off. |
9 |
|
# |
10 |
|
|
11 |
|
OPT = -O |
12 |
|
MACH = -DBSD |
13 |
< |
CFLAGS = -DSTRICT -I../common -L../lib $(OPT) $(MACH) |
13 |
> |
CFLAGS = -I../common -L../lib $(OPT) $(MACH) |
14 |
|
CC = cc |
15 |
|
MLIB = -lm |
16 |
|
|
26 |
|
o_cone.o o_instance.o bbox.o initotypes.o |
27 |
|
$(CC) $(CFLAGS) -o oconv oconv.o writeoct.o sphere.o o_face.o \ |
28 |
|
o_cone.o o_instance.o bbox.o \ |
29 |
< |
initotypes.o -lrt $(MLIB) |
29 |
> |
initotypes.o -lrtrad $(MLIB) |
30 |
|
|
31 |
|
getbbox: getbbox.o readobj2.o bbox.o init2otypes.o |
32 |
|
$(CC) $(CFLAGS) -o getbbox getbbox.o readobj2.o \ |
33 |
< |
bbox.o init2otypes.o -lrt $(MLIB) |
33 |
> |
bbox.o init2otypes.o -lrtrad $(MLIB) |
34 |
|
|
35 |
|
obj2mesh: obj2mesh.o cvmesh.o wfconv.o o_face.o writemesh.o |
36 |
|
$(CC) $(CFLAGS) -o obj2mesh obj2mesh.o cvmesh.o wfconv.o \ |
37 |
< |
o_face.o writemesh.o -lrt $(MLIB) |
37 |
> |
o_face.o writemesh.o -lrtrad $(MLIB) |
38 |
|
|
39 |
|
install: $(PROGS) |
40 |
|
cp $(PROGS) $(INSTDIR) |
41 |
|
|
42 |
|
clean: |
43 |
< |
set nonomatch; rm -f $(PROGS) *.o core |
43 |
> |
set nonomatch; rm -f $(PROGS) *.o |
44 |
|
|
45 |
|
bbox.o initotypes.o o_cone.o o_face.o \ |
46 |
|
o_instance.o oconv.o sphere.o \ |
47 |
|
cvmesh.o obj2mesh.o wfconv.o \ |
48 |
|
writeoct.o: ../common/standard.h ../common/rtmisc.h ../common/rtio.h \ |
49 |
|
../common/rtmath.h ../common/mat4.h ../common/fvect.h \ |
50 |
< |
../common/rterror.h ../common/tifftypes.h |
50 |
> |
../common/rterror.h |
51 |
|
|
52 |
|
initotypes.o o_cone.o o_face.o oconv.o \ |
53 |
|
sphere.o writeoct.o: ../common/octree.h |