1 |
greg |
1.1 |
# |
2 |
|
|
# SCCSid "$SunId$ LBL" |
3 |
|
|
# Makefile for ray tracing library routines |
4 |
|
|
# |
5 |
|
|
|
6 |
|
|
OPT = -O -pipe |
7 |
|
|
MACH = -DSTRUCTASSIGN -DBSD -DIEEE -f68881 /usr/lib/libm.il |
8 |
|
|
CFLAGS = $(MACH) $(OPT) |
9 |
|
|
|
10 |
greg |
1.3 |
LIBDIR = /usr/local/lib/ray |
11 |
|
|
|
12 |
greg |
1.1 |
RTOBJ = cone.o face.o instance.o readobj.o readoct.o otypes.o objset.o \ |
13 |
greg |
1.10 |
octree.o readfargs.o modobject.o |
14 |
greg |
1.1 |
|
15 |
|
|
PICOBJ = color.o header.o image.o lamps.o resolu.o rexpr.o spec_rgb.o \ |
16 |
|
|
colrops.o |
17 |
|
|
|
18 |
greg |
1.6 |
STDOBJ = fgetline.o fropen.o linregr.o xf.o mat4.o fvect.o urand.o \ |
19 |
greg |
1.12 |
urind.o peano.o calexpr.o caldefn.o calfunc.o calprnt.o \ |
20 |
greg |
1.9 |
process.o getpath.o error.o savestr.o savqstr.o \ |
21 |
|
|
fgetword.o words.o cputs.o wputs.o eputs.o quit.o |
22 |
greg |
1.1 |
|
23 |
greg |
1.13 |
SYSOBJ = ealloc.o bmalloc.o erf.o # frexp.o fwrite.o random.o bcopy.o |
24 |
greg |
1.1 |
|
25 |
|
|
librt.a: $(RTOBJ) $(PICOBJ) $(STDOBJ) $(SYSOBJ) |
26 |
|
|
ar rc librt.a $(RTOBJ) $(PICOBJ) $(STDOBJ) $(SYSOBJ) |
27 |
|
|
@ ranlib librt.a |
28 |
greg |
1.5 |
|
29 |
|
|
install: librt.a |
30 |
|
|
|
31 |
|
|
clean: |
32 |
|
|
rm -f $(RTOBJ) $(PICOBJ) $(STDOBJ) $(SYSOBJ) |
33 |
greg |
1.3 |
|
34 |
|
|
fropen.o: fropen.c |
35 |
|
|
cc $(CFLAGS) -DDEFPATH=\":$(LIBDIR)\" -c fropen.c |
36 |
greg |
1.1 |
|
37 |
greg |
1.4 |
calexpr.o: calexpr.c calcomp.h |
38 |
|
|
cc $(CFLAGS) -DVARIABLE -DFUNCTION -DRCONST -c calexpr.c |
39 |
|
|
|
40 |
|
|
caldefn.o: caldefn.c calcomp.h |
41 |
|
|
cc $(CFLAGS) -DFUNCTION -c caldefn.c |
42 |
|
|
|
43 |
|
|
calfunc.o: calfunc.c calcomp.h |
44 |
|
|
cc $(CFLAGS) -DVARIABLE -DBIGLIB -c calfunc.c |
45 |
|
|
|
46 |
greg |
1.1 |
color.o colrops.o resolu.o spec_rgb.o: color.h |
47 |
|
|
|
48 |
|
|
cone.o: cone.h |
49 |
|
|
|
50 |
|
|
face.o: face.h |
51 |
|
|
|
52 |
|
|
fvect.o: fvect.h |
53 |
|
|
|
54 |
|
|
instance.o: instance.h |
55 |
|
|
|
56 |
|
|
linregr.o: linregr.h |
57 |
|
|
|
58 |
greg |
1.2 |
mat4.o: mat4.h fvect.h |
59 |
greg |
1.1 |
|
60 |
|
|
cone.o face.o instance.o objset.o otypes.o \ |
61 |
greg |
1.10 |
modobject.o readobj.o readoct.o: object.h |
62 |
greg |
1.1 |
|
63 |
|
|
objset.o octree.o readoct.o: octree.h |
64 |
|
|
|
65 |
greg |
1.11 |
cone.o modobject.o objset.o otypes.o readobj.o readoct.o: otypes.h |
66 |
greg |
1.1 |
|
67 |
|
|
urand.o: random.h |
68 |
|
|
|
69 |
greg |
1.10 |
cone.o face.o image.o instance.o error.o objset.o octree.o modobject.o \ |
70 |
greg |
1.1 |
otypes.o readobj.o readoct.o xf.o: standard.h mat4.h fvect.h |
71 |
|
|
|
72 |
|
|
image.o: view.h |
73 |
greg |
1.4 |
|
74 |
|
|
calprnt.o: calcomp.h |