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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines