--- ray/src/common/Rmakefile 2014/03/04 17:06:13 2.71 +++ ray/src/common/Rmakefile 2025/06/03 21:31:51 2.94 @@ -1,4 +1,4 @@ -# RCSid: $Id: Rmakefile,v 2.71 2014/03/04 17:06:13 greg Exp $ +# RCSid: $Id: Rmakefile,v 2.94 2025/06/03 21:31:51 greg Exp $ # # Makefile for ray tracing library routines # @@ -7,9 +7,10 @@ OPT = -O MACH = -DBSD CFLAGS = $(MACH) $(OPT) CC = cc +AR = ar SPECIAL = -COMPAT = erf.o strcmp.o +COMPAT = erf.o strcmp.o strnstr.o strlcpy.o LIBDIR = /usr/local/lib/ray @@ -19,49 +20,71 @@ RTOBJ = cone.o face.o free_os.o instance.o readobj.o r PICOBJ = color.o header.o image.o lamps.o resolu.o rexpr.o spec_rgb.o \ colrops.o font.o tonemap.o tmapcolrs.o tmapluv.o tmaptiff.o \ - tmap16bit.o bmpfile.o falsecolor.o + tmap16bit.o bmpfile.o falsecolor.o depthcodec.o normcodec.o \ + idmap.o fltdepth.o jitteraperture.o UTLOBJ = ezxml.o ccolor.o ccyrgb.o bsdf.o bsdf_m.o bsdf_t.o loadbsdf.o \ - disk2square.o hilbert.o interp2d.o triangulate.o + disk2square.o hilbert.o interp2d.o triangulate.o data.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 dmessage.o fixargv0.o SYSOBJ = ealloc.o fdate.o portio.o myhostname.o $(COMPAT) +CPPOBJ = abitmap.o abitmapio.o + MGFOBJ = mgf_parser.o mgf_object.o mgf_xf.o mgf_context.o +WFOBJ = objutil.o objtriangulate.o readwfobj.o convertobj.o writewfobj.o + +REETZOBJ = g3affine.o g3flist.o g3sphere.o g3vector.o gbasic.o muc_randvar.o + OGLOBJ = rglfile.o rglmat.o rgldomat.o rglsurf.o rglinst.o rglsrc.o LIBFILES = tmesh.cal librtrad.a: $(RTOBJ) $(PICOBJ) $(UTLOBJ) $(STDOBJ) $(SYSOBJ) rm -f librtrad.a - ar rc librtrad.a $(RTOBJ) $(PICOBJ) $(UTLOBJ) $(STDOBJ) $(SYSOBJ) + $(AR) rc librtrad.a $(RTOBJ) $(PICOBJ) $(UTLOBJ) $(STDOBJ) $(SYSOBJ) -ranlib librtrad.a +libcpprad.a: $(CPPOBJ) + rm -f libcpprad.a + $(AR) rc libcpprad.a $(CPPOBJ) + libmgf.a: $(MGFOBJ) rm -f libmgf.a - ar rc libmgf.a $(MGFOBJ) + $(AR) rc libmgf.a $(MGFOBJ) -ranlib libmgf.a +libwfobj.a: $(WFOBJ) + rm -f libwfobj.a + $(AR) rc libwfobj.a $(WFOBJ) + -ranlib libwfobj.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 libcpprad.a libmgf.a libwfobj.a libreetz.a ../lib cd $(LIBDIR) && rm -f $(LIBFILES) cp -f $(LIBFILES) $(LIBDIR) -all: librtrad.a libmgf.a $(SPECIAL) +all: librtrad.a libcpprad.a libmgf.a libwfobj.a libreetz.a $(SPECIAL) clean: - rm -f *.o librtrad.a libmgf.a + rm -f *.o *.a ogl: $(OGLOBJ) rm -f librgl.a - ar rc librgl.a $(OGLOBJ) + $(AR) rc librgl.a $(OGLOBJ) -ranlib librgl.a mv -f librgl.a ../lib @@ -79,13 +102,16 @@ getlibpath.o: getlibpath.c tmapcolrs.o: tmapcolrs.c $(CC) $(CFLAGS) -DPCOND=\"pcond\" -c tmapcolrs.c -color.o colrops.o lamps.o spec_rgb.o: color.h +testBSDF: testBSDF.c bsdf.h rtio.h + $(CC) -L../lib $(CFLAGS) -o testBSDF testBSDF.c -lrtrad -lm +color.o colrops.o header.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 @@ -104,20 +130,22 @@ readobj.o readoct.o sceneio.o: otypes.h multisamp.o urand.o: random.h -cone.o face.o free_os.o image.o instance.o objset.o \ +cone.o data.o face.o free_os.o instance.o objset.o \ octree.o modobject.o readfargs.o otypes.o mesh.o \ readmesh.o readobj.o readoct.o sceneio.o: standard.h \ rtmisc.h rtio.h rtmath.h rterror.h fvect.h mat4.h tiff.h -image.o: view.h +image.o: view.h rtio.h rtmath.h mat4.h fvect.h rtio.h paths.h +jitteraperture.o: view.h rtmath.h mat4.h fvect.h rtio.h + caldefn.o calexpr.o calfunc.o calprnt.o: calcomp.h clip.o plocate.o: plocate.h font.o: font.h -fropen.o getpath.o image.o: paths.h +cvtcmd.o fixargv0.o font.o fropen.o getpath.o image.o: paths.h lookup.o: lookup.h @@ -125,6 +153,12 @@ loadvars.o: vars.h mesh.o readmesh.o: mesh.h lookup.h +dmessage.o abitmapio.o: dmessage.h + +abitmap.o abitmapio.o: abitmap.h tiff.h + +abitmapio.o: bmpfile.h + tonemap.o tmapcolrs.o tmapluv.o tmap16bit.o: tmprivat.h tonemap.h \ tiff.h color.h @@ -143,8 +177,8 @@ free_os.o: octree.h object.h otypes.h face.h cone.h in tmesh.o: tmesh.h fvect.h -fgetword.o fputword.o fgetval.o fgetline.o fdate.o unix_process.o \ -byteswap.o expandarg.o badarg.o xf.o: rtio.h +fgetword.o fputword.o fgetval.o fgetline.o fdate.o font.o \ +unix_process.o byteswap.o expandarg.o badarg.o xf.o: rtio.h expandarg.o: rtmisc.h @@ -186,3 +220,37 @@ 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 + +data.o: data.h platform.h paths.h color.h view.h resolu.h + +ezxml.o readmesh.o readobj.o readoct.o rglinst.o wordfile.o: platform.h + +depthcodec.o: depthcodec.h view.h fvect.h resolu.h rtio.h + +normcodec.o: normcodec.h rtmath.h mat4.h fvect.h resolu.h rtio.h + +idmap.o: idmap.h resolu.h platform.h rtio.h + +rcode_ident.o: lookup.h + +convertobj.o: paths.h rterror.h objutil.h + +objutil.o: objutil.h rterror.h rtio.h rtmath.h mat4.h fvect.h lookup.h + +objtriangulate.o: objutil.h rterror.h triangulate.h + +readwfobj.o: objutil.h rtio.h rterror.h fvect.h + +writewfobj.o: objutil.h rterror.h