1 |
greg |
2.61 |
# RCSid: $Id: Rmakefile,v 2.60 2011/06/09 13:17:28 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.61 |
vwrays xglaresrc rsensor dctimestep rttree_reduce |
24 |
greg |
1.1 |
|
25 |
gwlarson |
2.30 |
all: $(PROGS) |
26 |
greg |
1.1 |
|
27 |
gwlarson |
2.30 |
install: all $(SPECIAL) objview.csh objpict.csh 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 |
|
|
cp objview.csh $(INSTDIR)/objview |
32 |
greg |
2.17 |
cp objline.csh $(INSTDIR)/objline |
33 |
greg |
1.1 |
cp objpict.csh $(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.53 |
dctimestep: dctimestep.o |
108 |
greg |
2.54 |
$(CC) $(CFLAGS) -o dctimestep dctimestep.o -lrtrad $(MLIB) |
109 |
greg |
2.53 |
|
110 |
greg |
2.59 |
rttree_reduce: rttree_reduce.o |
111 |
greg |
2.60 |
$(CC) $(CFLAGS) -o rttree_reduce rttree_reduce.o -lrtrad $(MLIB) |
112 |
greg |
2.59 |
|
113 |
greg |
2.39 |
setscan.o: setscan.h |
114 |
greg |
1.3 |
|
115 |
|
|
findglare.o glareval.o \ |
116 |
greg |
2.35 |
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 |
greg |
2.50 |
../common/rterror.h ../common/view.h ../common/color.h setscan.h |
120 |
greg |
1.10 |
|
121 |
greg |
1.12 |
glaresrc.o: ../common/linregr.h |
122 |
greg |
1.3 |
|
123 |
greg |
2.4 |
rpiece.o: ../common/color.h ../common/view.h ../common/resolu.h |
124 |
|
|
|
125 |
greg |
2.53 |
dctimestep.o: ../common/standard.h \ |
126 |
|
|
../common/rtmisc.h ../common/rtio.h \ |
127 |
|
|
../common/rtmath.h ../common/mat4.h ../common/fvect.h \ |
128 |
greg |
2.58 |
../common/rterror.h ../common/platform.h ../common/paths.h \ |
129 |
|
|
../common/color.h ../common/bsdf.h ../common/bsdf_m.h ../common/resolu.h |
130 |
greg |
2.53 |
|
131 |
greg |
2.41 |
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 |
greg |
2.40 |
|
135 |
greg |
2.41 |
rad.o ranimate.o rpiece.o rtcontrib.o xglaresrc.o: ../common/standard.h \ |
136 |
greg |
2.35 |
../common/rtmisc.h ../common/rtio.h \ |
137 |
|
|
../common/rtmath.h ../common/mat4.h ../common/fvect.h \ |
138 |
greg |
2.50 |
../common/rterror.h |
139 |
greg |
2.4 |
|
140 |
|
|
xglaresrc.o: ../common/view.h |
141 |
greg |
1.3 |
|
142 |
greg |
1.18 |
glareval.o xglaresrc.o: ../common/resolu.h |
143 |
greg |
2.18 |
|
144 |
greg |
2.57 |
glareval.o: ../common/platform.h ../common/rtprocess.h |
145 |
|
|
|
146 |
greg |
2.23 |
rad.o ranimate.o: ../common/vars.h |
147 |
greg |
2.20 |
|
148 |
greg |
2.43 |
ranimove1.o ranimove2.o vwrays.o: ../common/random.h |
149 |
greg |
2.31 |
|
150 |
greg |
2.20 |
rad.o: ../common/paths.h |
151 |
|
|
|
152 |
|
|
ranimate.o netproc.o: netproc.h |
153 |
|
|
|
154 |
greg |
2.31 |
ranimove1.o: ../common/otypes.h |
155 |
|
|
|
156 |
greg |
2.21 |
netproc.o: ../common/paths.h |
157 |
|
|
|
158 |
greg |
2.31 |
rad.o ranimate.o ranimove.o: ../common/view.h ../common/resolu.h |
159 |
gwlarson |
2.27 |
|
160 |
|
|
glrad.o: ../common/radogl.h \ |
161 |
greg |
2.35 |
../common/standard.h ../common/rtmisc.h ../common/rtio.h \ |
162 |
greg |
2.50 |
../common/rtmath.h ../common/mat4.h ../common/fvect.h ../common/rterror.h \ |
163 |
gwlarson |
2.27 |
../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 |
greg |
2.31 |
|
167 |
|
|
ranimove.o ranimove1.o ranimove2.o: ranimove.h \ |
168 |
|
|
../common/vars.h ../common/view.h \ |
169 |
greg |
2.35 |
../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 |
greg |
2.50 |
../common/rterror.h |
174 |
greg |
2.31 |
|
175 |
greg |
2.48 |
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 |
greg |
2.50 |
../common/rterror.h |
180 |
greg |
2.48 |
|
181 |
|
|
rsensor.o: ../common/view.h ../common/resolu.h ../rt/source.h |
182 |
|
|
|
183 |
greg |
2.31 |
Version.c: ../rt/Version.c |
184 |
|
|
cp ../rt/Version.c . |
185 |
|
|
|
186 |
|
|
x11findwind.c: ../common/x11findwind.c |
187 |
|
|
cp ../common/x11findwind.c . |
188 |
greg |
2.59 |
|
189 |
|
|
rttree_reduce.o: ../common/rtio.h ../common/rterror.h |