1 |
+ |
# RCSid: $Id$ |
2 |
|
# |
3 |
< |
# SCCSid "$SunId$ LBL" |
3 |
> |
# Radiance makefile for utility programs |
4 |
|
# |
5 |
|
|
6 |
|
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 |
|
CC = cc |
13 |
|
|
14 |
+ |
SPECIAL = |
15 |
+ |
|
16 |
|
INSTDIR = /usr/local/bin |
17 |
|
|
18 |
< |
PROGS = findglare xglaresrc glarendx rpiece rad |
18 |
> |
LIBDIR = /usr/local/lib/ray |
19 |
|
|
20 |
+ |
PROGS = findglare glarendx rpiece rad ranimate ranimove vwright getinfo \ |
21 |
+ |
vwrays xglaresrc rtcontrib |
22 |
+ |
|
23 |
|
all: $(PROGS) |
24 |
|
|
25 |
< |
install: all objview.csh objpict.csh proj.csh glare.csh dayfact.csh \ |
26 |
< |
rlux.csh |
25 |
> |
install: all $(SPECIAL) objview.csh objpict.csh glare.csh dayfact.csh \ |
26 |
> |
rlux.csh raddepend.csh trad.wsh objline.csh compamb.csh vinfo.csh \ |
27 |
> |
genambpos.csh fieldcomb.csh |
28 |
|
cp $(PROGS) $(INSTDIR) |
29 |
|
cp objview.csh $(INSTDIR)/objview |
30 |
+ |
cp objline.csh $(INSTDIR)/objline |
31 |
|
cp objpict.csh $(INSTDIR)/objpict |
32 |
|
cp glare.csh $(INSTDIR)/glare |
33 |
|
cp dayfact.csh $(INSTDIR)/dayfact |
34 |
|
cp debugcal.csh $(INSTDIR)/debugcal |
35 |
|
cp rlux.csh $(INSTDIR)/rlux |
36 |
+ |
cp raddepend.csh $(INSTDIR)/raddepend |
37 |
+ |
cp compamb.csh $(INSTDIR)/compamb |
38 |
+ |
cp vinfo.csh $(INSTDIR)/vinfo |
39 |
+ |
cp genambpos.csh $(INSTDIR)/genambpos |
40 |
+ |
cp fieldcomb.csh $(INSTDIR)/fieldcomb |
41 |
|
chmod 755 $(INSTDIR)/objview $(INSTDIR)/objpict \ |
42 |
|
$(INSTDIR)/glare $(INSTDIR)/dayfact $(INSTDIR)/debugcal \ |
43 |
< |
$(INSTDIR)/rlux |
43 |
> |
$(INSTDIR)/rlux $(INSTDIR)/raddepend $(INSTDIR)/objline \ |
44 |
> |
$(INSTDIR)/compamb $(INSTDIR)/vinfo $(INSTDIR)/genambpos \ |
45 |
> |
$(INSTDIR)/fieldcomb |
46 |
> |
csh -f tradinstall.csh $(INSTDIR) $(LIBDIR)/tcl |
47 |
|
|
48 |
|
clean: |
49 |
< |
set nonomatch; rm -f *.o $(PROGS) core |
49 |
> |
set nonomatch; rm -f *.o $(PROGS) glrad core |
50 |
|
|
51 |
< |
scanner: scanner.o |
52 |
< |
$(CC) $(CFLAGS) -o scanner scanner.o -lm |
51 |
> |
ogl: glrad |
52 |
> |
cp glrad $(INSTDIR) |
53 |
|
|
54 |
< |
makedist: makedist.o setscan.o |
39 |
< |
$(CC) $(CFLAGS) -o makedist makedist.o setscan.o -lrt -lm |
54 |
> |
sgi: |
55 |
|
|
56 |
+ |
sun: |
57 |
+ |
|
58 |
|
findglare: findglare.o glareval.o glaresrc.o setscan.o |
59 |
|
$(CC) $(CFLAGS) -o findglare findglare.o glareval.o glaresrc.o \ |
60 |
< |
setscan.o -lrt -lm |
60 |
> |
setscan.o -lrtrad -lm |
61 |
|
|
62 |
|
glarendx: glarendx.o |
63 |
< |
$(CC) $(CFLAGS) -o glarendx glarendx.o -lrt -lm |
63 |
> |
$(CC) $(CFLAGS) -o glarendx glarendx.o -lrtrad -lm |
64 |
|
|
65 |
|
xglaresrc: xglaresrc.o x11findwind.o |
66 |
|
$(CC) $(CFLAGS) -o xglaresrc xglaresrc.o \ |
67 |
< |
x11findwind.o -lrt -lX11 -lm |
67 |
> |
x11findwind.o -lrtrad -lX11 -lm |
68 |
|
|
69 |
|
rad: rad.o |
70 |
< |
$(CC) $(CFLAGS) -o rad rad.o -lrt -lm |
70 |
> |
$(CC) $(CFLAGS) -o rad rad.o -lrtrad -lm |
71 |
|
|
72 |
+ |
ranimate: ranimate.o netproc.o |
73 |
+ |
$(CC) $(CFLAGS) -o ranimate ranimate.o netproc.o -lrtrad -lm |
74 |
+ |
|
75 |
+ |
ranimove: ranimove.o ranimove1.o ranimove2.o |
76 |
+ |
$(CC) $(CFLAGS) -o ranimove ranimove.o ranimove1.o ranimove2.o \ |
77 |
+ |
-lraycalls -lradiance -lrtrad -lm |
78 |
+ |
|
79 |
|
rpiece: rpiece.o Version.o |
80 |
< |
$(CC) $(CFLAGS) -o rpiece rpiece.o Version.o -lrt -lm |
80 |
> |
$(CC) $(CFLAGS) -o rpiece rpiece.o Version.o -lrtrad -lm |
81 |
|
|
82 |
< |
contour: contour.o |
83 |
< |
$(CC) $(CFLAGS) -o contour contour.o -lm |
82 |
> |
rtcontrib: rtcontrib.o Version.o |
83 |
> |
$(CC) $(CFLAGS) -o rtcontrib rtcontrib.o Version.o -lrtrad -lm |
84 |
|
|
85 |
< |
pranim: pranim.o client/libclient.a |
86 |
< |
$(CC) $(CFLAGS) -o pranim pranim.o \ |
63 |
< |
client/libclient.a -lrpcsvc |
85 |
> |
vwright: vwright.o |
86 |
> |
$(CC) $(CFLAGS) -o vwright vwright.o -lrtrad -lm |
87 |
|
|
88 |
< |
t16anim: t16anim.o client/libclient.a |
89 |
< |
$(CC) $(CFLAGS) -o t16anim t16anim.o \ |
67 |
< |
client/libclient.a -lrpcsvc |
88 |
> |
vwrays: vwrays.o |
89 |
> |
$(CC) $(CFLAGS) -o vwrays vwrays.o -lrtrad -lm |
90 |
|
|
91 |
< |
t16anim.o pranim.o: client/clnt.h |
91 |
> |
getinfo: getinfo.o |
92 |
> |
$(CC) $(CFLAGS) -o getinfo getinfo.o -lrtrad |
93 |
|
|
94 |
< |
setscan.o makedist.o: setscan.h |
94 |
> |
glrad: glrad.o |
95 |
> |
$(CC) $(CFLAGS) -o glrad glrad.o -lrgl -lrtrad -lGLU -lGL \ |
96 |
> |
-lX11 -lXext -lm |
97 |
|
|
98 |
+ |
setscan.o: setscan.h |
99 |
+ |
|
100 |
|
findglare.o glareval.o \ |
101 |
< |
glaresrc.o: glare.h ../common/standard.h ../common/mat4.h \ |
102 |
< |
../common/fvect.h ../common/view.h ../common/color.h setscan.h |
101 |
> |
glaresrc.o: glare.h ../common/standard.h \ |
102 |
> |
../common/rtmisc.h ../common/rtio.h \ |
103 |
> |
../common/rtmath.h ../common/mat4.h ../common/fvect.h \ |
104 |
> |
../common/rterror.h ../common/tifftypes.h \ |
105 |
> |
../common/view.h ../common/color.h setscan.h |
106 |
|
|
107 |
|
glaresrc.o: ../common/linregr.h |
108 |
|
|
109 |
|
rpiece.o: ../common/color.h ../common/view.h ../common/resolu.h |
110 |
|
|
111 |
< |
rad.o rpiece.o xglaresrc.o: ../common/standard.h \ |
112 |
< |
../common/mat4.h ../common/fvect.h |
111 |
> |
rtcontrib.o: ../common/platform.h ../common/rtprocess.h \ |
112 |
> |
../common/color.h ../common/resolu.h ../common/lookup.h \ |
113 |
> |
../common/calcomp.h ../common/selcall.h |
114 |
|
|
115 |
+ |
rad.o ranimate.o rpiece.o rtcontrib.o xglaresrc.o: ../common/standard.h \ |
116 |
+ |
../common/rtmisc.h ../common/rtio.h \ |
117 |
+ |
../common/rtmath.h ../common/mat4.h ../common/fvect.h \ |
118 |
+ |
../common/rterror.h ../common/tifftypes.h |
119 |
+ |
|
120 |
|
xglaresrc.o: ../common/view.h |
121 |
|
|
86 |
– |
swaprasheader.o: ../common/rasterfile.h |
87 |
– |
|
122 |
|
glareval.o xglaresrc.o: ../common/resolu.h |
123 |
|
|
124 |
< |
xglaresrc.o: ../common/vfork.h |
124 |
> |
rad.o ranimate.o: ../common/vars.h |
125 |
> |
|
126 |
> |
ranimove1.o ranimove2.o vwrays.o: ../common/random.h |
127 |
> |
|
128 |
> |
rad.o: ../common/paths.h |
129 |
> |
|
130 |
> |
ranimate.o netproc.o: netproc.h |
131 |
> |
|
132 |
> |
ranimove1.o: ../common/otypes.h |
133 |
> |
|
134 |
> |
netproc.o: ../common/paths.h |
135 |
> |
|
136 |
> |
rad.o ranimate.o ranimove.o: ../common/view.h ../common/resolu.h |
137 |
> |
|
138 |
> |
glrad.o: ../common/radogl.h \ |
139 |
> |
../common/standard.h ../common/rtmisc.h ../common/rtio.h \ |
140 |
> |
../common/rtmath.h ../common/mat4.h ../common/fvect.h \ |
141 |
> |
../common/rterror.h ../common/tifftypes.h \ |
142 |
> |
../common/color.h ../common/object.h ../common/otypes.h ../common/lookup.h |
143 |
> |
|
144 |
> |
glrad.o: glradicon.h ../common/view.h ../common/paths.h |
145 |
> |
|
146 |
> |
ranimove.o ranimove1.o ranimove2.o: ranimove.h \ |
147 |
> |
../common/vars.h ../common/view.h \ |
148 |
> |
../rt/ray.h ../common/octree.h \ |
149 |
> |
../common/object.h ../common/color.h \ |
150 |
> |
../common/standard.h ../common/rtmisc.h ../common/rtio.h \ |
151 |
> |
../common/rtmath.h ../common/mat4.h ../common/fvect.h \ |
152 |
> |
../common/rterror.h ../common/tifftypes.h |
153 |
> |
|
154 |
> |
Version.c: ../rt/Version.c |
155 |
> |
cp ../rt/Version.c . |
156 |
> |
|
157 |
> |
x11findwind.c: ../common/x11findwind.c |
158 |
> |
cp ../common/x11findwind.c . |