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.23 by greg, Tue Mar 18 15:59:39 1997 UTC vs.
Revision 2.59 by greg, Thu May 26 15:32:02 2011 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 ranimate vwright getinfo
22 > PROGS = findglare glarendx rpiece rad ranimate ranimove vwright getinfo \
23 >                vwrays xglaresrc rtcontrib rsensor dctimestep rttree_reduce
24  
25   all:    $(PROGS)
26  
27 < install:        all objview.csh objpict.csh glare.csh dayfact.csh rlux.csh \
28 < raddepend.csh trad.wsh objline.csh
27 > install:        all $(SPECIAL) objview.csh objpict.csh glare.csh dayfact.csh \
28 > rlux.csh raddepend.csh trad.wsh objline.csh compamb.csh vinfo.csh \
29 > genambpos.csh fieldcomb.csh genklemsamp.pl genskyvec.pl genBSDF.pl tregsamp.dat
30          cp $(PROGS) $(INSTDIR)
31          cp objview.csh $(INSTDIR)/objview
32          cp objline.csh $(INSTDIR)/objline
# Line 30 | Line 36 | raddepend.csh trad.wsh objline.csh
36          cp debugcal.csh $(INSTDIR)/debugcal
37          cp rlux.csh $(INSTDIR)/rlux
38          cp raddepend.csh $(INSTDIR)/raddepend
39 <        chmod 755 $(INSTDIR)/objview $(INSTDIR)/objpict \
40 <                $(INSTDIR)/glare $(INSTDIR)/dayfact $(INSTDIR)/debugcal \
41 <                $(INSTDIR)/rlux $(INSTDIR)/raddepend $(INSTDIR)/objline
39 >        cp compamb.csh $(INSTDIR)/compamb
40 >        cp vinfo.csh $(INSTDIR)/vinfo
41 >        cp genambpos.csh $(INSTDIR)/genambpos
42 >        cp fieldcomb.csh $(INSTDIR)/fieldcomb
43 >        cp genklemsamp.pl $(INSTDIR)/genklemsamp
44 >        cp genskyvec.pl $(INSTDIR)/genskyvec
45 >        cp genBSDF.pl $(INSTDIR)/genBSDF
46 >        cd $(INSTDIR) ; chmod 755 objview objpict \
47 >                glare dayfact debugcal rlux raddepend objline \
48 >                compamb vinfo genambpos fieldcomb genklemsamp \
49 >                genskyvec genBSDF
50 >        cp tregsamp.dat $(LIBDIR)
51          csh -f tradinstall.csh $(INSTDIR) $(LIBDIR)/tcl
52  
53   clean:
54 <        set nonomatch; rm -f *.o $(PROGS) core
54 >        set nonomatch; rm -f *.o $(PROGS) glrad core Version.c x11findwind.c
55  
56 < scanner:        scanner.o
57 <        $(CC) $(CFLAGS) -o scanner scanner.o -lm
56 > ogl:    glrad
57 >        cp glrad $(INSTDIR)
58  
59 < makedist:       makedist.o setscan.o
45 <        $(CC) $(CFLAGS) -o makedist makedist.o setscan.o -lrt -lm
59 > sgi:
60  
61 + sun:
62 +
63   findglare:      findglare.o glareval.o glaresrc.o setscan.o
64          $(CC) $(CFLAGS) -o findglare findglare.o glareval.o glaresrc.o \
65 < setscan.o -lrt -lm
65 > setscan.o -lrtrad $(MLIB)
66  
67   glarendx:       glarendx.o
68 <        $(CC) $(CFLAGS) -o glarendx glarendx.o -lrt -lm
68 >        $(CC) $(CFLAGS) -o glarendx glarendx.o -lrtrad $(MLIB)
69  
70   xglaresrc:      xglaresrc.o x11findwind.o
71          $(CC) $(CFLAGS) -o xglaresrc xglaresrc.o \
72 < x11findwind.o -lrt -lX11 -lm
72 > x11findwind.o -lrtrad -lX11 $(MLIB)
73  
74   rad:    rad.o
75 <        $(CC) $(CFLAGS) -o rad rad.o -lrt -lm
75 >        $(CC) $(CFLAGS) -o rad rad.o -lrtrad $(MLIB)
76  
77   ranimate:       ranimate.o netproc.o
78 <        $(CC) $(CFLAGS) -o ranimate ranimate.o netproc.o -lrt -lm
78 >        $(CC) $(CFLAGS) -o ranimate ranimate.o netproc.o -lrtrad $(MLIB)
79  
80 + ranimove:       ranimove.o ranimove1.o ranimove2.o
81 +        $(CC) $(CFLAGS) -o ranimove ranimove.o ranimove1.o ranimove2.o \
82 + -lraycalls -lradiance -lrtrad $(MLIB)
83 +
84 + rsensor:        rsensor.o
85 +        $(CC) $(CFLAGS) -o rsensor rsensor.o \
86 + -lraycalls -lradiance -lrtrad $(MLIB)
87 +
88   rpiece: rpiece.o Version.o
89 <        $(CC) $(CFLAGS) -o rpiece rpiece.o Version.o -lrt -lm
89 >        $(CC) $(CFLAGS) -o rpiece rpiece.o Version.o -lrtrad $(MLIB)
90  
91 + rtcontrib:      rtcontrib.o Version.o
92 +        $(CC) $(CFLAGS) -o rtcontrib rtcontrib.o Version.o -lrtrad $(MLIB)
93 +
94   vwright:        vwright.o
95 <        $(CC) $(CFLAGS) -o vwright vwright.o -lrt -lm
95 >        $(CC) $(CFLAGS) -o vwright vwright.o -lrtrad $(MLIB)
96  
97 + vwrays:         vwrays.o
98 +        $(CC) $(CFLAGS) -o vwrays vwrays.o -lrtrad $(MLIB)
99 +
100   getinfo:        getinfo.o
101 <        $(CC) $(CFLAGS) -o getinfo getinfo.o -lrt
101 >        $(CC) $(CFLAGS) -o getinfo getinfo.o -lrtrad
102  
103 < contour:        contour.o
104 <        $(CC) $(CFLAGS) -o contour contour.o -lm
103 > glrad:  glrad.o
104 >        $(CC) $(CFLAGS) -o glrad glrad.o -lrgl -lrtrad -lGLU -lGL \
105 > -lX11 -lXext $(MLIB)
106  
107 < pranim: pranim.o client/libclient.a
108 <        $(CC) $(CFLAGS) -o pranim pranim.o \
78 < client/libclient.a -lrpcsvc
107 > dctimestep:     dctimestep.o
108 >        $(CC) $(CFLAGS) -o dctimestep dctimestep.o -lrtrad $(MLIB)
109  
110 < t16anim:        t16anim.o client/libclient.a
111 <        $(CC) $(CFLAGS) -o t16anim t16anim.o \
82 < client/libclient.a -lrpcsvc
110 > rttree_reduce:  rttree_reduce.o
111 >        $(CC) $(CFLAGS) -o rttree_reduce rttree_reduce.o -lrtrad
112  
113 < t16anim.o pranim.o:     client/clnt.h
113 > setscan.o:      setscan.h
114  
86 setscan.o makedist.o:   setscan.h
87
115   findglare.o glareval.o \
116 < glaresrc.o:     glare.h ../common/standard.h ../common/mat4.h \
117 < ../common/fvect.h ../common/view.h ../common/color.h setscan.h
116 > glaresrc.o:     glare.h ../common/standard.h \
117 > ../common/rtmisc.h ../common/rtio.h \
118 > ../common/rtmath.h ../common/mat4.h ../common/fvect.h \
119 > ../common/rterror.h ../common/view.h ../common/color.h setscan.h
120  
121   glaresrc.o:     ../common/linregr.h
122  
123   rpiece.o:       ../common/color.h ../common/view.h ../common/resolu.h
124  
125 < rad.o ranimate.o rpiece.o xglaresrc.o:  ../common/standard.h \
126 < ../common/mat4.h ../common/fvect.h
125 > dctimestep.o:   ../common/standard.h \
126 > ../common/rtmisc.h ../common/rtio.h \
127 > ../common/rtmath.h ../common/mat4.h ../common/fvect.h \
128 > ../common/rterror.h ../common/platform.h ../common/paths.h \
129 > ../common/color.h ../common/bsdf.h ../common/bsdf_m.h ../common/resolu.h
130  
131 < xglaresrc.o:    ../common/view.h
131 > rtcontrib.o:    ../common/platform.h ../common/rtprocess.h \
132 > ../common/color.h ../common/resolu.h ../common/lookup.h \
133 > ../common/calcomp.h ../common/selcall.h
134  
135 < swaprasheader.o:        ../common/rasterfile.h
135 > rad.o ranimate.o rpiece.o rtcontrib.o xglaresrc.o:      ../common/standard.h \
136 > ../common/rtmisc.h ../common/rtio.h \
137 > ../common/rtmath.h ../common/mat4.h ../common/fvect.h \
138 > ../common/rterror.h
139  
140 + xglaresrc.o:    ../common/view.h
141 +
142   glareval.o xglaresrc.o: ../common/resolu.h
143  
144 < xglaresrc.o:    ../common/vfork.h
144 > glareval.o:     ../common/platform.h ../common/rtprocess.h
145  
146   rad.o ranimate.o:       ../common/vars.h
147  
148 + ranimove1.o ranimove2.o vwrays.o:       ../common/random.h
149 +
150   rad.o:  ../common/paths.h
151  
152   ranimate.o netproc.o:   netproc.h
153  
154 + ranimove1.o:    ../common/otypes.h
155 +
156   netproc.o:      ../common/paths.h
157  
158 < ranimate.o:     ../common/view.h
158 > rad.o ranimate.o ranimove.o:    ../common/view.h ../common/resolu.h
159 >
160 > glrad.o:        ../common/radogl.h \
161 > ../common/standard.h ../common/rtmisc.h ../common/rtio.h \
162 > ../common/rtmath.h ../common/mat4.h ../common/fvect.h ../common/rterror.h \
163 > ../common/color.h ../common/object.h ../common/otypes.h ../common/lookup.h
164 >
165 > glrad.o:        glradicon.h ../common/view.h ../common/paths.h
166 >
167 > ranimove.o ranimove1.o ranimove2.o:     ranimove.h \
168 > ../common/vars.h ../common/view.h \
169 > ../rt/ray.h ../common/octree.h \
170 > ../common/object.h ../common/color.h \
171 > ../common/standard.h ../common/rtmisc.h ../common/rtio.h \
172 > ../common/rtmath.h ../common/mat4.h ../common/fvect.h \
173 > ../common/rterror.h
174 >
175 > rsensor.o:      ../rt/ray.h ../common/octree.h \
176 > ../common/object.h ../common/color.h \
177 > ../common/standard.h ../common/rtmisc.h ../common/rtio.h \
178 > ../common/rtmath.h ../common/mat4.h ../common/fvect.h \
179 > ../common/rterror.h
180 >
181 > rsensor.o:      ../common/view.h ../common/resolu.h ../rt/source.h
182 >
183 > Version.c:      ../rt/Version.c
184 >        cp ../rt/Version.c .
185 >
186 > x11findwind.c:  ../common/x11findwind.c
187 >        cp ../common/x11findwind.c .
188 >
189 > rttree_reduce.o:        ../common/rtio.h ../common/rterror.h

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines