| 1 | + | # RCSid: $Id$ | 
| 2 |  | # | 
| 3 | < | # SCCSid "$SunId$ LBL" | 
| 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 = -I../common -I../rt -L../lib $(OPT) $(MACH) | 
| 11 |  |  | 
| 12 | < | INSTDIR = /lumen/lumen/ray/bin.sun3 | 
| 12 | > | MLIB = -lm | 
| 13 |  |  | 
| 14 | < | PROGS = makedist swaprasheader findglare xglaresrc | 
| 14 | > | CC = cc | 
| 15 |  |  | 
| 16 | + | SPECIAL = | 
| 17 | + |  | 
| 18 | + | INSTDIR = /usr/local/bin | 
| 19 | + |  | 
| 20 | + | LIBDIR = /usr/local/lib/ray | 
| 21 | + |  | 
| 22 | + | PROGS = findglare glarendx rpiece rad ranimate ranimove vwright getinfo \ | 
| 23 | + | vwrays xglaresrc rtcontrib | 
| 24 | + |  | 
| 25 |  | all:    $(PROGS) | 
| 26 |  |  | 
| 27 | < | install:        all objview.csh objpict.csh proj.csh | 
| 27 | > | install:        all $(SPECIAL) objview.csh objpict.csh glare.csh dayfact.csh \ | 
| 28 | > | rlux.csh raddepend.csh trad.wsh objline.csh compamb.csh vinfo.csh \ | 
| 29 | > | genambpos.csh fieldcomb.csh | 
| 30 |  | cp $(PROGS) $(INSTDIR) | 
| 31 |  | cp objview.csh $(INSTDIR)/objview | 
| 32 | + | cp objline.csh $(INSTDIR)/objline | 
| 33 |  | cp objpict.csh $(INSTDIR)/objpict | 
| 34 | < | chmod 755 $(INSTDIR)/objview $(INSTDIR)/objpict | 
| 34 | > | cp glare.csh $(INSTDIR)/glare | 
| 35 | > | cp dayfact.csh $(INSTDIR)/dayfact | 
| 36 | > | cp debugcal.csh $(INSTDIR)/debugcal | 
| 37 | > | cp rlux.csh $(INSTDIR)/rlux | 
| 38 | > | cp raddepend.csh $(INSTDIR)/raddepend | 
| 39 | > | cp compamb.csh $(INSTDIR)/compamb | 
| 40 | > | cp vinfo.csh $(INSTDIR)/vinfo | 
| 41 | > | cp genambpos.csh $(INSTDIR)/genambpos | 
| 42 | > | cp fieldcomb.csh $(INSTDIR)/fieldcomb | 
| 43 | > | chmod 755 $(INSTDIR)/objview $(INSTDIR)/objpict \ | 
| 44 | > | $(INSTDIR)/glare $(INSTDIR)/dayfact $(INSTDIR)/debugcal \ | 
| 45 | > | $(INSTDIR)/rlux $(INSTDIR)/raddepend $(INSTDIR)/objline \ | 
| 46 | > | $(INSTDIR)/compamb $(INSTDIR)/vinfo $(INSTDIR)/genambpos \ | 
| 47 | > | $(INSTDIR)/fieldcomb | 
| 48 | > | csh -f tradinstall.csh $(INSTDIR) $(LIBDIR)/tcl | 
| 49 |  |  | 
| 50 |  | clean: | 
| 51 | < | set nonomatch; rm -f *.o $(PROGS) core | 
| 51 | > | set nonomatch; rm -f *.o $(PROGS) glrad core Version.c x11findwind.c | 
| 52 |  |  | 
| 53 | < | scanner:        scanner.o | 
| 54 | < | cc $(CFLAGS) -o scanner scanner.o -lm | 
| 53 | > | ogl:    glrad | 
| 54 | > | cp glrad $(INSTDIR) | 
| 55 |  |  | 
| 56 | < | makedist:       makedist.o fvect.o setscan.o | 
| 30 | < | cc $(CFLAGS) -o makedist makedist.o fvect.o setscan.o -lm | 
| 56 | > | sgi: | 
| 57 |  |  | 
| 58 | < | findglare:      findglare.o glareval.o glaresrc.o color.o fvect.o image.o \ | 
| 33 | < | header.o resolu.o setscan.o | 
| 34 | < | cc $(CFLAGS) -o findglare findglare.o glareval.o glaresrc.o \ | 
| 35 | < | color.o fvect.o image.o header.o resolu.o setscan.o -lm | 
| 58 | > | sun: | 
| 59 |  |  | 
| 60 | < | xglaresrc:      xglaresrc.o fvect.o image.o resolu.o header.o | 
| 61 | < | cc $(CFLAGS) -o xglaresrc xglaresrc.o fvect.o image.o \ | 
| 62 | < | header.o resolu.o -lm -lX11 | 
| 60 | > | findglare:      findglare.o glareval.o glaresrc.o setscan.o | 
| 61 | > | $(CC) $(CFLAGS) -o findglare findglare.o glareval.o glaresrc.o \ | 
| 62 | > | setscan.o -lrtrad $(MLIB) | 
| 63 |  |  | 
| 64 | < | contour:        contour.o | 
| 65 | < | cc $(CFLAGS) -o contour contour.o -lm | 
| 64 | > | glarendx:       glarendx.o | 
| 65 | > | $(CC) $(CFLAGS) -o glarendx glarendx.o -lrtrad $(MLIB) | 
| 66 |  |  | 
| 67 | < | pranim: pranim.o client/libclient.a | 
| 68 | < | cc $(CFLAGS) -o pranim pranim.o \ | 
| 69 | < | client/libclient.a -lrpcsvc | 
| 67 | > | xglaresrc:      xglaresrc.o x11findwind.o | 
| 68 | > | $(CC) $(CFLAGS) -o xglaresrc xglaresrc.o \ | 
| 69 | > | x11findwind.o -lrtrad -lX11 $(MLIB) | 
| 70 |  |  | 
| 71 | < | t16anim:        t16anim.o client/libclient.a | 
| 72 | < | cc $(CFLAGS) -o t16anim t16anim.o \ | 
| 50 | < | client/libclient.a -lrpcsvc | 
| 71 | > | rad:    rad.o | 
| 72 | > | $(CC) $(CFLAGS) -o rad rad.o -lrtrad $(MLIB) | 
| 73 |  |  | 
| 74 | < | t16anim.o pranim.o:     client/clnt.h | 
| 74 | > | ranimate:       ranimate.o netproc.o | 
| 75 | > | $(CC) $(CFLAGS) -o ranimate ranimate.o netproc.o -lrtrad $(MLIB) | 
| 76 |  |  | 
| 77 | < | setscan.o makedist.o:   setscan.h | 
| 77 | > | ranimove:       ranimove.o ranimove1.o ranimove2.o | 
| 78 | > | $(CC) $(CFLAGS) -o ranimove ranimove.o ranimove1.o ranimove2.o \ | 
| 79 | > | -lraycalls -lradiance -lrtrad $(MLIB) | 
| 80 |  |  | 
| 81 | + | rpiece: rpiece.o Version.o | 
| 82 | + | $(CC) $(CFLAGS) -o rpiece rpiece.o Version.o -lrtrad $(MLIB) | 
| 83 | + |  | 
| 84 | + | rtcontrib:      rtcontrib.o Version.o | 
| 85 | + | $(CC) $(CFLAGS) -o rtcontrib rtcontrib.o Version.o -lrtrad $(MLIB) | 
| 86 | + |  | 
| 87 | + | vwright:        vwright.o | 
| 88 | + | $(CC) $(CFLAGS) -o vwright vwright.o -lrtrad $(MLIB) | 
| 89 | + |  | 
| 90 | + | vwrays:         vwrays.o | 
| 91 | + | $(CC) $(CFLAGS) -o vwrays vwrays.o -lrtrad $(MLIB) | 
| 92 | + |  | 
| 93 | + | getinfo:        getinfo.o | 
| 94 | + | $(CC) $(CFLAGS) -o getinfo getinfo.o -lrtrad | 
| 95 | + |  | 
| 96 | + | glrad:  glrad.o | 
| 97 | + | $(CC) $(CFLAGS) -o glrad glrad.o -lrgl -lrtrad -lGLU -lGL \ | 
| 98 | + | -lX11 -lXext | 
| 99 | + |  | 
| 100 | + | setscan.o:      setscan.h | 
| 101 | + |  | 
| 102 |  | findglare.o glareval.o \ | 
| 103 | < | glaresrc.o:     glare.h standard.h mat4.h fvect.h view.h color.h setscan.h | 
| 103 | > | glaresrc.o:     glare.h ../common/standard.h \ | 
| 104 | > | ../common/rtmisc.h ../common/rtio.h \ | 
| 105 | > | ../common/rtmath.h ../common/mat4.h ../common/fvect.h \ | 
| 106 | > | ../common/rterror.h ../common/tifftypes.h \ | 
| 107 | > | ../common/view.h ../common/color.h setscan.h | 
| 108 |  |  | 
| 109 | < | image.o xglaresrc.o:    standard.h mat4.h fvect.h view.h | 
| 109 | > | glaresrc.o:     ../common/linregr.h | 
| 110 |  |  | 
| 111 | < | fvect.o:        fvect.h | 
| 111 | > | rpiece.o:       ../common/color.h ../common/view.h ../common/resolu.h | 
| 112 |  |  | 
| 113 | < | resolu.o:       color.h | 
| 113 | > | rtcontrib.o:    ../common/platform.h ../common/rtprocess.h \ | 
| 114 | > | ../common/color.h ../common/resolu.h ../common/lookup.h \ | 
| 115 | > | ../common/calcomp.h ../common/selcall.h | 
| 116 |  |  | 
| 117 | < | swaprasheader.o:        rasterfile.h | 
| 117 | > | rad.o ranimate.o rpiece.o rtcontrib.o xglaresrc.o:      ../common/standard.h \ | 
| 118 | > | ../common/rtmisc.h ../common/rtio.h \ | 
| 119 | > | ../common/rtmath.h ../common/mat4.h ../common/fvect.h \ | 
| 120 | > | ../common/rterror.h ../common/tifftypes.h | 
| 121 | > |  | 
| 122 | > | xglaresrc.o:    ../common/view.h | 
| 123 | > |  | 
| 124 | > | glareval.o xglaresrc.o: ../common/resolu.h | 
| 125 | > |  | 
| 126 | > | rad.o ranimate.o:       ../common/vars.h | 
| 127 | > |  | 
| 128 | > | ranimove1.o ranimove2.o vwrays.o:       ../common/random.h | 
| 129 | > |  | 
| 130 | > | rad.o:  ../common/paths.h | 
| 131 | > |  | 
| 132 | > | ranimate.o netproc.o:   netproc.h | 
| 133 | > |  | 
| 134 | > | ranimove1.o:    ../common/otypes.h | 
| 135 | > |  | 
| 136 | > | netproc.o:      ../common/paths.h | 
| 137 | > |  | 
| 138 | > | rad.o ranimate.o ranimove.o:    ../common/view.h ../common/resolu.h | 
| 139 | > |  | 
| 140 | > | glrad.o:        ../common/radogl.h \ | 
| 141 | > | ../common/standard.h ../common/rtmisc.h ../common/rtio.h \ | 
| 142 | > | ../common/rtmath.h ../common/mat4.h ../common/fvect.h \ | 
| 143 | > | ../common/rterror.h ../common/tifftypes.h \ | 
| 144 | > | ../common/color.h ../common/object.h ../common/otypes.h ../common/lookup.h | 
| 145 | > |  | 
| 146 | > | glrad.o:        glradicon.h ../common/view.h ../common/paths.h | 
| 147 | > |  | 
| 148 | > | ranimove.o ranimove1.o ranimove2.o:     ranimove.h \ | 
| 149 | > | ../common/vars.h ../common/view.h \ | 
| 150 | > | ../rt/ray.h ../common/octree.h \ | 
| 151 | > | ../common/object.h ../common/color.h \ | 
| 152 | > | ../common/standard.h ../common/rtmisc.h ../common/rtio.h \ | 
| 153 | > | ../common/rtmath.h ../common/mat4.h ../common/fvect.h \ | 
| 154 | > | ../common/rterror.h ../common/tifftypes.h | 
| 155 | > |  | 
| 156 | > | Version.c:      ../rt/Version.c | 
| 157 | > | cp ../rt/Version.c . | 
| 158 | > |  | 
| 159 | > | x11findwind.c:  ../common/x11findwind.c | 
| 160 | > | cp ../common/x11findwind.c . |