--- ray/src/gen/Rmakefile 1990/12/15 15:00:54 1.9 +++ ray/src/gen/Rmakefile 2007/09/18 19:51:07 2.17 @@ -1,77 +1,110 @@ -# SCCSid "$SunId$ LBL" - +# RCSid: $Id: Rmakefile,v 2.17 2007/09/18 19:51:07 greg Exp $ # # Makefile for object generation programs # OPT = -O -MACH = -DBSD -DSTRUCTASSIGN -f68881 /usr/lib/f68881.il -DIEEE -CFLAGS = $(MACH) $(OPT) +MACH = -DBSD +CFLAGS = -I../common -I../rt -L../lib $(OPT) $(MACH) +CC = cc +MLIB = -lm -INSTDIR = /usr/local/ray +INSTDIR = /usr/local/bin +LIBDIR = /usr/local/lib/ray + PROGS = genbox gensky xform genblinds genrev genworm \ - gensurf genprism + gensurf genprism replmarks mkillum mksource genclock +LIBFILES = illum.cal rev.cal skybright.cal surf.cal clockface.hex \ + glaze1.cal glaze2.cal + all: $(PROGS) -install: $(PROGS) genpine.csh genwindow.csh +install: $(PROGS) $(LIBFILES) glaze.csh cp $(PROGS) $(INSTDIR) - install genpine.csh $(INSTDIR)/genpine - install genwindow.csh $(INSTDIR)/genwindow + cp glaze.csh $(INSTDIR)/glaze + chmod 755 $(INSTDIR)/glaze + cd $(LIBDIR) && rm -f $(LIBFILES) + cp $(LIBFILES) $(LIBDIR) +clean: + set nonomatch; rm -f $(PROGS) *.o core + genbeads: genbeads.o hermite3.o - cc $(CFLAGS) -o genbeads genbeads.o hermite3.o -lm + $(CC) $(CFLAGS) -o genbeads genbeads.o hermite3.o $(MLIB) genbox: genbox.o - cc $(CFLAGS) -o genbox genbox.o + $(CC) $(CFLAGS) -o genbox genbox.o -genmarble: genmarble.o random.h - cc $(CFLAGS) -o genmarble genmarble.o -lm +genmarble: genmarble.o ../common/random.h + $(CC) $(CFLAGS) -o genmarble genmarble.o $(MLIB) gensky: gensky.o sun.o - cc $(CFLAGS) -o gensky gensky.o sun.o -lm + $(CC) $(CFLAGS) -o gensky gensky.o sun.o $(MLIB) genblinds: genblinds.o - cc $(CFLAGS) -o genblinds genblinds.o -lm + $(CC) $(CFLAGS) -o genblinds genblinds.o $(MLIB) genprism: genprism.o - cc $(CFLAGS) -o genprism genprism.o + $(CC) $(CFLAGS) -o genprism genprism.o $(MLIB) -xform: xform.o xf.o mat4.o fgetline.o - cc $(CFLAGS) -o xform xform.o xf.o mat4.o fgetline.o -lm +xform: xform.o + $(CC) $(CFLAGS) -o xform xform.o -lrtrad $(MLIB) -genrev: genrev.o calexpr.o caldefn.o calfunc.o \ -ealloc.o savestr.o - cc $(CFLAGS) -o genrev genrev.o caldefn.o calexpr.o \ -calfunc.o ealloc.o savestr.o -lm +replmarks: replmarks.o + $(CC) $(CFLAGS) -o replmarks replmarks.o -lrtrad $(MLIB) -genworm: genworm.o calexpr.o caldefn.o calfunc.o \ -ealloc.o savestr.o fvect.o - cc $(CFLAGS) -o genworm genworm.o caldefn.o calexpr.o \ -calfunc.o ealloc.o savestr.o fvect.o -lm +mkillum: mkillum.o mkillum2.o mkillum3.o mkillum4.o + $(CC) $(CFLAGS) -o mkillum mkillum.o mkillum2.o mkillum3.o \ +mkillum4.o -lraycalls -lradiance -lrtrad $(MLIB) -gensurf: gensurf.o fvect.o calexpr.o caldefn.o calfunc.o \ -ealloc.o savestr.o - cc $(CFLAGS) -o gensurf gensurf.o caldefn.o calexpr.o \ -calfunc.o ealloc.o savestr.o fvect.o -lm +mksource: mksource.o + $(CC) $(CFLAGS) -o mksource mksource.o \ +-lraycalls -lradiance -lrtrad $(MLIB) +genrev: genrev.o + $(CC) $(CFLAGS) -o genrev genrev.o -lrtrad $(MLIB) + +gencatenary: gencat.o + $(CC) $(CFLAGS) -o gencatenary gencat.o -lrtrad $(MLIB) + +genworm: genworm.o + $(CC) $(CFLAGS) -o genworm genworm.o -lrtrad $(MLIB) + +gensurf: gensurf.o + $(CC) $(CFLAGS) -o gensurf gensurf.o -lrtrad $(MLIB) + +genclock: genclock.o + $(CC) $(CFLAGS) -o genclock genclock.o $(MLIB) + genbranch: genbranch.o - cc $(CFLAGS) -o genbranch genbranch.o -lm + $(CC) $(CFLAGS) -o genbranch genbranch.o $(MLIB) -calexpr.o: calexpr.c calcomp.h - cc $(CFLAGS) -c -DVARIABLE -DFUNCTION -DRCONST calexpr.c +mksource.o: ../common/random.h ../rt/ray.h ../common/octree.h \ +../common/object.h ../common/color.h \ +../common/standard.h ../common/rtmisc.h ../common/rtio.h \ +../common/rtmath.h ../common/mat4.h ../common/fvect.h \ +../common/rterror.h ../common/tifftypes.h -caldefn.o: caldefn.c calcomp.h - cc $(CFLAGS) -c -DFUNCTION caldefn.c +genworm.o replmarks.o: ../common/fvect.h -calfunc.o: calfunc.c calcomp.h - cc $(CFLAGS) -c -DVARIABLE -DBIGLIB calfunc.c +gensurf.o xform.o: ../common/standard.h \ +../common/rtmisc.h ../common/rtio.h \ +../common/rtmath.h ../common/rterror.h \ +../common/mat4.h ../common/fvect.h ../common/tifftypes.h -gensurf.o: standard.h mat4.h fvect.h +genworm.o genrev.o gensurf.o: ../common/resolu.h ../common/rterror.h -fvect.o genworm.o: fvect.h +xform.o: ../common/otypes.h ../common/object.h -mat4.o: mat4.h fvect.h +mkillum.o mkillum2.o mkillum3.o: mkillum.h ../common/otypes.h \ +../rt/ray.h ../common/octree.h \ +../common/object.h ../common/color.h \ +../common/standard.h ../common/rtmisc.h ../common/rtio.h \ +../common/rtmath.h ../common/mat4.h ../common/fvect.h \ +../common/rterror.h ../common/tifftypes.h -xform.o: standard.h mat4.h fvect.h otypes.h +gensky.o: ../common/color.h + +gensurf.o genworm.o genrev.o: ../common/calcomp.h