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

Comparing ray/src/px/Rmakefile (file contents):
Revision 1.5 by greg, Tue Sep 12 17:53:09 1989 UTC vs.
Revision 2.47 by greg, Fri Jun 27 06:53:22 2003 UTC

# Line 1 | Line 1
1 < # SCCSid "$SunId$ LBL"
2 <
1 > # RCSid: $Id$
2   #
3 < #  Compiles for pixel file plotters.
3 > # Compiles for image processing and display programs
4   #
5  
6 < CFLAGS = -O -f68881 /usr/lib/f68881.il
6 > ARCH = sun
7 > OPT = -O
8 > MACH = -DBSD
9 > SPECIAL = aed
10 > CFLAGS = -I../common -L../lib $(OPT) $(MACH)
11 > CC = cc
12 > MLIB = -lm
13  
14 < INSTDIR = /usr/local/ray
14 > INSTDIR = /usr/local/bin
15  
16 < CALDEFS = -DIEEE -DFUNCTION -DVARIABLE -DRCONST -DBIGLIB
16 > LIBDIR = /usr/local/lib/ray
17  
18   PIXAR_INCLUDE=  -I/usr/pixar/include
19 < PIXAR_LIB=      -L/usr/pixar/host/lib -lpirl -lpicio -lchad -lpixar -lm
19 > PIXAR_LIB=      -L/usr/pixar/host/lib -lpirl -lpicio -lchad -lpixar $(MLIB)
20  
21 < PROGS = pfilt ttyimage aedimage oki20c mt160r getinfo psign \
22 < greyscale pvalue pcompos colorscale ra_pr ximage prot \
23 < panim ra_t8 ra_bn ra_t16 pcomb
21 > PROGS = pfilt ttyimage oki20c oki20 psign ra_tiff normtiff \
22 > pvalue pcompos protate ra_pr ra_pr24 ra_avs ra_hexbit \
23 > ra_t8 ra_bn ra_t16 pcomb pinterp pflip ra_ppm ximage xshowtrace \
24 > ra_rgbe ra_pict ra_ps pextrem ra_gif ra_xyze macbethcal pcond pcwarp
25  
26 < all:    $(PROGS)
26 > all:    $(PROGS) $(SPECIAL)
27  
28 < install:        $(PROGS)
28 > x10:    x10image
29 >        cp x10image $(INSTDIR)
30 >
31 > aed:    aedimage
32 >        cp aedimage $(INSTDIR)
33 >
34 > sgi:    glimage
35 >        cp glimage $(INSTDIR)
36 >
37 > ogl:
38 >
39 > sun:
40 >
41 > install:        $(PROGS) $(SPECIAL) normpat.csh falsecolor.csh \
42 > pdfblur.csh pmblur.csh xyzimage.csh
43          cp $(PROGS) $(INSTDIR)
44 +        cp normpat.csh $(INSTDIR)/normpat
45 +        cp falsecolor.csh $(INSTDIR)/falsecolor
46 +        cp pdfblur.csh $(INSTDIR)/pdfblur
47 +        cp pmblur.csh $(INSTDIR)/pmblur
48 +        cp xyzimage.csh $(INSTDIR)/xyzimage
49 +        cp phisto.csh $(INSTDIR)/phisto
50 +        cp pdelta.csh $(INSTDIR)/pdelta
51 +        chmod 755 $(INSTDIR)/normpat $(INSTDIR)/falsecolor \
52 + $(INSTDIR)/pdfblur $(INSTDIR)/pmblur $(INSTDIR)/xyzimage \
53 + $(INSTDIR)/phisto $(INSTDIR)/pdelta
54  
55 < pfilt:  pfilt.o pf2.o pf3.o color.o header.o
56 <        cc $(CFLAGS) -o pfilt pfilt.o pf2.o pf3.o color.o header.o -lm
55 > clean:
56 >        set nonomatch; rm -f x10image aedimage glimage \
57 > $(PROGS) $(SPECIAL) *.o core
58 >        -cd tiff; make distclean
59  
60 < ttyimage:       ttyimage.o color.o
61 <        cc $(CFLAGS) -o ttyimage ttyimage.o color.o
60 > pfilt:  pfilt.o pf2.o pf3.o
61 >        $(CC) $(CFLAGS) -o pfilt pfilt.o pf2.o pf3.o -lrt $(MLIB)
62  
63 < t4027:  t4027.o color.o
64 <        cc $(CFLAGS) -o t4027 t4027.o color.o
63 > pcond:  pcond.o pcond2.o pcond3.o pcond4.o warp3d.o
64 >        $(CC) $(CFLAGS) -o pcond pcond.o pcond2.o pcond3.o pcond4.o warp3d.o \
65 > -lrt $(MLIB)
66  
67 < aedimage:       aedimage.o color.o ciq.o cut.o closest.o ealloc.o biq.o
68 <        cc $(CFLAGS) -o aedimage aedimage.o color.o ciq.o cut.o \
36 < closest.o ealloc.o biq.o -lm
67 > pcwarp: pcwarp.o warp3d.o
68 >        $(CC) $(CFLAGS) -o pcwarp pcwarp.o warp3d.o -lrt $(MLIB)
69  
70 < oki20c: oki20c.o color.o header.o
71 <        cc $(CFLAGS) -o oki20c oki20c.o color.o header.o
70 > ttyimage:       ttyimage.o
71 >        $(CC) $(CFLAGS) -o ttyimage ttyimage.o -lrt $(MLIB)
72  
73 < mt160r: mt160r.o color.o
74 <        cc $(CFLAGS) -o mt160r mt160r.o color.o
73 > t4027:  t4027.o
74 >        $(CC) $(CFLAGS) -o t4027 t4027.o -lrt
75  
76 < getinfo:        getinfo.o header.o
77 <        cc $(CFLAGS) -n -o getinfo getinfo.o header.o
76 > glimage:        glimage.o
77 >        $(CC) $(CFLAGS) -o glimage glimage.o -lrt -lgl_s $(MLIB)
78  
79 < greyscale:      greyscale.o color.o
80 <        cc $(CFLAGS) -o greyscale greyscale.o color.o -lm
79 > aedimage:       aedimage.o ciq.o cut.o closest.o biq.o
80 >        $(CC) $(CFLAGS) -o aedimage aedimage.o ciq.o cut.o closest.o \
81 > biq.o -lrt $(MLIB)
82  
83 < colorscale:     colorscale.o color.o
84 <        cc $(CFLAGS) -o colorscale colorscale.o color.o
83 > oki20c: oki20c.o
84 >        $(CC) $(CFLAGS) -o oki20c oki20c.o -lrt $(MLIB)
85  
86 < pvalue: pvalue.o color.o header.o
87 <        cc $(CFLAGS) -o pvalue pvalue.o color.o header.o
86 > oki20:  oki20.o
87 >        $(CC) $(CFLAGS) -o oki20 oki20.o -lrt $(MLIB)
88  
89 < psum:   psum.o color.o header.o
90 <        cc $(CFLAGS) -o psum psum.o color.o header.o
89 > paintjet:       paintjet.o
90 >        $(CC) $(CFLAGS) -o paintjet paintjet.o -lrt $(MLIB)
91  
92 < pcompos:        pcompos.o color.o header.o
93 <        cc $(CFLAGS) -o pcompos pcompos.o color.o header.o
92 > mt160r: mt160r.o
93 >        $(CC) $(CFLAGS) -o mt160r mt160r.o -lrt $(MLIB)
94  
95 < psign:  psign.o color.o
96 <        cc $(CFLAGS) -o psign psign.o color.o
95 > greyscale:      greyscale.o
96 >        $(CC) $(CFLAGS) -o greyscale greyscale.o -lrt $(MLIB)
97  
98 < d48c:   d48c.o color.o
99 <        cc $(CFLAGS) -o d48c d48c.o color.o
98 > colorscale:     colorscale.o
99 >        $(CC) $(CFLAGS) -o colorscale colorscale.o -lrt $(MLIB)
100  
101 < ra_pr: ra_pr.o ciq.o cut.o closest.o color.o ealloc.o header.o biq.o
102 <        cc $(CFLAGS) -o ra_pr ra_pr.o ciq.o cut.o closest.o \
70 < color.o ealloc.o header.o biq.o -lm
101 > pvalue: pvalue.o
102 >        $(CC) $(CFLAGS) -o pvalue pvalue.o -lrt $(MLIB)
103  
104 < ra_t8: ra_t8.o ciq.o cut.o closest.o color.o ealloc.o header.o biq.o
105 <        cc $(CFLAGS) -o ra_t8 ra_t8.o ciq.o cut.o closest.o \
74 < color.o ealloc.o header.o biq.o -lm
104 > psum:   psum.o
105 >        $(CC) $(CFLAGS) -o psum psum.o -lrt
106  
107 < ra_t16: ra_t16.o color.o ealloc.o header.o
108 <        cc $(CFLAGS) -o ra_t16 ra_t16.o color.o ealloc.o header.o -lm
107 > pcompos:        pcompos.o
108 >        $(CC) $(CFLAGS) -o pcompos pcompos.o -lrt $(MLIB)
109  
110 + psign:  psign.o
111 +        $(CC) $(CFLAGS) -o psign psign.o -lrt $(MLIB)
112 +
113 + d48c:   d48c.o
114 +        $(CC) $(CFLAGS) -o d48c d48c.o -lrt
115 +
116 + ra_gif: ra_gif.o clrtab.o neuclrtab.o
117 +        $(CC) $(CFLAGS) -o ra_gif ra_gif.o clrtab.o neuclrtab.o -lrt $(MLIB)
118 +
119 + ra_pr:  ra_pr.o ciq.o cut.o closest.o biq.o
120 +        $(CC) $(CFLAGS) -o ra_pr ra_pr.o ciq.o cut.o closest.o \
121 + biq.o -lrt $(MLIB)
122 +
123 + ra_pr24:        ra_pr24.o
124 +        $(CC) $(CFLAGS) -o ra_pr24 ra_pr24.o -lrt $(MLIB)
125 +
126 + ra_avs: ra_avs.o
127 +        $(CC) $(CFLAGS) -o ra_avs ra_avs.o -lrt $(MLIB)
128 +
129 + ra_ps:  ra_ps.o
130 +        $(CC) $(CFLAGS) -o ra_ps ra_ps.o -lrt $(MLIB)
131 +
132 + ra_ppm:         ra_ppm.o
133 +        $(CC) $(CFLAGS) -o ra_ppm ra_ppm.o -lrt $(MLIB)
134 +
135 + ra_t8:  ra_t8.o clrtab.o neuclrtab.o
136 +        $(CC) $(CFLAGS) -o ra_t8 ra_t8.o clrtab.o neuclrtab.o -lrt $(MLIB)
137 +
138 + ra_t16: ra_t16.o
139 +        $(CC) $(CFLAGS) -o ra_t16 ra_t16.o -lrt $(MLIB)
140 +
141   ra_im: ra_im.o
142 <        cc $(CFLAGS) -n -o ra_im ra_im.o
142 >        $(CC) $(CFLAGS) -o ra_im ra_im.o
143  
144 < ra_bn: ra_bn.o color.o header.o
145 <        cc $(CFLAGS) -o ra_bn ra_bn.o color.o header.o -lm
144 > ra_bn: ra_bn.o
145 >        $(CC) $(CFLAGS) -o ra_bn ra_bn.o -lrt $(MLIB)
146  
147 < ximage: ximage.o color.o ciq.o cut.o closest.o ealloc.o \
148 < xraster.o header.o biq.o image.o fvect.o
87 <        cc $(CFLAGS) -o ximage ximage.o color.o xraster.o \
88 < header.o ciq.o cut.o closest.o ealloc.o biq.o image.o fvect.o -lX -lm
147 > ra_rgbe:        ra_rgbe.o
148 >        $(CC) $(CFLAGS) -o ra_rgbe ra_rgbe.o -lrt $(MLIB)
149  
150 < prot:           prot.o color.o
151 <        cc $(CFLAGS) -o prot prot.o color.o
150 > ra_pict:    ra_pict.o
151 >        $(CC) $(CFLAGS) -o ra_pict ra_pict.o -lrt $(MLIB)
152  
153 < panim:  panim.o color.o header.o libclient.a
154 <        cc $(CFLAGS) -o panim panim.o color.o header.o \
95 < libclient.a -lrpcsvc -lm
153 > ra_hexbit:      ra_hexbit.o
154 >        $(CC) $(CFLAGS) -o ra_hexbit ra_hexbit.o -lrt
155  
156 < pcomb:  pcomb.o calexpr.o calfunc.o caldefn.o color.o \
157 < header.o ealloc.o savestr.o
158 <        cc $(CFLAGS) -o pcomb pcomb.o calexpr.o calfunc.o caldefn.o \
100 < color.o header.o ealloc.o savestr.o -lm
156 > x10image:       ximage.o ciq.o cut.o closest.o xraster.o biq.o
157 >        $(CC) $(CFLAGS) -o x10image ximage.o xraster.o \
158 > ciq.o cut.o closest.o biq.o -lX -lrt $(MLIB)
159  
160 < ra_pixar:       ra_pixar.o ra_pixar.c color.o header.o
161 <        cc $(CFLAGS) $(PIXAR_INCLUDE) -o $@ ra_pixar.o color.o header.o \
162 < $(PIXAR_LIB)
160 > ximage: x11image.o x11raster.o clrtab.o
161 >        $(CC) $(CFLAGS) -o ximage x11image.o x11raster.o \
162 > clrtab.o -lrt -lX11 $(MLIB)
163  
164 < calexpr.o:      calexpr.c
165 <        cc $(CFLAGS) $(CALDEFS) -c calexpr.c
164 > protate:                protate.o
165 >        $(CC) $(CFLAGS) -o protate protate.o -lrt $(MLIB)
166  
167 < calfunc.o:      calfunc.c
168 <        cc $(CFLAGS) $(CALDEFS) -c calfunc.c
167 > pextrem:        pextrem.o
168 >        $(CC) $(CFLAGS) -o pextrem pextrem.o -lrt $(MLIB)
169  
170 < caldefn.o:      caldefn.c
171 <        cc $(CFLAGS) $(CALDEFS) -c caldefn.c
170 > pflip:          pflip.o
171 >        $(CC) $(CFLAGS) -o pflip pflip.o -lrt $(MLIB)
172  
173 + panim:  panim.o client/libclient.a
174 +        $(CC) $(CFLAGS) -o panim panim.o \
175 + -lrt client/libclient.a -lrpcsvc $(MLIB)
176 +
177 + pcomb:  pcomb.o
178 +        $(CC) $(CFLAGS) -o pcomb pcomb.o -lrt $(MLIB)
179 +
180 + pinterp:        pinterp.o
181 +        $(CC) $(CFLAGS) -o pinterp pinterp.o -lrt $(MLIB)
182 +
183 + ra_xyze:        ra_xyze.o
184 +        $(CC) $(CFLAGS) -o ra_xyze ra_xyze.o -lrt $(MLIB)
185 +
186 + ra_tiff:        ra_tiff.o ../lib/libtiff.a
187 +        $(CC) $(CFLAGS) -o ra_tiff ra_tiff.o -lrt -ltiff $(MLIB)
188 +
189 + ../common/tiff.h ../common/tiffio.h:    ../lib/libtiff.a
190 +        @chmod u+w ../common/tiff.h ../common/tiffio.h
191 +        @touch ../common/tiff.h ../common/tiffio.h
192 +
193 + normtiff:       normtiff.o ../lib/libtiff.a
194 +        $(CC) $(CFLAGS) -o normtiff normtiff.o -lrt -ltiff $(MLIB)
195 +
196 + ../lib/libtiff.a:       tiff/config.local
197 +        cd tiff ; sh configure -quiet -noninteractive -with-CC=$(CC) \
198 +                "-with-ENVOPTS=$(OPT)" ; \
199 +        cd libtiff ; make install
200 +
201 + ra_pixar:       ra_pixar.o ra_pixar.c
202 +        $(CC) $(CFLAGS) $(PIXAR_INCLUDE) -o $@ ra_pixar.o -lrt \
203 + $(PIXAR_LIB)
204 +
205   ra_pixar.o:     ra_pixar.c
206 <        cc $(CFLAGS) $(PIXAR_INCLUDE) -c ra_pixar.c
206 >        $(CC) $(CFLAGS) $(PIXAR_INCLUDE) -c ra_pixar.c
207  
208 < pcomb.o calexpr.o calfunc.o caldefn.o:  calcomp.h
208 > xshowtrace:     xshowtrace.o x11findwind.o
209 >        $(CC) $(CFLAGS) -o xshowtrace xshowtrace.o \
210 > x11findwind.o -lrt -lX11 $(MLIB)
211  
212 < panim.o:        scan.h clntrpc.h color.h random.h
212 > macbethcal:     macbethcal.o pmapgen.o mx3.o warp3d.o
213 >        $(CC) $(CFLAGS) -o macbethcal macbethcal.o pmapgen.o mx3.o warp3d.o \
214 > -lrt $(MLIB)
215  
122 pf2.o bnoise.o: random.h
216  
217 < ra_t16.o:       random.h
217 > macbethcal.o:   pmap.h ../common/color.h ../common/resolu.h
218  
219 < pfilt.o pf2.o ttyimage.o t4027.o mt160r.o psum.o psign.o prot.o \
127 < d48c.o aedimage.o pcompos.o color.o greyscale.o ra_t8.o \
128 < ra_bn.o ra_t16.o ra_pr.o pvalue.o image.o pcomb.o:      color.h
219 > macbethcal.o pcond2.o pcwarp.o warp3d.o:        warp3d.h ../common/lookup.h
220  
221 < ximage.o image.o:       standard.h fvect.h
221 > pmapgen.o:      mx3.h pmap.h
222  
223 < ximage.o:       xraster.h
223 > nclrtab.o:      neuclrtab.o
224 >        ln neuclrtab.c nclrtab.c
225 >        $(CC) $(CFLAGS) -DCOMPAT_MODE -c nclrtab.c
226 >        rm -f nclrtab.c
227  
228 < ra_t8.o:        targa.h
228 > pcomb.o:        ../common/calcomp.h
229  
230 < fvect.o:        fvect.h
230 > panim.o:        client/scan.h ../common/color.h ../common/random.h
231  
232 + pf2.o bnoise.o ra_ps.o ra_t16.o:        ../common/random.h
233 +
234 + neuclrtab.o clrtab.o pfilt.o pf2.o pf3.o ttyimage.o t4027.o mt160r.o \
235 + psum.o psign.o protate.o ra_hexbit.o \
236 + pextrem.o ra_pr24.o d48c.o aedimage.o pcompos.o color.o resolu.o colrops.o \
237 + pflip.o greyscale.o ra_t8.o glimage.o ra_bn.o ra_t16.o ra_tiff.o ra_pict.o \
238 + ra_ps.o ra_pr.o pvalue.o pcomb.o pinterp.o ximage.o:    ../common/color.h
239 +
240 + neuclrtab.o pvalue.o protate.o biq.o ciq.o pinterp.o ximage.o psign.o \
241 + xshowtrace.o clrtab.o pcomb.o pfilt.o pf3.o image.o:    ../common/standard.h \
242 + ../common/rtmisc.h ../common/rtio.h \
243 + ../common/rtmath.h ../common/mat4.h ../common/fvect.h \
244 + ../common/rterror.h
245 +
246 + ximage.o xraster.o:     xraster.h
247 +
248 + x11image.o x11raster.o: x11raster.h
249 +
250 + x11image.o:     ../common/tonemap.h ../common/color.h
251 +
252 + ra_t8.o:        ../common/targa.h
253 +
254 + ra_tiff.o normtiff.o:   ../common/tiff.h ../common/tiffio.h
255 +
256   aedimage.o ximage.o ra_t8.o ra_pr.o:    pic.h
257  
258   ciq.o cut.o closest.o biq.o:    pic.h ciq.h
259  
260 < ximage.o image.o:       view.h
260 > pcomb.o pfilt.o pinterp.o ximage.o x11image.o x11showtrace.o \
261 > image.o:        ../common/view.h ../common/resolu.h
262 >
263 > ra_pict.o:      pict.h
264 >
265 > mt160r.o oki20c.o paintjet.o pcompos.o pfilt.o pflip.o \
266 > pinterp.o protate.o pvalue.o ra_bn.o ra_pict.o ra_pixar.o ra_hexbit.o \
267 > ra_ppm.o ra_pr.o ra_pr24.o ra_rgbe.o ra_t16.o ra_t8.o glimage.o \
268 > ra_tiff.o ttyimage.o:   ../common/resolu.h
269 >
270 > pfilt.o:        ../common/paths.h
271 >
272 > psign.o:        ../common/font.h
273 >
274 > pcond.o pcond2.o pcond3.o pcond4.o:     pcond.h ../common/standard.h \
275 > ../common/rtmisc.h ../common/rtio.h \
276 > ../common/rtmath.h ../common/mat4.h ../common/fvect.h \
277 > ../common/rterror.h \
278 > ../common/color.h ../common/view.h ../common/resolu.h
279 >
280 > normtiff.o:     ../common/color.h ../common/tonemap.h ../common/resolu.h
281 >
282 > x11findwind.c:  ../common/x11findwind.c
283 >        cp ../common/x11findwind.c .

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines