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