ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/hd/Rmakefile
Revision: 3.38
Committed: Thu Feb 9 00:18:05 2023 UTC (19 months, 4 weeks ago) by greg
Branch: MAIN
CVS Tags: rad5R4, HEAD
Changes since 3.37: +4 -2 lines
Log Message:
chore: Made support for $(INSTALL) more universal between rmake directories

File Contents

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