--- ray/src/common/Rmakefile 2014/03/04 17:06:13 2.71 +++ ray/src/common/Rmakefile 2016/02/03 18:33:18 2.75 @@ -1,4 +1,4 @@ -# RCSid: $Id: Rmakefile,v 2.71 2014/03/04 17:06:13 greg Exp $ +# RCSid: $Id: Rmakefile,v 2.75 2016/02/03 18:33:18 greg Exp $ # # Makefile for ray tracing library routines # @@ -29,12 +29,15 @@ STDOBJ = fgetline.o fropen.o linregr.o xf.o mat4.o inv unix_process.o process.o gethomedir.o getpath.o error.o savestr.o \ savqstr.o badarg.o fgetword.o words.o expandarg.o wordfile.o fgetval.o \ clip.o plocate.o eputs.o wputs.o quit.o lookup.o bmalloc.o \ - loadvars.o tcos.o fputword.o chanvalue.o dircode.o paths.o byteswap.o + loadvars.o tcos.o fputword.o chanvalue.o dircode.o paths.o byteswap.o \ + cvtcmd.o SYSOBJ = ealloc.o fdate.o portio.o myhostname.o $(COMPAT) MGFOBJ = mgf_parser.o mgf_object.o mgf_xf.o mgf_context.o +REETZOBJ = g3affine.o g3flist.o g3sphere.o g3vector.o gbasic.o maxheap.o + OGLOBJ = rglfile.o rglmat.o rgldomat.o rglsurf.o rglinst.o rglsrc.o LIBFILES = tmesh.cal @@ -49,12 +52,17 @@ libmgf.a: $(MGFOBJ) ar rc libmgf.a $(MGFOBJ) -ranlib libmgf.a +libreetz.a: $(REETZOBJ) + rm -f libreetz.a + ar rc libreetz.a $(REETZOBJ) + -ranlib libreetz.a + install: all - mv -f librtrad.a libmgf.a ../lib + mv -f librtrad.a libmgf.a libreetz.a ../lib cd $(LIBDIR) && rm -f $(LIBFILES) cp -f $(LIBFILES) $(LIBDIR) -all: librtrad.a libmgf.a $(SPECIAL) +all: librtrad.a libmgf.a libreetz.a $(SPECIAL) clean: rm -f *.o librtrad.a libmgf.a @@ -79,13 +87,16 @@ getlibpath.o: getlibpath.c tmapcolrs.o: tmapcolrs.c $(CC) $(CFLAGS) -DPCOND=\"pcond\" -c tmapcolrs.c +testBSDF: testBSDF.c bsdf.h rtio.h + $(CC) -L../lib $(CFLAGS) -o testBSDF testBSDF.c -lrtrad -lm + color.o colrops.o lamps.o spec_rgb.o: color.h cone.o: cone.h face.o: face.h -fvect.o: fvect.h +fvect.o: fvect.h random.h instance.o: instance.h @@ -117,7 +128,7 @@ clip.o plocate.o: plocate.h font.o: font.h -fropen.o getpath.o image.o: paths.h +cvtcmd.o fropen.o getpath.o image.o: paths.h lookup.o: lookup.h @@ -186,3 +197,15 @@ triangulate.o: triangulate.h process.o readobj.o readoct.o rglfile.o \ tmapcolrs.o unix_process.o win_process.o: rtprocess.h + +gbasic.o: gbasic.h + +g3flist.o g3affine.o g3sphere.o g3vector.o: g3vector.h gbasic.h fvect.h + +g3affine.o: g3affine.h + +g3affine.o g3sphere.o: g3sphere.h + +g3flist.o: g3flist.h + +maxheap.o: maxheap.h