3 |
|
# Makefile for ray tracing library routines |
4 |
|
# |
5 |
|
|
6 |
< |
OPT = -O -pipe |
7 |
< |
MACH = -DSTRUCTASSIGN -DBSD -DIEEE -f68881 /usr/lib/libm.il |
6 |
> |
OPT = -O |
7 |
> |
MACH = -DSTRUCTASSIGN -DBSD |
8 |
|
CFLAGS = $(MACH) $(OPT) |
9 |
|
|
10 |
+ |
COMPAT = bmalloc.o erf.o # frexp.o fwrite.o random.o |
11 |
+ |
|
12 |
|
LIBDIR = /usr/local/lib/ray |
13 |
|
|
14 |
|
RTOBJ = cone.o face.o instance.o readobj.o readoct.o otypes.o objset.o \ |
15 |
< |
octree.o readfargs.o |
15 |
> |
octree.o readfargs.o modobject.o |
16 |
|
|
17 |
|
PICOBJ = color.o header.o image.o lamps.o resolu.o rexpr.o spec_rgb.o \ |
18 |
|
colrops.o |
19 |
|
|
20 |
|
STDOBJ = fgetline.o fropen.o linregr.o xf.o mat4.o fvect.o urand.o \ |
21 |
< |
calexpr.o caldefn.o calfunc.o calprnt.o \ |
22 |
< |
getpath.o error.o savestr.o strmisc.o \ |
23 |
< |
cputs.o wputs.o eputs.o quit.o |
21 |
> |
urind.o peano.o calexpr.o caldefn.o calfunc.o calprnt.o \ |
22 |
> |
multisamp.o process.o getpath.o error.o savestr.o savqstr.o \ |
23 |
> |
fgetword.o words.o cputs.o wputs.o eputs.o quit.o |
24 |
|
|
25 |
< |
SYSOBJ = ealloc.o bmalloc.o # erf.o frexp.o fwrite.o random.o bcopy.o |
25 |
> |
SYSOBJ = ealloc.o $(COMPAT) |
26 |
|
|
27 |
|
librt.a: $(RTOBJ) $(PICOBJ) $(STDOBJ) $(SYSOBJ) |
28 |
|
ar rc librt.a $(RTOBJ) $(PICOBJ) $(STDOBJ) $(SYSOBJ) |
29 |
< |
@ ranlib librt.a |
29 |
> |
-ranlib librt.a |
30 |
|
|
31 |
|
install: librt.a |
32 |
+ |
mv librt.a ../lib |
33 |
|
|
34 |
|
clean: |
35 |
< |
rm -f $(RTOBJ) $(PICOBJ) $(STDOBJ) $(SYSOBJ) |
35 |
> |
rm -f $(RTOBJ) $(PICOBJ) $(STDOBJ) $(SYSOBJ) librt.a |
36 |
|
|
37 |
|
fropen.o: fropen.c |
38 |
|
cc $(CFLAGS) -DDEFPATH=\":$(LIBDIR)\" -c fropen.c |
61 |
|
mat4.o: mat4.h fvect.h |
62 |
|
|
63 |
|
cone.o face.o instance.o objset.o otypes.o \ |
64 |
< |
readobj.o readoct.o: object.h |
64 |
> |
modobject.o readobj.o readoct.o: object.h |
65 |
|
|
66 |
|
objset.o octree.o readoct.o: octree.h |
67 |
|
|
68 |
< |
cone.o objset.o otypes.o readobj.o readoct.o: otypes.h |
68 |
> |
cone.o modobject.o objset.o otypes.o readobj.o readoct.o: otypes.h |
69 |
|
|
70 |
|
urand.o: random.h |
71 |
|
|
72 |
< |
cone.o face.o image.o instance.o error.o objset.o octree.o \ |
72 |
> |
cone.o face.o image.o instance.o error.o objset.o octree.o modobject.o \ |
73 |
|
otypes.o readobj.o readoct.o xf.o: standard.h mat4.h fvect.h |
74 |
|
|
75 |
|
image.o: view.h |