9 |
|
CC = cc |
10 |
|
SPECIAL = |
11 |
|
|
12 |
< |
COMPAT = bmalloc.o erf.o strcmp.o # frexp.o fwrite.o random.o |
12 |
> |
COMPAT = erf.o strcmp.o |
13 |
|
|
14 |
|
LIBDIR = /usr/local/lib/ray |
15 |
|
|
16 |
|
RTOBJ = cone.o face.o free_os.o instance.o readobj.o readoct.o otypes.o \ |
17 |
|
objset.o octree.o readfargs.o modobject.o getlibpath.o \ |
18 |
< |
addobjnotify.o zeroes.o mesh.o readmesh.o tmesh.o |
18 |
> |
addobjnotify.o zeroes.o mesh.o readmesh.o tmesh.o sceneio.o |
19 |
|
|
20 |
|
PICOBJ = color.o header.o image.o lamps.o resolu.o rexpr.o spec_rgb.o \ |
21 |
< |
colrops.o font.o tonemap.o tmapcolrs.o tmapluv.o tmaptiff.o |
21 |
> |
colrops.o font.o tonemap.o tmapcolrs.o tmapluv.o tmaptiff.o \ |
22 |
> |
tmap16bit.o bmpfile.o falsecolor.o |
23 |
|
|
24 |
+ |
UTLOBJ = ezxml.o ccolor.o ccyrgb.o bsdf.o bsdf_m.o bsdf_t.o loadbsdf.o \ |
25 |
+ |
disk2square.o hilbert.o interp2d.o triangulate.o |
26 |
+ |
|
27 |
|
STDOBJ = fgetline.o fropen.o linregr.o xf.o mat4.o invmat4.o fvect.o urand.o \ |
28 |
< |
urind.o calexpr.o caldefn.o calfunc.o calprnt.o biggerlib.o \ |
29 |
< |
multisamp.o process.o getpath.o error.o savestr.o savqstr.o \ |
30 |
< |
badarg.o fgetword.o words.o expandarg.o wordfile.o fgetval.o \ |
31 |
< |
clip.o plocate.o eputs.o wputs.o quit.o lookup.o \ |
32 |
< |
loadvars.o tcos.o fputword.o chanvalue.o dircode.o |
28 |
> |
urind.o calexpr.o caldefn.o calfunc.o calprnt.o biggerlib.o multisamp.o \ |
29 |
> |
unix_process.o process.o gethomedir.o getpath.o error.o savestr.o \ |
30 |
> |
savqstr.o badarg.o fgetword.o words.o expandarg.o wordfile.o fgetval.o \ |
31 |
> |
clip.o plocate.o eputs.o wputs.o quit.o lookup.o bmalloc.o \ |
32 |
> |
loadvars.o tcos.o fputword.o chanvalue.o dircode.o paths.o byteswap.o |
33 |
|
|
34 |
|
SYSOBJ = ealloc.o fdate.o portio.o myhostname.o $(COMPAT) |
35 |
|
|
36 |
+ |
MGFOBJ = mgf_parser.o mgf_object.o mgf_xf.o mgf_context.o |
37 |
+ |
|
38 |
+ |
REETZOBJ = g3affine.o g3flist.o g3sphere.o g3vector.o gbasic.o maxheap.o |
39 |
+ |
|
40 |
|
OGLOBJ = rglfile.o rglmat.o rgldomat.o rglsurf.o rglinst.o rglsrc.o |
41 |
|
|
42 |
|
LIBFILES = tmesh.cal |
43 |
|
|
44 |
< |
all: librt.a $(SPECIAL) |
44 |
> |
librtrad.a: $(RTOBJ) $(PICOBJ) $(UTLOBJ) $(STDOBJ) $(SYSOBJ) |
45 |
> |
rm -f librtrad.a |
46 |
> |
ar rc librtrad.a $(RTOBJ) $(PICOBJ) $(UTLOBJ) $(STDOBJ) $(SYSOBJ) |
47 |
> |
-ranlib librtrad.a |
48 |
|
|
49 |
< |
librt.a: $(RTOBJ) $(PICOBJ) $(STDOBJ) $(SYSOBJ) |
50 |
< |
ar rc librt.a $(RTOBJ) $(PICOBJ) $(STDOBJ) $(SYSOBJ) |
51 |
< |
-ranlib librt.a |
49 |
> |
libmgf.a: $(MGFOBJ) |
50 |
> |
rm -f libmgf.a |
51 |
> |
ar rc libmgf.a $(MGFOBJ) |
52 |
> |
-ranlib libmgf.a |
53 |
|
|
54 |
+ |
libreetz.a: $(REETZOBJ) |
55 |
+ |
rm -f libreetz.a |
56 |
+ |
ar rc libreetz.a $(REETZOBJ) |
57 |
+ |
-ranlib libreetz.a |
58 |
+ |
|
59 |
|
install: all |
60 |
< |
mv librt.a ../lib/librt.a |
61 |
< |
cd $(LIBDIR) ; rm -f $(LIBFILES) |
62 |
< |
cp $(LIBFILES) $(LIBDIR) |
60 |
> |
mv -f librtrad.a libmgf.a libreetz.a ../lib |
61 |
> |
cd $(LIBDIR) && rm -f $(LIBFILES) |
62 |
> |
cp -f $(LIBFILES) $(LIBDIR) |
63 |
|
|
64 |
+ |
all: librtrad.a libmgf.a libreetz.a $(SPECIAL) |
65 |
+ |
|
66 |
|
clean: |
67 |
< |
rm -f *.o librt.a |
67 |
> |
rm -f *.o librtrad.a libmgf.a |
68 |
|
|
69 |
|
ogl: $(OGLOBJ) |
70 |
+ |
rm -f librgl.a |
71 |
|
ar rc librgl.a $(OGLOBJ) |
72 |
|
-ranlib librgl.a |
73 |
< |
mv librgl.a ../lib/librgl.a |
73 |
> |
mv -f librgl.a ../lib |
74 |
|
|
75 |
|
x10: |
76 |
|
|
92 |
|
|
93 |
|
face.o: face.h |
94 |
|
|
95 |
< |
fvect.o: fvect.h |
95 |
> |
fvect.o: fvect.h random.h |
96 |
|
|
97 |
|
instance.o: instance.h |
98 |
|
|
102 |
|
|
103 |
|
cone.o face.o instance.o objset.o otypes.o \ |
104 |
|
mesh.o modobject.o readfargs.o readmesh.o \ |
105 |
< |
readobj.o readoct.o: object.h |
105 |
> |
readobj.o readoct.o sceneio.o: object.h |
106 |
|
|
107 |
< |
mesh.o objset.o octree.o readmesh.o readoct.o: octree.h |
107 |
> |
mesh.o objset.o octree.o readmesh.o readoct.o sceneio.o: octree.h |
108 |
|
|
109 |
< |
cone.o modobject.o otypes.o readobj.o readoct.o: otypes.h |
109 |
> |
cone.o mesh.o modobject.o otypes.o \ |
110 |
> |
readobj.o readoct.o sceneio.o: otypes.h |
111 |
|
|
112 |
|
multisamp.o urand.o: random.h |
113 |
|
|
114 |
< |
cone.o face.o free_os.o image.o instance.o error.o objset.o \ |
115 |
< |
octree.o modobject.o readfargs.o otypes.o dircode.o mesh.o \ |
116 |
< |
readmesh.o readobj.o readoct.o xf.o: standard.h mat4.h fvect.h |
114 |
> |
cone.o face.o free_os.o image.o instance.o objset.o \ |
115 |
> |
octree.o modobject.o readfargs.o otypes.o mesh.o \ |
116 |
> |
readmesh.o readobj.o readoct.o sceneio.o: standard.h \ |
117 |
> |
rtmisc.h rtio.h rtmath.h rterror.h fvect.h mat4.h tiff.h |
118 |
|
|
119 |
|
image.o: view.h |
120 |
|
|
121 |
< |
calprnt.o: calcomp.h |
121 |
> |
caldefn.o calexpr.o calfunc.o calprnt.o: calcomp.h |
122 |
|
|
101 |
– |
process.o: vfork.h |
102 |
– |
|
123 |
|
clip.o plocate.o: plocate.h |
124 |
|
|
125 |
|
font.o: font.h |
126 |
|
|
127 |
|
fropen.o getpath.o image.o: paths.h |
128 |
|
|
129 |
< |
lookup.o mesh.o: lookup.h |
129 |
> |
lookup.o: lookup.h |
130 |
|
|
131 |
|
loadvars.o: vars.h |
132 |
|
|
133 |
< |
mesh.o readmesh.o: mesh.h |
133 |
> |
mesh.o readmesh.o: mesh.h lookup.h |
134 |
|
|
135 |
< |
tonemap.o tmapcolrs.o tmapluv.o: tmprivat.h tonemap.h color.h |
135 |
> |
tonemap.o tmapcolrs.o tmapluv.o tmap16bit.o: tmprivat.h tonemap.h \ |
136 |
> |
tiff.h color.h |
137 |
|
|
138 |
< |
tmapluv.o: uvcode.h tiffio.h tmaptiff.h tiff.h |
138 |
> |
tmapluv.o: tiffio.h tmaptiff.h tiff.h |
139 |
|
|
140 |
+ |
falsecolor.o: falsecolor.h tmprivat.h tonemap.h color.h tiff.h |
141 |
+ |
|
142 |
|
tonemap.o: tmerrmsg.h |
143 |
|
|
144 |
< |
tmaptiff.o: tmprivat.h tmaptiff.h color.h tonemap.h |
144 |
> |
tmaptiff.o: tmprivat.h tmaptiff.h color.h tonemap.h tiff.h |
145 |
|
|
146 |
|
rglfile.o rglmat.o rgldomat.o rglsurf.o rglinst.o rglsrc.o: radogl.h \ |
147 |
|
standard.h mat4.h fvect.h color.h object.h otypes.h lookup.h |
149 |
|
free_os.o: octree.h object.h otypes.h face.h cone.h instance.h |
150 |
|
|
151 |
|
tmesh.o: tmesh.h fvect.h |
152 |
+ |
|
153 |
+ |
fgetword.o fputword.o fgetval.o fgetline.o fdate.o unix_process.o \ |
154 |
+ |
byteswap.o expandarg.o badarg.o xf.o: rtio.h |
155 |
+ |
|
156 |
+ |
expandarg.o: rtmisc.h |
157 |
+ |
|
158 |
+ |
dircode.o interp2d.o xf.o: rtmath.h mat4.h fvect.h tiff.h |
159 |
+ |
|
160 |
+ |
error.o: rterror.h |
161 |
+ |
|
162 |
+ |
bmpfile.o: bmpfile.h tiff.h |
163 |
+ |
|
164 |
+ |
header.o readmesh.o readoct.o resolu.o rglinst.o tmapcolrs.o: resolu.h |
165 |
+ |
|
166 |
+ |
ezxml.o bsdf.o bsdf_m.o bsdf_t.o: ezxml.h |
167 |
+ |
|
168 |
+ |
bsdf_m.o bsdf_t.o: rtio.h |
169 |
+ |
|
170 |
+ |
bsdf.o: bsdf.h fvect.h bsdf_m.h bsdf_t.h hilbert.h ezxml.h |
171 |
+ |
|
172 |
+ |
bsdf.o bsdf_m.o bsdf_t.o ccolor.o: ccolor.h |
173 |
+ |
|
174 |
+ |
mgf_parser.o mgf_context.o mgf_xf.o mgf_object.o: mgf_parser.h ccolor.h |
175 |
+ |
|
176 |
+ |
ccyrgb.o: ccolor.h color.h |
177 |
+ |
|
178 |
+ |
mgf_parser.o mgf_context.o: lookup.h |
179 |
+ |
|
180 |
+ |
mgf_parser.o: mgf_mesg.h |
181 |
+ |
|
182 |
+ |
bsdf_m.o: bsdf.h bsdf_m.h |
183 |
+ |
|
184 |
+ |
bsdf_t.o: bsdf.h bsdf_t.h hilbert.h |
185 |
+ |
|
186 |
+ |
hilbert.o: hilbert.h |
187 |
+ |
|
188 |
+ |
loadbsdf.o: bsdf.h rtio.h rterror.h paths.h |
189 |
+ |
|
190 |
+ |
interp2d.o: interp2d.h |
191 |
+ |
|
192 |
+ |
triangulate.o: triangulate.h |
193 |
+ |
|
194 |
+ |
process.o readobj.o readoct.o rglfile.o \ |
195 |
+ |
tmapcolrs.o unix_process.o win_process.o: rtprocess.h |
196 |
+ |
|
197 |
+ |
gbasic.o: gbasic.h |
198 |
+ |
|
199 |
+ |
g3flist.o g3affine.o g3sphere.o g3vector.o: g3vector.h gbasic.h fvect.h |
200 |
+ |
|
201 |
+ |
g3affine.o: g3affine.h |
202 |
+ |
|
203 |
+ |
g3affine.o g3sphere.o: g3sphere.h |
204 |
+ |
|
205 |
+ |
g3flist.o: g3flist.h |
206 |
+ |
|
207 |
+ |
maxheap.o: maxheap.h |