1 |
# RCSid: $Id: Rmakefile,v 3.37 2014/04/26 15:59:38 greg Exp $ |
2 |
# |
3 |
# Radiance makefile for holodeck programs |
4 |
# |
5 |
|
6 |
MACH = -DBSD |
7 |
|
8 |
OPT = -O |
9 |
|
10 |
CFLAGS = -I../common -L../lib $(OPT) $(MACH) -DDEVPATH=\"$(DEVDIR)\" |
11 |
|
12 |
MLIB = -lm |
13 |
|
14 |
CC = cc |
15 |
|
16 |
LN = ln |
17 |
|
18 |
SPECIAL = |
19 |
|
20 |
INSTALL = cp |
21 |
|
22 |
INSTDIR = /usr/local/bin |
23 |
DEVDIR = $(INSTDIR) |
24 |
|
25 |
LIBDIR = /usr/local/lib/ray |
26 |
|
27 |
PROGS = rholo rhpict rhcopy genrhgrid rhoptimize rhinfo |
28 |
|
29 |
DEVS = $(DEVDIR)/x11.hdi $(DEVDIR)/x11h.hdi |
30 |
|
31 |
all: $(PROGS) |
32 |
|
33 |
install: all $(DEVS) $(SPECIAL) |
34 |
$(INSTALL) $(PROGS) $(INSTDIR) |
35 |
|
36 |
clean: |
37 |
set nonomatch; rm -f *.o $(PROGS) Version.c |
38 |
|
39 |
ogl: $(DEVDIR)/ogl.hdi $(DEVDIR)/oglh.hdi \ |
40 |
$(DEVDIR)/oglo.hdi $(DEVDIR)/ogloh.hdi \ |
41 |
$(DEVDIR)/ogls.hdi $(DEVDIR)/oglsh.hdi \ |
42 |
$(DEVDIR)/oglso.hdi $(DEVDIR)/oglsoh.hdi \ |
43 |
$(DEVDIR)/glx1.hdi $(DEVDIR)/glx1h.hdi |
44 |
|
45 |
x10: |
46 |
|
47 |
aed: |
48 |
|
49 |
sgi: |
50 |
|
51 |
sun: |
52 |
|
53 |
rholo: rholo.o rholo2.o rholo2l.o rholo3.o rholo4.o holo.o holofile.o \ |
54 |
viewbeams.o Version.o |
55 |
$(CC) $(CFLAGS) -o rholo rholo.o rholo2.o rholo2l.o rholo3.o rholo4.o \ |
56 |
holo.o holofile.o viewbeams.o Version.o -lrtrad $(MLIB) |
57 |
|
58 |
rhpict: rhpict.o rhpict2.o holo.o holofile.o viewbeams.o Version.o |
59 |
$(CC) $(CFLAGS) -o rhpict rhpict.o rhpict2.o holo.o holofile.o \ |
60 |
viewbeams.o Version.o -lrtrad $(MLIB) |
61 |
|
62 |
rhcopy: rhcopy.o clumpbeams.o holo.o holofile.o |
63 |
$(CC) $(CFLAGS) -o rhcopy rhcopy.o clumpbeams.o \ |
64 |
holo.o holofile.o -lrtrad $(MLIB) |
65 |
|
66 |
rhoptimize: rhoptimize.o clumpbeams.o holo.o holofile.o |
67 |
$(CC) $(CFLAGS) -o rhoptimize rhoptimize.o clumpbeams.o \ |
68 |
holo.o holofile.o -lrtrad $(MLIB) |
69 |
|
70 |
rhinfo: rhinfo.o holo.o holofile.o |
71 |
$(CC) $(CFLAGS) -o rhinfo rhinfo.o holo.o holofile.o -lrtrad $(MLIB) |
72 |
|
73 |
genrhgrid: genrhgrid.o holo.o |
74 |
$(CC) $(CFLAGS) -o genrhgrid genrhgrid.o holo.o -lrtrad $(MLIB) |
75 |
|
76 |
$(DEVDIR)/x11h.hdi: $(DEVDIR)/x11.hdi |
77 |
rm -f $(DEVDIR)/x11h.hdi |
78 |
$(LN) $(DEVDIR)/x11.hdi $(DEVDIR)/x11h.hdi |
79 |
|
80 |
$(DEVDIR)/x11.hdi: rhdisp.o rhdisp2.o viewbeams.o rhd_x11.o rhd_qtree.o \ |
81 |
rhd_qtree2r.o rhd_ctab.o holo.o |
82 |
$(CC) $(CFLAGS) -o $(DEVDIR)/x11.hdi rhdisp.o rhdisp2.o viewbeams.o \ |
83 |
rhd_x11.o rhd_qtree.o rhd_qtree2r.o rhd_ctab.o holo.o -lrtrad -lX11 $(MLIB) |
84 |
|
85 |
$(DEVDIR)/glx1h.hdi: $(DEVDIR)/glx1.hdi |
86 |
rm -f $(DEVDIR)/glx1h.hdi |
87 |
$(LN) $(DEVDIR)/glx1.hdi $(DEVDIR)/glx1h.hdi |
88 |
|
89 |
$(DEVDIR)/glxoh.hdi: $(DEVDIR)/glxo.hdi |
90 |
rm -f $(DEVDIR)/glxoh.hdi |
91 |
$(LN) $(DEVDIR)/glxo.hdi $(DEVDIR)/glxoh.hdi |
92 |
|
93 |
$(DEVDIR)/glxsh.hdi: $(DEVDIR)/glxs.hdi |
94 |
rm -f $(DEVDIR)/glxsh.hdi |
95 |
$(LN) $(DEVDIR)/glxs.hdi $(DEVDIR)/glxsh.hdi |
96 |
|
97 |
$(DEVDIR)/glxsoh.hdi: $(DEVDIR)/glxso.hdi |
98 |
rm -f $(DEVDIR)/glxsoh.hdi |
99 |
$(LN) $(DEVDIR)/glxso.hdi $(DEVDIR)/glxsoh.hdi |
100 |
|
101 |
$(DEVDIR)/oglh.hdi: $(DEVDIR)/ogl.hdi |
102 |
rm -f $(DEVDIR)/oglh.hdi |
103 |
$(LN) $(DEVDIR)/ogl.hdi $(DEVDIR)/oglh.hdi |
104 |
|
105 |
$(DEVDIR)/ogloh.hdi: $(DEVDIR)/oglo.hdi |
106 |
rm -f $(DEVDIR)/ogloh.hdi |
107 |
$(LN) $(DEVDIR)/oglo.hdi $(DEVDIR)/ogloh.hdi |
108 |
|
109 |
$(DEVDIR)/oglsh.hdi: $(DEVDIR)/ogls.hdi |
110 |
rm -f $(DEVDIR)/oglsh.hdi |
111 |
$(LN) $(DEVDIR)/ogls.hdi $(DEVDIR)/oglsh.hdi |
112 |
|
113 |
$(DEVDIR)/oglsoh.hdi: $(DEVDIR)/oglso.hdi |
114 |
rm -f $(DEVDIR)/oglsoh.hdi |
115 |
$(LN) $(DEVDIR)/oglso.hdi $(DEVDIR)/oglsoh.hdi |
116 |
|
117 |
$(DEVDIR)/glx1.hdi: rhd_glx1.o rhdisp.o rhdisp2.o viewbeams.o \ |
118 |
rhd_qtree.o rhd_qtree2c.o holo.o |
119 |
rm -f $(DEVDIR)/glx1.hdi |
120 |
$(CC) $(CFLAGS) -o $(DEVDIR)/glx1.hdi rhd_glx1.o rhdisp.o rhdisp2.o \ |
121 |
viewbeams.o holo.o rhd_qtree.o rhd_qtree2c.o -lrtrad -lGLU -lGL -lX11 $(MLIB) |
122 |
|
123 |
$(DEVDIR)/ogl.hdi: rhd_ogl0.o rhdisp.o rhdisp2.o viewbeams.o \ |
124 |
rhd_odraw.o rhd_geom.o holo.o |
125 |
$(CC) $(CFLAGS) -o $(DEVDIR)/ogl.hdi rhd_ogl0.o rhdisp.o rhdisp2.o \ |
126 |
viewbeams.o holo.o rhd_odraw.o rhd_geom.o -lrgl -lrtrad -lGLU -lGL -lX11 $(MLIB) |
127 |
|
128 |
$(DEVDIR)/oglo.hdi: rhd_oglo.o rhdisp.o rhdisp2.o viewbeams.o \ |
129 |
rhd_odraw.o rhd_geom.o holo.o rhdobj.o |
130 |
$(CC) $(CFLAGS) -o $(DEVDIR)/oglo.hdi rhd_oglo.o rhdisp.o \ |
131 |
rhdisp2.o viewbeams.o holo.o rhd_odraw.o rhd_geom.o rhdobj.o \ |
132 |
-lrgl -lrtrad -lGLU -lGL -lX11 $(MLIB) |
133 |
|
134 |
$(DEVDIR)/ogls.hdi: rhd_ogls.o rhdisp.o rhdisp2.o viewbeams.o \ |
135 |
rhd_odraw.o rhd_geom.o holo.o |
136 |
$(CC) $(CFLAGS) -o $(DEVDIR)/ogls.hdi rhd_ogls.o rhdisp.o rhdisp2.o \ |
137 |
viewbeams.o holo.o rhd_odraw.o rhd_geom.o \ |
138 |
-lrgl -lrtrad -lGLU -lGL -lX11 -lXext $(MLIB) |
139 |
|
140 |
$(DEVDIR)/oglso.hdi: rhd_oglso.o rhdisp.o rhdisp2.o viewbeams.o \ |
141 |
rhd_odraw.o rhd_geom.o holo.o rhdobj.o |
142 |
$(CC) $(CFLAGS) -o $(DEVDIR)/oglso.hdi rhd_oglso.o rhdisp.o rhdisp2.o \ |
143 |
viewbeams.o holo.o rhd_odraw.o rhd_geom.o rhdobj.o \ |
144 |
-lrgl -lrtrad -lGLU -lGL -lX11 -lXext $(MLIB) |
145 |
|
146 |
rhd_ogl0.o: rhd_ogl.c |
147 |
$(CC) $(CFLAGS) -o rhd_ogl0.o -c rhd_ogl.c |
148 |
|
149 |
rhd_oglo.o: rhd_ogl.c |
150 |
$(CC) $(CFLAGS) -DDOBJ -o rhd_oglo.o -c rhd_ogl.c |
151 |
|
152 |
rhd_ogls.o: rhd_ogl.c |
153 |
$(CC) $(CFLAGS) -DSTEREO -o rhd_ogls.o -c rhd_ogl.c |
154 |
|
155 |
rhd_oglso.o: rhd_ogl.c |
156 |
$(CC) $(CFLAGS) -DDOBJ -DSTEREO -o rhd_oglso.o -c rhd_ogl.c |
157 |
|
158 |
rholo.o rholo2.o rholo2l.o rholo3.o rholo4.o \ |
159 |
rhdisp.o rhdisp2.o rhpict.o viewbeams.o: rholo.h |
160 |
|
161 |
rholo2l.o: ../common/paths.h |
162 |
|
163 |
rhpict2.o rholo3.o: ../common/view.h |
164 |
|
165 |
rholo4.o: rhdisp.h |
166 |
|
167 |
rhdisp.o rhdisp2.o: rhdisp.h rhdriver.h ../common/view.h |
168 |
|
169 |
viewbeams.o: ../common/view.h ../common/random.h |
170 |
|
171 |
rhpict.o: ../common/view.h ../common/resolu.h |
172 |
|
173 |
holo.o holofile.o rhdisp.o rhdisp2.o viewbeams.o genrhgrid.o \ |
174 |
rhcopy.o rholo.o rholo2.o rholo2l.o rholo3.o rholo4.o \ |
175 |
rhinfo.o clumpbeams.o rhoptimize.o rhpict.o rhpict2.o: holo.h \ |
176 |
../common/vars.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 |
rhcopy.o: ../common/resolu.h ../common/view.h |
182 |
|
183 |
rhd_x11.o rhd_qtree.o rhd_sets.o rhd_qtree2r.o rhd_odraw.o rhd_ogl0.o \ |
184 |
rhd_oglo.o rhd_ogls.o rhd_oglso.o: ../common/standard.h \ |
185 |
../common/rtmisc.h ../common/rtio.h \ |
186 |
../common/rtmath.h ../common/mat4.h ../common/fvect.h \ |
187 |
../common/rterror.h |
188 |
|
189 |
rhd_x11.o rhd_qtree.o rhd_qtree2r.o: rhd_qtree.h rhdriver.h \ |
190 |
../common/view.h ../common/tonemap.h ../common/color.h |
191 |
|
192 |
rhd_x11.o: x11icon.h |
193 |
|
194 |
rhd_glxo.o rhd_glxso.o rhdobj.o: rhdobj.h |
195 |
|
196 |
rhdobj.o: rhdisp.h rhdriver.h ../common/view.h ../common/tonemap.h \ |
197 |
../common/radogl.h ../common/standard.h \ |
198 |
../common/rtmisc.h ../common/rtio.h \ |
199 |
../common/rtmath.h ../common/mat4.h ../common/fvect.h \ |
200 |
../common/rterror.h \ |
201 |
../common/object.h ../common/otypes.h ../common/lookup.h |
202 |
|
203 |
rhd_glx1.o: rhd_qtree.h rhdriver.h x11icon.h ../common/view.h \ |
204 |
../common/color.h ../common/tonemap.h \ |
205 |
../common/standard.h ../common/rtmisc.h ../common/rtio.h \ |
206 |
../common/rtmath.h ../common/mat4.h ../common/fvect.h \ |
207 |
../common/rterror.h |
208 |
|
209 |
rhd_odraw.o rhd_ogl0.o rhd_oglo.o rhd_ogls.o rhd_oglso.o: rhd_odraw.h \ |
210 |
rhdriver.h ../common/view.h ../common/color.h ../common/tonemap.h |
211 |
|
212 |
rhd_ogl0.o rhd_oglo.o rhd_ogls.o rhd_oglso.o: x11icon.h |
213 |
|
214 |
rhd_oglo.o rhd_oglso.o: rhdobj.h |
215 |
|
216 |
rhd_geom.o: rhdriver.h ../common/view.h \ |
217 |
../common/radogl.h ../common/standard.h ../common/rtmisc.h ../common/rtio.h \ |
218 |
../common/rtmath.h ../common/mat4.h ../common/fvect.h \ |
219 |
../common/rterror.h ../common/object.h ../common/otypes.h ../common/lookup.h |
220 |
|
221 |
Version.c: ../rt/Version.c |
222 |
cp ../rt/Version.c . |