1 |
+ |
# RCSid: $Id$ |
2 |
+ |
# |
3 |
|
# Compiles for image processing and display programs |
2 |
– |
# SCCSid "$SunId$ SGI" |
4 |
|
# |
5 |
|
|
6 |
|
ARCH = sun |
7 |
|
OPT = -O |
8 |
|
MACH = -DBSD |
9 |
|
SPECIAL = aed |
10 |
< |
CFLAGS = $(OPT) $(MACH) -I../common -L../lib |
10 |
> |
CFLAGS = -I../common -L../lib $(OPT) $(MACH) |
11 |
|
CC = cc |
12 |
|
MLIB = -lm |
13 |
|
|
18 |
|
PIXAR_INCLUDE= -I/usr/pixar/include |
19 |
|
PIXAR_LIB= -L/usr/pixar/host/lib -lpirl -lpicio -lchad -lpixar $(MLIB) |
20 |
|
|
21 |
< |
PROGS = pfilt ttyimage oki20c oki20 paintjet mt160r psign \ |
22 |
< |
pvalue pcompos protate ra_pr ra_pr24 ra_avs \ |
23 |
< |
ra_t8 ra_bn ra_t16 pcomb pinterp ximage xshowtrace pflip ra_ppm \ |
21 |
> |
PROGS = pfilt ttyimage oki20c oki20 psign ra_tiff normtiff \ |
22 |
> |
pvalue pcompos protate ra_pr ra_pr24 ra_avs ra_hexbit \ |
23 |
> |
ra_t8 ra_bn ra_t16 pcomb pinterp pflip ra_ppm ximage xshowtrace \ |
24 |
|
ra_rgbe ra_pict ra_ps pextrem ra_gif ra_xyze macbethcal pcond pcwarp |
25 |
|
|
26 |
|
all: $(PROGS) $(SPECIAL) |
34 |
|
sgi: glimage |
35 |
|
cp glimage $(INSTDIR) |
36 |
|
|
37 |
+ |
ogl: |
38 |
+ |
|
39 |
|
sun: |
40 |
|
|
41 |
|
install: $(PROGS) $(SPECIAL) normpat.csh falsecolor.csh \ |
46 |
|
cp pdfblur.csh $(INSTDIR)/pdfblur |
47 |
|
cp pmblur.csh $(INSTDIR)/pmblur |
48 |
|
cp xyzimage.csh $(INSTDIR)/xyzimage |
49 |
+ |
cp phisto.csh $(INSTDIR)/phisto |
50 |
+ |
cp pdelta.csh $(INSTDIR)/pdelta |
51 |
|
chmod 755 $(INSTDIR)/normpat $(INSTDIR)/falsecolor \ |
52 |
< |
$(INSTDIR)/pdfblur $(INSTDIR)/pmblur $(INSTDIR)/xyzimage |
52 |
> |
$(INSTDIR)/pdfblur $(INSTDIR)/pmblur $(INSTDIR)/xyzimage \ |
53 |
> |
$(INSTDIR)/phisto $(INSTDIR)/pdelta |
54 |
|
|
55 |
|
clean: |
56 |
< |
set nonomatch; rm -f x10image aedimage glimage ra_tiff \ |
57 |
< |
$(PROGS) *.o core |
56 |
> |
set nonomatch; rm -f x10image aedimage glimage \ |
57 |
> |
$(PROGS) $(SPECIAL) *.o core |
58 |
> |
-cd tiff; make distclean |
59 |
|
|
60 |
|
pfilt: pfilt.o pf2.o pf3.o |
61 |
|
$(CC) $(CFLAGS) -o pfilt pfilt.o pf2.o pf3.o -lrt $(MLIB) |
96 |
|
$(CC) $(CFLAGS) -o greyscale greyscale.o -lrt $(MLIB) |
97 |
|
|
98 |
|
colorscale: colorscale.o |
99 |
< |
$(CC) $(CFLAGS) -o colorscale colorscale.o -lrt -lm |
99 |
> |
$(CC) $(CFLAGS) -o colorscale colorscale.o -lrt $(MLIB) |
100 |
|
|
101 |
|
pvalue: pvalue.o |
102 |
|
$(CC) $(CFLAGS) -o pvalue pvalue.o -lrt $(MLIB) |
105 |
|
$(CC) $(CFLAGS) -o psum psum.o -lrt |
106 |
|
|
107 |
|
pcompos: pcompos.o |
108 |
< |
$(CC) $(CFLAGS) -o pcompos pcompos.o -lrt |
108 |
> |
$(CC) $(CFLAGS) -o pcompos pcompos.o -lrt $(MLIB) |
109 |
|
|
110 |
|
psign: psign.o |
111 |
< |
$(CC) $(CFLAGS) -o psign psign.o -lrt -lm |
111 |
> |
$(CC) $(CFLAGS) -o psign psign.o -lrt $(MLIB) |
112 |
|
|
113 |
|
d48c: d48c.o |
114 |
|
$(CC) $(CFLAGS) -o d48c d48c.o -lrt |
150 |
|
ra_pict: ra_pict.o |
151 |
|
$(CC) $(CFLAGS) -o ra_pict ra_pict.o -lrt $(MLIB) |
152 |
|
|
153 |
+ |
ra_hexbit: ra_hexbit.o |
154 |
+ |
$(CC) $(CFLAGS) -o ra_hexbit ra_hexbit.o -lrt |
155 |
|
|
156 |
|
x10image: ximage.o ciq.o cut.o closest.o xraster.o biq.o |
157 |
|
$(CC) $(CFLAGS) -o x10image ximage.o xraster.o \ |
159 |
|
|
160 |
|
ximage: x11image.o x11raster.o clrtab.o |
161 |
|
$(CC) $(CFLAGS) -o ximage x11image.o x11raster.o \ |
162 |
< |
clrtab.o -lX11 -lrt $(MLIB) |
162 |
> |
clrtab.o -lrt -lX11 $(MLIB) |
163 |
|
|
164 |
|
protate: protate.o |
165 |
< |
$(CC) $(CFLAGS) -o protate protate.o -lrt -lm |
165 |
> |
$(CC) $(CFLAGS) -o protate protate.o -lrt $(MLIB) |
166 |
|
|
167 |
|
pextrem: pextrem.o |
168 |
< |
$(CC) $(CFLAGS) -o pextrem pextrem.o -lrt -lm |
168 |
> |
$(CC) $(CFLAGS) -o pextrem pextrem.o -lrt $(MLIB) |
169 |
|
|
170 |
|
pflip: pflip.o |
171 |
< |
$(CC) $(CFLAGS) -o pflip pflip.o -lrt -lm |
171 |
> |
$(CC) $(CFLAGS) -o pflip pflip.o -lrt $(MLIB) |
172 |
|
|
173 |
|
panim: panim.o client/libclient.a |
174 |
|
$(CC) $(CFLAGS) -o panim panim.o \ |
186 |
|
ra_tiff: ra_tiff.o ../lib/libtiff.a |
187 |
|
$(CC) $(CFLAGS) -o ra_tiff ra_tiff.o -lrt -ltiff $(MLIB) |
188 |
|
|
189 |
< |
../common/tiff.h: ../lib/libtiff.a |
189 |
> |
../common/tiff.h ../common/tiffio.h: ../lib/libtiff.a |
190 |
> |
@chmod u+w ../common/tiff.h ../common/tiffio.h |
191 |
> |
@touch ../common/tiff.h ../common/tiffio.h |
192 |
|
|
193 |
+ |
normtiff: normtiff.o ../lib/libtiff.a |
194 |
+ |
$(CC) $(CFLAGS) -o normtiff normtiff.o -lrt -ltiff $(MLIB) |
195 |
+ |
|
196 |
|
../lib/libtiff.a: tiff/config.local |
197 |
< |
cd tiff ; ./configure -quiet -noninteractive ; \ |
198 |
< |
cd libtiff ; make install ; |
199 |
< |
# cd .. ; make distclean |
197 |
> |
cd tiff ; ./configure -quiet -noninteractive -with-CC=$(CC) \ |
198 |
> |
"-with-ENVOPTS=$(OPT)" ; \ |
199 |
> |
cd libtiff ; make install |
200 |
|
|
201 |
|
ra_pixar: ra_pixar.o ra_pixar.c |
202 |
|
$(CC) $(CFLAGS) $(PIXAR_INCLUDE) -o $@ ra_pixar.o -lrt \ |
207 |
|
|
208 |
|
xshowtrace: xshowtrace.o x11findwind.o |
209 |
|
$(CC) $(CFLAGS) -o xshowtrace xshowtrace.o \ |
210 |
< |
x11findwind.o -lrt $(MLIB) -lX11 |
210 |
> |
x11findwind.o -lrt -lX11 $(MLIB) |
211 |
|
|
212 |
|
macbethcal: macbethcal.o pmapgen.o mx3.o warp3d.o |
213 |
|
$(CC) $(CFLAGS) -o macbethcal macbethcal.o pmapgen.o mx3.o warp3d.o \ |
232 |
|
pf2.o bnoise.o ra_ps.o ra_t16.o: ../common/random.h |
233 |
|
|
234 |
|
neuclrtab.o clrtab.o pfilt.o pf2.o pf3.o ttyimage.o t4027.o mt160r.o \ |
235 |
< |
psum.o psign.o protate.o \ |
235 |
> |
psum.o psign.o protate.o ra_hexbit.o \ |
236 |
|
pextrem.o ra_pr24.o d48c.o aedimage.o pcompos.o color.o resolu.o colrops.o \ |
237 |
|
pflip.o greyscale.o ra_t8.o glimage.o ra_bn.o ra_t16.o ra_tiff.o ra_pict.o \ |
238 |
|
ra_ps.o ra_pr.o pvalue.o pcomb.o pinterp.o ximage.o: ../common/color.h |
249 |
|
|
250 |
|
ra_t8.o: ../common/targa.h |
251 |
|
|
252 |
< |
ra_tiff.o: ../common/tiff.h |
252 |
> |
ra_tiff.o normtiff.o: ../common/tiff.h ../common/tiffio.h |
253 |
|
|
254 |
|
aedimage.o ximage.o ra_t8.o ra_pr.o: pic.h |
255 |
|
|
256 |
|
ciq.o cut.o closest.o biq.o: pic.h ciq.h |
257 |
|
|
258 |
< |
pinterp.o ximage.o x11showtrace.o image.o: ../common/view.h |
258 |
> |
pcomb.o pfilt.o pinterp.o ximage.o x11image.o x11showtrace.o \ |
259 |
> |
image.o: ../common/view.h ../common/resolu.h |
260 |
|
|
261 |
|
ra_pict.o: pict.h |
262 |
|
|
263 |
< |
mt160r.o oki20c.o paintjet.o pcomb.o pcompos.o pfilt.o pflip.o \ |
264 |
< |
pinterp.o protate.o pvalue.o ra_bn.o ra_pict.o ra_pixar.o \ |
263 |
> |
mt160r.o oki20c.o paintjet.o pcompos.o pfilt.o pflip.o \ |
264 |
> |
pinterp.o protate.o pvalue.o ra_bn.o ra_pict.o ra_pixar.o ra_hexbit.o \ |
265 |
|
ra_ppm.o ra_pr.o ra_pr24.o ra_rgbe.o ra_t16.o ra_t8.o glimage.o \ |
266 |
< |
ra_tiff.o ttyimage.o ximage.o x11image.o: ../common/resolu.h |
266 |
> |
ra_tiff.o ttyimage.o: ../common/resolu.h |
267 |
|
|
268 |
< |
pfilt.o: ../common/paths.h ../common/view.h |
268 |
> |
pfilt.o: ../common/paths.h |
269 |
|
|
270 |
|
psign.o: ../common/font.h |
271 |
|
|
272 |
|
pcond.o pcond2.o pcond3.o pcond4.o: pcond.h ../common/standard.h \ |
273 |
|
../common/mat4.h ../common/fvect.h \ |
274 |
|
../common/color.h ../common/view.h ../common/resolu.h |
275 |
+ |
|
276 |
+ |
normtiff.o: ../common/color.h ../common/tonemap.h ../common/resolu.h |
277 |
+ |
|
278 |
+ |
x11findwind.c: ../common/x11findwind.c |
279 |
+ |
cp ../common/x11findwind.c . |