| 1 |  | # | 
| 2 | < | # SCCSid "$SunId$ LBL" | 
| 2 | > | # SCCSid "$SunId$ SGI" | 
| 3 | > | # Radiance makefile for utility programs | 
| 4 |  | # | 
| 5 |  |  | 
| 6 | < | MACH = -f68881 /usr/lib/libm.il -DIEEE -DBSD -DSTRUCTASSIGN | 
| 6 | > | MACH = -DBSD | 
| 7 |  |  | 
| 8 |  | OPT = -O | 
| 9 |  |  | 
| 10 | < | CFLAGS = $(MACH) $(OPT) | 
| 10 | > | CFLAGS = $(MACH) $(OPT) -I../common -L../lib | 
| 11 |  |  | 
| 12 | < | INSTDIR = /lumen/lumen/ray/bin.sun3 | 
| 12 | > | CC = cc | 
| 13 |  |  | 
| 14 | < | PROGS = makedist swaprasheader findglare xglaresrc glarendx | 
| 14 | > | SPECIAL = | 
| 15 |  |  | 
| 16 | < | all:    $(PROGS) | 
| 16 | > | INSTDIR = /usr/local/bin | 
| 17 |  |  | 
| 18 | < | install:        all objview.csh objpict.csh proj.csh glare.csh dayfact.csh | 
| 18 | > | LIBDIR = /usr/local/lib/ray | 
| 19 | > |  | 
| 20 | > | PROGS = findglare xglaresrc glarendx rpiece rad ranimate vwright getinfo vwrays | 
| 21 | > |  | 
| 22 | > | all:    $(PROGS) $(SPECIAL) | 
| 23 | > |  | 
| 24 | > | install:        all objview.csh objpict.csh glare.csh dayfact.csh rlux.csh \ | 
| 25 | > | raddepend.csh trad.wsh objline.csh compamb.csh | 
| 26 |  | cp $(PROGS) $(INSTDIR) | 
| 27 |  | cp objview.csh $(INSTDIR)/objview | 
| 28 | + | cp objline.csh $(INSTDIR)/objline | 
| 29 |  | cp objpict.csh $(INSTDIR)/objpict | 
| 30 |  | cp glare.csh $(INSTDIR)/glare | 
| 31 |  | cp dayfact.csh $(INSTDIR)/dayfact | 
| 32 | + | cp debugcal.csh $(INSTDIR)/debugcal | 
| 33 | + | cp rlux.csh $(INSTDIR)/rlux | 
| 34 | + | cp raddepend.csh $(INSTDIR)/raddepend | 
| 35 | + | cp compamb.csh $(INSTDIR)/compamb | 
| 36 |  | chmod 755 $(INSTDIR)/objview $(INSTDIR)/objpict \ | 
| 37 | < | $(INSTDIR)/glare $(INSTDIR)/dayfact | 
| 37 | > | $(INSTDIR)/glare $(INSTDIR)/dayfact $(INSTDIR)/debugcal \ | 
| 38 | > | $(INSTDIR)/rlux $(INSTDIR)/raddepend $(INSTDIR)/objline \ | 
| 39 | > | $(INSTDIR)/compamb | 
| 40 | > | csh -f tradinstall.csh $(INSTDIR) $(LIBDIR)/tcl | 
| 41 |  |  | 
| 42 |  | clean: | 
| 43 |  | set nonomatch; rm -f *.o $(PROGS) core | 
| 44 |  |  | 
| 45 | + | ogl:    glrad | 
| 46 | + | cp glrad $(INSTDIR) | 
| 47 | + |  | 
| 48 | + | x10: | 
| 49 | + |  | 
| 50 | + | aed: | 
| 51 | + |  | 
| 52 | + | sgi: | 
| 53 | + |  | 
| 54 | + | sun: | 
| 55 | + |  | 
| 56 |  | scanner:        scanner.o | 
| 57 | < | cc $(CFLAGS) -o scanner scanner.o -lm | 
| 57 | > | $(CC) $(CFLAGS) -o scanner scanner.o -lm | 
| 58 |  |  | 
| 59 | < | makedist:       makedist.o fvect.o setscan.o | 
| 60 | < | cc $(CFLAGS) -o makedist makedist.o fvect.o setscan.o -lm | 
| 59 | > | makedist:       makedist.o setscan.o | 
| 60 | > | $(CC) $(CFLAGS) -o makedist makedist.o setscan.o -lrt -lm | 
| 61 |  |  | 
| 62 | < | findglare:      findglare.o glareval.o glaresrc.o color.o fvect.o image.o \ | 
| 63 | < | header.o resolu.o setscan.o linregr.o | 
| 64 | < | cc $(CFLAGS) -o findglare findglare.o glareval.o glaresrc.o \ | 
| 38 | < | color.o fvect.o image.o header.o resolu.o setscan.o linregr.o -lm | 
| 62 | > | findglare:      findglare.o glareval.o glaresrc.o setscan.o | 
| 63 | > | $(CC) $(CFLAGS) -o findglare findglare.o glareval.o glaresrc.o \ | 
| 64 | > | setscan.o -lrt -lm | 
| 65 |  |  | 
| 66 | < | glarendx:       glarendx.o image.o header.o erf.o fvect.o resolu.o | 
| 67 | < | cc $(CFLAGS) -o glarendx glarendx.o image.o header.o fvect.o \ | 
| 42 | < | erf.o resolu.o -lm | 
| 66 | > | glarendx:       glarendx.o | 
| 67 | > | $(CC) $(CFLAGS) -o glarendx glarendx.o -lrt -lm | 
| 68 |  |  | 
| 69 | < | xglaresrc:      xglaresrc.o fvect.o image.o resolu.o header.o x11findwind.o | 
| 70 | < | cc $(CFLAGS) -o xglaresrc xglaresrc.o fvect.o image.o \ | 
| 71 | < | header.o resolu.o x11findwind.o -lm -lX11 | 
| 69 | > | xglaresrc:      xglaresrc.o x11findwind.o | 
| 70 | > | $(CC) $(CFLAGS) -o xglaresrc xglaresrc.o \ | 
| 71 | > | x11findwind.o -lrt -lX11 -lm | 
| 72 |  |  | 
| 73 | + | rad:    rad.o | 
| 74 | + | $(CC) $(CFLAGS) -o rad rad.o -lrt -lm | 
| 75 | + |  | 
| 76 | + | ranimate:       ranimate.o netproc.o | 
| 77 | + | $(CC) $(CFLAGS) -o ranimate ranimate.o netproc.o -lrt -lm | 
| 78 | + |  | 
| 79 | + | rpiece: rpiece.o Version.o | 
| 80 | + | $(CC) $(CFLAGS) -o rpiece rpiece.o Version.o -lrt -lm | 
| 81 | + |  | 
| 82 | + | vwright:        vwright.o | 
| 83 | + | $(CC) $(CFLAGS) -o vwright vwright.o -lrt -lm | 
| 84 | + |  | 
| 85 | + | vwrays:         vwrays.o | 
| 86 | + | $(CC) $(CFLAGS) -o vwrays vwrays.o -lrt -lm | 
| 87 | + |  | 
| 88 | + | getinfo:        getinfo.o | 
| 89 | + | $(CC) $(CFLAGS) -o getinfo getinfo.o -lrt | 
| 90 | + |  | 
| 91 | + | glrad:  glrad.o | 
| 92 | + | $(CC) $(CFLAGS) -o glrad glrad.o -lrgl -lrt -lGLU -lGL -lX11 -lm | 
| 93 | + |  | 
| 94 |  | contour:        contour.o | 
| 95 | < | cc $(CFLAGS) -o contour contour.o -lm | 
| 95 | > | $(CC) $(CFLAGS) -o contour contour.o -lm | 
| 96 |  |  | 
| 97 |  | pranim: pranim.o client/libclient.a | 
| 98 | < | cc $(CFLAGS) -o pranim pranim.o \ | 
| 98 | > | $(CC) $(CFLAGS) -o pranim pranim.o \ | 
| 99 |  | client/libclient.a -lrpcsvc | 
| 100 |  |  | 
| 101 |  | t16anim:        t16anim.o client/libclient.a | 
| 102 | < | cc $(CFLAGS) -o t16anim t16anim.o \ | 
| 102 | > | $(CC) $(CFLAGS) -o t16anim t16anim.o \ | 
| 103 |  | client/libclient.a -lrpcsvc | 
| 104 |  |  | 
| 105 |  | t16anim.o pranim.o:     client/clnt.h | 
| 107 |  | setscan.o makedist.o:   setscan.h | 
| 108 |  |  | 
| 109 |  | findglare.o glareval.o \ | 
| 110 | < | glaresrc.o:     glare.h standard.h mat4.h fvect.h view.h color.h setscan.h | 
| 110 | > | glaresrc.o:     glare.h ../common/standard.h ../common/mat4.h \ | 
| 111 | > | ../common/fvect.h ../common/view.h ../common/color.h setscan.h | 
| 112 |  |  | 
| 113 | < | glaresrc.o linregr.o:   linregr.h | 
| 113 | > | glaresrc.o:     ../common/linregr.h | 
| 114 |  |  | 
| 115 | < | image.o xglaresrc.o:    standard.h mat4.h fvect.h view.h | 
| 115 | > | rpiece.o:       ../common/color.h ../common/view.h ../common/resolu.h | 
| 116 |  |  | 
| 117 | < | fvect.o:        fvect.h | 
| 117 | > | rad.o ranimate.o rpiece.o xglaresrc.o:  ../common/standard.h \ | 
| 118 | > | ../common/mat4.h ../common/fvect.h | 
| 119 |  |  | 
| 120 | < | resolu.o:       color.h | 
| 120 | > | xglaresrc.o:    ../common/view.h | 
| 121 |  |  | 
| 122 | < | swaprasheader.o:        rasterfile.h | 
| 122 | > | swaprasheader.o:        ../common/rasterfile.h | 
| 123 | > |  | 
| 124 | > | glareval.o xglaresrc.o: ../common/resolu.h | 
| 125 | > |  | 
| 126 | > | xglaresrc.o:    ../common/vfork.h | 
| 127 | > |  | 
| 128 | > | rad.o ranimate.o:       ../common/vars.h | 
| 129 | > |  | 
| 130 | > | rad.o:  ../common/paths.h | 
| 131 | > |  | 
| 132 | > | ranimate.o netproc.o:   netproc.h | 
| 133 | > |  | 
| 134 | > | netproc.o:      ../common/paths.h | 
| 135 | > |  | 
| 136 | > | rad.o ranimate.o:       ../common/view.h | 
| 137 | > |  | 
| 138 | > | glrad.o:        ../common/radogl.h \ | 
| 139 | > | ../common/standard.h ../common/mat4.h ../common/fvect.h \ | 
| 140 | > | ../common/color.h ../common/object.h ../common/otypes.h ../common/lookup.h | 
| 141 | > |  | 
| 142 | > | glrad.o:        glradicon.h ../common/view.h ../common/paths.h |