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.38 by greg, Sat Dec 15 15:07:02 1990 UTC vs.
Revision 2.63 by greg, Fri Feb 18 02:41:55 2011 UTC

# Line 1 | Line 1
1 < # SCCSid "$SunId$ LBL"
2 <
1 > # RCSid: $Id$
2   #
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/f68881.il
8 < CFLAGS = $(MACH) $(OPT)
6 > OPT = -O
7 > MACH = -DBSD
8 > CFLAGS = -I../common -L../lib $(OPT) $(MACH)
9 > SPECIAL =
10   CC = cc
11 + MLIB = -lm
12   LINT = lint
13 < LINTFLAGS = -DSTRUCTASSIGN -DBSD -DIEEE -DVARIABLE -DFUNCTION \
13 < -DINCHAN -DRCONST -DREDEFW -DBIGLIB -DINVXF
13 > LINTFLAGS = -DBSD
14  
15   #
16   # The following are user-definable:
17   #
18   DESTDIR = .
19 < INSTDIR = /usr/local/ray
19 > INSTDIR = /usr/local/bin
20   INSTALL = cp
21  
22   #
# Line 28 | Line 28 | LIBDIR = /usr/local/lib/ray
28   #
29   # Library routines:
30   #
31 < LIBS = -lm
32 < COMPAT = malloc.o
31 > RLIB = ../lib/libradiance.a
32 > RCLIB = ../lib/libraycalls.a
33 > LIBS = -lrtrad $(MLIB)
34  
35   #
36 < # Device drivers for rview (see also devtable.c):
36 > # Device drivers for rvu (see also devtable.c):
37   #
38 < DOBJS = devtable.o devcomm.o aed.o tty.o editline.o x10.o xtwind.o \
39 <        colortab.o nwsdev.o
40 < DSRC = devtable.c devcomm.c aed.c tty.c editline.c x10.c xtwind.c \
41 <        colortab.c nwsdev.c
42 < DLIBS = -lX -lcps
42 < DRIVERS = $(DEVDIR)/sun $(DEVDIR)/sun.com $(DEVDIR)/x11
38 > DOBJS = devtable.o devcomm.o editline.o x11.o x11twind.o \
39 >        colortab.o
40 > DSRC = devtable.c devcomm.c editline.c x11.c x11twind.c \
41 >        colortab.c
42 > DLIBS = -lX11
43  
44   #
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 image.o $(ROBJS)
52 < RPSRC = rmain.c rpict.c image.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 image.o $(DOBJS) $(ROBJS)
55 < RVSRC = rmain.c rview.c rv2.c rv3.c image.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 < ROBJS = $(OCTOBJS) $(RAYOBJS) $(SURFOBJS) $(MATOBJS) \
58 <        $(MODOBJS) $(SUPPOBJS) $(MISCOBJS) $(COMPAT)
59 < RSRC = $(OCTSRC) $(RAYSRC) $(SURFSRC) $(MATSRC) \
60 <        $(MODSRC) $(SUPPSRC) $(MISCSRC)
57 > RLOBJS = raycalls.o raypcalls.o rayfifo.o
58 > RLSRC = raycalls.c raypcalls.c rayfifo.c
59  
60 < OCTOBJS = octree.o readobj.o readoct.o objset.o otypes.o initotypes.o
61 < OCTSRC = octree.c readobj.c readoct.c objset.c otypes.c initotypes.c
60 > ROBJS = $(RAYOBJS) $(SURFOBJS) $(MATOBJS) \
61 >        $(MODOBJS) $(SUPPOBJS)
62 > RSRC = $(RAYSRC) $(SURFSRC) $(MATSRC) \
63 >        $(MODSRC) $(SUPPSRC)
64  
65 < RAYOBJS = raytrace.o ambient.o
66 < RAYSRC = raytrace.c ambient.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 = face.o sphere.o source.o o_face.o cone.o \
71 <                o_cone.o o_instance.o instance.o
72 < SURFSRC = face.c sphere.c source.c o_face.c cone.c \
73 <                o_cone.c o_instance.c instance.c
70 > SURFOBJS = source.o sphere.o srcobstr.o srcsupp.o srcsamp.o virtuals.o \
71 >        o_face.o o_cone.o o_instance.o o_mesh.o
72 > SURFSRC = sphere.c source.c srcobstr.c srcsupp.c srcsamp.c virtuals.c \
73 >        o_face.c 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
76 < MATSRC = normal.c dielectric.c m_clip.c glass.c m_brdf.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 m_bsdf.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 m_bsdf.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 calfunc.o func.o noise3.o data.o
84 < SUPPSRC = zeroes.c calexpr.c caldefn.c calfunc.c func.c noise3.c data.c
83 > SUPPOBJS = func.o noise3.o data.o
84 > SUPPSRC = func.c noise3.c data.c
85  
86 < MISCOBJS = misc.o header.o mat4.o xf.o fvect.o savestr.o fgetline.o ealloc.o \
83 <                color.o resolu.o
84 < MISCSRC = misc.c header.c mat4.c xf.c fvect.c savestr.c fgetline.c ealloc.c \
85 <                color.c resolu.c
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
92 > PROGS = $(DESTDIR)/rtrace $(DESTDIR)/rpict $(DESTDIR)/rvu $(DESTDIR)/lookamb
93  
94 < all:    $(PROGS) $(DRIVERS)
94 > all:    $(PROGS) $(RCLIB) $(SPECIAL)
95  
96 < install:        all
96 > install:        all rayinit.cal
97          $(INSTALL) $(PROGS) $(INSTDIR)
98 +        cd $(INSTDIR) ; rm -f rview ; ln -s rvu rview
99 +        rm -f $(LIBDIR)/rayinit.cal
100 +        cp rayinit.cal $(LIBDIR)
101  
102 + ogl:    
103 +
104   clean:
105 <        rm -f *.o core
105 >        set nonomatch; rm -f $(PROGS) *.o core
106  
107   lint:   $(RVSRC)
108          $(LINT) $(LINTFLAGS) -DRVIEW $(RVSRC) $(LIBS)
# Line 105 | Line 111 | lint:  $(RVSRC)
111   # Links:
112   #
113  
114 < $(DESTDIR)/rtrace:      $(RTOBJS)
115 <        $(CC) $(CFLAGS) -o $(DESTDIR)/rtrace $(RTOBJS) $(LIBS)
114 > $(DESTDIR)/rtrace:      $(RTOBJS) $(RCLIB) $(RLIB)
115 >        $(CC) $(CFLAGS) -o $(DESTDIR)/rtrace $(RTOBJS) $(RCLIB) $(RLIB) $(LIBS)
116  
117 < $(DESTDIR)/rpict:       $(RPOBJS)
118 <        $(CC) $(CFLAGS) -o $(DESTDIR)/rpict $(RPOBJS) $(LIBS)
117 > $(DESTDIR)/rpict:       $(RPOBJS) $(RLIB)
118 >        $(CC) $(CFLAGS) -o $(DESTDIR)/rpict $(RPOBJS) $(RLIB) $(LIBS)
119  
120 < $(DESTDIR)/rview:       $(RVOBJS)
121 <        $(CC) $(CFLAGS) -o $(DESTDIR)/rview $(RVOBJS) $(DLIBS) $(LIBS)
120 > $(DESTDIR)/rvu: $(RVOBJS) $(RCLIB) $(RLIB)
121 >        $(CC) $(CFLAGS) -o $(DESTDIR)/rvu $(RVOBJS) $(RCLIB) \
122 > $(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  
127 < $(DEVDIR)/sun:  sundev.o devmain.o colortab.o editline.o
128 <        $(CC) $(CFLAGS) -s -o $(DEVDIR)/sun devmain.o sundev.o colortab.o \
129 < editline.o -lsuntool -lsunwindow -lpixrect $(LIBS)
127 > $(RLIB):        $(ROBJS) Version.o
128 >        rm -f $(RLIB)
129 >        ar rc $(RLIB) $(ROBJS) Version.o
130 >        -ranlib $(RLIB)
131  
132 < $(DEVDIR)/sun.com:      suncom.o editline.o
133 <        $(CC) $(CFLAGS) -s -o $(DEVDIR)/sun.com suncom.o editline.o
132 > $(RCLIB):       $(RLOBJS)
133 >        rm -f $(RCLIB)
134 >        ar rc $(RCLIB) $(RLOBJS)
135 >        -ranlib $(RCLIB)
136  
127 $(DEVDIR)/x11:  x11.o x11twind.o colortab.o devmain.o editline.o
128        $(CC) $(CFLAGS) -s -o $(DEVDIR)/x11 x11.o x11twind.o devmain.o \
129 colortab.o editline.o -lX11 $(LIBS)
130
137   #
138 < # Special compiles:
138 > # Uncomment the following to model dispersion:
139   #
140 + dielectric.o:   dielectric.c source.h
141 +        $(CC) $(CFLAGS) -DDISPERSE -c dielectric.c
142  
135 rtmain.o:       rmain.c
136        $(CC) $(CFLAGS) -DRTRACE -DNICE=4 -DDEFPATH=\":$(LIBDIR)\" -c rmain.c
137        mv rmain.o rtmain.o
138
139 rpmain.o:       rmain.c
140        $(CC) $(CFLAGS) -DRPICT -DNICE=6 -DDEFPATH=\":$(LIBDIR)\" -c rmain.c
141        mv rmain.o rpmain.o
142
143 rvmain.o:       rmain.c
144        $(CC) $(CFLAGS) -DRVIEW -DDEFPATH=\":$(LIBDIR)\" -c rmain.c
145        mv rmain.o rvmain.o
146
147 #
148 # Uncomment the following and add spec_rgb.o to MISCOBJS to model dispersion:
149 #
150 #dielectric.o:  dielectric.c source.h
151 #       $(CC) $(CFLAGS) -DDISPERSE -c dielectric.c
152 #
143   # end of dispersion compiles.
144  
145   devcomm.o:      devcomm.c
146          $(CC) $(CFLAGS) -DDEVPATH=\"$(DEVDIR)\" -c devcomm.c
147  
148 < sundev.o:       sundev.c
149 <        $(CC) $(CFLAGS) -DTTYPROG=\"$(DEVDIR)/sun.com\" -Dsun_init=dinit -c sundev.c
148 > #
149 > # Version module:
150 > #
151  
152 < x11.o:  x11.c
153 <        $(CC) $(CFLAGS) -Dx11_init=dinit -c x11.c
152 > Version.c:      VERSION $(RSRC) $(HEADERS)
153 >        ( cat VERSION ; date ; whoami ; hostname ) > Version.c
154 >        ed - Version.c < verscript.ed
155  
156 < ambient.o:      ambient.c
157 <        $(CC) $(CFLAGS) -DAMBFLUSH=16 -c ambient.c
156 > #
157 > # Include dependencies:
158 > #
159  
160 < calexpr.o:      calexpr.c calcomp.h
161 <        $(CC) $(CFLAGS) -DVARIABLE -DFUNCTION -DINCHAN -DRCONST -c calexpr.c
160 > ambio.o colortab.o data.o devcomm.o \
161 > devmain.o lookamb.o rview.o x11.o:      ../common/color.h
162  
163 < caldefn.o:      caldefn.c calcomp.h
171 <        $(CC) $(CFLAGS) -DFUNCTION -DREDEFW -c caldefn.c
163 > freeobjmem.o o_cone.o srcsupp.o:        ../common/cone.h
164  
165 < calfunc.o:      calfunc.c calcomp.h
166 <        $(CC) $(CFLAGS) -DVARIABLE -DBIGLIB -c calfunc.c
165 > data.o freeobjmem.o m_brdf.o mx_data.o \
166 > p_data.o raycalls.o t_data.o:   data.h
167  
168 < xf.o:   xf.c
169 <        $(CC) $(CFLAGS) -DINVXF -c xf.c
168 > devcomm.o devmain.o devtable.o \
169 > editline.o x11.o:       driver.h
170  
171 < nwsdev.o:       nwsdev.c nwsdev.h newsconstants.h
180 <        $(CC) $(CFLAGS) -c nwsdev.c
171 > freeobjmem.o o_face.o srcsupp.o:        ../common/face.h
172  
173 < nwsdev.h:       nwsdev.cps newsconstants.h
174 <        cps nwsdev.cps
173 > ambient.o raytrace.o rpmain.o rtmain.o \
174 > rtrace.o rvmain.o rv2.o rv3.o:  ../common/octree.h
175  
176 < #
186 < # Include dependencies:
187 < #
176 > o_instance.o:   ../common/instance.h
177  
178 < caldefn.o calexpr.o calfunc.o:  calcomp.h
178 > ambient.o aniso.o dielectric.o freeobjmem.o func.o glass.o initotypes.o \
179 > m_brdf.o m_direct.o m_mirror.o normal.o o_cone.o preload.o \
180 > raycalls.o raytrace.o rtrace.o rv2.o source.o sphere.o srcsupp.o text.o \
181 > srcdraw.o srcobstr.o virtuals.o:        ../common/otypes.h
182  
183 < aed.o color.o colortab.o data.o devcomm.o spec_rgb.o \
184 < devmain.o lookamb.o resolu.o rview.o sundev.o x10.o x11.o:      color.h
183 > ambient.o ambcomp.o aniso.o normal.o raycalls.o raytrace.o rpict.o \
184 > rvmain.o rtmain.o rpmain.o persist.o source.o rv3.o \
185 > srcsamp.o virtuals.o:   ../common/random.h
186  
187 < cone.o o_cone.o source.o:       cone.h
187 > ambcomp.o ambient.o aniso.o dielectric.o freeobjmem.o func.o glass.o m_bsdf.o \
188 > m_brdf.o m_clip.o m_direct.o m_mirror.o m_mist.o mx_data.o o_mesh.o \
189 > mx_func.o normal.o o_cone.o o_face.o o_instance.o p_data.o p_func.o \
190 > raycalls.o raypcalls.o rayfifo.o raytrace.o rpict.o rtrace.o rv2.o rv3.o rview.o \
191 > source.o sphere.o srcdraw.o srcobstr.o srcsamp.o srcsupp.o t_data.o t_func.o \
192 > text.o rpmain.o rtmain.o rvmain.o virtuals.o m_alias.o: ray.h \
193 > ../common/standard.h ../common/rtmisc.h ../common/rtio.h ../common/rtmath.h \
194 > ../common/rterror.h ../common/octree.h \
195 > ../common/mat4.h ../common/fvect.h ../common/object.h ../common/color.h
196  
197 < data.o m_brdf.o mx_data.o p_data.o t_data.o:    data.h
197 > rv2.o rv3.o rview.o:    rpaint.h driver.h ../common/view.h ../common/resolu.h
198  
199 < aed.o devcomm.o devmain.o devtable.o \
200 < editline.o nwsdev.o sundev.o tty.o x10.o x11.o: driver.h
199 > m_direct.o m_mirror.o m_mist.o dielectric.o raycalls.o \
200 > rpict.o rpmain.o rtmain.o rvmain.o rv2.o source.o srcdraw.o \
201 > srcobstr.o srcsamp.o srcsupp.o virtuals.o:      source.h
202  
203 < face.o o_face.o source.o:       face.h
203 > cone.o data.o devcomm.o initotypes.o fprism.o preload.o \
204 > duphead.o octree.o:     ../common/standard.h ../common/rtmisc.h \
205 > ../common/rtio.h ../common/rtmath.h \
206 > ../common/rterror.h ../common/mat4.h ../common/fvect.h
207  
208 < fvect.o:        fvect.h
208 > ambio.o:        ../common/fvect.h
209  
210 < cone.o face.o objset.o otypes.o readobj.o readoct.o:    object.h
210 > initotypes.o srcobstr.o raytrace.o:     otspecial.h
211  
212 < ambient.o objset.o octree.o raytrace.o readoct.o \
213 < rpmain.o rtmain.o rtrace.o rvmain.o rv2.o rv3.o source.o:       octree.h
212 > rpmain.o rtmain.o rvmain.o rpict.o \
213 > srcdraw.o:      ../common/view.h ../common/resolu.h
214  
215 < o_instance.o instance.o:        instance.h octree.h
215 > x11.o x11twind.o: x11twind.h
216  
217 < ambient.o cone.o dielectric.o func.o initotypes.o m_brdf.o normal.o o_cone.o \
213 < objset.o otypes.o text.o raytrace.o readobj.o readoct.o rtrace.o \
214 < rv2.o source.o sphere.o:        otypes.h
217 > x11.o:  x11icon.h
218  
219 < ambient.o rpict.o rv3.o source.o:       random.h
219 > ambient.o ambcomp.o ambio.o lookamb.o raycalls.o:       ambient.h
220  
221 < ambient.o dielectric.o func.o glass.o m_clip.o \
222 < m_brdf.o mx_data.o mx_func.o normal.o o_cone.o o_face.o o_instance.o \
220 < p_data.o p_func.o text.o raytrace.o rpmain.o rtmain.o rvmain.o rpict.o \
221 < rtrace.o rv2.o rv3.o source.o sphere.o \
222 < t_data.o t_func.o:      ray.h standard.h mat4.h fvect.h object.h color.h
221 > data.o rpmain.o rtmain.o rvmain.o rpict.o rtrace.o \
222 > rv2.o:  ../common/resolu.h
223  
224 < rv2.o rv3.o rview.o:    rpaint.h driver.h view.h
224 > aniso.o func.o m_brdf.o m_direct.o mx_data.o mx_func.o p_data.o \
225 > p_func.o t_data.o t_func.o:     func.h ../common/calcomp.h
226  
227 < source.o:       source.h
227 > preload.o:      data.h func.h ../common/object.h ../common/face.h \
228 > ../common/cone.h ../common/instance.h ../common/mesh.h \
229 > ../common/color.h ../common/bsdf.h ../common/otypes.h
230  
231 < cone.o data.o devcomm.o face.o image.o initotypes.o xf.o misc.o objset.o \
232 < octree.o otypes.o readobj.o readoct.o rview.o:  standard.h mat4.h fvect.h
231 > rtmain.o rpmain.o rvmain.o persist.o duphead.o \
232 > renderopts.o rpict.o:   ../common/paths.h
233  
234 < mat4.o:         mat4.h fvect.h
234 > freeobjmem.o raycalls.o text.o: ../common/font.h
235  
236 < sundev.o:       suntools.icon
236 > raypcalls.o:    ../common/selcall.h
237  
238 < image.o rpmain.o rtmain.o rvmain.o rpict.o:     view.h
238 > o_mesh.o:       ../common/mesh.h
239  
240 < x10.o xtwind.o: xtwind.h
240 > noise3.o:       ../common/calcomp.h
241  
242 < x11.o x11twind.o: x11twind.h
242 > aniso.o dielectric.o freeobjmem.o glass.o initotypes.o \
243 > m_alias.o m_brdf.o m_clip.o m_direct.o m_mirror.o m_mist.o \
244 > mx_data.o mx_func.o normal.o o_cone.o o_face.o o_instance.o \
245 > o_mesh.o p_data.o p_func.o source.o sphere.o t_data.o t_func.o \
246 > srcobstr.o text.o:              rtotypes.h
247 >
248 > m_bsdf.o:       ambient.h source.h func.h \
249 > ../common/calcomp.h ../common/bsdf.h ../common/random.h

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines