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.17 by greg, Thu Jan 25 08:16:57 1990 UTC vs.
Revision 1.46 by greg, Tue May 21 17:41:16 1991 UTC

# Line 4 | Line 4
4   #  Compiles for ray tracing programs.
5   #
6  
7 < OPT = -O
8 < MACH = -DSTRUCTASSIGN -DBSD -DIEEE -f68881 /usr/lib/f68881.il
7 > OPT = -O -pipe
8 > MACH = -DSTRUCTASSIGN -DBSD -DIEEE -f68881 /usr/lib/libm.il
9   CFLAGS = $(MACH) $(OPT)
10 + CC = cc
11 + LINT = lint
12 + LINTFLAGS = -DSTRUCTASSIGN -DBSD -DIEEE -DVARIABLE -DFUNCTION \
13 + -DINCHAN -DRCONST -DREDEFW -DBIGLIB -DINVXF
14  
15   #
16   # The following are user-definable:
17   #
18   DESTDIR = .
19 < INSTDIR = /usr/local/ray
19 > INSTDIR = /lumen/lumen/ray/bin.sun3
20   INSTALL = cp
21  
22   #
23   # The following paths must exist and be relative to root:
24   #
25 < DEVDIR = $(INSTDIR)
25 > DEVDIR = $(INSTDIR)/dev
26   LIBDIR = /usr/local/lib/ray
27  
28   #
29   # Library routines:
30   #
31   LIBS = -lm
32 < COMPAT = malloc.o
32 > COMPAT = bmalloc.o
33  
34   #
35   # Device drivers for rview (see also devtable.c):
36   #
37 < DOBJS = devtable.o devcomm.o aed.o tty.o editline.o x10.o xtwind.o \
37 > DOBJS = devtable.o devcomm.o editline.o x11.o x11twind.o \
38          colortab.o
39 < DLIBS = -lX
40 < DRIVERS = $(DEVDIR)/sundev $(DEVDIR)/sun.com # $(DEVDIR)/X11dev
39 > DSRC = devtable.c devcomm.c editline.c x11.c x11twind.c \
40 >        colortab.c
41 > DLIBS = -lX11
42  
43   #
44   # Standard object files:
45   #
46  
47   RTOBJS = rtmain.o rtrace.o $(ROBJS)
48 + RTSRC = rmain.c rtrace.c $(RSRC)
49  
50   RPOBJS = rpmain.o rpict.o image.o $(ROBJS)
51 + RPSRC = rmain.c rpict.c image.c $(RSRC)
52  
53   RVOBJS = rvmain.o rview.o rv2.o rv3.o image.o $(DOBJS) $(ROBJS)
54 + RVSRC = rmain.c rview.c rv2.c rv3.c image.c $(DSRC) $(RSRC)
55  
56   ROBJS = $(OCTOBJS) $(RAYOBJS) $(SURFOBJS) $(MATOBJS) \
57          $(MODOBJS) $(SUPPOBJS) $(MISCOBJS) $(COMPAT)
58 + RSRC = $(OCTSRC) $(RAYSRC) $(SURFSRC) $(MATSRC) \
59 +        $(MODSRC) $(SUPPSRC) $(MISCSRC)
60  
61 < OCTOBJS = octree.o readobj.o readoct.o objset.o otypes.o
61 > OCTOBJS = octree.o readobj.o readoct.o objset.o otypes.o initotypes.o
62 > OCTSRC = octree.c readobj.c readoct.c objset.c otypes.c initotypes.c
63  
64   RAYOBJS = raytrace.o ambient.o
65 + RAYSRC = raytrace.c ambient.c
66  
67   SURFOBJS = face.o sphere.o source.o o_face.o cone.o \
68                  o_cone.o o_instance.o instance.o
69 + SURFSRC = face.c sphere.c source.c o_face.c cone.c \
70 +                o_cone.c o_instance.c instance.c
71  
72 < MATOBJS = normal.o dielectric.o m_clip.o glass.o
72 > MATOBJS = normal.o dielectric.o m_clip.o glass.o m_brdf.o
73 > MATSRC = normal.c dielectric.c m_clip.c glass.c m_brdf.c
74  
75   MODOBJS = p_func.o t_func.o p_data.o t_data.o text.o mx_func.o mx_data.o
76 + MODSRC = p_func.c t_func.c p_data.c t_data.c text.c mx_func.c mx_data.c
77  
78   SUPPOBJS = zeroes.o calexpr.o caldefn.o calfunc.o func.o noise3.o data.o
79 + SUPPSRC = zeroes.c calexpr.c caldefn.c calfunc.c func.c noise3.c data.c
80  
81 < MISCOBJS = misc.o color.o header.o mat4.o xf.o fvect.o savestr.o \
82 <                fgetline.o ealloc.o
81 > MISCOBJS = misc.o header.o mat4.o xf.o fvect.o savestr.o fgetline.o ealloc.o \
82 >                color.o resolu.o urand.o
83 > MISCSRC = misc.c header.c mat4.c xf.c fvect.c savestr.c fgetline.c ealloc.c \
84 >                color.c resolu.c urand.c
85  
86   #
87   # What this makefile produces:
# Line 70 | Line 89 | MISCOBJS = misc.o color.o header.o mat4.o xf.o fvect.o
89  
90   PROGS = $(DESTDIR)/rtrace $(DESTDIR)/rpict $(DESTDIR)/rview $(DESTDIR)/lookamb
91  
92 < all:    $(PROGS) $(DRIVERS)
92 > all:    $(PROGS)
93  
94 < install:        all
94 > install:        $(PROGS)
95          $(INSTALL) $(PROGS) $(INSTDIR)
96  
97 + sun:    $(DEVDIR)/sun $(DEVDIR)/sun.com
98 +
99 + x10:    $(DEVDIR)/x10
100 +
101 + aed:    $(DEVDIR)/aed
102 +
103   clean:
104 <        rm -f *.o core
104 >        set nonomatch; rm -f $(PROGS) *.o core
105  
106 + lint:   $(RVSRC)
107 +        $(LINT) $(LINTFLAGS) -DRVIEW $(RVSRC) $(LIBS)
108 +
109   #
110   # Links:
111   #
112  
113   $(DESTDIR)/rtrace:      $(RTOBJS)
114 <        cc $(CFLAGS) -o $(DESTDIR)/rtrace $(RTOBJS) $(LIBS)
114 >        $(CC) $(CFLAGS) -o $(DESTDIR)/rtrace $(RTOBJS) $(LIBS)
115  
116   $(DESTDIR)/rpict:       $(RPOBJS)
117 <        cc $(CFLAGS) -o $(DESTDIR)/rpict $(RPOBJS) $(LIBS)
117 >        $(CC) $(CFLAGS) -o $(DESTDIR)/rpict $(RPOBJS) $(LIBS)
118  
119   $(DESTDIR)/rview:       $(RVOBJS)
120 <        cc $(CFLAGS) -o $(DESTDIR)/rview $(RVOBJS) $(DLIBS) $(LIBS)
120 >        $(CC) $(CFLAGS) -o $(DESTDIR)/rview $(RVOBJS) $(DLIBS) $(LIBS)
121  
122   $(DESTDIR)/lookamb:     lookamb.o
123 <        cc $(CFLAGS) -o $(DESTDIR)/lookamb lookamb.o
123 >        $(CC) $(CFLAGS) -o $(DESTDIR)/lookamb lookamb.o
124  
125 < $(DEVDIR)/sundev:       sundev.o devmain.o colortab.o
126 <        cc $(CFLAGS) -o $(DEVDIR)/sundev devmain.o sundev.o colortab.o \
127 < -lsuntool -lsunwindow -lpixrect $(LIBS)
125 > $(DEVDIR)/sun:  sundev.o devmain.o colortab.o editline.o
126 >        $(CC) $(CFLAGS) -s -o $(DEVDIR)/sun devmain.o sundev.o colortab.o \
127 > editline.o -lsuntool -lsunwindow -lpixrect $(LIBS)
128  
129   $(DEVDIR)/sun.com:      suncom.o editline.o
130 <        cc $(CFLAGS) -o $(DEVDIR)/sun.com suncom.o editline.o
130 >        $(CC) $(CFLAGS) -s -o $(DEVDIR)/sun.com suncom.o editline.o
131  
132 < $(DEVDIR)/X11dev:       x11.o x11twind.o colortab.o
133 <        cc $(CFLAGS) -o $(DEVDIR)/x11dev devmain.o sundev.o colortab.o \
134 < -lX11 $(LIBS)
132 > $(DEVDIR)/x10:  x10.o xtwind.o colortab.o devmain.o editline.o
133 >        $(CC) $(CFLAGS) -s -o $(DEVDIR)/x10 x10.o xtwind.o devmain.o \
134 > colortab.o editline.o -lX $(LIBS)
135  
136 + $(DEVDIR)/aed:  aed.o colortab.o tty.o devmain.o editline.o
137 +        $(CC) $(CFLAGS) -s -o $(DEVDIR)/aed aed.o colortab.o \
138 + devmain.o tty.o editline.o $(LIBS)
139 +
140   #
141   # Special compiles:
142   #
143  
144   rtmain.o:       rmain.c
145 <        cc $(CFLAGS) -DRTRACE -DNICE=4 -DDEFPATH=\":$(LIBDIR)\" -c rmain.c
145 >        $(CC) $(CFLAGS) -DRTRACE -DNICE=4 -DDEFPATH=\":$(LIBDIR)\" -c rmain.c
146          mv rmain.o rtmain.o
147  
148   rpmain.o:       rmain.c
149 <        cc $(CFLAGS) -DRPICT -DNICE=6 -DDEFPATH=\":$(LIBDIR)\" -c rmain.c
149 >        $(CC) $(CFLAGS) -DRPICT -DNICE=6 -DDEFPATH=\":$(LIBDIR)\" -c rmain.c
150          mv rmain.o rpmain.o
151  
152   rvmain.o:       rmain.c
153 <        cc $(CFLAGS) -DRVIEW -DDEFPATH=\":$(LIBDIR)\" -c rmain.c
153 >        $(CC) $(CFLAGS) -DRVIEW -DDEFPATH=\":$(LIBDIR)\" -c rmain.c
154          mv rmain.o rvmain.o
155  
156   #
157 < # Uncomment the following to model dispersion:
157 > # Uncomment the following and add spec_rgb.o to MISCOBJS to model dispersion:
158   #
159   #dielectric.o:  dielectric.c source.h
160 < #       cc $(CFLAGS) -DDISPERSE -c dielectric.c
160 > #       $(CC) $(CFLAGS) -DDISPERSE -c dielectric.c
161   #
130 #color.o:       color.c color.h
131 #       cc $(CFLAGS) -DSPEC_RGB -c color.c
132 #
162   # end of dispersion compiles.
163  
164 + devcomm.o:      devcomm.c
165 +        $(CC) $(CFLAGS) -DDEVPATH=\"$(DEVDIR)\" -c devcomm.c
166 +
167   sundev.o:       sundev.c
168 <        cc $(CFLAGS) -c sundev.c
168 >        $(CC) $(CFLAGS) -DTTYPROG=\"$(DEVDIR)/sun.com\" -Dsun_init=dinit -c sundev.c
169  
170 < devcomm.o:      devcomm.c
171 <        cc $(CFLAGS) -c devcomm.c
170 > x10.o:  x10.c
171 >        $(CC) $(CFLAGS) -Dx_init=dinit -c x10.c
172  
173 + aed.o:  aed.c
174 +        $(CC) $(CFLAGS) -Daed_init=dinit -c aed.c
175 +
176   ambient.o:      ambient.c
177 <        cc $(CFLAGS) -DAMBFLUSH=16 -c ambient.c
177 >        $(CC) $(CFLAGS) -DAMBFLUSH=16 -c ambient.c
178  
179   calexpr.o:      calexpr.c calcomp.h
180 <        cc $(CFLAGS) -DVARIABLE -DFUNCTION -DINCHAN -DRCONST -c calexpr.c
180 >        $(CC) $(CFLAGS) -DVARIABLE -DFUNCTION -DINCHAN -DRCONST -c calexpr.c
181  
182   caldefn.o:      caldefn.c calcomp.h
183 <        cc $(CFLAGS) -DFUNCTION -c caldefn.c
183 >        $(CC) $(CFLAGS) -DFUNCTION -DREDEFW -DRCONST -c caldefn.c
184  
185   calfunc.o:      calfunc.c calcomp.h
186 <        cc $(CFLAGS) -DVARIABLE -DBIGLIB -c calfunc.c
186 >        $(CC) $(CFLAGS) -DVARIABLE -DBIGLIB -c calfunc.c
187  
188   xf.o:   xf.c
189 <        cc $(CFLAGS) -DINVXF -c xf.c
189 >        $(CC) $(CFLAGS) -DINVXF -c xf.c
190  
191 + nwsdev.o:       nwsdev.c nwsdev.h newsconstants.h
192 +        $(CC) $(CFLAGS) -c nwsdev.c
193 +
194 + nwsdev.h:       nwsdev.cps newsconstants.h
195 +        cps nwsdev.cps
196 +
197   #
198   # Include dependencies:
199   #
200  
201   caldefn.o calexpr.o calfunc.o:  calcomp.h
202  
203 < aed.o color.o colortab.o data.o devcomm.o \
204 < lookamb.o rview.o sundev.o x10.o:       color.h
203 > aed.o color.o colortab.o data.o devcomm.o spec_rgb.o \
204 > devmain.o lookamb.o resolu.o rview.o sundev.o x10.o x11.o:      color.h
205  
206   cone.o o_cone.o source.o:       cone.h
207  
208 < data.o mx_data.o p_data.o t_data.o:     data.h
208 > data.o m_brdf.o mx_data.o p_data.o t_data.o:    data.h
209  
210 < aed.o devcomm.o devtable.o sundev.o tty.o x10.o:        driver.h
210 > aed.o devcomm.o devmain.o devtable.o \
211 > editline.o nwsdev.o sundev.o tty.o x10.o x11.o: driver.h
212  
213   face.o o_face.o source.o:       face.h
214  
# Line 174 | Line 216 | fvect.o:       fvect.h
216  
217   cone.o face.o objset.o otypes.o readobj.o readoct.o:    object.h
218  
219 < ambient.o objset.o octree.o raytrace.o \
220 < readoct.o rmain.o rv2.o rv3.o source.o: octree.h
219 > ambient.o objset.o octree.o raytrace.o readoct.o \
220 > rpmain.o rtmain.o rtrace.o rvmain.o rv2.o rv3.o source.o:       octree.h
221  
222   o_instance.o instance.o:        instance.h octree.h
223  
224 < ambient.o cone.o dielectric.o func.o normal.o o_cone.o otypes.o \
225 < text.o raytrace.o readobj.o readoct.o rtrace.o \
224 > ambient.o cone.o dielectric.o func.o initotypes.o m_brdf.o normal.o o_cone.o \
225 > objset.o otypes.o text.o raytrace.o readobj.o readoct.o rtrace.o \
226   rv2.o source.o sphere.o:        otypes.h
227  
228   ambient.o rpict.o rv3.o source.o:       random.h
229  
230   ambient.o dielectric.o func.o glass.o m_clip.o \
231 < mx_data.o mx_func.o normal.o o_cone.o o_face.o o_instance.o \
232 < p_data.o p_func.o text.o raytrace.o rmain.o rpict.o \
233 < rtrace.o rv2.o rv3.o source.o \
234 < sphere.o t_data.o t_func.o:     ray.h standard.h fvect.h object.h color.h
231 > m_brdf.o mx_data.o mx_func.o normal.o o_cone.o o_face.o o_instance.o \
232 > p_data.o p_func.o text.o raytrace.o rpmain.o rtmain.o rvmain.o rpict.o \
233 > rtrace.o rview.o rv2.o rv3.o source.o sphere.o \
234 > t_data.o t_func.o:      ray.h standard.h mat4.h fvect.h object.h color.h
235  
236   rv2.o rv3.o rview.o:    rpaint.h driver.h view.h
237  
238   source.o:       source.h
239  
240 < cone.o data.o devcomm.o face.o image.o misc.o objset.o octree.o otypes.o \
241 < readobj.o readoct.o rview.o:    standard.h fvect.h
240 > cone.o data.o devcomm.o face.o image.o initotypes.o xf.o misc.o objset.o \
241 > octree.o otypes.o readobj.o readoct.o:  standard.h mat4.h fvect.h
242  
243 + initotypes.o raytrace.o:        otspecial.h
244 +
245 + mat4.o:         mat4.h fvect.h
246 +
247   sundev.o:       suntools.icon
248  
249 < image.o rmain.o rpict.o:        view.h
249 > image.o rpmain.o rtmain.o rvmain.o rpict.o:     view.h
250  
251   x10.o xtwind.o: xtwind.h
252  
253   x11.o x11twind.o: x11twind.h
254 +
255 + x11.o:  x11icon.h

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines