--- ray/src/cv/Rmakefile 1994/04/13 14:08:53 2.6 +++ ray/src/cv/Rmakefile 1994/06/22 12:35:56 2.7 @@ -18,7 +18,7 @@ INSTDIR = /usr/local/bin LIBDIR = /usr/local/lib/ray -PROGS = thf2rad ies2rad arch2rad nff2rad lampcolor tmesh2rad obj2rad +PROGS = thf2rad ies2rad arch2rad nff2rad lampcolor tmesh2rad obj2rad mgf2rad LIBFILES = source.cal tilt.cal lamp.tab tmesh.cal @@ -47,16 +47,31 @@ nff2rad: nff2rad.o lampcolor: lampcolor.o $(CC) $(CFLAGS) -o lampcolor lampcolor.o -lrt -tmesh2rad: tmesh2rad.o - $(CC) $(CFLAGS) -o tmesh2rad tmesh2rad.o -lrt $(MLIB) +tmesh2rad: tmesh2rad.o tmesh.o + $(CC) $(CFLAGS) -o tmesh2rad tmesh2rad.o tmesh.o -lrt $(MLIB) -obj2rad: obj2rad.o trans.o - $(CC) $(CFLAGS) -o obj2rad obj2rad.o trans.o -lrt $(MLIB) +obj2rad: obj2rad.o trans.o tmesh.o + $(CC) $(CFLAGS) -o obj2rad obj2rad.o trans.o tmesh.o -lrt $(MLIB) +mgf2rad: mgf2rad.o ../lib/libmgf.a + $(CC) $(CFLAGS) -o mgf2rad mgf2rad.o tmesh.o -lmgf -lrt $(MLIB) + +../lib/libmgf.a: + cd mgflib ; \ + make libmgf.a CFLAGS="$(OPT) $(MACH) '-DMEM_PTR=char *' -DNOPROTO" ; \ + mv libmgf.a ../../lib + +mgf2rad.o: mgflib/parser.h tmesh.h + arch2rad.o trans.o: trans.h ies2rad.o lampcolor.o: ../common/color.h ies2rad.o: ../common/paths.h -tmesh2rad.o: ../common/standard.h ../common/mat4.h ../common/fvect.h +obj2rad.o tmesh2rad.o: tmesh.h \ +../common/standard.h ../common/mat4.h ../common/fvect.h + +obj2rad.o: trans.h + +tmesh.o: tmesh.h ../common/fvect.h