9 |
|
# |
10 |
|
|
11 |
|
OPT = -O |
12 |
< |
MACH = -DBSD -DSTRUCTASSIGN -f68881 /usr/lib/f68881.il |
12 |
> |
MACH = -DBSD -DSTRUCTASSIGN -f68881 /usr/lib/libm.il |
13 |
|
CFLAGS = -DSTRICT $(OPT) $(MACH) |
14 |
|
|
15 |
< |
INSTDIR = ../../bin |
15 |
> |
LIBDIR = /usr/local/lib/ray |
16 |
|
|
17 |
< |
COMPAT = malloc.o |
17 |
> |
INSTDIR = /lumen/lumen/ray/bin.sun3 |
18 |
|
|
19 |
< |
oconv: misc.o objset.o oconv.o octree.o readobj.o \ |
20 |
< |
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 |
< |
mat4.o fgetline.o initotypes.o $(COMPAT) |
23 |
< |
cc $(CFLAGS) -o oconv oconv.o readoct.o octree.o objset.o \ |
24 |
< |
readobj.o writeoct.o fvect.o otypes.o sphere.o misc.o o_face.o \ |
25 |
< |
face.o plocate.o clip.o cone.o o_cone.o instance.o o_instance.o mat4.o xf.o \ |
26 |
< |
bbox.o savestr.o header.o fgetline.o initotypes.o $(COMPAT) -lm |
19 |
> |
all: oconv getbbox |
20 |
|
|
21 |
< |
install: oconv |
22 |
< |
cp oconv $(INSTDIR) |
21 |
> |
oconv: oconv.o sphere.o writeoct.o o_face.o plocate.o \ |
22 |
> |
clip.o o_cone.o o_instance.o bbox.o initotypes.o |
23 |
> |
cc $(CFLAGS) -o oconv oconv.o writeoct.o sphere.o o_face.o \ |
24 |
> |
plocate.o clip.o o_cone.o o_instance.o bbox.o \ |
25 |
> |
initotypes.o ../common/librt.a -lm |
26 |
|
|
27 |
< |
clean: |
28 |
< |
rm -f oconv *.o core |
27 |
> |
getbbox: getbbox.o readobj2.o bbox.o initotypes2.o |
28 |
> |
cc $(CFLAGS) -o getbbox getbbox.o readobj2.o \ |
29 |
> |
bbox.o initotypes2.o ../common/librt.a -lm |
30 |
|
|
31 |
< |
xf.o: xf.c |
32 |
< |
cc $(CFLAGS) -DINVXF -c xf.c |
31 |
> |
install: oconv getbbox |
32 |
> |
cp oconv getbbox $(INSTDIR) |
33 |
|
|
34 |
< |
bbox.o cone.o face.o initotypes.o misc.o o_cone.o o_face.o \ |
35 |
< |
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 |
34 |
> |
clean: |
35 |
> |
set nonomatch; rm -f oconv *.o core |
36 |
|
|
37 |
< |
initotypes.o o_cone.o o_face.o objset.o oconv.o octree.o \ |
38 |
< |
readoct.o sphere.o writeoct.o: octree.h |
37 |
> |
oconv.o: oconv.c |
38 |
> |
cc $(CFLAGS) -DDEFPATH=\":$(LIBDIR)\" -c oconv.c |
39 |
|
|
40 |
< |
bbox.o cone.o face.o o_cone.o o_face.o o_instance.o objset.o oconv.o \ |
41 |
< |
instance.o otypes.o readobj.o readoct.o sphere.o writeoct.o: object.h |
40 |
> |
bbox.o initotypes.o o_cone.o o_face.o \ |
41 |
> |
o_instance.o oconv.o sphere.o writeoct.o: standard.h mat4.h fvect.h |
42 |
|
|
43 |
< |
bbox.o cone.o initotypes.o objset.o oconv.o otypes.o \ |
44 |
< |
readobj.o readoct.o sphere.o writeoct.o: otypes.h |
43 |
> |
initotypes.o o_cone.o o_face.o oconv.o \ |
44 |
> |
sphere.o writeoct.o: octree.h |
45 |
|
|
46 |
< |
mat4.o: mat4.h fvect.h |
46 |
> |
bbox.o o_cone.o o_face.o o_instance.o oconv.o \ |
47 |
> |
sphere.o writeoct.o: object.h |
48 |
|
|
49 |
< |
fvect.o: fvect.h |
49 |
> |
bbox.o initotypes.o oconv.o \ |
50 |
> |
sphere.o writeoct.o: otypes.h |
51 |
|
|
52 |
< |
bbox.o cone.o o_cone.o: cone.h |
52 |
> |
bbox.o o_cone.o: cone.h |
53 |
|
|
54 |
< |
bbox.o face.o o_face.o: face.h |
54 |
> |
bbox.o o_face.o: face.h |
55 |
|
|
56 |
< |
bbox.o o_instance.o instance.o: instance.h octree.h |
56 |
> |
bbox.o o_instance.o: instance.h octree.h |
57 |
|
|
58 |
|
clip.o o_face.o plocate.o: plocate.h |