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.50 by greg, Wed Oct 23 09:33:13 1991 UTC vs.
Revision 2.49 by greg, Thu Jan 29 22:18:26 2004 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines