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 2.15 by greg, Tue Jun 27 12:29:39 1995 UTC vs.
Revision 2.76 by greg, Mon Jul 21 15:59:47 2014 UTC

# Line 1 | Line 1
1 + # RCSid: $Id$
2   #
2 # SCCSid "$SunId$ LBL"
3   # Radiance makefile for utility programs
4   #
5  
# Line 7 | Line 7 | MACH = -DBSD
7  
8   OPT = -O
9  
10 < CFLAGS = $(MACH) $(OPT) -I../common -L../lib
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 xglaresrc glarendx rpiece rad vwright
22 > PROGS = findglare glarendx rpiece rad ranimate ranimove vwright getinfo \
23 >                vwrays xglaresrc rsensor dctimestep rttree_reduce rcollate \
24 >                eplus_adduvf rfluxmtx rmtxop
25  
26 < TLIBFILES = do_action.tcl do_file.tcl do_options.tcl do_results.tcl \
27 <                do_scene.tcl do_views.tcl do_zone.tcl \
22 <                getfile.tcl gethelp.tcl util.tcl tclIndex \
23 <                trad.hlp help.hlp file.hlp trad.icon
26 > LIBFILES = rambpos.cal ambpos.cal tregsamp.dat \
27 > klems_full.cal klems_half.cal klems_quarter.cal disk2square.cal
28  
29   all:    $(PROGS)
30  
31 < install:        all objview.csh objpict.csh glare.csh dayfact.csh rlux.csh \
32 < raddepend.csh ivprep.csh ivpict.csh trad.wsh
31 > install:        all $(SPECIAL) objview.pl objpict.pl glare.csh dayfact.csh \
32 > rlux.csh raddepend.csh trad.wsh objline.csh compamb.csh vinfo.csh \
33 > ltview.pl ltpict.pl genambpos.pl fieldcomb.csh genklemsamp.pl \
34 > genskyvec.pl genBSDF.pl $(LIBFILES)
35          cp $(PROGS) $(INSTDIR)
36 <        cp objview.csh $(INSTDIR)/objview
37 <        cp objpict.csh $(INSTDIR)/objpict
36 >        cp objview.pl $(INSTDIR)/objview
37 >        cp objline.csh $(INSTDIR)/objline
38 >        cp objpict.pl $(INSTDIR)/objpict
39          cp glare.csh $(INSTDIR)/glare
40          cp dayfact.csh $(INSTDIR)/dayfact
41          cp debugcal.csh $(INSTDIR)/debugcal
42          cp rlux.csh $(INSTDIR)/rlux
43          cp raddepend.csh $(INSTDIR)/raddepend
44 <        cp ivprep.csh $(INSTDIR)/ivprep
45 <        cp ivpict.csh $(INSTDIR)/ivpict
46 <        chmod 755 $(INSTDIR)/objview $(INSTDIR)/objpict \
47 <                $(INSTDIR)/glare $(INSTDIR)/dayfact $(INSTDIR)/debugcal \
48 <                $(INSTDIR)/rlux $(INSTDIR)/raddepend $(INSTDIR)/ivprep \
49 <                $(INSTDIR)/ivpict
50 <        sed -e "1s|/usr/local/bin/wish|`which wish`|" \
51 <                -e "s|^set radlib .*|set radlib $(LIBDIR)/tcl|" \
52 <                trad.wsh > $(INSTDIR)/trad
53 <        chmod 755 $(INSTDIR)/trad
54 <        cd $(LIBDIR)/tcl ; rm -f $(TLIBFILES)
55 <        cp $(TLIBFILES) $(LIBDIR)/tcl
44 >        cp compamb.csh $(INSTDIR)/compamb
45 >        cp vinfo.csh $(INSTDIR)/vinfo
46 >        cp genambpos.pl $(INSTDIR)/genambpos
47 >        cp fieldcomb.csh $(INSTDIR)/fieldcomb
48 >        cp genklemsamp.pl $(INSTDIR)/genklemsamp
49 >        cp genskyvec.pl $(INSTDIR)/genskyvec
50 >        cp genBSDF.pl $(INSTDIR)/genBSDF
51 >        cp ltview.pl $(INSTDIR)/ltview
52 >        cp ltpict.pl $(INSTDIR)/ltpict
53 >        cd $(INSTDIR) ; chmod 755 objview objpict \
54 >                glare dayfact debugcal rlux raddepend objline \
55 >                compamb vinfo genambpos fieldcomb genklemsamp \
56 >                genskyvec genBSDF
57 >        cd $(LIBDIR) && rm -f $(LIBFILES)
58 >        cp $(LIBFILES) $(LIBDIR)
59 >        csh -f tradinstall.csh $(INSTDIR) $(LIBDIR)/tcl
60  
61   clean:
62 <        set nonomatch; rm -f *.o $(PROGS) core
62 >        set nonomatch; rm -f *.o $(PROGS) glrad Version.c x11findwind.c
63  
64 < scanner:        scanner.o
65 <        $(CC) $(CFLAGS) -o scanner scanner.o -lm
64 > ogl:    glrad
65 >        cp glrad $(INSTDIR)
66  
67 < makedist:       makedist.o setscan.o
57 <        $(CC) $(CFLAGS) -o makedist makedist.o setscan.o -lrt -lm
67 > sgi:
68  
69 + sun:
70 +
71   findglare:      findglare.o glareval.o glaresrc.o setscan.o
72          $(CC) $(CFLAGS) -o findglare findglare.o glareval.o glaresrc.o \
73 < setscan.o -lrt -lm
73 > setscan.o -lrtrad $(MLIB)
74  
75   glarendx:       glarendx.o
76 <        $(CC) $(CFLAGS) -o glarendx glarendx.o -lrt -lm
76 >        $(CC) $(CFLAGS) -o glarendx glarendx.o -lrtrad $(MLIB)
77  
78   xglaresrc:      xglaresrc.o x11findwind.o
79          $(CC) $(CFLAGS) -o xglaresrc xglaresrc.o \
80 < x11findwind.o -lrt -lX11 -lm
80 > x11findwind.o -lrtrad -lX11 $(MLIB)
81  
82   rad:    rad.o
83 <        $(CC) $(CFLAGS) -o rad rad.o -lrt -lm
83 >        $(CC) $(CFLAGS) -o rad rad.o -lrtrad $(MLIB)
84  
85 + ranimate:       ranimate.o netproc.o
86 +        $(CC) $(CFLAGS) -o ranimate ranimate.o netproc.o -lrtrad $(MLIB)
87 +
88 + ranimove:       ranimove.o ranimove1.o ranimove2.o
89 +        $(CC) $(CFLAGS) -o ranimove ranimove.o ranimove1.o ranimove2.o \
90 + -lraycalls -lradiance -lrtrad $(MLIB)
91 +
92 + rsensor:        rsensor.o
93 +        $(CC) $(CFLAGS) -o rsensor rsensor.o \
94 + -lraycalls -lradiance -lrtrad $(MLIB)
95 +
96   rpiece: rpiece.o Version.o
97 <        $(CC) $(CFLAGS) -o rpiece rpiece.o Version.o -lrt -lm
97 >        $(CC) $(CFLAGS) -o rpiece rpiece.o Version.o -lrtrad $(MLIB)
98  
99   vwright:        vwright.o
100 <        $(CC) $(CFLAGS) -o vwright vwright.o -lrt -lm
100 >        $(CC) $(CFLAGS) -o vwright vwright.o -lrtrad $(MLIB)
101  
102 < contour:        contour.o
103 <        $(CC) $(CFLAGS) -o contour contour.o -lm
102 > vwrays:         vwrays.o
103 >        $(CC) $(CFLAGS) -o vwrays vwrays.o -lrtrad $(MLIB)
104  
105 < pranim: pranim.o client/libclient.a
106 <        $(CC) $(CFLAGS) -o pranim pranim.o \
84 < client/libclient.a -lrpcsvc
105 > getinfo:        getinfo.o
106 >        $(CC) $(CFLAGS) -o getinfo getinfo.o -lrtrad
107  
108 < t16anim:        t16anim.o client/libclient.a
109 <        $(CC) $(CFLAGS) -o t16anim t16anim.o \
110 < client/libclient.a -lrpcsvc
108 > glrad:  glrad.o
109 >        $(CC) $(CFLAGS) -o glrad glrad.o -lrgl -lrtrad -lGLU -lGL \
110 > -lX11 -lXext $(MLIB)
111  
112 < t16anim.o pranim.o:     client/clnt.h
112 > dctimestep:     dctimestep.o cmbsdf.o cmatrix.o
113 >        $(CC) $(CFLAGS) -o dctimestep dctimestep.o cmbsdf.o cmatrix.o \
114 > -lrtrad $(MLIB)
115  
116 < setscan.o makedist.o:   setscan.h
116 > rttree_reduce:  rttree_reduce.o
117 >        $(CC) $(CFLAGS) -o rttree_reduce rttree_reduce.o -lrtrad $(MLIB)
118  
119 + rcollate:       rcollate.o
120 +        $(CC) $(CFLAGS) -o rcollate rcollate.o -lrtrad
121 +
122 + eplus_adduvf:   eplus_adduvf.o eplus_idf.o
123 +        $(CC) $(CFLAGS) -o eplus_adduvf eplus_adduvf.o eplus_idf.o \
124 + -lrtrad $(MLIB)
125 +
126 + rfluxmtx:       rfluxmtx.o
127 +        $(CC) $(CFLAGS) -o rfluxmtx rfluxmtx.o -lrtrad $(MLIB)
128 +
129 + rmtxop: rmtxop.o rmatrix.o cmatrix.o cmbsdf.o
130 +        $(CC) $(CFLAGS) -o rmtxop rmtxop.o rmatrix.o cmatrix.o cmbsdf.o \
131 + -lrtrad $(MLIB)
132 +
133 + setscan.o:      setscan.h
134 +
135 + eplus_adduvf.o: ../common/triangulate.h ../common/rtprocess.h \
136 + ../common/paths.h ../common/rtio.h ../common/random.h \
137 + ../common/rtmath.h ../common/mat4.h ../common/fvect.h
138 +
139 + eplus_adduvf.o eplus_idf.o:     eplus_idf.h \
140 + ../common/lookup.h
141 +
142   findglare.o glareval.o \
143 < glaresrc.o:     glare.h ../common/standard.h ../common/mat4.h \
144 < ../common/fvect.h ../common/view.h ../common/color.h setscan.h
143 > glaresrc.o:     glare.h ../common/standard.h \
144 > ../common/rtmisc.h ../common/rtio.h \
145 > ../common/rtmath.h ../common/mat4.h ../common/fvect.h \
146 > ../common/rterror.h ../common/view.h ../common/color.h setscan.h
147  
148   glaresrc.o:     ../common/linregr.h
149  
150   rpiece.o:       ../common/color.h ../common/view.h ../common/resolu.h
151  
152 < rad.o rpiece.o xglaresrc.o:     ../common/standard.h \
153 < ../common/mat4.h ../common/fvect.h
152 > dctimestep.o:   ../common/standard.h \
153 > ../common/rtmisc.h ../common/rtio.h \
154 > ../common/rtmath.h ../common/mat4.h ../common/fvect.h \
155 > ../common/rterror.h ../common/resolu.h
156  
157 < xglaresrc.o:    ../common/view.h
157 > dctimestep.o cmatrix.o cmbsdf.o:        cmatrix.h ../common/color.h
158  
159 < swaprasheader.o:        ../common/rasterfile.h
159 > cmatrix.o cmbsdf.o:     ../common/standard.h \
160 > ../common/rtmisc.h ../common/rtio.h \
161 > ../common/rtmath.h ../common/mat4.h ../common/fvect.h \
162 > ../common/rterror.h
163  
164 + cmbsdf.o:       ../common/paths.h ../common/bsdf.h ../common/bsdf_m.h
165 +
166 + rfluxmtx.o:     ../common/rtio.h ../common/random.h ../common/triangulate.h \
167 + ../common/rtmath.h ../common/fvect.h ../common/mat4.h ../common/tiff.h \
168 + ../common/platform.h ../common/bsdf.h ../common/bsdf_m.h
169 +
170 + dctimestep.o cmatrix.o: ../common/platform.h
171 +
172 + rad.o ranimate.o rpiece.o xglaresrc.o:  ../common/standard.h \
173 + ../common/rtmisc.h ../common/rtio.h \
174 + ../common/rtmath.h ../common/mat4.h ../common/fvect.h \
175 + ../common/rterror.h
176 +
177 + xglaresrc.o:    ../common/view.h
178 +
179   glareval.o xglaresrc.o: ../common/resolu.h
180  
181 < xglaresrc.o:    ../common/vfork.h
181 > glareval.o:     ../common/platform.h ../common/rtprocess.h
182 >
183 > rad.o ranimate.o:       ../common/vars.h
184 >
185 > ranimove1.o ranimove2.o vwrays.o:       ../common/random.h
186 >
187 > rad.o:  ../common/paths.h
188 >
189 > ranimate.o netproc.o:   netproc.h
190 >
191 > ranimove1.o:    ../common/otypes.h
192 >
193 > netproc.o:      ../common/paths.h
194 >
195 > rad.o ranimate.o ranimove.o:    ../common/view.h ../common/resolu.h
196 >
197 > glrad.o:        ../common/radogl.h \
198 > ../common/standard.h ../common/rtmisc.h ../common/rtio.h \
199 > ../common/rtmath.h ../common/mat4.h ../common/fvect.h ../common/rterror.h \
200 > ../common/color.h ../common/object.h ../common/otypes.h ../common/lookup.h
201 >
202 > glrad.o:        glradicon.h ../common/view.h ../common/paths.h
203 >
204 > ranimove.o ranimove1.o ranimove2.o:     ranimove.h \
205 > ../common/vars.h ../common/view.h \
206 > ../rt/ray.h ../common/octree.h \
207 > ../common/object.h ../common/color.h \
208 > ../common/standard.h ../common/rtmisc.h ../common/rtio.h \
209 > ../common/rtmath.h ../common/mat4.h ../common/fvect.h \
210 > ../common/rterror.h
211 >
212 > rsensor.o:      ../rt/ray.h ../common/octree.h \
213 > ../common/object.h ../common/color.h \
214 > ../common/standard.h ../common/rtmisc.h ../common/rtio.h \
215 > ../common/rtmath.h ../common/mat4.h ../common/fvect.h \
216 > ../common/rterror.h
217 >
218 > rsensor.o:      ../common/view.h ../common/resolu.h ../rt/source.h
219 >
220 > rcollate.o:     ../common/platform.h ../common/rtio.h ../common/resolu.h
221 >
222 > Version.c:      ../rt/Version.c
223 >        cp ../rt/Version.c .
224 >
225 > x11findwind.c:  ../common/x11findwind.c
226 >        cp ../common/x11findwind.c .
227 >
228 > rttree_reduce.o:        ../common/rtio.h ../common/rterror.h
229 >
230 > rmatrix.o:      rmatrix.h cmatrix.h ../common/resolu.h
231 >
232 > rmtxop.o:       rmatrix.h cmatrix.h ../common/rtio.h ../common/resolu.h

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines