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