ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/rt/Rmakefile
Revision: 1.52
Committed: Mon Jul 15 12:18:13 1991 UTC (32 years, 9 months ago) by greg
Branch: MAIN
Changes since 1.51: +12 -11 lines
Log Message:
eliminated many symbolic links to header files

File Contents

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