ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/common/Rmakefile
Revision: 2.81
Committed: Fri Jul 26 16:18:06 2019 UTC (4 years, 9 months ago) by greg
Branch: MAIN
Changes since 2.80: +11 -2 lines
Log Message:
Moved rcode map support to common directory

File Contents

# Content
1 # RCSid: $Id: Rmakefile,v 2.80 2018/07/03 22:29:01 greg Exp $
2 #
3 # Makefile for ray tracing library routines
4 #
5
6 OPT = -O
7 MACH = -DBSD
8 CFLAGS = $(MACH) $(OPT)
9 CC = cc
10 AR = ar
11 SPECIAL =
12
13 COMPAT = erf.o strcmp.o strlcpy.o
14
15 LIBDIR = /usr/local/lib/ray
16
17 RTOBJ = cone.o face.o free_os.o instance.o readobj.o readoct.o otypes.o \
18 objset.o octree.o readfargs.o modobject.o getlibpath.o \
19 addobjnotify.o zeroes.o mesh.o readmesh.o tmesh.o sceneio.o
20
21 PICOBJ = color.o header.o image.o lamps.o resolu.o rexpr.o spec_rgb.o \
22 colrops.o font.o tonemap.o tmapcolrs.o tmapluv.o tmaptiff.o \
23 tmap16bit.o bmpfile.o falsecolor.o depthcodec.o normcodec.o \
24 idmap.o
25
26 UTLOBJ = ezxml.o ccolor.o ccyrgb.o bsdf.o bsdf_m.o bsdf_t.o loadbsdf.o \
27 disk2square.o hilbert.o interp2d.o triangulate.o
28
29 STDOBJ = fgetline.o fropen.o linregr.o xf.o mat4.o invmat4.o fvect.o urand.o \
30 urind.o calexpr.o caldefn.o calfunc.o calprnt.o biggerlib.o multisamp.o \
31 unix_process.o process.o gethomedir.o getpath.o error.o savestr.o \
32 savqstr.o badarg.o fgetword.o words.o expandarg.o wordfile.o fgetval.o \
33 clip.o plocate.o eputs.o wputs.o quit.o lookup.o bmalloc.o \
34 loadvars.o tcos.o fputword.o chanvalue.o dircode.o paths.o byteswap.o \
35 cvtcmd.o
36
37 SYSOBJ = ealloc.o fdate.o portio.o myhostname.o $(COMPAT)
38
39 MGFOBJ = mgf_parser.o mgf_object.o mgf_xf.o mgf_context.o
40
41 REETZOBJ = g3affine.o g3flist.o g3sphere.o g3vector.o gbasic.o muc_randvar.o
42
43 OGLOBJ = rglfile.o rglmat.o rgldomat.o rglsurf.o rglinst.o rglsrc.o
44
45 LIBFILES = tmesh.cal
46
47 librtrad.a: $(RTOBJ) $(PICOBJ) $(UTLOBJ) $(STDOBJ) $(SYSOBJ)
48 rm -f librtrad.a
49 $(AR) rc librtrad.a $(RTOBJ) $(PICOBJ) $(UTLOBJ) $(STDOBJ) $(SYSOBJ)
50 -ranlib librtrad.a
51
52 libmgf.a: $(MGFOBJ)
53 rm -f libmgf.a
54 $(AR) rc libmgf.a $(MGFOBJ)
55 -ranlib libmgf.a
56
57 libreetz.a: $(REETZOBJ)
58 rm -f libreetz.a
59 $(AR) rc libreetz.a $(REETZOBJ)
60 -ranlib libreetz.a
61
62 install: all
63 mv -f librtrad.a libmgf.a libreetz.a ../lib
64 cd $(LIBDIR) && rm -f $(LIBFILES)
65 cp -f $(LIBFILES) $(LIBDIR)
66
67 all: librtrad.a libmgf.a libreetz.a $(SPECIAL)
68
69 clean:
70 rm -f *.o librtrad.a libmgf.a
71
72 ogl: $(OGLOBJ)
73 rm -f librgl.a
74 $(AR) rc librgl.a $(OGLOBJ)
75 -ranlib librgl.a
76 mv -f librgl.a ../lib
77
78 x10:
79
80 aed:
81
82 sgi:
83
84 sun:
85
86 getlibpath.o: getlibpath.c
87 $(CC) $(CFLAGS) -DDEFPATH=\":$(LIBDIR)\" -c getlibpath.c
88
89 tmapcolrs.o: tmapcolrs.c
90 $(CC) $(CFLAGS) -DPCOND=\"pcond\" -c tmapcolrs.c
91
92 testBSDF: testBSDF.c bsdf.h rtio.h
93 $(CC) -L../lib $(CFLAGS) -o testBSDF testBSDF.c -lrtrad -lm
94
95 color.o colrops.o lamps.o spec_rgb.o: color.h
96
97 cone.o: cone.h
98
99 face.o: face.h
100
101 fvect.o: fvect.h random.h
102
103 instance.o: instance.h
104
105 linregr.o: linregr.h
106
107 mat4.o invmat4.o: mat4.h fvect.h
108
109 cone.o face.o instance.o objset.o otypes.o \
110 mesh.o modobject.o readfargs.o readmesh.o \
111 readobj.o readoct.o sceneio.o: object.h
112
113 mesh.o objset.o octree.o readmesh.o readoct.o sceneio.o: octree.h
114
115 cone.o mesh.o modobject.o otypes.o \
116 readobj.o readoct.o sceneio.o: otypes.h
117
118 multisamp.o urand.o: random.h
119
120 cone.o face.o free_os.o image.o instance.o objset.o \
121 octree.o modobject.o readfargs.o otypes.o mesh.o \
122 readmesh.o readobj.o readoct.o sceneio.o: standard.h \
123 rtmisc.h rtio.h rtmath.h rterror.h fvect.h mat4.h tiff.h
124
125 image.o: view.h
126
127 caldefn.o calexpr.o calfunc.o calprnt.o: calcomp.h
128
129 clip.o plocate.o: plocate.h
130
131 font.o: font.h
132
133 cvtcmd.o fropen.o getpath.o image.o: paths.h
134
135 lookup.o: lookup.h
136
137 loadvars.o: vars.h
138
139 mesh.o readmesh.o: mesh.h lookup.h
140
141 tonemap.o tmapcolrs.o tmapluv.o tmap16bit.o: tmprivat.h tonemap.h \
142 tiff.h color.h
143
144 tmapluv.o: tiffio.h tmaptiff.h tiff.h
145
146 falsecolor.o: falsecolor.h tmprivat.h tonemap.h color.h tiff.h
147
148 tonemap.o: tmerrmsg.h
149
150 tmaptiff.o: tmprivat.h tmaptiff.h color.h tonemap.h tiff.h
151
152 rglfile.o rglmat.o rgldomat.o rglsurf.o rglinst.o rglsrc.o: radogl.h \
153 standard.h mat4.h fvect.h color.h object.h otypes.h lookup.h
154
155 free_os.o: octree.h object.h otypes.h face.h cone.h instance.h
156
157 tmesh.o: tmesh.h fvect.h
158
159 fgetword.o fputword.o fgetval.o fgetline.o fdate.o unix_process.o \
160 byteswap.o expandarg.o badarg.o xf.o: rtio.h
161
162 expandarg.o: rtmisc.h
163
164 dircode.o interp2d.o xf.o: rtmath.h mat4.h fvect.h tiff.h
165
166 error.o: rterror.h
167
168 bmpfile.o: bmpfile.h tiff.h
169
170 header.o readmesh.o readoct.o resolu.o rglinst.o tmapcolrs.o: resolu.h
171
172 ezxml.o bsdf.o bsdf_m.o bsdf_t.o: ezxml.h
173
174 bsdf_m.o bsdf_t.o: rtio.h
175
176 bsdf.o: bsdf.h fvect.h bsdf_m.h bsdf_t.h hilbert.h ezxml.h
177
178 bsdf.o bsdf_m.o bsdf_t.o ccolor.o: ccolor.h
179
180 mgf_parser.o mgf_context.o mgf_xf.o mgf_object.o: mgf_parser.h ccolor.h
181
182 ccyrgb.o: ccolor.h color.h
183
184 mgf_parser.o mgf_context.o: lookup.h
185
186 mgf_parser.o: mgf_mesg.h
187
188 bsdf_m.o: bsdf.h bsdf_m.h
189
190 bsdf_t.o: bsdf.h bsdf_t.h hilbert.h
191
192 hilbert.o: hilbert.h
193
194 loadbsdf.o: bsdf.h rtio.h rterror.h paths.h
195
196 interp2d.o: interp2d.h
197
198 triangulate.o: triangulate.h
199
200 process.o readobj.o readoct.o rglfile.o \
201 tmapcolrs.o unix_process.o win_process.o: rtprocess.h
202
203 gbasic.o: gbasic.h
204
205 g3flist.o g3affine.o g3sphere.o g3vector.o: g3vector.h gbasic.h fvect.h
206
207 g3affine.o: g3affine.h
208
209 g3affine.o g3sphere.o: g3sphere.h
210
211 g3flist.o: g3flist.h
212
213 maxheap.o: maxheap.h
214
215 ezxml.o readmesh.o readobj.o readoct.o rglinst.o wordfile.o: platform.h
216
217 depthcodec.o: depthcodec.h view.h fvect.h resolu.h rtio.h
218
219 normcodec.o: normcodec.h rtmath.h mat4.h fvect.h resolu.h rtio.h
220
221 idmap.o: idmap.h resolu.h platform.h rtio.h
222
223 rcode_ident.o: lookup.h