--- ray/src/common/Rmakefile 1991/08/22 11:55:30 1.15 +++ ray/src/common/Rmakefile 2003/03/10 19:38:19 2.37 @@ -1,51 +1,73 @@ +# RCSid: $Id: Rmakefile,v 2.37 2003/03/10 19:38:19 greg Exp $ # -# SCCSid "$SunId$ LBL" # Makefile for ray tracing library routines # -OPT = -O -pipe -MACH = -DSTRUCTASSIGN -DBSD -DIEEE -f68881 /usr/lib/libm.il +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 +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 PICOBJ = color.o header.o image.o lamps.o resolu.o rexpr.o spec_rgb.o \ - colrops.o + colrops.o font.o tonemap.o tmapcolrs.o tmapluv.o tmaptiff.o -STDOBJ = fgetline.o fropen.o linregr.o xf.o mat4.o fvect.o urand.o \ - urind.o peano.o calexpr.o caldefn.o calfunc.o calprnt.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 process.o getpath.o error.o savestr.o savqstr.o \ - fgetword.o words.o cputs.o wputs.o eputs.o quit.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 -SYSOBJ = ealloc.o bmalloc.o erf.o # frexp.o fwrite.o random.o bcopy.o +SYSOBJ = ealloc.o fdate.o portio.o myhostname.o $(COMPAT) -install: librt.a - mv librt.a ../lib +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: all + mv librt.a ../lib/librt.a + cd $(LIBDIR) ; rm -f $(LIBFILES) + cp $(LIBFILES) $(LIBDIR) + clean: - rm -f $(RTOBJ) $(PICOBJ) $(STDOBJ) $(SYSOBJ) librt.a + rm -f *.o librt.a -fropen.o: fropen.c - cc $(CFLAGS) -DDEFPATH=\":$(LIBDIR)\" -c fropen.c +ogl: $(OGLOBJ) + ar rc librgl.a $(OGLOBJ) + -ranlib librgl.a + mv librgl.a ../lib/librgl.a -calexpr.o: calexpr.c calcomp.h - cc $(CFLAGS) -DVARIABLE -DFUNCTION -DRCONST -c calexpr.c +x10: -caldefn.o: caldefn.c calcomp.h - cc $(CFLAGS) -DFUNCTION -c caldefn.c +aed: -calfunc.o: calfunc.c calcomp.h - cc $(CFLAGS) -DVARIABLE -DBIGLIB -c calfunc.c +sgi: -color.o colrops.o resolu.o spec_rgb.o: color.h +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 face.o: face.h @@ -56,20 +78,51 @@ instance.o: instance.h linregr.o: linregr.h -mat4.o: mat4.h fvect.h +mat4.o invmat4.o: mat4.h fvect.h cone.o face.o instance.o objset.o otypes.o \ -modobject.o readobj.o readoct.o: object.h +mesh.o modobject.o readfargs.o readmesh.o \ +readobj.o readoct.o: object.h -objset.o octree.o readoct.o: octree.h +mesh.o objset.o octree.o readmesh.o readoct.o: octree.h -cone.o modobject.o objset.o otypes.o readobj.o readoct.o: otypes.h +cone.o modobject.o otypes.o readobj.o readoct.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 error.o objset.o \ +octree.o modobject.o readfargs.o otypes.o dircode.o mesh.o \ +readmesh.o readobj.o readoct.o xf.o: standard.h mat4.h fvect.h image.o: view.h calprnt.o: calcomp.h + +process.o: vfork.h + +clip.o plocate.o: plocate.h + +font.o: font.h + +fropen.o getpath.o image.o: paths.h + +lookup.o mesh.o: lookup.h + +loadvars.o: vars.h + +mesh.o readmesh.o: mesh.h + +tonemap.o tmapcolrs.o tmapluv.o: tmprivat.h tonemap.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 + +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