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.25 by greg, Thu May 31 10:22:48 1990 UTC vs.
Revision 2.2 by greg, Mon Nov 25 09:51:08 1991 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines