--- ray/src/common/Rmakefile 2011/06/23 16:00:37 2.66 +++ ray/src/common/Rmakefile 2018/01/17 22:36:44 2.78 @@ -1,4 +1,4 @@ -# RCSid: $Id: Rmakefile,v 2.66 2011/06/23 16:00:37 greg Exp $ +# RCSid: $Id: Rmakefile,v 2.78 2018/01/17 22:36:44 greg Exp $ # # Makefile for ray tracing library routines # @@ -9,7 +9,7 @@ CFLAGS = $(MACH) $(OPT) CC = cc SPECIAL = -COMPAT = erf.o strcmp.o +COMPAT = erf.o strcmp.o strlcpy.o LIBDIR = /usr/local/lib/ray @@ -22,19 +22,22 @@ PICOBJ = color.o header.o image.o lamps.o resolu.o rex tmap16bit.o bmpfile.o falsecolor.o UTLOBJ = ezxml.o ccolor.o ccyrgb.o bsdf.o bsdf_m.o bsdf_t.o loadbsdf.o \ - disk2square.o hilbert.o + disk2square.o hilbert.o interp2d.o triangulate.o STDOBJ = fgetline.o fropen.o linregr.o xf.o mat4.o invmat4.o fvect.o urand.o \ urind.o calexpr.o caldefn.o calfunc.o calprnt.o biggerlib.o multisamp.o \ 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 muc_randvar.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 @@ -148,7 +159,7 @@ byteswap.o expandarg.o badarg.o xf.o: rtio.h expandarg.o: rtmisc.h -dircode.o xf.o: rtmath.h mat4.h fvect.h tiff.h +dircode.o interp2d.o xf.o: rtmath.h mat4.h fvect.h tiff.h error.o: rterror.h @@ -160,7 +171,7 @@ ezxml.o bsdf.o bsdf_m.o bsdf_t.o: ezxml.h bsdf_m.o bsdf_t.o: rtio.h -bsdf.o: bsdf.h fvect.h bsdf_m.h bsdf_t.h hilbert.h ezxml.h fvect.h +bsdf.o: bsdf.h fvect.h bsdf_m.h bsdf_t.h hilbert.h ezxml.h bsdf.o bsdf_m.o bsdf_t.o ccolor.o: ccolor.h @@ -179,3 +190,24 @@ bsdf_t.o: bsdf.h bsdf_t.h hilbert.h hilbert.o: hilbert.h loadbsdf.o: bsdf.h rtio.h rterror.h paths.h + +interp2d.o: interp2d.h + +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 + +ezxml.o readmesh.o readobj.o readoct.o rglinst.o wordfile.o: platform.h