| 1 | # RCSid: $Id: Rmakefile,v 2.89 2019/07/18 18:51:56 greg Exp $ | 
| 2 | # | 
| 3 | # Radiance makefile for utility programs | 
| 4 | # | 
| 5 |  | 
| 6 | MACH = -DBSD | 
| 7 |  | 
| 8 | OPT = -O | 
| 9 |  | 
| 10 | CFLAGS = -I../common -I../rt -L../lib $(OPT) $(MACH) | 
| 11 |  | 
| 12 | MLIB = -lm | 
| 13 |  | 
| 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 rsensor dctimestep rttree_reduce rcollate \ | 
| 24 | eplus_adduvf rfluxmtx rmtxop wrapBSDF evalglare radcompare \ | 
| 25 | rcode_depth rcode_norm | 
| 26 |  | 
| 27 | LIBFILES = rambpos.cal ambpos.cal tregsamp.dat reinhartb.cal \ | 
| 28 | klems_full.cal klems_half.cal klems_quarter.cal disk2square.cal \ | 
| 29 | minimalBSDFt.xml WINDOW6BSDFt.xml | 
| 30 |  | 
| 31 | all:    $(PROGS) | 
| 32 |  | 
| 33 | install:        all $(SPECIAL) objview.pl objpict.pl glare.csh dayfact.csh \ | 
| 34 | rlux.csh raddepend.csh trad.wsh objline.csh compamb.csh vinfo.csh \ | 
| 35 | ltview.pl ltpict.pl genambpos.pl fieldcomb.csh genklemsamp.pl \ | 
| 36 | genskyvec.pl genBSDF.pl bsdfview.pl rtpict.pl $(LIBFILES) | 
| 37 | cp $(PROGS) $(INSTDIR) | 
| 38 | cp objview.pl $(INSTDIR)/objview | 
| 39 | cp objline.csh $(INSTDIR)/objline | 
| 40 | cp objpict.pl $(INSTDIR)/objpict | 
| 41 | cp glare.csh $(INSTDIR)/glare | 
| 42 | cp dayfact.csh $(INSTDIR)/dayfact | 
| 43 | cp debugcal.csh $(INSTDIR)/debugcal | 
| 44 | cp rlux.csh $(INSTDIR)/rlux | 
| 45 | cp raddepend.csh $(INSTDIR)/raddepend | 
| 46 | cp compamb.csh $(INSTDIR)/compamb | 
| 47 | cp vinfo.csh $(INSTDIR)/vinfo | 
| 48 | cp genambpos.pl $(INSTDIR)/genambpos | 
| 49 | cp fieldcomb.csh $(INSTDIR)/fieldcomb | 
| 50 | cp genklemsamp.pl $(INSTDIR)/genklemsamp | 
| 51 | cp genskyvec.pl $(INSTDIR)/genskyvec | 
| 52 | cp genBSDF.pl $(INSTDIR)/genBSDF | 
| 53 | cp bsdfview.pl $(INSTDIR)/bsdfview | 
| 54 | cp ltview.pl $(INSTDIR)/ltview | 
| 55 | cp ltpict.pl $(INSTDIR)/ltpict | 
| 56 | cp rtpict.pl $(INSTDIR)/rtpict | 
| 57 | cd $(INSTDIR) ; chmod 755 objview objpict \ | 
| 58 | glare dayfact debugcal rlux raddepend objline \ | 
| 59 | compamb vinfo genambpos fieldcomb genklemsamp \ | 
| 60 | genskyvec genBSDF rtpict | 
| 61 | cd $(LIBDIR) && rm -f $(LIBFILES) | 
| 62 | cp $(LIBFILES) $(LIBDIR) | 
| 63 | csh -f tradinstall.csh $(INSTDIR) $(LIBDIR)/tcl | 
| 64 |  | 
| 65 | clean: | 
| 66 | set nonomatch; rm -f *.o $(PROGS) glrad Version.c x11findwind.c | 
| 67 |  | 
| 68 | ogl:    glrad | 
| 69 | cp glrad $(INSTDIR) | 
| 70 |  | 
| 71 | sgi: | 
| 72 |  | 
| 73 | sun: | 
| 74 |  | 
| 75 | findglare:      findglare.o glareval.o glaresrc.o setscan.o | 
| 76 | $(CC) $(CFLAGS) -o findglare findglare.o glareval.o glaresrc.o \ | 
| 77 | setscan.o -lrtrad $(MLIB) | 
| 78 |  | 
| 79 | glarendx:       glarendx.o | 
| 80 | $(CC) $(CFLAGS) -o glarendx glarendx.o -lrtrad $(MLIB) | 
| 81 |  | 
| 82 | xglaresrc:      xglaresrc.o x11findwind.o | 
| 83 | $(CC) $(CFLAGS) -o xglaresrc xglaresrc.o \ | 
| 84 | x11findwind.o -lrtrad -lX11 $(MLIB) | 
| 85 |  | 
| 86 | rad:    rad.o | 
| 87 | $(CC) $(CFLAGS) -o rad rad.o -lrtrad $(MLIB) | 
| 88 |  | 
| 89 | ranimate:       ranimate.o netproc.o | 
| 90 | $(CC) $(CFLAGS) -o ranimate ranimate.o netproc.o -lrtrad $(MLIB) | 
| 91 |  | 
| 92 | ranimove:       ranimove.o ranimove1.o ranimove2.o | 
| 93 | $(CC) $(CFLAGS) -o ranimove ranimove.o ranimove1.o ranimove2.o \ | 
| 94 | -lraycalls -lradiance -lrtrad $(MLIB) | 
| 95 |  | 
| 96 | rsensor:        rsensor.o | 
| 97 | $(CC) $(CFLAGS) -o rsensor rsensor.o \ | 
| 98 | -lraycalls -lradiance -lrtrad $(MLIB) | 
| 99 |  | 
| 100 | rpiece: rpiece.o Version.o | 
| 101 | $(CC) $(CFLAGS) -o rpiece rpiece.o Version.o -lrtrad $(MLIB) | 
| 102 |  | 
| 103 | vwright:        vwright.o | 
| 104 | $(CC) $(CFLAGS) -o vwright vwright.o -lrtrad $(MLIB) | 
| 105 |  | 
| 106 | vwrays:         vwrays.o | 
| 107 | $(CC) $(CFLAGS) -o vwrays vwrays.o -lrtrad $(MLIB) | 
| 108 |  | 
| 109 | getinfo:        getinfo.o | 
| 110 | $(CC) $(CFLAGS) -o getinfo getinfo.o -lrtrad | 
| 111 |  | 
| 112 | glrad:  glrad.o | 
| 113 | $(CC) $(CFLAGS) -o glrad glrad.o -lrgl -lrtrad -lGLU -lGL \ | 
| 114 | -lX11 -lXext $(MLIB) | 
| 115 |  | 
| 116 | dctimestep:     dctimestep.o cmbsdf.o cmatrix.o | 
| 117 | $(CC) $(CFLAGS) -o dctimestep dctimestep.o cmbsdf.o cmatrix.o \ | 
| 118 | -lrtrad $(MLIB) | 
| 119 |  | 
| 120 | rttree_reduce:  rttree_reduce.o | 
| 121 | $(CC) $(CFLAGS) -o rttree_reduce rttree_reduce.o -lrtrad $(MLIB) | 
| 122 |  | 
| 123 | rcollate:       rcollate.o | 
| 124 | $(CC) $(CFLAGS) -o rcollate rcollate.o -lrtrad | 
| 125 |  | 
| 126 | eplus_adduvf:   eplus_adduvf.o eplus_idf.o | 
| 127 | $(CC) $(CFLAGS) -o eplus_adduvf eplus_adduvf.o eplus_idf.o \ | 
| 128 | -lrtrad $(MLIB) | 
| 129 |  | 
| 130 | rfluxmtx:       rfluxmtx.o | 
| 131 | $(CC) $(CFLAGS) -o rfluxmtx rfluxmtx.o -lrtrad $(MLIB) | 
| 132 |  | 
| 133 | rmtxop: rmtxop.o rmatrix.o cmatrix.o cmbsdf.o | 
| 134 | $(CC) $(CFLAGS) -o rmtxop rmtxop.o rmatrix.o cmatrix.o cmbsdf.o \ | 
| 135 | -lrtrad $(MLIB) | 
| 136 |  | 
| 137 | wrapBSDF:       wrapBSDF.o | 
| 138 | $(CC) $(CFLAGS) -o wrapBSDF wrapBSDF.o -lrtrad $(MLIB) | 
| 139 |  | 
| 140 | evalglare:      evalglare.o pictool.o | 
| 141 | $(CC) $(CFLAGS) -o evalglare evalglare.o pictool.o -lreetz -lrtrad $(MLIB) | 
| 142 |  | 
| 143 | radcompare:     radcompare.o | 
| 144 | $(CC) $(CFLAGS) -o radcompare radcompare.o -lrtrad $(MLIB) | 
| 145 |  | 
| 146 | setscan.o:      setscan.h | 
| 147 |  | 
| 148 | rcode_depth:    rcode_depth.o depthcodec.o | 
| 149 | $(CC) $(CFLAGS) -o rcode_depth rcode_depth.o depthcodec.o \ | 
| 150 | -lrtrad $(MLIB) | 
| 151 |  | 
| 152 | rcode_norm:     rcode_norm.o normcodec.o | 
| 153 | $(CC) $(CFLAGS) -o rcode_norm rcode_norm.o normcodec.o \ | 
| 154 | -lrtrad $(MLIB) | 
| 155 |  | 
| 156 | eplus_adduvf.o: ../common/triangulate.h ../common/rtprocess.h \ | 
| 157 | ../common/paths.h ../common/rtio.h ../common/random.h \ | 
| 158 | ../common/rtmath.h ../common/mat4.h ../common/fvect.h | 
| 159 |  | 
| 160 | eplus_adduvf.o eplus_idf.o:     eplus_idf.h \ | 
| 161 | ../common/lookup.h | 
| 162 |  | 
| 163 | findglare.o glareval.o \ | 
| 164 | glaresrc.o:     glare.h ../common/standard.h \ | 
| 165 | ../common/rtmisc.h ../common/rtio.h \ | 
| 166 | ../common/rtmath.h ../common/mat4.h ../common/fvect.h \ | 
| 167 | ../common/rterror.h ../common/view.h ../common/color.h setscan.h | 
| 168 |  | 
| 169 | glaresrc.o:     ../common/linregr.h | 
| 170 |  | 
| 171 | rpiece.o:       ../common/color.h ../common/view.h ../common/resolu.h | 
| 172 |  | 
| 173 | dctimestep.o:   ../common/standard.h \ | 
| 174 | ../common/rtmisc.h ../common/rtio.h \ | 
| 175 | ../common/rtmath.h ../common/mat4.h ../common/fvect.h \ | 
| 176 | ../common/rterror.h ../common/resolu.h | 
| 177 |  | 
| 178 | dctimestep.o cmatrix.o cmbsdf.o:        cmatrix.h ../common/color.h | 
| 179 |  | 
| 180 | cmatrix.o cmbsdf.o:     ../common/standard.h \ | 
| 181 | ../common/rtmisc.h ../common/rtio.h \ | 
| 182 | ../common/rtmath.h ../common/mat4.h ../common/fvect.h \ | 
| 183 | ../common/rterror.h | 
| 184 |  | 
| 185 | cmbsdf.o:       ../common/paths.h ../common/bsdf.h ../common/bsdf_m.h | 
| 186 |  | 
| 187 | rfluxmtx.o:     ../common/rtio.h ../common/random.h ../common/triangulate.h \ | 
| 188 | ../common/rtmath.h ../common/fvect.h ../common/mat4.h ../common/tiff.h \ | 
| 189 | ../common/platform.h ../common/bsdf.h ../common/bsdf_m.h ../common/rtprocess.h | 
| 190 |  | 
| 191 | rmtxop.o dctimestep.o cmatrix.o:        ../common/platform.h | 
| 192 |  | 
| 193 | rad.o ranimate.o rpiece.o xglaresrc.o:  ../common/standard.h \ | 
| 194 | ../common/rtmisc.h ../common/rtio.h \ | 
| 195 | ../common/rtmath.h ../common/mat4.h ../common/fvect.h \ | 
| 196 | ../common/rterror.h | 
| 197 |  | 
| 198 | xglaresrc.o:    ../common/view.h | 
| 199 |  | 
| 200 | glareval.o xglaresrc.o: ../common/resolu.h | 
| 201 |  | 
| 202 | glareval.o:     ../common/platform.h ../common/rtprocess.h | 
| 203 |  | 
| 204 | rad.o ranimate.o:       ../common/vars.h | 
| 205 |  | 
| 206 | ranimove1.o ranimove2.o vwrays.o:       ../common/random.h | 
| 207 |  | 
| 208 | rad.o:  ../common/paths.h | 
| 209 |  | 
| 210 | ranimate.o netproc.o:   netproc.h | 
| 211 |  | 
| 212 | ranimove1.o:    ../common/otypes.h ../rt/otspecial.h ../rt/source.h | 
| 213 |  | 
| 214 | netproc.o:      ../common/paths.h | 
| 215 |  | 
| 216 | rad.o ranimate.o ranimove.o:    ../common/view.h ../common/resolu.h | 
| 217 |  | 
| 218 | glrad.o:        ../common/radogl.h \ | 
| 219 | ../common/standard.h ../common/rtmisc.h ../common/rtio.h \ | 
| 220 | ../common/rtmath.h ../common/mat4.h ../common/fvect.h ../common/rterror.h \ | 
| 221 | ../common/color.h ../common/object.h ../common/otypes.h ../common/lookup.h | 
| 222 |  | 
| 223 | glrad.o:        glradicon.h ../common/view.h ../common/paths.h | 
| 224 |  | 
| 225 | ranimove.o ranimove1.o ranimove2.o:     ranimove.h \ | 
| 226 | ../common/vars.h ../common/view.h \ | 
| 227 | ../rt/ray.h ../common/octree.h \ | 
| 228 | ../common/object.h ../common/color.h \ | 
| 229 | ../common/standard.h ../common/rtmisc.h ../common/rtio.h \ | 
| 230 | ../common/rtmath.h ../common/mat4.h ../common/fvect.h \ | 
| 231 | ../common/rterror.h | 
| 232 |  | 
| 233 | rsensor.o:      ../rt/ray.h ../common/octree.h \ | 
| 234 | ../common/object.h ../common/color.h \ | 
| 235 | ../common/standard.h ../common/rtmisc.h ../common/rtio.h \ | 
| 236 | ../common/rtmath.h ../common/mat4.h ../common/fvect.h \ | 
| 237 | ../common/rterror.h | 
| 238 |  | 
| 239 | rsensor.o:      ../common/view.h ../common/resolu.h ../rt/source.h | 
| 240 |  | 
| 241 | radcompare.o rcollate.o:        ../common/platform.h \ | 
| 242 | ../common/rtio.h ../common/resolu.h | 
| 243 |  | 
| 244 | Version.c:      ../rt/Version.c | 
| 245 | cp ../rt/Version.c . | 
| 246 |  | 
| 247 | x11findwind.c:  ../common/x11findwind.c | 
| 248 | cp ../common/x11findwind.c . | 
| 249 |  | 
| 250 | rttree_reduce.o:        ../common/rtio.h ../common/rterror.h | 
| 251 |  | 
| 252 | rmatrix.o:      rmatrix.h cmatrix.h ../common/resolu.h | 
| 253 |  | 
| 254 | rmtxop.o:       rmatrix.h cmatrix.h ../common/rtio.h ../common/resolu.h | 
| 255 |  | 
| 256 | wrapBSDF.o:     ../common/rtio.h ../common/rtprocess.h ../common/ezxml.h \ | 
| 257 | ../common/bsdf.h ../common/bsdf_m.h ../common/fvect.h ../common/ccolor.h | 
| 258 |  | 
| 259 | pictool.o evalglare.o:  pictool.h ../common/g3vector.h ../common/g3affine.h \ | 
| 260 | ../common/g3flist.h ../common/fvect.h ../common/gbasic.h | 
| 261 |  | 
| 262 | evalglare.o:    ../common/rtio.h | 
| 263 |  | 
| 264 | radcompare.o:   ../common/rtio.h ../common/color.h ../common/lookup.h | 
| 265 |  | 
| 266 | pictool.o:      ../common/view.h ../common/color.h | 
| 267 |  | 
| 268 | getinfo.o:      ../common/rtprocess.h ../common/platform.h ../common/resolu.h | 
| 269 |  | 
| 270 | rcode_depth.o depthcodec.o:     depthcodec.h \ | 
| 271 | ../common/view.h ../common/fvect.h ../common/resolu.h \ | 
| 272 | ../common/rtio.h | 
| 273 |  | 
| 274 | rcode_depth.o:  ../common/platform.h | 
| 275 |  | 
| 276 | rcode_norm.o normcodec.o:       normcodec.h \ | 
| 277 | ../common/rtmath.h ../common/mat4.h ../common/fvect.h \ | 
| 278 | ../common/resolu.h ../common/rtio.h | 
| 279 |  | 
| 280 | rcode_norm.o:   ../common/platform.h |