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