ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/rt/Rmakefile
(Generate patch)

Comparing ray/src/rt/Rmakefile (file contents):
Revision 1.57 by greg, Fri Aug 16 12:54:48 1991 UTC vs.
Revision 2.41 by greg, Tue Nov 11 16:24:06 2003 UTC

# Line 1 | Line 1
1 + # RCSid: $Id$
2   #
3 < # SCCSid "$SunId$ LBL"
3 < #  Compiles for ray tracing programs.
3 > # Compiles for ray tracing programs.
4   #
5  
6 < OPT = -O -pipe
7 < MACH = -DSTRUCTASSIGN -DBSD -DIEEE -f68881 /usr/lib/libm.il
8 < CFLAGS = $(MACH) $(OPT) -I../common
6 > OPT = -O
7 > MACH = -DBSD
8 > CFLAGS = -I../common -L../lib $(OPT) $(MACH)
9 > SPECIAL = aed
10   CC = cc
11 + MLIB = -lm
12   LINT = lint
13 < LINTFLAGS = -DSTRUCTASSIGN -DBSD -DIEEE -DVARIABLE -DFUNCTION \
12 < -DINCHAN -DRCONST -DREDEFW -DBIGLIB
13 > LINTFLAGS = -DBSD
14  
15   #
16   # The following are user-definable:
17   #
18   DESTDIR = .
19 < INSTDIR = /lumen/lumen/ray/bin.sun3
19 > INSTDIR = /usr/local/bin
20   INSTALL = cp
21  
22   #
# Line 27 | Line 28 | LIBDIR = /usr/local/lib/ray
28   #
29   # Library routines:
30   #
31 < LIBS = ../common/librt.a -lm
31 > RLIB = ../lib/libradiance.a
32 > RCLIB = ../lib/libraycalls.a
33 > LIBS = -lrt $(MLIB)
34  
35   #
36   # Device drivers for rview (see also devtable.c):
# Line 42 | Line 45 | DLIBS = -lX11
45   # Standard object files:
46   #
47  
48 < RTOBJS = rtmain.o rtrace.o $(ROBJS)
49 < RTSRC = rmain.c rtrace.c $(RSRC)
48 > RTOBJS = rtmain.o rtrace.o duphead.o persist.o
49 > RTSRC = rtmain.c rtrace.c duphead.c persist.c
50  
51 < RPOBJS = rpmain.o rpict.o $(ROBJS)
52 < RPSRC = rmain.c rpict.c $(RSRC)
51 > RPOBJS = rpmain.o rpict.o srcdraw.o duphead.o persist.o
52 > RPSRC = rpmain.c rpict.c srcdraw.c duphead.c persist.c
53  
54 < RVOBJS = rvmain.o rview.o rv2.o rv3.o $(DOBJS) $(ROBJS)
55 < RVSRC = rmain.c rview.c rv2.c rv3.c $(DSRC) $(RSRC)
54 > RVOBJS = rvmain.o rview.o rv2.o rv3.o $(DOBJS)
55 > RVSRC = rvmain.c rview.c rv2.c rv3.c $(DSRC)
56  
57 + RLOBJS = raycalls.o raypcalls.o
58 + RLSRC = raycalls.c raypcalls.c
59 +
60   ROBJS = $(RAYOBJS) $(SURFOBJS) $(MATOBJS) \
61          $(MODOBJS) $(SUPPOBJS)
62   RSRC = $(RAYSRC) $(SURFSRC) $(MATSRC) \
63          $(MODSRC) $(SUPPSRC)
64  
65 < RAYOBJS = initotypes.o raytrace.o ambient.o ambcomp.o
66 < RAYSRC = initotypes.c raytrace.c ambient.c ambcomp.c
65 > RAYOBJS = ambcomp.o ambient.o ambio.o freeobjmem.o initotypes.o \
66 >        preload.o raytrace.o renderopts.o
67 > RAYSRC = ambcomp.c ambient.c ambio.c freeobjmem.c initotypes.c \
68 >        preload.c raytrace.c renderopts.c
69  
70 < SURFOBJS = source.o sphere.o srcsupp.o virtuals.o o_face.o o_cone.o \
71 <        o_instance.o
70 > SURFOBJS = source.o sphere.o srcsupp.o srcsamp.o virtuals.o o_face.o \
71 >        o_cone.o o_instance.o o_mesh.o
72   SURFSRC = sphere.c source.c srcsupp.c virtuals.c o_face.c \
73 <                o_cone.c o_instance.c
73 >        srcsamp.c o_cone.c o_instance.c o_mesh.c
74  
75 < MATOBJS = normal.o dielectric.o m_clip.o glass.o m_brdf.o m_mirror.o \
76 <        m_direct.o
77 < MATSRC = normal.c dielectric.c m_clip.c glass.c m_brdf.c m_mirror.c \
78 <        m_direct.c
75 > MATOBJS = aniso.o normal.o dielectric.o m_clip.o glass.o m_brdf.o \
76 >        m_mirror.o m_direct.o m_mist.o fprism.o m_alias.o
77 > MATSRC = aniso.c normal.c dielectric.c m_clip.c glass.c m_brdf.c \
78 >        m_mirror.c m_direct.c m_mist.c fprism.c m_alias.c
79  
80   MODOBJS = p_func.o t_func.o p_data.o t_data.o text.o mx_func.o mx_data.o
81   MODSRC = p_func.c t_func.c p_data.c t_data.c text.c mx_func.c mx_data.c
82  
83 < SUPPOBJS = zeroes.o calexpr.o caldefn.o func.o noise3.o data.o readfargs.o
84 < SUPPSRC = zeroes.c calexpr.c caldefn.c func.c noise3.c data.c readfargs.c
83 > SUPPOBJS = func.o noise3.o data.o
84 > SUPPSRC = func.c noise3.c data.c
85  
86 + HEADERS = ambient.h ray.h data.h otspecial.h source.h
87 +
88   #
89   # What this makefile produces:
90   #
91  
92   PROGS = $(DESTDIR)/rtrace $(DESTDIR)/rpict $(DESTDIR)/rview $(DESTDIR)/lookamb
93  
94 < all:    $(PROGS)
94 > all:    $(PROGS) $(RCLIB) $(SPECIAL)
95  
96 < install:        $(PROGS)
96 > install:        all rayinit.cal
97          $(INSTALL) $(PROGS) $(INSTDIR)
98 +        rm -f $(LIBDIR)/rayinit.cal
99 +        cp rayinit.cal $(LIBDIR)
100  
89 sun:    $(DEVDIR)/sun $(DEVDIR)/sun.com
90
91 x10:    $(DEVDIR)/x10
92
101   aed:    $(DEVDIR)/aed
102  
103 < tiff:  
103 > ogl:    
104  
105   clean:
106          set nonomatch; rm -f $(PROGS) *.o core
# Line 104 | Line 112 | lint:  $(RVSRC)
112   # Links:
113   #
114  
115 < $(DESTDIR)/rtrace:      $(RTOBJS) ../common/librt.a
116 <        $(CC) $(CFLAGS) -o $(DESTDIR)/rtrace $(RTOBJS) $(LIBS)
115 > $(DESTDIR)/rtrace:      $(RTOBJS) $(RLIB)
116 >        $(CC) $(CFLAGS) -o $(DESTDIR)/rtrace $(RTOBJS) $(RLIB) $(LIBS)
117  
118 < $(DESTDIR)/rpict:       $(RPOBJS) ../common/librt.a
119 <        $(CC) $(CFLAGS) -o $(DESTDIR)/rpict $(RPOBJS) $(LIBS)
118 > $(DESTDIR)/rpict:       $(RPOBJS) $(RLIB)
119 >        $(CC) $(CFLAGS) -o $(DESTDIR)/rpict $(RPOBJS) $(RLIB) $(LIBS)
120  
121 < $(DESTDIR)/rview:       $(RVOBJS) ../common/librt.a
122 <        $(CC) $(CFLAGS) -o $(DESTDIR)/rview $(RVOBJS) $(DLIBS) $(LIBS)
121 > $(DESTDIR)/rview:       $(RVOBJS) $(RLIB)
122 >        $(CC) $(CFLAGS) -o $(DESTDIR)/rview $(RVOBJS) $(RLIB) $(LIBS) $(DLIBS)
123  
124 < $(DESTDIR)/lookamb:     lookamb.o
125 <        $(CC) $(CFLAGS) -o $(DESTDIR)/lookamb lookamb.o
124 > $(DESTDIR)/lookamb:     lookamb.o ambio.o
125 >        $(CC) $(CFLAGS) -o $(DESTDIR)/lookamb lookamb.o ambio.o $(LIBS)
126  
119 $(DEVDIR)/sun:  sundev.o devmain.o colortab.o editline.o
120        $(CC) $(CFLAGS) -s -o $(DEVDIR)/sun devmain.o sundev.o colortab.o \
121 editline.o -lsuntool -lsunwindow -lpixrect $(LIBS)
122
123 $(DEVDIR)/sun.com:      suncom.o editline.o
124        $(CC) $(CFLAGS) -s -o $(DEVDIR)/sun.com suncom.o editline.o
125
126 $(DEVDIR)/x10:  x10.o xtwind.o colortab.o devmain.o editline.o
127        $(CC) $(CFLAGS) -s -o $(DEVDIR)/x10 x10.o xtwind.o devmain.o \
128 colortab.o editline.o -lX $(LIBS)
129
127   $(DEVDIR)/aed:  aed.o colortab.o tty.o devmain.o editline.o
128          $(CC) $(CFLAGS) -s -o $(DEVDIR)/aed aed.o colortab.o \
129   devmain.o tty.o editline.o $(LIBS)
130  
131 + $(RLIB):        $(ROBJS) Version.o
132 +        ar rc $(RLIB) $(ROBJS) Version.o
133 +        -ranlib $(RLIB)
134 +
135 + $(RCLIB):       $(RLOBJS)
136 +        ar rc $(RCLIB) $(RLOBJS)
137 +        -ranlib $(RCLIB)
138 +
139   #
140   # Special compiles:
141   #
142  
143 < rtmain.o:       rmain.c
144 <        $(CC) $(CFLAGS) -DRTRACE -DNICE=4 -DDEFPATH=\":$(LIBDIR)\" -c rmain.c
140 <        mv rmain.o rtmain.o
143 > rtmain.o:       rtmain.c
144 >        $(CC) $(CFLAGS) -DNICE=4 -c rtmain.c
145  
146 < rpmain.o:       rmain.c
147 <        $(CC) $(CFLAGS) -DRPICT -DNICE=6 -DDEFPATH=\":$(LIBDIR)\" -c rmain.c
144 <        mv rmain.o rpmain.o
146 > rpmain.o:       rpmain.c
147 >        $(CC) $(CFLAGS) -DNICE=6 -c rpmain.c
148  
149 < rvmain.o:       rmain.c
150 <        $(CC) $(CFLAGS) -DRVIEW -DDEFPATH=\":$(LIBDIR)\" -c rmain.c
148 <        mv rmain.o rvmain.o
149 > rvmain.o:       rvmain.c
150 >        $(CC) $(CFLAGS) -c rvmain.c
151  
150 readfargs.o:    readfargs.c ../common/object.h
151        $(CC) $(CFLAGS) -DMEMHOG -c readfargs.c
152
152   #
153   # Uncomment the following to model dispersion:
154   #
# Line 161 | Line 160 | dielectric.o:  dielectric.c source.h
160   devcomm.o:      devcomm.c
161          $(CC) $(CFLAGS) -DDEVPATH=\"$(DEVDIR)\" -c devcomm.c
162  
164 sundev.o:       sundev.c
165        $(CC) $(CFLAGS) -DTTYPROG=\"$(DEVDIR)/sun.com\" -Dsun_init=dinit -c sundev.c
166
167 x10.o:  x10.c
168        $(CC) $(CFLAGS) -Dx_init=dinit -c x10.c
169
163   aed.o:  aed.c
164          $(CC) $(CFLAGS) -Daed_init=dinit -c aed.c
165  
166 < ambient.o:      ambient.c
167 <        $(CC) $(CFLAGS) -DAMBFLUSH=16 -c ambient.c
166 > #
167 > # Version module:
168 > #
169  
170 < calexpr.o:      calexpr.c ../common/calcomp.h
171 <        $(CC) $(CFLAGS) -DVARIABLE -DFUNCTION -DINCHAN -DRCONST -c calexpr.c
170 > Version.c:      VERSION $(RSRC) $(HEADERS)
171 >        ( cat VERSION ; date ; whoami ; hostname ) > Version.c
172 >        ed - Version.c < verscript.ed
173  
179 caldefn.o:      caldefn.c ../common/calcomp.h
180        $(CC) $(CFLAGS) -DFUNCTION -DREDEFW -c caldefn.c
181
182 nwsdev.o:       nwsdev.c nwsdev.h newsconstants.h
183        $(CC) $(CFLAGS) -c nwsdev.c
184
185 nwsdev.h:       nwsdev.cps newsconstants.h
186        cps nwsdev.cps
187
174   #
175   # Include dependencies:
176   #
177  
178 < aed.o colortab.o data.o devcomm.o \
179 < devmain.o lookamb.o rview.o sundev.o x10.o x11.o:       ../common/color.h
178 > aed.o ambio.o colortab.o data.o devcomm.o \
179 > devmain.o lookamb.o rview.o x11.o:      ../common/color.h
180  
181 < o_cone.o srcsupp.o:     ../common/cone.h
181 > freeobjmem.o o_cone.o srcsupp.o:        ../common/cone.h
182  
183 < data.o m_brdf.o mx_data.o p_data.o t_data.o:    data.h
183 > data.o freeobjmem.o m_brdf.o mx_data.o \
184 > p_data.o raycalls.o t_data.o:   data.h
185  
186   aed.o devcomm.o devmain.o devtable.o \
187 < editline.o nwsdev.o sundev.o tty.o x10.o x11.o: driver.h
187 > editline.o tty.o x11.o: driver.h
188  
189 < o_face.o srcsupp.o:     ../common/face.h
189 > freeobjmem.o o_face.o srcsupp.o:        ../common/face.h
190  
191   ambient.o raytrace.o rpmain.o rtmain.o \
192   rtrace.o rvmain.o rv2.o rv3.o source.o: ../common/octree.h
193  
194 < o_instance.o:   ../common/instance.h ../common/octree.h
194 > o_instance.o:   ../common/instance.h
195  
196 < ambient.o dielectric.o func.o initotypes.o m_brdf.o \
197 < normal.o o_cone.o text.o raytrace.o rtrace.o \
198 < rv2.o source.o srcsupp.o virtuals.o sphere.o:   ../common/otypes.h
196 > ambient.o aniso.o dielectric.o freeobjmem.o func.o glass.o initotypes.o \
197 > m_brdf.o m_direct.o m_mirror.o normal.o o_cone.o preload.o \
198 > raycalls.o raytrace.o rtrace.o rv2.o source.o sphere.o srcsupp.o text.o \
199 > virtuals.o:     ../common/otypes.h
200  
201 < ambient.o ambcomp.o rpict.o rv3.o source.o:     ../common/random.h
201 > ambient.o ambcomp.o aniso.o normal.o raycalls.o rpict.o rvmain.o \
202 > rtmain.o rpmain.o persist.o source.o rv3.o \
203 > srcsamp.o virtuals.o:   ../common/random.h
204  
205 < ambient.o ambcomp.o dielectric.o func.o glass.o m_clip.o m_mirror.o \
206 < m_brdf.o mx_data.o mx_func.o normal.o o_cone.o o_face.o o_instance.o \
207 < p_data.o p_func.o text.o raytrace.o rpmain.o rtmain.o rvmain.o rpict.o \
208 < rtrace.o rview.o rv2.o rv3.o source.o srcsupp.o virtuals.o sphere.o \
209 < t_data.o t_func.o:      ray.h ../common/standard.h ../common/mat4.h \
210 < ../common/fvect.h ../common/object.h ../common/color.h
205 > ambcomp.o ambient.o aniso.o dielectric.o freeobjmem.o func.o glass.o \
206 > m_brdf.o m_clip.o m_direct.o m_mirror.o m_mist.o mx_data.o o_mesh.o \
207 > mx_func.o normal.o o_cone.o o_face.o o_instance.o p_data.o p_func.o \
208 > raycalls.o raypcalls.o raytrace.o rpict.o rtrace.o rv2.o rv3.o rview.o \
209 > source.o sphere.o srcdraw.o srcsamp.o srcsupp.o t_data.o t_func.o text.o \
210 > rpmain.o rtmain.o rvmain.o virtuals.o m_alias.o:        ray.h \
211 > ../common/standard.h ../common/rtmisc.h ../common/rtio.h ../common/rtmath.h \
212 > ../common/rterror.h ../common/octree.h \
213 > ../common/mat4.h ../common/fvect.h ../common/object.h ../common/color.h
214  
215 < rv2.o rv3.o rview.o:    rpaint.h driver.h ../common/view.h
215 > rv2.o rv3.o rview.o:    rpaint.h driver.h ../common/view.h ../common/resolu.h
216  
217 < mirror.o source.o srcsupp.o virtuals.o: source.h
217 > m_direct.o m_mirror.o m_mist.o dielectric.o raycalls.o \
218 > source.o srcdraw.o srcsamp.o srcsupp.o virtuals.o:      source.h
219  
220 < cone.o data.o devcomm.o initotypes.o \
221 < octree.o:       ../common/standard.h ../common/mat4.h ../common/fvect.h
220 > cone.o data.o devcomm.o initotypes.o fprism.o preload.o \
221 > duphead.o octree.o:     ../common/standard.h ../common/rtmisc.h \
222 > ../common/rtio.h ../common/rtmath.h \
223 > ../common/rterror.h ../common/mat4.h ../common/fvect.h
224  
225 + ambio.o:        ../common/fvect.h
226 +
227   initotypes.o raytrace.o:        otspecial.h
228  
229 < sundev.o:       suntools.icon
229 > rpmain.o rtmain.o rvmain.o rpict.o \
230 > srcdraw.o:      ../common/view.h ../common/resolu.h
231  
233 rpmain.o rtmain.o rvmain.o rpict.o:     ../common/view.h
234
235 x10.o xtwind.o: xtwind.h
236
232   x11.o x11twind.o: x11twind.h
233  
234   x11.o:  x11icon.h
235  
236 < ambient.o ambcomp.o lookamb.o:  ambient.h
236 > ambient.o ambcomp.o ambio.o lookamb.o raycalls.o:       ambient.h
237 >
238 > data.o rpmain.o rtmain.o rvmain.o rpict.o rtrace.o \
239 > rv2.o:  ../common/resolu.h
240 >
241 > aniso.o func.o m_brdf.o m_direct.o mx_data.o mx_func.o p_data.o \
242 > p_func.o t_data.o t_func.o:     func.h ../common/calcomp.h
243 >
244 > preload.o:      ../common/object.h ../common/face.h ../common/cone.h \
245 > ../common/instance.h ../common/mesh.h ../common/color.h data.h
246 >
247 > rtmain.o rpmain.o rvmain.o persist.o duphead.o rpict.o: ../common/paths.h
248 >
249 > freeobjmem.o raycalls.o text.o: ../common/font.h
250 >
251 > raypcalls.o:    ../common/selcall.h
252 >
253 > o_mesh.o:       ../common/mesh.h
254 >
255 > noise3.o:       ../common/calcomp.h

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines