ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/common/Rmakefile
(Generate patch)

Comparing ray/src/common/Rmakefile (file contents):
Revision 2.12 by greg, Tue Apr 12 15:18:16 1994 UTC vs.
Revision 2.76 by greg, Thu Jul 14 17:32:12 2016 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines