ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/rt/Rmakefile
Revision: 1.26
Committed: Thu Jun 28 13:58:31 1990 UTC (33 years, 10 months ago) by greg
Branch: MAIN
Changes since 1.25: +20 -19 lines
Log Message:
added CC variable for compiler

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.11 OPT = -O
8 greg 1.17 MACH = -DSTRUCTASSIGN -DBSD -DIEEE -f68881 /usr/lib/f68881.il
9 greg 1.11 CFLAGS = $(MACH) $(OPT)
10 greg 1.26 CC = cc
11 greg 1.1
12     #
13     # The following are user-definable:
14     #
15     DESTDIR = .
16     INSTDIR = /usr/local/ray
17 greg 1.5 INSTALL = cp
18 greg 1.1
19     #
20     # The following paths must exist and be relative to root:
21     #
22 greg 1.8 DEVDIR = $(INSTDIR)
23 greg 1.1 LIBDIR = /usr/local/lib/ray
24    
25     #
26 greg 1.2 # Library routines:
27 greg 1.1 #
28 greg 1.2 LIBS = -lm
29 greg 1.1 COMPAT = malloc.o
30    
31     #
32     # Device drivers for rview (see also devtable.c):
33     #
34 greg 1.13 DOBJS = devtable.o devcomm.o aed.o tty.o editline.o x10.o xtwind.o \
35 greg 1.9 colortab.o
36 greg 1.1 DLIBS = -lX
37 greg 1.21 DRIVERS = $(DEVDIR)/sundev $(DEVDIR)/sun.com $(DEVDIR)/x11dev
38 greg 1.1
39     #
40     # Standard object files:
41     #
42    
43     RTOBJS = rtmain.o rtrace.o $(ROBJS)
44    
45     RPOBJS = rpmain.o rpict.o image.o $(ROBJS)
46    
47     RVOBJS = rvmain.o rview.o rv2.o rv3.o image.o $(DOBJS) $(ROBJS)
48    
49     ROBJS = $(OCTOBJS) $(RAYOBJS) $(SURFOBJS) $(MATOBJS) \
50     $(MODOBJS) $(SUPPOBJS) $(MISCOBJS) $(COMPAT)
51    
52     OCTOBJS = octree.o readobj.o readoct.o objset.o otypes.o
53    
54     RAYOBJS = raytrace.o ambient.o
55    
56     SURFOBJS = face.o sphere.o source.o o_face.o cone.o \
57     o_cone.o o_instance.o instance.o
58    
59     MATOBJS = normal.o dielectric.o m_clip.o glass.o
60    
61 greg 1.3 MODOBJS = p_func.o t_func.o p_data.o t_data.o text.o mx_func.o mx_data.o
62 greg 1.1
63     SUPPOBJS = zeroes.o calexpr.o caldefn.o calfunc.o func.o noise3.o data.o
64    
65 greg 1.10 MISCOBJS = misc.o color.o header.o mat4.o xf.o fvect.o savestr.o \
66     fgetline.o ealloc.o
67 greg 1.1
68     #
69     # What this makefile produces:
70     #
71    
72     PROGS = $(DESTDIR)/rtrace $(DESTDIR)/rpict $(DESTDIR)/rview $(DESTDIR)/lookamb
73    
74     all: $(PROGS) $(DRIVERS)
75    
76     install: all
77     $(INSTALL) $(PROGS) $(INSTDIR)
78    
79     clean:
80     rm -f *.o core
81    
82     #
83     # Links:
84     #
85    
86     $(DESTDIR)/rtrace: $(RTOBJS)
87 greg 1.26 $(CC) $(CFLAGS) -o $(DESTDIR)/rtrace $(RTOBJS) $(LIBS)
88 greg 1.1
89     $(DESTDIR)/rpict: $(RPOBJS)
90 greg 1.26 $(CC) $(CFLAGS) -o $(DESTDIR)/rpict $(RPOBJS) $(LIBS)
91 greg 1.1
92     $(DESTDIR)/rview: $(RVOBJS)
93 greg 1.26 $(CC) $(CFLAGS) -o $(DESTDIR)/rview $(RVOBJS) $(DLIBS) $(LIBS)
94 greg 1.1
95     $(DESTDIR)/lookamb: lookamb.o
96 greg 1.26 $(CC) $(CFLAGS) -o $(DESTDIR)/lookamb lookamb.o
97 greg 1.1
98 greg 1.22 $(DEVDIR)/sundev: sundev.o devmain.o colortab.o editline.o
99 greg 1.26 $(CC) $(CFLAGS) -o $(DEVDIR)/sundev devmain.o sundev.o colortab.o \
100 greg 1.22 editline.o -lsuntool -lsunwindow -lpixrect $(LIBS)
101 greg 1.1
102     $(DEVDIR)/sun.com: suncom.o editline.o
103 greg 1.26 $(CC) $(CFLAGS) -o $(DEVDIR)/sun.com suncom.o editline.o
104 greg 1.1
105 greg 1.21 $(DEVDIR)/x11dev: x11.o x11twind.o colortab.o devmain.o editline.o
106 greg 1.26 $(CC) $(CFLAGS) -o $(DEVDIR)/x11dev x11.o x11twind.o devmain.o \
107 greg 1.21 colortab.o editline.o -lX11 $(LIBS)
108 greg 1.15
109 greg 1.1 #
110     # Special compiles:
111     #
112    
113     rtmain.o: rmain.c
114 greg 1.26 $(CC) $(CFLAGS) -DRTRACE -DNICE=4 -DDEFPATH=\":$(LIBDIR)\" -c rmain.c
115 greg 1.1 mv rmain.o rtmain.o
116    
117     rpmain.o: rmain.c
118 greg 1.26 $(CC) $(CFLAGS) -DRPICT -DNICE=6 -DDEFPATH=\":$(LIBDIR)\" -c rmain.c
119 greg 1.1 mv rmain.o rpmain.o
120    
121     rvmain.o: rmain.c
122 greg 1.26 $(CC) $(CFLAGS) -DRVIEW -DDEFPATH=\":$(LIBDIR)\" -c rmain.c
123 greg 1.1 mv rmain.o rvmain.o
124    
125     #
126     # Uncomment the following to model dispersion:
127     #
128     #dielectric.o: dielectric.c source.h
129 greg 1.26 # $(CC) $(CFLAGS) -DDISPERSE -c dielectric.c
130 greg 1.1 #
131     #color.o: color.c color.h
132 greg 1.26 # $(CC) $(CFLAGS) -DSPEC_RGB -c color.c
133 greg 1.1 #
134     # end of dispersion compiles.
135    
136     sundev.o: sundev.c
137 greg 1.26 $(CC) $(CFLAGS) -Dsun_init=dinit -c sundev.c
138 greg 1.1
139 greg 1.21 x11.o: x11.c
140 greg 1.26 $(CC) $(CFLAGS) -Dx11_init=dinit -c x11.c
141 greg 1.1
142     ambient.o: ambient.c
143 greg 1.26 $(CC) $(CFLAGS) -DAMBFLUSH=16 -c ambient.c
144 greg 1.1
145     calexpr.o: calexpr.c calcomp.h
146 greg 1.26 $(CC) $(CFLAGS) -DVARIABLE -DFUNCTION -DINCHAN -DRCONST -c calexpr.c
147 greg 1.1
148     caldefn.o: caldefn.c calcomp.h
149 greg 1.26 $(CC) $(CFLAGS) -DFUNCTION -DREDEFW -c caldefn.c
150 greg 1.1
151     calfunc.o: calfunc.c calcomp.h
152 greg 1.26 $(CC) $(CFLAGS) -DVARIABLE -DBIGLIB -c calfunc.c
153 greg 1.1
154     xf.o: xf.c
155 greg 1.26 $(CC) $(CFLAGS) -DINVXF -c xf.c
156 greg 1.1
157     #
158     # Include dependencies:
159     #
160    
161     caldefn.o calexpr.o calfunc.o: calcomp.h
162    
163 greg 1.9 aed.o color.o colortab.o data.o devcomm.o \
164 greg 1.23 devmain.o lookamb.o rview.o sundev.o x10.o x11.o: color.h
165 greg 1.1
166     cone.o o_cone.o source.o: cone.h
167    
168 greg 1.3 data.o mx_data.o p_data.o t_data.o: data.h
169 greg 1.1
170 greg 1.19 aed.o devcomm.o devmain.o devtable.o \
171 greg 1.23 editline.o sundev.o tty.o x10.o x11.o: driver.h
172 greg 1.1
173     face.o o_face.o source.o: face.h
174    
175     fvect.o: fvect.h
176    
177     cone.o face.o objset.o otypes.o readobj.o readoct.o: object.h
178    
179 greg 1.7 ambient.o objset.o octree.o raytrace.o \
180 greg 1.24 readoct.o rpmain.o rtmain.o rvmain.o rv2.o rv3.o source.o: octree.h
181 greg 1.1
182     o_instance.o instance.o: instance.h octree.h
183    
184 greg 1.16 ambient.o cone.o dielectric.o func.o normal.o o_cone.o otypes.o \
185 greg 1.1 text.o raytrace.o readobj.o readoct.o rtrace.o \
186     rv2.o source.o sphere.o: otypes.h
187    
188     ambient.o rpict.o rv3.o source.o: random.h
189    
190 greg 1.12 ambient.o dielectric.o func.o glass.o m_clip.o \
191 greg 1.1 mx_data.o mx_func.o normal.o o_cone.o o_face.o o_instance.o \
192 greg 1.24 p_data.o p_func.o text.o raytrace.o rpmain.o rtmain.o rvmain.o rpict.o \
193 greg 1.1 rtrace.o rv2.o rv3.o source.o \
194 greg 1.3 sphere.o t_data.o t_func.o: ray.h standard.h fvect.h object.h color.h
195 greg 1.1
196     rv2.o rv3.o rview.o: rpaint.h driver.h view.h
197    
198 greg 1.7 source.o: source.h
199 greg 1.1
200 greg 1.17 cone.o data.o devcomm.o face.o image.o misc.o objset.o octree.o otypes.o \
201 greg 1.1 readobj.o readoct.o rview.o: standard.h fvect.h
202    
203     sundev.o: suntools.icon
204    
205 greg 1.24 image.o rpmain.o rtmain.o rvmain.o rpict.o: view.h
206 greg 1.1
207     x10.o xtwind.o: xtwind.h
208 greg 1.15
209     x11.o x11twind.o: x11twind.h