1 |
greg |
2.64 |
# RCSid: $Id: Rmakefile,v 2.63 2013/12/04 20:07:07 greg Exp $ |
2 |
greg |
1.1 |
# |
3 |
greg |
2.10 |
# Radiance makefile for utility programs |
4 |
|
|
# |
5 |
greg |
1.1 |
|
6 |
greg |
1.16 |
MACH = -DBSD |
7 |
greg |
1.1 |
|
8 |
|
|
OPT = -O |
9 |
|
|
|
10 |
greg |
2.31 |
CFLAGS = -I../common -I../rt -L../lib $(OPT) $(MACH) |
11 |
greg |
1.1 |
|
12 |
greg |
2.46 |
MLIB = -lm |
13 |
|
|
|
14 |
greg |
2.3 |
CC = cc |
15 |
|
|
|
16 |
gwlarson |
2.28 |
SPECIAL = |
17 |
|
|
|
18 |
greg |
1.14 |
INSTDIR = /usr/local/bin |
19 |
greg |
1.1 |
|
20 |
greg |
2.12 |
LIBDIR = /usr/local/lib/ray |
21 |
|
|
|
22 |
greg |
2.31 |
PROGS = findglare glarendx rpiece rad ranimate ranimove vwright getinfo \ |
23 |
greg |
2.62 |
vwrays xglaresrc rsensor dctimestep rttree_reduce rcollate |
24 |
greg |
1.1 |
|
25 |
gwlarson |
2.30 |
all: $(PROGS) |
26 |
greg |
1.1 |
|
27 |
greg |
2.63 |
install: all $(SPECIAL) objview.pl objpict.pl glare.csh dayfact.csh \ |
28 |
greg |
2.42 |
rlux.csh raddepend.csh trad.wsh objline.csh compamb.csh vinfo.csh \ |
29 |
greg |
2.56 |
genambpos.csh fieldcomb.csh genklemsamp.pl genskyvec.pl genBSDF.pl tregsamp.dat |
30 |
greg |
1.1 |
cp $(PROGS) $(INSTDIR) |
31 |
greg |
2.63 |
cp objview.pl $(INSTDIR)/objview |
32 |
greg |
2.17 |
cp objline.csh $(INSTDIR)/objline |
33 |
greg |
2.63 |
cp objpict.pl $(INSTDIR)/objpict |
34 |
greg |
1.9 |
cp glare.csh $(INSTDIR)/glare |
35 |
greg |
1.11 |
cp dayfact.csh $(INSTDIR)/dayfact |
36 |
greg |
1.15 |
cp debugcal.csh $(INSTDIR)/debugcal |
37 |
greg |
2.6 |
cp rlux.csh $(INSTDIR)/rlux |
38 |
greg |
2.10 |
cp raddepend.csh $(INSTDIR)/raddepend |
39 |
gregl |
2.25 |
cp compamb.csh $(INSTDIR)/compamb |
40 |
greg |
2.31 |
cp vinfo.csh $(INSTDIR)/vinfo |
41 |
greg |
2.37 |
cp genambpos.csh $(INSTDIR)/genambpos |
42 |
greg |
2.42 |
cp fieldcomb.csh $(INSTDIR)/fieldcomb |
43 |
greg |
2.51 |
cp genklemsamp.pl $(INSTDIR)/genklemsamp |
44 |
greg |
2.55 |
cp genskyvec.pl $(INSTDIR)/genskyvec |
45 |
greg |
2.56 |
cp genBSDF.pl $(INSTDIR)/genBSDF |
46 |
greg |
2.51 |
cd $(INSTDIR) ; chmod 755 objview objpict \ |
47 |
|
|
glare dayfact debugcal rlux raddepend objline \ |
48 |
greg |
2.56 |
compamb vinfo genambpos fieldcomb genklemsamp \ |
49 |
|
|
genskyvec genBSDF |
50 |
greg |
2.52 |
cp tregsamp.dat $(LIBDIR) |
51 |
greg |
2.16 |
csh -f tradinstall.csh $(INSTDIR) $(LIBDIR)/tcl |
52 |
greg |
1.1 |
|
53 |
|
|
clean: |
54 |
greg |
2.45 |
set nonomatch; rm -f *.o $(PROGS) glrad core Version.c x11findwind.c |
55 |
greg |
1.1 |
|
56 |
gwlarson |
2.27 |
ogl: glrad |
57 |
|
|
cp glrad $(INSTDIR) |
58 |
gwlarson |
2.28 |
|
59 |
|
|
sgi: |
60 |
|
|
|
61 |
|
|
sun: |
62 |
gwlarson |
2.27 |
|
63 |
greg |
1.12 |
findglare: findglare.o glareval.o glaresrc.o setscan.o |
64 |
greg |
2.3 |
$(CC) $(CFLAGS) -o findglare findglare.o glareval.o glaresrc.o \ |
65 |
greg |
2.46 |
setscan.o -lrtrad $(MLIB) |
66 |
greg |
1.7 |
|
67 |
greg |
1.12 |
glarendx: glarendx.o |
68 |
greg |
2.46 |
$(CC) $(CFLAGS) -o glarendx glarendx.o -lrtrad $(MLIB) |
69 |
greg |
1.3 |
|
70 |
greg |
1.12 |
xglaresrc: xglaresrc.o x11findwind.o |
71 |
greg |
2.3 |
$(CC) $(CFLAGS) -o xglaresrc xglaresrc.o \ |
72 |
greg |
2.47 |
x11findwind.o -lrtrad -lX11 $(MLIB) |
73 |
greg |
1.4 |
|
74 |
greg |
2.23 |
rad: rad.o |
75 |
greg |
2.46 |
$(CC) $(CFLAGS) -o rad rad.o -lrtrad $(MLIB) |
76 |
greg |
2.19 |
|
77 |
greg |
2.23 |
ranimate: ranimate.o netproc.o |
78 |
greg |
2.46 |
$(CC) $(CFLAGS) -o ranimate ranimate.o netproc.o -lrtrad $(MLIB) |
79 |
greg |
2.6 |
|
80 |
greg |
2.34 |
ranimove: ranimove.o ranimove1.o ranimove2.o |
81 |
greg |
2.31 |
$(CC) $(CFLAGS) -o ranimove ranimove.o ranimove1.o ranimove2.o \ |
82 |
greg |
2.46 |
-lraycalls -lradiance -lrtrad $(MLIB) |
83 |
greg |
2.31 |
|
84 |
greg |
2.48 |
rsensor: rsensor.o |
85 |
|
|
$(CC) $(CFLAGS) -o rsensor rsensor.o \ |
86 |
|
|
-lraycalls -lradiance -lrtrad $(MLIB) |
87 |
|
|
|
88 |
greg |
2.5 |
rpiece: rpiece.o Version.o |
89 |
greg |
2.46 |
$(CC) $(CFLAGS) -o rpiece rpiece.o Version.o -lrtrad $(MLIB) |
90 |
greg |
2.14 |
|
91 |
greg |
2.40 |
rtcontrib: rtcontrib.o Version.o |
92 |
greg |
2.46 |
$(CC) $(CFLAGS) -o rtcontrib rtcontrib.o Version.o -lrtrad $(MLIB) |
93 |
greg |
2.40 |
|
94 |
greg |
2.14 |
vwright: vwright.o |
95 |
greg |
2.46 |
$(CC) $(CFLAGS) -o vwright vwright.o -lrtrad $(MLIB) |
96 |
gregl |
2.24 |
|
97 |
|
|
vwrays: vwrays.o |
98 |
greg |
2.46 |
$(CC) $(CFLAGS) -o vwrays vwrays.o -lrtrad $(MLIB) |
99 |
greg |
2.22 |
|
100 |
|
|
getinfo: getinfo.o |
101 |
schorsch |
2.44 |
$(CC) $(CFLAGS) -o getinfo getinfo.o -lrtrad |
102 |
greg |
2.4 |
|
103 |
gwlarson |
2.27 |
glrad: glrad.o |
104 |
schorsch |
2.44 |
$(CC) $(CFLAGS) -o glrad glrad.o -lrgl -lrtrad -lGLU -lGL \ |
105 |
greg |
2.49 |
-lX11 -lXext $(MLIB) |
106 |
gwlarson |
2.27 |
|
107 |
greg |
2.64 |
dctimestep: dctimestep.o cmbsdf.o cmatrix.o |
108 |
|
|
$(CC) $(CFLAGS) -o dctimestep dctimestep.o cmbsdf.o cmatrix.o \ |
109 |
|
|
-lrtrad $(MLIB) |
110 |
greg |
2.53 |
|
111 |
greg |
2.59 |
rttree_reduce: rttree_reduce.o |
112 |
greg |
2.60 |
$(CC) $(CFLAGS) -o rttree_reduce rttree_reduce.o -lrtrad $(MLIB) |
113 |
greg |
2.59 |
|
114 |
greg |
2.62 |
rcollate: rcollate.o |
115 |
|
|
$(CC) $(CFLAGS) -o rcollate rcollate.o -lrtrad |
116 |
|
|
|
117 |
greg |
2.39 |
setscan.o: setscan.h |
118 |
greg |
1.3 |
|
119 |
|
|
findglare.o glareval.o \ |
120 |
greg |
2.35 |
glaresrc.o: glare.h ../common/standard.h \ |
121 |
|
|
../common/rtmisc.h ../common/rtio.h \ |
122 |
|
|
../common/rtmath.h ../common/mat4.h ../common/fvect.h \ |
123 |
greg |
2.50 |
../common/rterror.h ../common/view.h ../common/color.h setscan.h |
124 |
greg |
1.10 |
|
125 |
greg |
1.12 |
glaresrc.o: ../common/linregr.h |
126 |
greg |
1.3 |
|
127 |
greg |
2.4 |
rpiece.o: ../common/color.h ../common/view.h ../common/resolu.h |
128 |
|
|
|
129 |
greg |
2.53 |
dctimestep.o: ../common/standard.h \ |
130 |
|
|
../common/rtmisc.h ../common/rtio.h \ |
131 |
|
|
../common/rtmath.h ../common/mat4.h ../common/fvect.h \ |
132 |
greg |
2.64 |
../common/rterror.h ../common/resolu.h |
133 |
|
|
|
134 |
|
|
dctimestep.o cmatrix.o cmbsdf.o: cmatrix.h ../common/color.h |
135 |
|
|
|
136 |
|
|
cmatrix.o cmbsdf.o: ../common/standard.h \ |
137 |
|
|
../common/rtmisc.h ../common/rtio.h \ |
138 |
|
|
../common/rtmath.h ../common/mat4.h ../common/fvect.h \ |
139 |
|
|
../common/rterror.h |
140 |
|
|
|
141 |
|
|
cmbsdf.o: ../common/paths.h ../common/bsdf.h ../common/bsdf_m.h |
142 |
|
|
|
143 |
|
|
dctimestep.o cmatrix.o: ../common/platform.h |
144 |
greg |
2.53 |
|
145 |
greg |
2.41 |
rtcontrib.o: ../common/platform.h ../common/rtprocess.h \ |
146 |
|
|
../common/color.h ../common/resolu.h ../common/lookup.h \ |
147 |
|
|
../common/calcomp.h ../common/selcall.h |
148 |
greg |
2.40 |
|
149 |
greg |
2.41 |
rad.o ranimate.o rpiece.o rtcontrib.o xglaresrc.o: ../common/standard.h \ |
150 |
greg |
2.35 |
../common/rtmisc.h ../common/rtio.h \ |
151 |
|
|
../common/rtmath.h ../common/mat4.h ../common/fvect.h \ |
152 |
greg |
2.50 |
../common/rterror.h |
153 |
greg |
2.4 |
|
154 |
|
|
xglaresrc.o: ../common/view.h |
155 |
greg |
1.3 |
|
156 |
greg |
1.18 |
glareval.o xglaresrc.o: ../common/resolu.h |
157 |
greg |
2.18 |
|
158 |
greg |
2.57 |
glareval.o: ../common/platform.h ../common/rtprocess.h |
159 |
|
|
|
160 |
greg |
2.23 |
rad.o ranimate.o: ../common/vars.h |
161 |
greg |
2.20 |
|
162 |
greg |
2.43 |
ranimove1.o ranimove2.o vwrays.o: ../common/random.h |
163 |
greg |
2.31 |
|
164 |
greg |
2.20 |
rad.o: ../common/paths.h |
165 |
|
|
|
166 |
|
|
ranimate.o netproc.o: netproc.h |
167 |
|
|
|
168 |
greg |
2.31 |
ranimove1.o: ../common/otypes.h |
169 |
|
|
|
170 |
greg |
2.21 |
netproc.o: ../common/paths.h |
171 |
|
|
|
172 |
greg |
2.31 |
rad.o ranimate.o ranimove.o: ../common/view.h ../common/resolu.h |
173 |
gwlarson |
2.27 |
|
174 |
|
|
glrad.o: ../common/radogl.h \ |
175 |
greg |
2.35 |
../common/standard.h ../common/rtmisc.h ../common/rtio.h \ |
176 |
greg |
2.50 |
../common/rtmath.h ../common/mat4.h ../common/fvect.h ../common/rterror.h \ |
177 |
gwlarson |
2.27 |
../common/color.h ../common/object.h ../common/otypes.h ../common/lookup.h |
178 |
|
|
|
179 |
|
|
glrad.o: glradicon.h ../common/view.h ../common/paths.h |
180 |
greg |
2.31 |
|
181 |
|
|
ranimove.o ranimove1.o ranimove2.o: ranimove.h \ |
182 |
|
|
../common/vars.h ../common/view.h \ |
183 |
greg |
2.35 |
../rt/ray.h ../common/octree.h \ |
184 |
|
|
../common/object.h ../common/color.h \ |
185 |
|
|
../common/standard.h ../common/rtmisc.h ../common/rtio.h \ |
186 |
|
|
../common/rtmath.h ../common/mat4.h ../common/fvect.h \ |
187 |
greg |
2.50 |
../common/rterror.h |
188 |
greg |
2.31 |
|
189 |
greg |
2.48 |
rsensor.o: ../rt/ray.h ../common/octree.h \ |
190 |
|
|
../common/object.h ../common/color.h \ |
191 |
|
|
../common/standard.h ../common/rtmisc.h ../common/rtio.h \ |
192 |
|
|
../common/rtmath.h ../common/mat4.h ../common/fvect.h \ |
193 |
greg |
2.50 |
../common/rterror.h |
194 |
greg |
2.48 |
|
195 |
|
|
rsensor.o: ../common/view.h ../common/resolu.h ../rt/source.h |
196 |
|
|
|
197 |
greg |
2.62 |
rcollate.o: ../common/platform.h ../common/rtio.h ../common/resolu.h |
198 |
|
|
|
199 |
greg |
2.31 |
Version.c: ../rt/Version.c |
200 |
|
|
cp ../rt/Version.c . |
201 |
|
|
|
202 |
|
|
x11findwind.c: ../common/x11findwind.c |
203 |
|
|
cp ../common/x11findwind.c . |
204 |
greg |
2.59 |
|
205 |
|
|
rttree_reduce.o: ../common/rtio.h ../common/rterror.h |