ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/px/Rmakefile
Revision: 2.49
Committed: Thu Jan 29 22:18:26 2004 UTC (20 years, 3 months ago) by greg
Branch: MAIN
Changes since 2.48: +6 -5 lines
Log Message:
Improved -f option of normpat & added pgblur for image low frequencies

File Contents

# User Rev Content
1 greg 2.49 # RCSid: $Id: Rmakefile,v 2.48 2003/07/07 17:21:51 greg Exp $
2 greg 2.45 #
3 gregl 2.34 # Compiles for image processing and display programs
4 greg 1.1 #
5    
6 greg 1.47 ARCH = sun
7 greg 1.8 OPT = -O
8 greg 1.53 MACH = -DBSD
9 gregl 2.35 SPECIAL = aed
10 greg 2.45 CFLAGS = -I../common -L../lib $(OPT) $(MACH)
11 greg 2.4 CC = cc
12 greg 2.16 MLIB = -lm
13 greg 1.1
14 greg 1.50 INSTDIR = /usr/local/bin
15 greg 1.1
16 greg 1.43 LIBDIR = /usr/local/lib/ray
17 greg 1.28
18 greg 1.4 PIXAR_INCLUDE= -I/usr/pixar/include
19 greg 2.16 PIXAR_LIB= -L/usr/pixar/host/lib -lpirl -lpicio -lchad -lpixar $(MLIB)
20 greg 1.4
21 greg 2.45 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 greg 2.32 ra_rgbe ra_pict ra_ps pextrem ra_gif ra_xyze macbethcal pcond pcwarp
25 greg 1.1
26 gwlarson 2.42 all: $(PROGS) $(SPECIAL)
27 greg 1.29
28 greg 1.34 x10: x10image
29     cp x10image $(INSTDIR)
30 greg 1.29
31     aed: aedimage
32     cp aedimage $(INSTDIR)
33    
34 greg 1.54 sgi: glimage
35     cp glimage $(INSTDIR)
36    
37 gwlarson 2.39 ogl:
38    
39 greg 1.29 sun:
40 greg 1.1
41 greg 2.24 install: $(PROGS) $(SPECIAL) normpat.csh falsecolor.csh \
42 greg 2.49 pdfblur.csh pmblur.csh xyzimage.csh pgblur.csh
43 greg 1.1 cp $(PROGS) $(INSTDIR)
44 greg 1.25 cp normpat.csh $(INSTDIR)/normpat
45 greg 1.38 cp falsecolor.csh $(INSTDIR)/falsecolor
46 greg 2.20 cp pdfblur.csh $(INSTDIR)/pdfblur
47 greg 2.24 cp pmblur.csh $(INSTDIR)/pmblur
48 greg 2.25 cp xyzimage.csh $(INSTDIR)/xyzimage
49 gwlarson 2.37 cp phisto.csh $(INSTDIR)/phisto
50 greg 2.45 cp pdelta.csh $(INSTDIR)/pdelta
51 greg 2.49 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 greg 1.1
56 greg 1.28 clean:
57 gwlarson 2.39 set nonomatch; rm -f x10image aedimage glimage \
58 greg 2.45 $(PROGS) $(SPECIAL) *.o core
59     -cd tiff; make distclean
60 greg 1.28
61 greg 1.40 pfilt: pfilt.o pf2.o pf3.o
62 greg 2.16 $(CC) $(CFLAGS) -o pfilt pfilt.o pf2.o pf3.o -lrt $(MLIB)
63 greg 1.1
64 greg 2.32 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 greg 2.29
68 greg 2.32 pcwarp: pcwarp.o warp3d.o
69     $(CC) $(CFLAGS) -o pcwarp pcwarp.o warp3d.o -lrt $(MLIB)
70    
71 greg 1.40 ttyimage: ttyimage.o
72 greg 2.16 $(CC) $(CFLAGS) -o ttyimage ttyimage.o -lrt $(MLIB)
73 greg 1.1
74 greg 1.40 t4027: t4027.o
75 greg 2.4 $(CC) $(CFLAGS) -o t4027 t4027.o -lrt
76 greg 1.1
77 greg 1.40 glimage: glimage.o
78 greg 2.16 $(CC) $(CFLAGS) -o glimage glimage.o -lrt -lgl_s $(MLIB)
79 greg 1.16
80 greg 1.40 aedimage: aedimage.o ciq.o cut.o closest.o biq.o
81 greg 2.4 $(CC) $(CFLAGS) -o aedimage aedimage.o ciq.o cut.o closest.o \
82 greg 2.16 biq.o -lrt $(MLIB)
83 greg 1.1
84 greg 1.40 oki20c: oki20c.o
85 greg 2.16 $(CC) $(CFLAGS) -o oki20c oki20c.o -lrt $(MLIB)
86 greg 2.2
87     oki20: oki20.o
88 greg 2.16 $(CC) $(CFLAGS) -o oki20 oki20.o -lrt $(MLIB)
89 greg 1.7
90 greg 1.40 paintjet: paintjet.o
91 greg 2.16 $(CC) $(CFLAGS) -o paintjet paintjet.o -lrt $(MLIB)
92 greg 1.1
93 greg 1.40 mt160r: mt160r.o
94 greg 2.16 $(CC) $(CFLAGS) -o mt160r mt160r.o -lrt $(MLIB)
95 greg 1.1
96 greg 1.40 greyscale: greyscale.o
97 greg 2.16 $(CC) $(CFLAGS) -o greyscale greyscale.o -lrt $(MLIB)
98 greg 1.1
99 greg 1.40 colorscale: colorscale.o
100 gwlarson 2.44 $(CC) $(CFLAGS) -o colorscale colorscale.o -lrt $(MLIB)
101 greg 1.1
102 greg 1.40 pvalue: pvalue.o
103 greg 2.16 $(CC) $(CFLAGS) -o pvalue pvalue.o -lrt $(MLIB)
104 greg 1.1
105 greg 1.40 psum: psum.o
106 greg 2.4 $(CC) $(CFLAGS) -o psum psum.o -lrt
107 greg 1.1
108 greg 1.40 pcompos: pcompos.o
109 gwlarson 2.44 $(CC) $(CFLAGS) -o pcompos pcompos.o -lrt $(MLIB)
110 greg 1.1
111 greg 1.40 psign: psign.o
112 gwlarson 2.44 $(CC) $(CFLAGS) -o psign psign.o -lrt $(MLIB)
113 greg 1.1
114 greg 1.40 d48c: d48c.o
115 greg 2.4 $(CC) $(CFLAGS) -o d48c d48c.o -lrt
116 greg 2.17
117 greg 2.19 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 greg 1.1
120 greg 1.40 ra_pr: ra_pr.o ciq.o cut.o closest.o biq.o
121 greg 2.4 $(CC) $(CFLAGS) -o ra_pr ra_pr.o ciq.o cut.o closest.o \
122 greg 2.16 biq.o -lrt $(MLIB)
123 greg 1.1
124 greg 1.40 ra_pr24: ra_pr24.o
125 greg 2.16 $(CC) $(CFLAGS) -o ra_pr24 ra_pr24.o -lrt $(MLIB)
126 greg 2.13
127     ra_avs: ra_avs.o
128 greg 2.16 $(CC) $(CFLAGS) -o ra_avs ra_avs.o -lrt $(MLIB)
129 greg 1.46
130 greg 2.5 ra_ps: ra_ps.o
131 greg 2.16 $(CC) $(CFLAGS) -o ra_ps ra_ps.o -lrt $(MLIB)
132 greg 2.5
133 greg 1.46 ra_ppm: ra_ppm.o
134 greg 2.16 $(CC) $(CFLAGS) -o ra_ppm ra_ppm.o -lrt $(MLIB)
135 greg 1.19
136 greg 2.19 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 greg 1.1
139 greg 1.40 ra_t16: ra_t16.o
140 greg 2.16 $(CC) $(CFLAGS) -o ra_t16 ra_t16.o -lrt $(MLIB)
141 greg 1.1
142     ra_im: ra_im.o
143 greg 2.15 $(CC) $(CFLAGS) -o ra_im ra_im.o
144 greg 1.1
145 greg 1.40 ra_bn: ra_bn.o
146 greg 2.16 $(CC) $(CFLAGS) -o ra_bn ra_bn.o -lrt $(MLIB)
147 greg 1.49
148     ra_rgbe: ra_rgbe.o
149 greg 2.16 $(CC) $(CFLAGS) -o ra_rgbe ra_rgbe.o -lrt $(MLIB)
150 greg 1.1
151 greg 1.50 ra_pict: ra_pict.o
152 greg 2.16 $(CC) $(CFLAGS) -o ra_pict ra_pict.o -lrt $(MLIB)
153 greg 1.50
154 gwlarson 2.40 ra_hexbit: ra_hexbit.o
155 greg 2.48 $(CC) $(CFLAGS) -o ra_hexbit ra_hexbit.o -lrt $(MLIB)
156 greg 1.50
157 greg 1.40 x10image: ximage.o ciq.o cut.o closest.o xraster.o biq.o
158 greg 2.4 $(CC) $(CFLAGS) -o x10image ximage.o xraster.o \
159 greg 2.16 ciq.o cut.o closest.o biq.o -lX -lrt $(MLIB)
160 greg 1.1
161 greg 2.9 ximage: x11image.o x11raster.o clrtab.o
162 greg 2.4 $(CC) $(CFLAGS) -o ximage x11image.o x11raster.o \
163 greg 2.45 clrtab.o -lrt -lX11 $(MLIB)
164 greg 1.17
165 greg 1.56 protate: protate.o
166 gwlarson 2.44 $(CC) $(CFLAGS) -o protate protate.o -lrt $(MLIB)
167 greg 1.1
168 greg 2.6 pextrem: pextrem.o
169 gwlarson 2.44 $(CC) $(CFLAGS) -o pextrem pextrem.o -lrt $(MLIB)
170 greg 2.6
171 greg 1.40 pflip: pflip.o
172 gwlarson 2.44 $(CC) $(CFLAGS) -o pflip pflip.o -lrt $(MLIB)
173 greg 1.26
174 greg 1.40 panim: panim.o client/libclient.a
175 greg 2.4 $(CC) $(CFLAGS) -o panim panim.o \
176 greg 2.16 -lrt client/libclient.a -lrpcsvc $(MLIB)
177 greg 1.1
178 greg 1.41 pcomb: pcomb.o
179 greg 2.16 $(CC) $(CFLAGS) -o pcomb pcomb.o -lrt $(MLIB)
180 greg 1.1
181 greg 1.40 pinterp: pinterp.o
182 greg 2.16 $(CC) $(CFLAGS) -o pinterp pinterp.o -lrt $(MLIB)
183 greg 2.22
184     ra_xyze: ra_xyze.o
185     $(CC) $(CFLAGS) -o ra_xyze ra_xyze.o -lrt $(MLIB)
186 greg 1.44
187 greg 1.48 ra_tiff: ra_tiff.o ../lib/libtiff.a
188 greg 2.16 $(CC) $(CFLAGS) -o ra_tiff ra_tiff.o -lrt -ltiff $(MLIB)
189 greg 1.44
190 gwlarson 2.43 ../common/tiff.h ../common/tiffio.h: ../lib/libtiff.a
191 greg 2.45 @chmod u+w ../common/tiff.h ../common/tiffio.h
192 gwlarson 2.43 @touch ../common/tiff.h ../common/tiffio.h
193 gregl 2.36
194 greg 2.45 normtiff: normtiff.o ../lib/libtiff.a
195     $(CC) $(CFLAGS) -o normtiff normtiff.o -lrt -ltiff $(MLIB)
196 gwlarson 2.43
197 gregl 2.35 ../lib/libtiff.a: tiff/config.local
198 greg 2.46 cd tiff ; sh configure -quiet -noninteractive -with-CC=$(CC) \
199 gwlarson 2.42 "-with-ENVOPTS=$(OPT)" ; \
200 gwlarson 2.39 cd libtiff ; make install
201 greg 1.44
202 greg 1.40 ra_pixar: ra_pixar.o ra_pixar.c
203 greg 2.4 $(CC) $(CFLAGS) $(PIXAR_INCLUDE) -o $@ ra_pixar.o -lrt \
204 greg 1.4 $(PIXAR_LIB)
205    
206     ra_pixar.o: ra_pixar.c
207 greg 2.4 $(CC) $(CFLAGS) $(PIXAR_INCLUDE) -c ra_pixar.c
208 greg 1.1
209 greg 1.40 xshowtrace: xshowtrace.o x11findwind.o
210 greg 2.4 $(CC) $(CFLAGS) -o xshowtrace xshowtrace.o \
211 greg 2.45 x11findwind.o -lrt -lX11 $(MLIB)
212 greg 2.21
213 greg 2.32 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 greg 2.21
217    
218 greg 2.23 macbethcal.o: pmap.h ../common/color.h ../common/resolu.h
219 greg 2.32
220     macbethcal.o pcond2.o pcwarp.o warp3d.o: warp3d.h ../common/lookup.h
221 greg 2.21
222     pmapgen.o: mx3.h pmap.h
223 greg 1.28
224 greg 2.19 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 greg 1.41 pcomb.o: ../common/calcomp.h
230 greg 1.18
231 greg 1.40 panim.o: client/scan.h ../common/color.h ../common/random.h
232 greg 1.24
233 greg 2.5 pf2.o bnoise.o ra_ps.o ra_t16.o: ../common/random.h
234 greg 1.1
235 greg 2.19 neuclrtab.o clrtab.o pfilt.o pf2.o pf3.o ttyimage.o t4027.o mt160r.o \
236 gwlarson 2.40 psum.o psign.o protate.o ra_hexbit.o \
237 greg 2.14 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 greg 2.5 ra_ps.o ra_pr.o pvalue.o pcomb.o pinterp.o ximage.o: ../common/color.h
240 greg 1.1
241 greg 2.19 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 greg 2.47 ../common/rtmisc.h ../common/rtio.h \
244     ../common/rtmath.h ../common/mat4.h ../common/fvect.h \
245     ../common/rterror.h
246 greg 1.1
247 greg 1.43 ximage.o xraster.o: xraster.h
248 greg 1.17
249     x11image.o x11raster.o: x11raster.h
250 greg 1.1
251 greg 2.33 x11image.o: ../common/tonemap.h ../common/color.h
252    
253 greg 1.40 ra_t8.o: ../common/targa.h
254 gregl 2.34
255 greg 2.45 ra_tiff.o normtiff.o: ../common/tiff.h ../common/tiffio.h
256 greg 1.1
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 greg 2.45 pcomb.o pfilt.o pinterp.o ximage.o x11image.o x11showtrace.o \
262     image.o: ../common/view.h ../common/resolu.h
263 greg 1.50
264     ra_pict.o: pict.h
265 greg 1.55
266 greg 2.45 mt160r.o oki20c.o paintjet.o pcompos.o pfilt.o pflip.o \
267 gwlarson 2.40 pinterp.o protate.o pvalue.o ra_bn.o ra_pict.o ra_pixar.o ra_hexbit.o \
268 greg 2.1 ra_ppm.o ra_pr.o ra_pr24.o ra_rgbe.o ra_t16.o ra_t8.o glimage.o \
269 greg 2.45 ra_tiff.o ttyimage.o: ../common/resolu.h
270 greg 2.7
271 greg 2.45 pfilt.o: ../common/paths.h
272 greg 2.18
273     psign.o: ../common/font.h
274 greg 2.29
275     pcond.o pcond2.o pcond3.o pcond4.o: pcond.h ../common/standard.h \
276 greg 2.47 ../common/rtmisc.h ../common/rtio.h \
277     ../common/rtmath.h ../common/mat4.h ../common/fvect.h \
278     ../common/rterror.h \
279 greg 2.29 ../common/color.h ../common/view.h ../common/resolu.h
280 gwlarson 2.43
281     normtiff.o: ../common/color.h ../common/tonemap.h ../common/resolu.h
282    
283 greg 2.45 x11findwind.c: ../common/x11findwind.c
284     cp ../common/x11findwind.c .