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.18 by greg, Tue Jan 30 10:51:05 1990 UTC vs.
Revision 1.59 by greg, Thu Aug 22 09:25:22 1991 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines