--- ray/src/common/Rmakefile 1996/02/07 16:36:01 2.20 +++ ray/src/common/Rmakefile 2011/04/24 19:39:21 2.65 @@ -1,5 +1,5 @@ +# RCSid: $Id: Rmakefile,v 2.65 2011/04/24 19:39:21 greg Exp $ # -# SCCSid "$SunId$ LBL" # Makefile for ray tracing library routines # @@ -7,47 +7,78 @@ OPT = -O MACH = -DBSD CFLAGS = $(MACH) $(OPT) CC = cc +SPECIAL = -COMPAT = bmalloc.o erf.o strcmp.o # frexp.o fwrite.o random.o +COMPAT = erf.o strcmp.o LIBDIR = /usr/local/lib/ray -RTOBJ = cone.o face.o instance.o readobj.o readoct.o otypes.o objset.o \ - octree.o readfargs.o modobject.o getlibpath.o +RTOBJ = cone.o face.o free_os.o instance.o readobj.o readoct.o otypes.o \ + objset.o octree.o readfargs.o modobject.o getlibpath.o \ + addobjnotify.o zeroes.o mesh.o readmesh.o tmesh.o sceneio.o PICOBJ = color.o header.o image.o lamps.o resolu.o rexpr.o spec_rgb.o \ - colrops.o font.o + colrops.o font.o tonemap.o tmapcolrs.o tmapluv.o tmaptiff.o \ + 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 + STDOBJ = fgetline.o fropen.o linregr.o xf.o mat4.o invmat4.o fvect.o urand.o \ - urind.o peano.o calexpr.o caldefn.o calfunc.o calprnt.o \ - multisamp.o process.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 cputs.o wputs.o eputs.o quit.o lookup.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 SYSOBJ = ealloc.o fdate.o portio.o myhostname.o $(COMPAT) -librt.a: $(RTOBJ) $(PICOBJ) $(STDOBJ) $(SYSOBJ) - ar rc librt.a $(RTOBJ) $(PICOBJ) $(STDOBJ) $(SYSOBJ) - -ranlib librt.a +MGFOBJ = mgf_parser.o mgf_object.o mgf_xf.o mgf_context.o -install: librt.a - mv librt.a ../lib +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) + -ranlib librtrad.a + +libmgf.a: $(MGFOBJ) + rm -f libmgf.a + ar rc libmgf.a $(MGFOBJ) + -ranlib libmgf.a + +install: all + mv -f librtrad.a libmgf.a ../lib + cd $(LIBDIR) && rm -f $(LIBFILES) + cp -f $(LIBFILES) $(LIBDIR) + +all: librtrad.a libmgf.a $(SPECIAL) + clean: - rm -f *.o librt.a + rm -f *.o librtrad.a libmgf.a -calexpr.o: calexpr.c calcomp.h - $(CC) $(CFLAGS) -DVARIABLE -DFUNCTION -DRCONST -c calexpr.c +ogl: $(OGLOBJ) + rm -f librgl.a + ar rc librgl.a $(OGLOBJ) + -ranlib librgl.a + mv -f librgl.a ../lib -caldefn.o: caldefn.c calcomp.h - $(CC) $(CFLAGS) -DFUNCTION -c caldefn.c +x10: -calfunc.o: calfunc.c calcomp.h - $(CC) $(CFLAGS) -DVARIABLE -DBIGLIB -c calfunc.c +aed: +sgi: + +sun: + getlibpath.o: getlibpath.c $(CC) $(CFLAGS) -DDEFPATH=\":$(LIBDIR)\" -c getlibpath.c +tmapcolrs.o: tmapcolrs.c + $(CC) $(CFLAGS) -DPCOND=\"pcond\" -c tmapcolrs.c + color.o colrops.o lamps.o spec_rgb.o: color.h cone.o: cone.h @@ -63,25 +94,25 @@ linregr.o: linregr.h mat4.o invmat4.o: mat4.h fvect.h cone.o face.o instance.o objset.o otypes.o \ -modobject.o readfargs.o readobj.o readoct.o: object.h +mesh.o modobject.o readfargs.o readmesh.o \ +readobj.o readoct.o sceneio.o: object.h -objset.o octree.o readoct.o: octree.h +mesh.o objset.o octree.o readmesh.o readoct.o sceneio.o: octree.h -cone.o modobject.o objset.o otypes.o readobj.o readoct.o: otypes.h +cone.o mesh.o modobject.o otypes.o \ +readobj.o readoct.o sceneio.o: otypes.h -urand.o: random.h +multisamp.o urand.o: random.h -cone.o face.o image.o instance.o error.o objset.o octree.o modobject.o \ -otypes.o readobj.o readoct.o xf.o: standard.h mat4.h fvect.h +cone.o face.o free_os.o image.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 -readfargs.o: fvect.h - image.o: view.h -calprnt.o: calcomp.h +caldefn.o calexpr.o calfunc.o calprnt.o: calcomp.h -process.o: vfork.h - clip.o plocate.o: plocate.h font.o: font.h @@ -89,3 +120,66 @@ font.o: font.h fropen.o getpath.o image.o: paths.h lookup.o: lookup.h + +loadvars.o: vars.h + +mesh.o readmesh.o: mesh.h lookup.h + +tonemap.o tmapcolrs.o tmapluv.o tmap16bit.o: tmprivat.h tonemap.h \ +tiff.h color.h + +tmapluv.o: tiffio.h tmaptiff.h tiff.h + +falsecolor.o: falsecolor.h tmprivat.h tonemap.h color.h tiff.h + +tonemap.o: tmerrmsg.h + +tmaptiff.o: tmprivat.h tmaptiff.h color.h tonemap.h tiff.h + +rglfile.o rglmat.o rgldomat.o rglsurf.o rglinst.o rglsrc.o: radogl.h \ +standard.h mat4.h fvect.h color.h object.h otypes.h lookup.h + +free_os.o: octree.h object.h otypes.h face.h cone.h instance.h + +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 + +expandarg.o: rtmisc.h + +dircode.o xf.o: rtmath.h mat4.h fvect.h tiff.h + +error.o: rterror.h + +bmpfile.o: bmpfile.h tiff.h + +header.o readmesh.o readoct.o resolu.o rglinst.o tmapcolrs.o: resolu.h + +ezxml.o bsdf.o bsdf_m.o bsdf_t.o: ezxml.h + +bsdf_m.o bsdf_t.o: rtio.h + +bsdf.o: paths.h + +bsdf.o: bsdf_m.h bsdf_t.h hilbert.h fvect.h + +bsdf.o: bsdf.h standard.h rtmisc.h rtio.h rtmath.h mat4.h rterror.h + +bsdf.o bsdf_m.o bsdf_t.o ccolor.o: ccolor.h + +mgf_parser.o mgf_context.o mgf_xf.o mgf_object.o: mgf_parser.h ccolor.h + +ccyrgb.o: ccolor.h color.h + +mgf_parser.o mgf_context.o: lookup.h + +mgf_parser.o: mgf_mesg.h + +bsdf_m.o: bsdf.h bsdf_m.h + +bsdf_t.o: bsdf.h bsdf_t.h hilbert.h + +hilbert.o: hilbert.h + +loadbsdf.o: bsdf.h rtio.h rterror.h paths.h