--- ray/src/cv/Rmakefile 1992/09/08 10:05:15 2.3 +++ ray/src/cv/Rmakefile 1994/06/22 12:35:56 2.7 @@ -12,13 +12,15 @@ CFLAGS = $(OPT) $(MACH) -I../common -L../lib CC = cc +MLIB = -lm + INSTDIR = /usr/local/bin LIBDIR = /usr/local/lib/ray -PROGS = thf2rad ies2rad arch2rad nff2rad lampcolor +PROGS = thf2rad ies2rad arch2rad nff2rad lampcolor tmesh2rad obj2rad mgf2rad -LIBFILES = source.cal tilt.cal lamp.tab +LIBFILES = source.cal tilt.cal lamp.tab tmesh.cal all: $(PROGS) @@ -45,8 +47,31 @@ nff2rad: nff2rad.o lampcolor: lampcolor.o $(CC) $(CFLAGS) -o lampcolor lampcolor.o -lrt +tmesh2rad: tmesh2rad.o tmesh.o + $(CC) $(CFLAGS) -o tmesh2rad tmesh2rad.o tmesh.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 + +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