ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/util/Rmakefile
(Generate patch)

Comparing ray/src/util/Rmakefile (file contents):
Revision 1.11 by greg, Wed Jun 5 10:04:13 1991 UTC vs.
Revision 2.95 by greg, Thu Sep 5 17:35:44 2019 UTC

# Line 1 | Line 1
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 glarendx
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 rcode_ident
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 objview.csh objpict.csh proj.csh glare.csh dayfact.csh
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 rcode2bmp.pl $(LIBFILES)
37          cp $(PROGS) $(INSTDIR)
38 <        cp objview.csh $(INSTDIR)/objview
39 <        cp objpict.csh $(INSTDIR)/objpict
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 <        chmod 755 $(INSTDIR)/objview $(INSTDIR)/objpict \
44 <                $(INSTDIR)/glare $(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 >        cp rcode2bmp.pl $(INSTDIR)/rcode2bmp
58 >        cd $(INSTDIR) ; chmod 755 objview objpict \
59 >                glare dayfact debugcal rlux raddepend objline \
60 >                compamb vinfo genambpos fieldcomb genklemsamp \
61 >                genskyvec genBSDF rtpict rcode2bmp
62 >        cd $(LIBDIR) && rm -f $(LIBFILES)
63 >        cp $(LIBFILES) $(LIBDIR)
64 >        csh -f tradinstall.csh $(INSTDIR) $(LIBDIR)/tcl
65  
66   clean:
67 <        set nonomatch; rm -f *.o $(PROGS) core
67 >        set nonomatch; rm -f *.o $(PROGS) glrad Version.c x11findwind.c
68  
69 < scanner:        scanner.o
70 <        cc $(CFLAGS) -o scanner scanner.o -lm
69 > ogl:    glrad
70 >        cp glrad $(INSTDIR)
71  
72 < makedist:       makedist.o fvect.o setscan.o
33 <        cc $(CFLAGS) -o makedist makedist.o fvect.o setscan.o -lm
72 > sgi:
73  
74 < findglare:      findglare.o glareval.o glaresrc.o color.o fvect.o image.o \
36 < header.o resolu.o setscan.o linregr.o
37 <        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
74 > sun:
75  
76 < glarendx:       glarendx.o image.o header.o erf.o fvect.o resolu.o
77 <        cc $(CFLAGS) -o glarendx glarendx.o image.o header.o fvect.o \
78 < erf.o resolu.o -lm
76 > findglare:      findglare.o glareval.o glaresrc.o setscan.o
77 >        $(CC) $(CFLAGS) -o findglare findglare.o glareval.o glaresrc.o \
78 > setscan.o -lrtrad $(MLIB)
79  
80 < xglaresrc:      xglaresrc.o fvect.o image.o resolu.o header.o x11findwind.o
81 <        cc $(CFLAGS) -o xglaresrc xglaresrc.o fvect.o image.o \
46 < header.o resolu.o x11findwind.o -lm -lX11
80 > glarendx:       glarendx.o
81 >        $(CC) $(CFLAGS) -o glarendx glarendx.o -lrtrad $(MLIB)
82  
83 < contour:        contour.o
84 <        cc $(CFLAGS) -o contour contour.o -lm
83 > xglaresrc:      xglaresrc.o x11findwind.o
84 >        $(CC) $(CFLAGS) -o xglaresrc xglaresrc.o \
85 > x11findwind.o -lrtrad -lX11 $(MLIB)
86  
87 < pranim: pranim.o client/libclient.a
88 <        cc $(CFLAGS) -o pranim pranim.o \
53 < client/libclient.a -lrpcsvc
87 > rad:    rad.o
88 >        $(CC) $(CFLAGS) -o rad rad.o -lrtrad $(MLIB)
89  
90 < t16anim:        t16anim.o client/libclient.a
91 <        cc $(CFLAGS) -o t16anim t16anim.o \
57 < client/libclient.a -lrpcsvc
90 > ranimate:       ranimate.o netproc.o
91 >        $(CC) $(CFLAGS) -o ranimate ranimate.o netproc.o -lrtrad $(MLIB)
92  
93 < t16anim.o pranim.o:     client/clnt.h
93 > ranimove:       ranimove.o ranimove1.o ranimove2.o
94 >        $(CC) $(CFLAGS) -o ranimove ranimove.o ranimove1.o ranimove2.o \
95 > -lraycalls -lradiance -lrtrad $(MLIB)
96  
97 < setscan.o makedist.o:   setscan.h
97 > rsensor:        rsensor.o
98 >        $(CC) $(CFLAGS) -o rsensor rsensor.o \
99 > -lraycalls -lradiance -lrtrad $(MLIB)
100  
101 + rpiece: rpiece.o Version.o
102 +        $(CC) $(CFLAGS) -o rpiece rpiece.o Version.o -lrtrad $(MLIB)
103 +
104 + vwright:        vwright.o
105 +        $(CC) $(CFLAGS) -o vwright vwright.o -lrtrad $(MLIB)
106 +
107 + vwrays:         vwrays.o
108 +        $(CC) $(CFLAGS) -o vwrays vwrays.o -lrtrad $(MLIB)
109 +
110 + getinfo:        getinfo.o
111 +        $(CC) $(CFLAGS) -o getinfo getinfo.o -lrtrad
112 +
113 + glrad:  glrad.o
114 +        $(CC) $(CFLAGS) -o glrad glrad.o -lrgl -lrtrad -lGLU -lGL \
115 + -lX11 -lXext $(MLIB)
116 +
117 + dctimestep:     dctimestep.o cmbsdf.o cmatrix.o
118 +        $(CC) $(CFLAGS) -o dctimestep dctimestep.o cmbsdf.o cmatrix.o \
119 + -lrtrad $(MLIB)
120 +
121 + rttree_reduce:  rttree_reduce.o
122 +        $(CC) $(CFLAGS) -o rttree_reduce rttree_reduce.o -lrtrad $(MLIB)
123 +
124 + rcollate:       rcollate.o
125 +        $(CC) $(CFLAGS) -o rcollate rcollate.o -lrtrad
126 +
127 + eplus_adduvf:   eplus_adduvf.o eplus_idf.o
128 +        $(CC) $(CFLAGS) -o eplus_adduvf eplus_adduvf.o eplus_idf.o \
129 + -lrtrad $(MLIB)
130 +
131 + rfluxmtx:       rfluxmtx.o
132 +        $(CC) $(CFLAGS) -o rfluxmtx rfluxmtx.o -lrtrad $(MLIB)
133 +
134 + rmtxop: rmtxop.o rmatrix.o cmatrix.o cmbsdf.o
135 +        $(CC) $(CFLAGS) -o rmtxop rmtxop.o rmatrix.o cmatrix.o cmbsdf.o \
136 + -lrtrad $(MLIB)
137 +
138 + wrapBSDF:       wrapBSDF.o
139 +        $(CC) $(CFLAGS) -o wrapBSDF wrapBSDF.o -lrtrad $(MLIB)
140 +
141 + evalglare:      evalglare.o pictool.o
142 +        $(CC) $(CFLAGS) -o evalglare evalglare.o pictool.o -lreetz -lrtrad $(MLIB)
143 +
144 + radcompare:     radcompare.o
145 +        $(CC) $(CFLAGS) -o radcompare radcompare.o -lrtrad $(MLIB)
146 +
147 + setscan.o:      setscan.h
148 +
149 + rcode_depth:    rcode_depth.o
150 +        $(CC) $(CFLAGS) -o rcode_depth rcode_depth.o \
151 + -lrtrad $(MLIB)
152 +
153 + rcode_norm:     rcode_norm.o
154 +        $(CC) $(CFLAGS) -o rcode_norm rcode_norm.o \
155 + -lrtrad $(MLIB)
156 +
157 + rcode_ident:    rcode_ident.o
158 +        $(CC) $(CFLAGS) -o rcode_ident rcode_ident.o -lrtrad
159 +
160 + eplus_adduvf.o: ../common/triangulate.h ../common/rtprocess.h \
161 + ../common/paths.h ../common/rtio.h ../common/random.h \
162 + ../common/rtmath.h ../common/mat4.h ../common/fvect.h
163 +
164 + eplus_adduvf.o eplus_idf.o:     eplus_idf.h \
165 + ../common/lookup.h
166 +
167   findglare.o glareval.o \
168 < glaresrc.o:     glare.h standard.h mat4.h fvect.h view.h color.h setscan.h
168 > glaresrc.o:     glare.h ../common/standard.h \
169 > ../common/rtmisc.h ../common/rtio.h \
170 > ../common/rtmath.h ../common/mat4.h ../common/fvect.h \
171 > ../common/rterror.h ../common/view.h ../common/color.h setscan.h
172  
173 < glaresrc.o linregr.o:   linregr.h
173 > glaresrc.o:     ../common/linregr.h
174  
175 < image.o xglaresrc.o:    standard.h mat4.h fvect.h view.h
175 > rpiece.o:       ../common/color.h ../common/view.h ../common/resolu.h
176  
177 < fvect.o:        fvect.h
177 > dctimestep.o:   ../common/standard.h \
178 > ../common/rtmisc.h ../common/rtio.h \
179 > ../common/rtmath.h ../common/mat4.h ../common/fvect.h \
180 > ../common/rterror.h ../common/resolu.h
181  
182 < resolu.o:       color.h
182 > dctimestep.o cmatrix.o cmbsdf.o:        cmatrix.h ../common/color.h
183  
184 < swaprasheader.o:        rasterfile.h
184 > cmatrix.o cmbsdf.o:     ../common/standard.h \
185 > ../common/rtmisc.h ../common/rtio.h \
186 > ../common/rtmath.h ../common/mat4.h ../common/fvect.h \
187 > ../common/rterror.h
188 >
189 > cmbsdf.o:       ../common/paths.h ../common/bsdf.h ../common/bsdf_m.h
190 >
191 > rfluxmtx.o:     ../common/rtio.h ../common/random.h ../common/triangulate.h \
192 > ../common/rtmath.h ../common/fvect.h ../common/mat4.h ../common/tiff.h \
193 > ../common/platform.h ../common/bsdf.h ../common/bsdf_m.h ../common/rtprocess.h
194 >
195 > rmtxop.o dctimestep.o cmatrix.o:        ../common/platform.h
196 >
197 > rad.o ranimate.o rpiece.o xglaresrc.o:  ../common/standard.h \
198 > ../common/rtmisc.h ../common/rtio.h \
199 > ../common/rtmath.h ../common/mat4.h ../common/fvect.h \
200 > ../common/rterror.h
201 >
202 > xglaresrc.o:    ../common/view.h
203 >
204 > glareval.o xglaresrc.o: ../common/resolu.h
205 >
206 > glareval.o:     ../common/platform.h ../common/rtprocess.h
207 >
208 > rad.o ranimate.o:       ../common/vars.h
209 >
210 > ranimove1.o ranimove2.o vwrays.o:       ../common/random.h
211 >
212 > rad.o:  ../common/paths.h
213 >
214 > ranimate.o netproc.o:   netproc.h
215 >
216 > ranimove1.o:    ../common/otypes.h ../rt/otspecial.h ../rt/source.h
217 >
218 > netproc.o:      ../common/paths.h
219 >
220 > rad.o ranimate.o ranimove.o:    ../common/view.h ../common/resolu.h
221 >
222 > glrad.o:        ../common/radogl.h \
223 > ../common/standard.h ../common/rtmisc.h ../common/rtio.h \
224 > ../common/rtmath.h ../common/mat4.h ../common/fvect.h ../common/rterror.h \
225 > ../common/color.h ../common/object.h ../common/otypes.h ../common/lookup.h
226 >
227 > glrad.o:        glradicon.h ../common/view.h ../common/paths.h
228 >
229 > ranimove.o ranimove1.o ranimove2.o:     ranimove.h \
230 > ../common/vars.h ../common/view.h \
231 > ../rt/ray.h ../common/octree.h \
232 > ../common/object.h ../common/color.h \
233 > ../common/standard.h ../common/rtmisc.h ../common/rtio.h \
234 > ../common/rtmath.h ../common/mat4.h ../common/fvect.h \
235 > ../common/rterror.h
236 >
237 > rsensor.o:      ../rt/ray.h ../common/octree.h \
238 > ../common/object.h ../common/color.h \
239 > ../common/standard.h ../common/rtmisc.h ../common/rtio.h \
240 > ../common/rtmath.h ../common/mat4.h ../common/fvect.h \
241 > ../common/rterror.h
242 >
243 > rsensor.o:      ../common/view.h ../common/resolu.h ../rt/source.h
244 >
245 > rcollate.o:    ../common/platform.h \
246 > ../common/rtio.h ../common/resolu.h
247 >
248 > Version.c:      ../rt/Version.c
249 >        cp ../rt/Version.c .
250 >
251 > x11findwind.c:  ../common/x11findwind.c
252 >        cp ../common/x11findwind.c .
253 >
254 > rttree_reduce.o:        ../common/rtio.h ../common/rterror.h
255 >
256 > rmatrix.o:      rmatrix.h cmatrix.h ../common/resolu.h
257 >
258 > rmtxop.o:       rmatrix.h cmatrix.h ../common/rtio.h ../common/resolu.h
259 >
260 > wrapBSDF.o:     ../common/rtio.h ../common/rtprocess.h ../common/ezxml.h \
261 > ../common/bsdf.h ../common/bsdf_m.h ../common/fvect.h ../common/ccolor.h
262 >
263 > pictool.o evalglare.o:  pictool.h ../common/g3vector.h ../common/g3affine.h \
264 > ../common/g3flist.h ../common/fvect.h ../common/gbasic.h
265 >
266 > evalglare.o:    ../common/rtio.h
267 >
268 > radcompare.o:   ../common/rtio.h ../common/color.h ../common/lookup.h \
269 > ../common/platform.h ../common/normcodec.h ../common/depthcodec.h \
270 > ../common/rtmath.h ../common/view.h
271 >
272 > pictool.o:      ../common/view.h ../common/color.h
273 >
274 > getinfo.o:      ../common/rtprocess.h ../common/platform.h ../common/resolu.h
275 >
276 > rcode_depth.o:  ../common/depthcodec.h \
277 > ../common/view.h ../common/fvect.h ../common/resolu.h ../common/rtio.h \
278 > ../common/platform.h
279 >
280 > rcode_norm.o:   ../common/normcodec.h \
281 > ../common/rtmath.h ../common/mat4.h ../common/fvect.h \
282 > ../common/resolu.h ../common/rtio.h ../common/platform.h
283 >
284 > rcode_ident.o:  ../common/idmap.h ../common/resolu.h \
285 > ../common/platform.h ../common/rtio.h ../common/lookup.h

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines