| 1 | greg | 2.57 | # RCSid: $Id: Rmakefile,v 2.56 2010/09/02 02:29:24 greg Exp $ | 
| 2 | greg | 1.1 | # | 
| 3 | greg | 2.10 | # Radiance makefile for utility programs | 
| 4 |  |  | # | 
| 5 | greg | 1.1 |  | 
| 6 | greg | 1.16 | MACH = -DBSD | 
| 7 | greg | 1.1 |  | 
| 8 |  |  | OPT = -O | 
| 9 |  |  |  | 
| 10 | greg | 2.31 | CFLAGS = -I../common -I../rt -L../lib $(OPT) $(MACH) | 
| 11 | greg | 1.1 |  | 
| 12 | greg | 2.46 | MLIB = -lm | 
| 13 |  |  |  | 
| 14 | greg | 2.3 | CC = cc | 
| 15 |  |  |  | 
| 16 | gwlarson | 2.28 | SPECIAL = | 
| 17 |  |  |  | 
| 18 | greg | 1.14 | INSTDIR = /usr/local/bin | 
| 19 | greg | 1.1 |  | 
| 20 | greg | 2.12 | LIBDIR = /usr/local/lib/ray | 
| 21 |  |  |  | 
| 22 | greg | 2.31 | PROGS = findglare glarendx rpiece rad ranimate ranimove vwright getinfo \ | 
| 23 | greg | 2.53 | vwrays xglaresrc rtcontrib rsensor dctimestep | 
| 24 | greg | 1.1 |  | 
| 25 | gwlarson | 2.30 | all:    $(PROGS) | 
| 26 | greg | 1.1 |  | 
| 27 | gwlarson | 2.30 | install:        all $(SPECIAL) objview.csh objpict.csh glare.csh dayfact.csh \ | 
| 28 | greg | 2.42 | rlux.csh raddepend.csh trad.wsh objline.csh compamb.csh vinfo.csh \ | 
| 29 | greg | 2.56 | genambpos.csh fieldcomb.csh genklemsamp.pl genskyvec.pl genBSDF.pl tregsamp.dat | 
| 30 | greg | 1.1 | cp $(PROGS) $(INSTDIR) | 
| 31 |  |  | cp objview.csh $(INSTDIR)/objview | 
| 32 | greg | 2.17 | cp objline.csh $(INSTDIR)/objline | 
| 33 | greg | 1.1 | cp objpict.csh $(INSTDIR)/objpict | 
| 34 | greg | 1.9 | cp glare.csh $(INSTDIR)/glare | 
| 35 | greg | 1.11 | cp dayfact.csh $(INSTDIR)/dayfact | 
| 36 | greg | 1.15 | cp debugcal.csh $(INSTDIR)/debugcal | 
| 37 | greg | 2.6 | cp rlux.csh $(INSTDIR)/rlux | 
| 38 | greg | 2.10 | cp raddepend.csh $(INSTDIR)/raddepend | 
| 39 | gregl | 2.25 | cp compamb.csh $(INSTDIR)/compamb | 
| 40 | greg | 2.31 | cp vinfo.csh $(INSTDIR)/vinfo | 
| 41 | greg | 2.37 | cp genambpos.csh $(INSTDIR)/genambpos | 
| 42 | greg | 2.42 | cp fieldcomb.csh $(INSTDIR)/fieldcomb | 
| 43 | greg | 2.51 | cp genklemsamp.pl $(INSTDIR)/genklemsamp | 
| 44 | greg | 2.55 | cp genskyvec.pl $(INSTDIR)/genskyvec | 
| 45 | greg | 2.56 | cp genBSDF.pl $(INSTDIR)/genBSDF | 
| 46 | greg | 2.51 | cd $(INSTDIR) ; chmod 755 objview objpict \ | 
| 47 |  |  | glare dayfact debugcal rlux raddepend objline \ | 
| 48 | greg | 2.56 | compamb vinfo genambpos fieldcomb genklemsamp \ | 
| 49 |  |  | genskyvec genBSDF | 
| 50 | greg | 2.52 | cp tregsamp.dat $(LIBDIR) | 
| 51 | greg | 2.16 | csh -f tradinstall.csh $(INSTDIR) $(LIBDIR)/tcl | 
| 52 | greg | 1.1 |  | 
| 53 |  |  | clean: | 
| 54 | greg | 2.45 | set nonomatch; rm -f *.o $(PROGS) glrad core Version.c x11findwind.c | 
| 55 | greg | 1.1 |  | 
| 56 | gwlarson | 2.27 | ogl:    glrad | 
| 57 |  |  | cp glrad $(INSTDIR) | 
| 58 | gwlarson | 2.28 |  | 
| 59 |  |  | sgi: | 
| 60 |  |  |  | 
| 61 |  |  | sun: | 
| 62 | gwlarson | 2.27 |  | 
| 63 | greg | 1.12 | findglare:      findglare.o glareval.o glaresrc.o setscan.o | 
| 64 | greg | 2.3 | $(CC) $(CFLAGS) -o findglare findglare.o glareval.o glaresrc.o \ | 
| 65 | greg | 2.46 | setscan.o -lrtrad $(MLIB) | 
| 66 | greg | 1.7 |  | 
| 67 | greg | 1.12 | glarendx:       glarendx.o | 
| 68 | greg | 2.46 | $(CC) $(CFLAGS) -o glarendx glarendx.o -lrtrad $(MLIB) | 
| 69 | greg | 1.3 |  | 
| 70 | greg | 1.12 | xglaresrc:      xglaresrc.o x11findwind.o | 
| 71 | greg | 2.3 | $(CC) $(CFLAGS) -o xglaresrc xglaresrc.o \ | 
| 72 | greg | 2.47 | x11findwind.o -lrtrad -lX11 $(MLIB) | 
| 73 | greg | 1.4 |  | 
| 74 | greg | 2.23 | rad:    rad.o | 
| 75 | greg | 2.46 | $(CC) $(CFLAGS) -o rad rad.o -lrtrad $(MLIB) | 
| 76 | greg | 2.19 |  | 
| 77 | greg | 2.23 | ranimate:       ranimate.o netproc.o | 
| 78 | greg | 2.46 | $(CC) $(CFLAGS) -o ranimate ranimate.o netproc.o -lrtrad $(MLIB) | 
| 79 | greg | 2.6 |  | 
| 80 | greg | 2.34 | ranimove:       ranimove.o ranimove1.o ranimove2.o | 
| 81 | greg | 2.31 | $(CC) $(CFLAGS) -o ranimove ranimove.o ranimove1.o ranimove2.o \ | 
| 82 | greg | 2.46 | -lraycalls -lradiance -lrtrad $(MLIB) | 
| 83 | greg | 2.31 |  | 
| 84 | greg | 2.48 | rsensor:        rsensor.o | 
| 85 |  |  | $(CC) $(CFLAGS) -o rsensor rsensor.o \ | 
| 86 |  |  | -lraycalls -lradiance -lrtrad $(MLIB) | 
| 87 |  |  |  | 
| 88 | greg | 2.5 | rpiece: rpiece.o Version.o | 
| 89 | greg | 2.46 | $(CC) $(CFLAGS) -o rpiece rpiece.o Version.o -lrtrad $(MLIB) | 
| 90 | greg | 2.14 |  | 
| 91 | greg | 2.40 | rtcontrib:      rtcontrib.o Version.o | 
| 92 | greg | 2.46 | $(CC) $(CFLAGS) -o rtcontrib rtcontrib.o Version.o -lrtrad $(MLIB) | 
| 93 | greg | 2.40 |  | 
| 94 | greg | 2.14 | vwright:        vwright.o | 
| 95 | greg | 2.46 | $(CC) $(CFLAGS) -o vwright vwright.o -lrtrad $(MLIB) | 
| 96 | gregl | 2.24 |  | 
| 97 |  |  | vwrays:         vwrays.o | 
| 98 | greg | 2.46 | $(CC) $(CFLAGS) -o vwrays vwrays.o -lrtrad $(MLIB) | 
| 99 | greg | 2.22 |  | 
| 100 |  |  | getinfo:        getinfo.o | 
| 101 | schorsch | 2.44 | $(CC) $(CFLAGS) -o getinfo getinfo.o -lrtrad | 
| 102 | greg | 2.4 |  | 
| 103 | gwlarson | 2.27 | glrad:  glrad.o | 
| 104 | schorsch | 2.44 | $(CC) $(CFLAGS) -o glrad glrad.o -lrgl -lrtrad -lGLU -lGL \ | 
| 105 | greg | 2.49 | -lX11 -lXext $(MLIB) | 
| 106 | gwlarson | 2.27 |  | 
| 107 | greg | 2.53 | dctimestep:     dctimestep.o | 
| 108 | greg | 2.54 | $(CC) $(CFLAGS) -o dctimestep dctimestep.o -lrtrad $(MLIB) | 
| 109 | greg | 2.53 |  | 
| 110 | greg | 2.39 | setscan.o:      setscan.h | 
| 111 | greg | 1.3 |  | 
| 112 |  |  | findglare.o glareval.o \ | 
| 113 | greg | 2.35 | glaresrc.o:     glare.h ../common/standard.h \ | 
| 114 |  |  | ../common/rtmisc.h ../common/rtio.h \ | 
| 115 |  |  | ../common/rtmath.h ../common/mat4.h ../common/fvect.h \ | 
| 116 | greg | 2.50 | ../common/rterror.h ../common/view.h ../common/color.h setscan.h | 
| 117 | greg | 1.10 |  | 
| 118 | greg | 1.12 | glaresrc.o:     ../common/linregr.h | 
| 119 | greg | 1.3 |  | 
| 120 | greg | 2.4 | rpiece.o:       ../common/color.h ../common/view.h ../common/resolu.h | 
| 121 |  |  |  | 
| 122 | greg | 2.53 | dctimestep.o:   ../common/standard.h \ | 
| 123 |  |  | ../common/rtmisc.h ../common/rtio.h \ | 
| 124 |  |  | ../common/rtmath.h ../common/mat4.h ../common/fvect.h \ | 
| 125 |  |  | ../common/rterror.h ../common/platform.h \ | 
| 126 |  |  | ../common/color.h ../common/bsdf.h ../common/resolu.h | 
| 127 |  |  |  | 
| 128 | greg | 2.41 | rtcontrib.o:    ../common/platform.h ../common/rtprocess.h \ | 
| 129 |  |  | ../common/color.h ../common/resolu.h ../common/lookup.h \ | 
| 130 |  |  | ../common/calcomp.h ../common/selcall.h | 
| 131 | greg | 2.40 |  | 
| 132 | greg | 2.41 | rad.o ranimate.o rpiece.o rtcontrib.o xglaresrc.o:      ../common/standard.h \ | 
| 133 | greg | 2.35 | ../common/rtmisc.h ../common/rtio.h \ | 
| 134 |  |  | ../common/rtmath.h ../common/mat4.h ../common/fvect.h \ | 
| 135 | greg | 2.50 | ../common/rterror.h | 
| 136 | greg | 2.4 |  | 
| 137 |  |  | xglaresrc.o:    ../common/view.h | 
| 138 | greg | 1.3 |  | 
| 139 | greg | 1.18 | glareval.o xglaresrc.o: ../common/resolu.h | 
| 140 | greg | 2.18 |  | 
| 141 | greg | 2.57 | glareval.o:     ../common/platform.h ../common/rtprocess.h | 
| 142 |  |  |  | 
| 143 | greg | 2.23 | rad.o ranimate.o:       ../common/vars.h | 
| 144 | greg | 2.20 |  | 
| 145 | greg | 2.43 | ranimove1.o ranimove2.o vwrays.o:       ../common/random.h | 
| 146 | greg | 2.31 |  | 
| 147 | greg | 2.20 | rad.o:  ../common/paths.h | 
| 148 |  |  |  | 
| 149 |  |  | ranimate.o netproc.o:   netproc.h | 
| 150 |  |  |  | 
| 151 | greg | 2.31 | ranimove1.o:    ../common/otypes.h | 
| 152 |  |  |  | 
| 153 | greg | 2.21 | netproc.o:      ../common/paths.h | 
| 154 |  |  |  | 
| 155 | greg | 2.31 | rad.o ranimate.o ranimove.o:    ../common/view.h ../common/resolu.h | 
| 156 | gwlarson | 2.27 |  | 
| 157 |  |  | glrad.o:        ../common/radogl.h \ | 
| 158 | greg | 2.35 | ../common/standard.h ../common/rtmisc.h ../common/rtio.h \ | 
| 159 | greg | 2.50 | ../common/rtmath.h ../common/mat4.h ../common/fvect.h ../common/rterror.h \ | 
| 160 | gwlarson | 2.27 | ../common/color.h ../common/object.h ../common/otypes.h ../common/lookup.h | 
| 161 |  |  |  | 
| 162 |  |  | glrad.o:        glradicon.h ../common/view.h ../common/paths.h | 
| 163 | greg | 2.31 |  | 
| 164 |  |  | ranimove.o ranimove1.o ranimove2.o:     ranimove.h \ | 
| 165 |  |  | ../common/vars.h ../common/view.h \ | 
| 166 | greg | 2.35 | ../rt/ray.h ../common/octree.h \ | 
| 167 |  |  | ../common/object.h ../common/color.h \ | 
| 168 |  |  | ../common/standard.h ../common/rtmisc.h ../common/rtio.h \ | 
| 169 |  |  | ../common/rtmath.h ../common/mat4.h ../common/fvect.h \ | 
| 170 | greg | 2.50 | ../common/rterror.h | 
| 171 | greg | 2.31 |  | 
| 172 | greg | 2.48 | rsensor.o:      ../rt/ray.h ../common/octree.h \ | 
| 173 |  |  | ../common/object.h ../common/color.h \ | 
| 174 |  |  | ../common/standard.h ../common/rtmisc.h ../common/rtio.h \ | 
| 175 |  |  | ../common/rtmath.h ../common/mat4.h ../common/fvect.h \ | 
| 176 | greg | 2.50 | ../common/rterror.h | 
| 177 | greg | 2.48 |  | 
| 178 |  |  | rsensor.o:      ../common/view.h ../common/resolu.h ../rt/source.h | 
| 179 |  |  |  | 
| 180 | greg | 2.31 | Version.c:      ../rt/Version.c | 
| 181 |  |  | cp ../rt/Version.c . | 
| 182 |  |  |  | 
| 183 |  |  | x11findwind.c:  ../common/x11findwind.c | 
| 184 |  |  | cp ../common/x11findwind.c . |