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 1.19 by greg, Thu Nov 7 11:03:57 1991 UTC vs.
Revision 2.80 by greg, Tue Jul 3 22:29:01 2018 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines