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.29 by gwlarson, Wed Jun 10 17:50:34 1998 UTC vs.
Revision 2.74 by greg, Sat May 31 05:02:37 2014 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines