--- ray/src/common/Rmakefile 1997/03/07 15:45:32 2.22 +++ ray/src/common/Rmakefile 2003/10/28 13:16:00 2.47 @@ -1,5 +1,5 @@ +# RCSid: $Id: Rmakefile,v 2.47 2003/10/28 13:16:00 greg Exp $ # -# SCCSid "$SunId$ LBL" # Makefile for ray tracing library routines # @@ -7,47 +7,66 @@ OPT = -O MACH = -DBSD CFLAGS = $(MACH) $(OPT) CC = cc +SPECIAL = COMPAT = bmalloc.o erf.o strcmp.o # frexp.o fwrite.o random.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 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 \ + loadvars.o tcos.o fputword.o chanvalue.o dircode.o paths.o SYSOBJ = ealloc.o fdate.o portio.o myhostname.o $(COMPAT) +OGLOBJ = rglfile.o rglmat.o rgldomat.o rglsurf.o rglinst.o rglsrc.o + +LIBFILES = tmesh.cal + +all: librt.a $(SPECIAL) + librt.a: $(RTOBJ) $(PICOBJ) $(STDOBJ) $(SYSOBJ) ar rc librt.a $(RTOBJ) $(PICOBJ) $(STDOBJ) $(SYSOBJ) -ranlib librt.a - -install: librt.a mv librt.a ../lib/librt.a +install: all + cd $(LIBDIR) && rm -f $(LIBFILES) + cp $(LIBFILES) $(LIBDIR) + clean: rm -f *.o librt.a -calexpr.o: calexpr.c calcomp.h - $(CC) $(CFLAGS) -DVARIABLE -DFUNCTION -DRCONST -c calexpr.c +ogl: $(OGLOBJ) + ar rc librgl.a $(OGLOBJ) + -ranlib librgl.a + mv librgl.a ../lib/librgl.a -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,22 +82,24 @@ 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 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 -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 @@ -89,3 +110,32 @@ 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 \ +tifftypes.h color.h + +tmapluv.o: uvcode.h tiffio.h tmaptiff.h tiff.h + +tonemap.o: tmerrmsg.h + +tmaptiff.o: tmprivat.h tmaptiff.h color.h tonemap.h tifftypes.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 \ +expandarg.o badarg.o xf.o: rtio.h + +expandarg.o: rtmisc.h + +dircode.o xf.o: rtmath.h mat4.h fvect.h + +error.o: rterror.h