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