10 |
|
AR = ar |
11 |
|
SPECIAL = |
12 |
|
|
13 |
< |
COMPAT = erf.o strcmp.o strlcpy.o |
13 |
> |
COMPAT = erf.o strcmp.o strnstr.o strlcpy.o |
14 |
|
|
15 |
|
LIBDIR = /usr/local/lib/ray |
16 |
|
|
21 |
|
PICOBJ = color.o header.o image.o lamps.o resolu.o rexpr.o spec_rgb.o \ |
22 |
|
colrops.o font.o tonemap.o tmapcolrs.o tmapluv.o tmaptiff.o \ |
23 |
|
tmap16bit.o bmpfile.o falsecolor.o depthcodec.o normcodec.o \ |
24 |
< |
idmap.o fltdepth.o |
24 |
> |
idmap.o fltdepth.o jitteraperture.o |
25 |
|
|
26 |
|
UTLOBJ = ezxml.o ccolor.o ccyrgb.o bsdf.o bsdf_m.o bsdf_t.o loadbsdf.o \ |
27 |
< |
disk2square.o hilbert.o interp2d.o triangulate.o |
27 |
> |
disk2square.o hilbert.o interp2d.o triangulate.o data.o |
28 |
|
|
29 |
|
STDOBJ = fgetline.o fropen.o linregr.o xf.o mat4.o invmat4.o fvect.o urand.o \ |
30 |
|
urind.o calexpr.o caldefn.o calfunc.o calprnt.o biggerlib.o multisamp.o \ |
32 |
|
savqstr.o badarg.o fgetword.o words.o expandarg.o wordfile.o fgetval.o \ |
33 |
|
clip.o plocate.o eputs.o wputs.o quit.o lookup.o bmalloc.o \ |
34 |
|
loadvars.o tcos.o fputword.o chanvalue.o dircode.o paths.o byteswap.o \ |
35 |
< |
cvtcmd.o |
35 |
> |
cvtcmd.o dmessage.o |
36 |
|
|
37 |
|
SYSOBJ = ealloc.o fdate.o portio.o myhostname.o $(COMPAT) |
38 |
|
|
39 |
+ |
CPPOBJ = abitmap.o abitmapio.o |
40 |
+ |
|
41 |
|
MGFOBJ = mgf_parser.o mgf_object.o mgf_xf.o mgf_context.o |
42 |
|
|
43 |
< |
WFOBJ = objutil.o readwfobj.o convertobj.o writewfobj.o |
43 |
> |
WFOBJ = objutil.o objtriangulate.o readwfobj.o convertobj.o writewfobj.o |
44 |
|
|
45 |
|
REETZOBJ = g3affine.o g3flist.o g3sphere.o g3vector.o gbasic.o muc_randvar.o |
46 |
|
|
53 |
|
$(AR) rc librtrad.a $(RTOBJ) $(PICOBJ) $(UTLOBJ) $(STDOBJ) $(SYSOBJ) |
54 |
|
-ranlib librtrad.a |
55 |
|
|
56 |
+ |
libcpprad.a: $(CPPOBJ) |
57 |
+ |
rm -f libcpprad.a |
58 |
+ |
$(AR) rc libcpprad.a $(CPPOBJ) |
59 |
+ |
|
60 |
|
libmgf.a: $(MGFOBJ) |
61 |
|
rm -f libmgf.a |
62 |
|
$(AR) rc libmgf.a $(MGFOBJ) |
73 |
|
-ranlib libreetz.a |
74 |
|
|
75 |
|
install: all |
76 |
< |
mv -f librtrad.a libmgf.a libwfobj.a libreetz.a ../lib |
76 |
> |
mv -f librtrad.a libcpprad.a libmgf.a libwfobj.a libreetz.a ../lib |
77 |
|
cd $(LIBDIR) && rm -f $(LIBFILES) |
78 |
|
cp -f $(LIBFILES) $(LIBDIR) |
79 |
|
|
80 |
< |
all: librtrad.a libmgf.a libreetz.a $(SPECIAL) |
80 |
> |
all: librtrad.a libcpprad.a libmgf.a libwfobj.a libreetz.a $(SPECIAL) |
81 |
|
|
82 |
|
clean: |
83 |
< |
rm -f *.o librtrad.a libmgf.a |
83 |
> |
rm -f *.o *.a |
84 |
|
|
85 |
|
ogl: $(OGLOBJ) |
86 |
|
rm -f librgl.a |
105 |
|
testBSDF: testBSDF.c bsdf.h rtio.h |
106 |
|
$(CC) -L../lib $(CFLAGS) -o testBSDF testBSDF.c -lrtrad -lm |
107 |
|
|
108 |
< |
color.o colrops.o lamps.o spec_rgb.o: color.h |
108 |
> |
color.o colrops.o header.o lamps.o spec_rgb.o: color.h |
109 |
|
|
110 |
|
cone.o: cone.h |
111 |
|
|
130 |
|
|
131 |
|
multisamp.o urand.o: random.h |
132 |
|
|
133 |
< |
cone.o face.o free_os.o image.o instance.o objset.o \ |
133 |
> |
cone.o data.o face.o free_os.o instance.o objset.o \ |
134 |
|
octree.o modobject.o readfargs.o otypes.o mesh.o \ |
135 |
|
readmesh.o readobj.o readoct.o sceneio.o: standard.h \ |
136 |
|
rtmisc.h rtio.h rtmath.h rterror.h fvect.h mat4.h tiff.h |
137 |
|
|
138 |
< |
image.o: view.h |
138 |
> |
image.o: view.h rtio.h rtmath.h mat4.h fvect.h rtio.h paths.h |
139 |
|
|
140 |
+ |
jitteraperture.o: view.h rtmath.h mat4.h fvect.h rtio.h |
141 |
+ |
|
142 |
|
caldefn.o calexpr.o calfunc.o calprnt.o: calcomp.h |
143 |
|
|
144 |
|
clip.o plocate.o: plocate.h |
145 |
|
|
146 |
|
font.o: font.h |
147 |
|
|
148 |
< |
cvtcmd.o fropen.o getpath.o image.o: paths.h |
148 |
> |
cvtcmd.o font.o fropen.o getpath.o image.o: paths.h |
149 |
|
|
150 |
|
lookup.o: lookup.h |
151 |
|
|
153 |
|
|
154 |
|
mesh.o readmesh.o: mesh.h lookup.h |
155 |
|
|
156 |
+ |
dmessage.o abitmapio.o: dmessage.h |
157 |
+ |
|
158 |
+ |
abitmap.o abitmapio.o: abitmap.h tiff.h |
159 |
+ |
|
160 |
+ |
abitmapio.o: bmpfile.h |
161 |
+ |
|
162 |
|
tonemap.o tmapcolrs.o tmapluv.o tmap16bit.o: tmprivat.h tonemap.h \ |
163 |
|
tiff.h color.h |
164 |
|
|
177 |
|
|
178 |
|
tmesh.o: tmesh.h fvect.h |
179 |
|
|
180 |
< |
fgetword.o fputword.o fgetval.o fgetline.o fdate.o unix_process.o \ |
181 |
< |
byteswap.o expandarg.o badarg.o xf.o: rtio.h |
180 |
> |
fgetword.o fputword.o fgetval.o fgetline.o fdate.o font.o \ |
181 |
> |
unix_process.o byteswap.o expandarg.o badarg.o xf.o: rtio.h |
182 |
|
|
183 |
|
expandarg.o: rtmisc.h |
184 |
|
|
233 |
|
|
234 |
|
maxheap.o: maxheap.h |
235 |
|
|
236 |
+ |
data.o: data.h platform.h paths.h color.h view.h resolu.h |
237 |
+ |
|
238 |
|
ezxml.o readmesh.o readobj.o readoct.o rglinst.o wordfile.o: platform.h |
239 |
|
|
240 |
|
depthcodec.o: depthcodec.h view.h fvect.h resolu.h rtio.h |
245 |
|
|
246 |
|
rcode_ident.o: lookup.h |
247 |
|
|
248 |
+ |
convertobj.o: paths.h rterror.h objutil.h |
249 |
+ |
|
250 |
|
objutil.o: objutil.h rterror.h rtio.h rtmath.h mat4.h fvect.h lookup.h |
251 |
+ |
|
252 |
+ |
objtriangulate.o: objutil.h rterror.h triangulate.h |
253 |
|
|
254 |
|
readwfobj.o: objutil.h rtio.h rterror.h fvect.h |
255 |
|
|