| 2 |  | # SCCSid "$SunId$ LBL" | 
| 3 |  | # | 
| 4 |  |  | 
| 5 | < | MACH = -f68881 /usr/lib/libm.il -DIEEE -DBSD -DSTRUCTASSIGN | 
| 5 | > | MACH = -DBSD | 
| 6 |  |  | 
| 7 |  | OPT = -O | 
| 8 |  |  | 
| 9 | < | CFLAGS = $(MACH) $(OPT) | 
| 9 | > | CFLAGS = $(MACH) $(OPT) -I../common -L../lib | 
| 10 |  |  | 
| 11 | < | INSTDIR = /lumen/lumen/ray/bin.sun3 | 
| 11 | > | CC = cc | 
| 12 |  |  | 
| 13 | < | PROGS = makedist swaprasheader findglare | 
| 13 | > | INSTDIR = /usr/local/bin | 
| 14 |  |  | 
| 15 | + | PROGS = findglare xglaresrc glarendx rpiece rad | 
| 16 | + |  | 
| 17 |  | all:    $(PROGS) | 
| 18 |  |  | 
| 19 | < | install:        all objview.csh objpict.csh proj.csh | 
| 19 | > | install:        all objview.csh objpict.csh proj.csh glare.csh dayfact.csh \ | 
| 20 | > | rlux.csh | 
| 21 |  | cp $(PROGS) $(INSTDIR) | 
| 22 |  | cp objview.csh $(INSTDIR)/objview | 
| 23 |  | cp objpict.csh $(INSTDIR)/objpict | 
| 24 | < | chmod 755 $(INSTDIR)/objview $(INSTDIR)/objpict | 
| 24 | > | cp glare.csh $(INSTDIR)/glare | 
| 25 | > | cp dayfact.csh $(INSTDIR)/dayfact | 
| 26 | > | cp debugcal.csh $(INSTDIR)/debugcal | 
| 27 | > | cp rlux.csh $(INSTDIR)/rlux | 
| 28 | > | chmod 755 $(INSTDIR)/objview $(INSTDIR)/objpict \ | 
| 29 | > | $(INSTDIR)/glare $(INSTDIR)/dayfact $(INSTDIR)/debugcal \ | 
| 30 | > | $(INSTDIR)/rlux | 
| 31 |  |  | 
| 32 |  | clean: | 
| 33 | < | rm -f *.o $(PROGS) core | 
| 33 | > | set nonomatch; rm -f *.o $(PROGS) core | 
| 34 |  |  | 
| 35 |  | scanner:        scanner.o | 
| 36 | < | cc $(CFLAGS) -o scanner scanner.o -lm | 
| 36 | > | $(CC) $(CFLAGS) -o scanner scanner.o -lm | 
| 37 |  |  | 
| 38 | < | makedist:       makedist.o fvect.o setscan.o | 
| 39 | < | cc $(CFLAGS) -o makedist makedist.o fvect.o setscan.o -lm | 
| 38 | > | makedist:       makedist.o setscan.o | 
| 39 | > | $(CC) $(CFLAGS) -o makedist makedist.o setscan.o -lrt -lm | 
| 40 |  |  | 
| 41 | < | findglare:      findglare.o glareval.o glaresrc.o color.o fvect.o image.o \ | 
| 42 | < | header.o resolu.o setscan.o | 
| 43 | < | cc $(CFLAGS) -o findglare findglare.o glareval.o glaresrc.o \ | 
| 35 | < | color.o fvect.o image.o header.o resolu.o setscan.o -lm | 
| 41 | > | findglare:      findglare.o glareval.o glaresrc.o setscan.o | 
| 42 | > | $(CC) $(CFLAGS) -o findglare findglare.o glareval.o glaresrc.o \ | 
| 43 | > | setscan.o -lrt -lm | 
| 44 |  |  | 
| 45 | + | glarendx:       glarendx.o | 
| 46 | + | $(CC) $(CFLAGS) -o glarendx glarendx.o -lrt -lm | 
| 47 | + |  | 
| 48 | + | xglaresrc:      xglaresrc.o x11findwind.o | 
| 49 | + | $(CC) $(CFLAGS) -o xglaresrc xglaresrc.o \ | 
| 50 | + | x11findwind.o -lrt -lX11 -lm | 
| 51 | + |  | 
| 52 | + | rad:    rad.o | 
| 53 | + | $(CC) $(CFLAGS) -o rad rad.o -lrt -lm | 
| 54 | + |  | 
| 55 | + | rpiece: rpiece.o Version.o | 
| 56 | + | $(CC) $(CFLAGS) -o rpiece rpiece.o Version.o -lrt -lm | 
| 57 | + |  | 
| 58 |  | contour:        contour.o | 
| 59 | < | cc $(CFLAGS) -o contour contour.o -lm | 
| 59 | > | $(CC) $(CFLAGS) -o contour contour.o -lm | 
| 60 |  |  | 
| 61 |  | pranim: pranim.o client/libclient.a | 
| 62 | < | cc $(CFLAGS) -o pranim pranim.o \ | 
| 62 | > | $(CC) $(CFLAGS) -o pranim pranim.o \ | 
| 63 |  | client/libclient.a -lrpcsvc | 
| 64 |  |  | 
| 65 |  | t16anim:        t16anim.o client/libclient.a | 
| 66 | < | cc $(CFLAGS) -o t16anim t16anim.o \ | 
| 66 | > | $(CC) $(CFLAGS) -o t16anim t16anim.o \ | 
| 67 |  | client/libclient.a -lrpcsvc | 
| 68 |  |  | 
| 69 |  | t16anim.o pranim.o:     client/clnt.h | 
| 71 |  | setscan.o makedist.o:   setscan.h | 
| 72 |  |  | 
| 73 |  | findglare.o glareval.o \ | 
| 74 | < | glaresrc.o:     glare.h standard.h mat4.h fvect.h view.h color.h setscan.h | 
| 74 | > | glaresrc.o:     glare.h ../common/standard.h ../common/mat4.h \ | 
| 75 | > | ../common/fvect.h ../common/view.h ../common/color.h setscan.h | 
| 76 |  |  | 
| 77 | < | image.o:        view.h | 
| 77 | > | glaresrc.o:     ../common/linregr.h | 
| 78 |  |  | 
| 79 | < | fvect.o:        fvect.h | 
| 79 | > | rpiece.o:       ../common/color.h ../common/view.h ../common/resolu.h | 
| 80 |  |  | 
| 81 | < | resolu.o:       color.h | 
| 81 | > | rad.o rpiece.o xglaresrc.o:     ../common/standard.h \ | 
| 82 | > | ../common/mat4.h ../common/fvect.h | 
| 83 | > |  | 
| 84 | > | xglaresrc.o:    ../common/view.h | 
| 85 | > |  | 
| 86 | > | swaprasheader.o:        ../common/rasterfile.h | 
| 87 | > |  | 
| 88 | > | glareval.o xglaresrc.o: ../common/resolu.h | 
| 89 | > |  | 
| 90 | > | xglaresrc.o:    ../common/vfork.h |