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