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