ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/px/Rmakefile
Revision: 2.37
Committed: Thu Mar 12 15:47:05 1998 UTC (26 years, 1 month ago) by gwlarson
Branch: MAIN
Changes since 2.36: +2 -1 lines
Log Message:
created phisto script

File Contents

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