1 |
< |
# Compiles for image processing and display programs |
2 |
< |
# SCCSid "$SunId$ LBL" |
1 |
> |
# RCSid: $Id$ |
2 |
|
# |
3 |
+ |
# Compiles for image processing and display programs |
4 |
+ |
# |
5 |
|
|
6 |
|
ARCH = sun |
7 |
|
OPT = -O |
8 |
|
MACH = -DBSD |
9 |
< |
SPECIAL = aed tiff |
10 |
< |
CFLAGS = $(OPT) $(MACH) -I../common -L../lib |
9 |
> |
SPECIAL = |
10 |
> |
CFLAGS = -I../common -L../lib $(OPT) $(MACH) |
11 |
|
CC = cc |
12 |
+ |
MLIB = -lm |
13 |
|
|
14 |
|
INSTDIR = /usr/local/bin |
15 |
|
|
16 |
|
LIBDIR = /usr/local/lib/ray |
17 |
|
|
18 |
|
PIXAR_INCLUDE= -I/usr/pixar/include |
19 |
< |
PIXAR_LIB= -L/usr/pixar/host/lib -lpirl -lpicio -lchad -lpixar -lm |
19 |
> |
PIXAR_LIB= -L/usr/pixar/host/lib -lpirl -lpicio -lchad -lpixar $(MLIB) |
20 |
|
|
21 |
< |
PROGS = pfilt ttyimage oki20c oki20 paintjet mt160r getinfo psign \ |
22 |
< |
greyscale pvalue pcompos colorscale protate ra_pr ra_pr24 \ |
23 |
< |
ra_t8 ra_bn ra_t16 pcomb pinterp ximage xshowtrace pflip ra_ppm \ |
24 |
< |
ra_rgbe ra_pict ra_ps pextrem |
21 |
> |
PROGS = pfilt ttyimage psign ra_tiff normtiff \ |
22 |
> |
pvalue pcompos protate ra_hexbit ra_bmp \ |
23 |
> |
ra_t8 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) |
27 |
|
|
28 |
< |
x10: x10image |
27 |
< |
cp x10image $(INSTDIR) |
28 |
> |
ogl: |
29 |
|
|
29 |
– |
aed: aedimage |
30 |
– |
cp aedimage $(INSTDIR) |
31 |
– |
|
32 |
– |
sgi: glimage |
33 |
– |
cp glimage $(INSTDIR) |
34 |
– |
|
35 |
– |
tiff: ra_tiff |
36 |
– |
cp ra_tiff $(INSTDIR) |
37 |
– |
|
30 |
|
sun: |
31 |
|
|
32 |
< |
install: $(PROGS) $(SPECIAL) normpat.csh falsecolor.csh |
32 |
> |
install: $(PROGS) $(SPECIAL) normpat.csh falsecolor.csh \ |
33 |
> |
pdfblur.csh pmblur.csh xyzimage.csh pgblur.csh |
34 |
|
cp $(PROGS) $(INSTDIR) |
35 |
|
cp normpat.csh $(INSTDIR)/normpat |
36 |
|
cp falsecolor.csh $(INSTDIR)/falsecolor |
37 |
< |
chmod 755 $(INSTDIR)/normpat $(INSTDIR)/falsecolor |
37 |
> |
cp pdfblur.csh $(INSTDIR)/pdfblur |
38 |
> |
cp pmblur.csh $(INSTDIR)/pmblur |
39 |
> |
cp xyzimage.csh $(INSTDIR)/xyzimage |
40 |
> |
cp phisto.csh $(INSTDIR)/phisto |
41 |
> |
cp pdelta.csh $(INSTDIR)/pdelta |
42 |
> |
cp pgblur.csh $(INSTDIR)/pgblur |
43 |
> |
cp ra_pfm.csh $(INSTDIR)/ra_pfm |
44 |
> |
cd $(INSTDIR) ; chmod 755 normpat falsecolor pdfblur \ |
45 |
> |
pmblur xyzimage phisto pdelta pgblur ra_pfm |
46 |
|
|
47 |
|
clean: |
48 |
< |
set nonomatch; rm -f x10image aedimage glimage ra_tiff \ |
49 |
< |
$(PROGS) *.o core |
48 |
> |
rm -f $(PROGS) $(SPECIAL) *.o core |
49 |
> |
cd tiff; make distclean |
50 |
|
|
51 |
|
pfilt: pfilt.o pf2.o pf3.o |
52 |
< |
$(CC) $(CFLAGS) -o pfilt pfilt.o pf2.o pf3.o -lrt -lm |
52 |
> |
$(CC) $(CFLAGS) -o pfilt pfilt.o pf2.o pf3.o -lrt $(MLIB) |
53 |
|
|
54 |
< |
ttyimage: ttyimage.o |
55 |
< |
$(CC) $(CFLAGS) -o ttyimage ttyimage.o -lrt -lm |
54 |
> |
pcond: pcond.o pcond2.o pcond3.o pcond4.o warp3d.o |
55 |
> |
$(CC) $(CFLAGS) -o pcond pcond.o pcond2.o pcond3.o pcond4.o warp3d.o \ |
56 |
> |
-lrt $(MLIB) |
57 |
|
|
58 |
< |
t4027: t4027.o |
59 |
< |
$(CC) $(CFLAGS) -o t4027 t4027.o -lrt |
58 |
> |
pcwarp: pcwarp.o warp3d.o |
59 |
> |
$(CC) $(CFLAGS) -o pcwarp pcwarp.o warp3d.o -lrt $(MLIB) |
60 |
|
|
61 |
< |
glimage: glimage.o |
62 |
< |
$(CC) $(CFLAGS) -o glimage glimage.o -lrt -lgl_s -lm |
61 |
> |
ttyimage: ttyimage.o |
62 |
> |
$(CC) $(CFLAGS) -o ttyimage ttyimage.o -lrt $(MLIB) |
63 |
|
|
62 |
– |
aedimage: aedimage.o ciq.o cut.o closest.o biq.o |
63 |
– |
$(CC) $(CFLAGS) -o aedimage aedimage.o ciq.o cut.o closest.o \ |
64 |
– |
biq.o -lrt -lm |
65 |
– |
|
66 |
– |
oki20c: oki20c.o |
67 |
– |
$(CC) $(CFLAGS) -o oki20c oki20c.o -lrt -lm |
68 |
– |
|
69 |
– |
oki20: oki20.o |
70 |
– |
$(CC) $(CFLAGS) -o oki20 oki20.o -lrt -lm |
71 |
– |
|
72 |
– |
paintjet: paintjet.o |
73 |
– |
$(CC) $(CFLAGS) -o paintjet paintjet.o -lrt -lm |
74 |
– |
|
75 |
– |
mt160r: mt160r.o |
76 |
– |
$(CC) $(CFLAGS) -o mt160r mt160r.o -lrt -lm |
77 |
– |
|
78 |
– |
getinfo: getinfo.o |
79 |
– |
$(CC) $(CFLAGS) -n -o getinfo getinfo.o -lrt |
80 |
– |
|
81 |
– |
greyscale: greyscale.o |
82 |
– |
$(CC) $(CFLAGS) -o greyscale greyscale.o -lrt -lm |
83 |
– |
|
84 |
– |
colorscale: colorscale.o |
85 |
– |
$(CC) $(CFLAGS) -o colorscale colorscale.o -lrt |
86 |
– |
|
64 |
|
pvalue: pvalue.o |
65 |
< |
$(CC) $(CFLAGS) -o pvalue pvalue.o -lrt -lm |
65 |
> |
$(CC) $(CFLAGS) -o pvalue pvalue.o -lrt $(MLIB) |
66 |
|
|
90 |
– |
psum: psum.o |
91 |
– |
$(CC) $(CFLAGS) -o psum psum.o -lrt |
92 |
– |
|
67 |
|
pcompos: pcompos.o |
68 |
< |
$(CC) $(CFLAGS) -o pcompos pcompos.o -lrt |
68 |
> |
$(CC) $(CFLAGS) -o pcompos pcompos.o -lrt $(MLIB) |
69 |
|
|
70 |
|
psign: psign.o |
71 |
< |
$(CC) $(CFLAGS) -o psign psign.o -lrt |
71 |
> |
$(CC) $(CFLAGS) -o psign psign.o -lrt $(MLIB) |
72 |
|
|
73 |
< |
d48c: d48c.o |
74 |
< |
$(CC) $(CFLAGS) -o d48c d48c.o -lrt |
73 |
> |
ra_gif: ra_gif.o clrtab.o neuclrtab.o |
74 |
> |
$(CC) $(CFLAGS) -o ra_gif ra_gif.o clrtab.o neuclrtab.o -lrt $(MLIB) |
75 |
|
|
102 |
– |
ra_pr: ra_pr.o ciq.o cut.o closest.o biq.o |
103 |
– |
$(CC) $(CFLAGS) -o ra_pr ra_pr.o ciq.o cut.o closest.o \ |
104 |
– |
biq.o -lrt -lm |
105 |
– |
|
106 |
– |
ra_pr24: ra_pr24.o |
107 |
– |
$(CC) $(CFLAGS) -o ra_pr24 ra_pr24.o -lrt -lm |
108 |
– |
|
76 |
|
ra_ps: ra_ps.o |
77 |
< |
$(CC) $(CFLAGS) -o ra_ps ra_ps.o -lrt -lm |
77 |
> |
$(CC) $(CFLAGS) -o ra_ps ra_ps.o -lrt $(MLIB) |
78 |
|
|
79 |
|
ra_ppm: ra_ppm.o |
80 |
< |
$(CC) $(CFLAGS) -o ra_ppm ra_ppm.o -lrt -lm |
80 |
> |
$(CC) $(CFLAGS) -o ra_ppm ra_ppm.o -lrt $(MLIB) |
81 |
|
|
82 |
< |
ra_t8: ra_t8.o clrtab.o |
83 |
< |
$(CC) $(CFLAGS) -o ra_t8 ra_t8.o clrtab.o -lrt -lm |
82 |
> |
ra_bmp: ra_bmp.o |
83 |
> |
$(CC) $(CFLAGS) -o ra_bmp ra_bmp.o -lrt $(MLIB) |
84 |
|
|
85 |
+ |
ra_t8: ra_t8.o clrtab.o neuclrtab.o |
86 |
+ |
$(CC) $(CFLAGS) -o ra_t8 ra_t8.o clrtab.o neuclrtab.o -lrt $(MLIB) |
87 |
+ |
|
88 |
|
ra_t16: ra_t16.o |
89 |
< |
$(CC) $(CFLAGS) -o ra_t16 ra_t16.o -lrt -lm |
89 |
> |
$(CC) $(CFLAGS) -o ra_t16 ra_t16.o -lrt $(MLIB) |
90 |
|
|
121 |
– |
ra_im: ra_im.o |
122 |
– |
$(CC) $(CFLAGS) -n -o ra_im ra_im.o |
123 |
– |
|
124 |
– |
ra_bn: ra_bn.o |
125 |
– |
$(CC) $(CFLAGS) -o ra_bn ra_bn.o -lrt -lm |
126 |
– |
|
91 |
|
ra_rgbe: ra_rgbe.o |
92 |
< |
$(CC) $(CFLAGS) -o ra_rgbe ra_rgbe.o -lrt -lm |
92 |
> |
$(CC) $(CFLAGS) -o ra_rgbe ra_rgbe.o -lrt $(MLIB) |
93 |
|
|
94 |
|
ra_pict: ra_pict.o |
95 |
< |
$(CC) $(CFLAGS) -o ra_pict ra_pict.o -lrt -lm |
95 |
> |
$(CC) $(CFLAGS) -o ra_pict ra_pict.o -lrt $(MLIB) |
96 |
|
|
97 |
+ |
ra_hexbit: ra_hexbit.o |
98 |
+ |
$(CC) $(CFLAGS) -o ra_hexbit ra_hexbit.o -lrt $(MLIB) |
99 |
|
|
134 |
– |
x10image: ximage.o ciq.o cut.o closest.o xraster.o biq.o |
135 |
– |
$(CC) $(CFLAGS) -o x10image ximage.o xraster.o \ |
136 |
– |
ciq.o cut.o closest.o biq.o -lX -lrt -lm |
137 |
– |
|
100 |
|
ximage: x11image.o x11raster.o clrtab.o |
101 |
|
$(CC) $(CFLAGS) -o ximage x11image.o x11raster.o \ |
102 |
< |
clrtab.o -lX11 -lrt -lm |
102 |
> |
clrtab.o -lrt -lX11 $(MLIB) |
103 |
|
|
104 |
|
protate: protate.o |
105 |
< |
$(CC) $(CFLAGS) -o protate protate.o -lrt |
105 |
> |
$(CC) $(CFLAGS) -o protate protate.o -lrt $(MLIB) |
106 |
|
|
107 |
|
pextrem: pextrem.o |
108 |
< |
$(CC) $(CFLAGS) -o pextrem pextrem.o -lrt |
108 |
> |
$(CC) $(CFLAGS) -o pextrem pextrem.o -lrt $(MLIB) |
109 |
|
|
110 |
|
pflip: pflip.o |
111 |
< |
$(CC) $(CFLAGS) -o pflip pflip.o -lrt |
111 |
> |
$(CC) $(CFLAGS) -o pflip pflip.o -lrt $(MLIB) |
112 |
|
|
151 |
– |
panim: panim.o client/libclient.a |
152 |
– |
$(CC) $(CFLAGS) -o panim panim.o \ |
153 |
– |
-lrt client/libclient.a -lrpcsvc -lm |
154 |
– |
|
113 |
|
pcomb: pcomb.o |
114 |
< |
$(CC) $(CFLAGS) -o pcomb pcomb.o -lrt -lm |
114 |
> |
$(CC) $(CFLAGS) -o pcomb pcomb.o -lrt $(MLIB) |
115 |
|
|
116 |
|
pinterp: pinterp.o |
117 |
< |
$(CC) $(CFLAGS) -o pinterp pinterp.o -lrt -lm |
117 |
> |
$(CC) $(CFLAGS) -o pinterp pinterp.o -lrt $(MLIB) |
118 |
|
|
119 |
+ |
ra_xyze: ra_xyze.o |
120 |
+ |
$(CC) $(CFLAGS) -o ra_xyze ra_xyze.o -lrt $(MLIB) |
121 |
+ |
|
122 |
|
ra_tiff: ra_tiff.o ../lib/libtiff.a |
123 |
< |
$(CC) $(CFLAGS) -o ra_tiff ra_tiff.o -lrt -ltiff -lm |
123 |
> |
$(CC) $(CFLAGS) -o ra_tiff ra_tiff.o -lrt -ltiff $(MLIB) |
124 |
|
|
125 |
< |
psign.o: psign.c ../common/font.h |
126 |
< |
$(CC) $(CFLAGS) -DDEFPATH=\":$(LIBDIR)\" -c psign.c |
125 |
> |
../common/tiff.h ../common/tiffio.h: ../lib/libtiff.a |
126 |
> |
@chmod u+w ../common/tiff.h ../common/tiffio.h |
127 |
> |
@touch ../common/tiff.h ../common/tiffio.h |
128 |
|
|
129 |
< |
ra_tiff.o: ra_tiff.c |
130 |
< |
$(CC) $(CFLAGS) -Ilibtiff -c ra_tiff.c |
129 |
> |
normtiff: normtiff.o ../lib/libtiff.a |
130 |
> |
$(CC) $(CFLAGS) -o normtiff normtiff.o -lrt -ltiff $(MLIB) |
131 |
|
|
132 |
< |
../lib/libtiff.a: |
133 |
< |
cd libtiff ; make -f Makefile.$(ARCH) ; \ |
134 |
< |
mv libtiff.a ../../lib ; make clean |
132 |
> |
../lib/libtiff.a: tiff/config.local |
133 |
> |
cd tiff ; sh configure -quiet -noninteractive -with-CC=$(CC) \ |
134 |
> |
"-with-ENVOPTS=$(OPT)" ; \ |
135 |
> |
cd libtiff ; make install |
136 |
|
|
174 |
– |
ra_pixar: ra_pixar.o ra_pixar.c |
175 |
– |
$(CC) $(CFLAGS) $(PIXAR_INCLUDE) -o $@ ra_pixar.o -lrt \ |
176 |
– |
$(PIXAR_LIB) |
177 |
– |
|
178 |
– |
ra_pixar.o: ra_pixar.c |
179 |
– |
$(CC) $(CFLAGS) $(PIXAR_INCLUDE) -c ra_pixar.c |
180 |
– |
|
137 |
|
xshowtrace: xshowtrace.o x11findwind.o |
138 |
|
$(CC) $(CFLAGS) -o xshowtrace xshowtrace.o \ |
139 |
< |
x11findwind.o -lrt -lm -lX11 |
139 |
> |
x11findwind.o -lrt -lX11 $(MLIB) |
140 |
|
|
141 |
< |
pcomb.o: ../common/calcomp.h |
141 |
> |
macbethcal: macbethcal.o pmapgen.o mx3.o warp3d.o |
142 |
> |
$(CC) $(CFLAGS) -o macbethcal macbethcal.o pmapgen.o mx3.o warp3d.o \ |
143 |
> |
-lrt $(MLIB) |
144 |
|
|
187 |
– |
panim.o: client/scan.h ../common/color.h ../common/random.h |
145 |
|
|
146 |
< |
pf2.o bnoise.o ra_ps.o ra_t16.o: ../common/random.h |
146 |
> |
macbethcal.o: pmap.h ../common/color.h ../common/resolu.h |
147 |
|
|
148 |
< |
pfilt.o pf2.o ttyimage.o t4027.o mt160r.o psum.o psign.o protate.o pextrem.o \ |
192 |
< |
ra_pr24.o d48c.o aedimage.o pcompos.o color.o resolu.o colrops.o pflip.o \ |
193 |
< |
greyscale.o ra_t8.o glimage.o ra_bn.o ra_t16.o ra_tiff.o ra_pict.o \ |
194 |
< |
ra_ps.o ra_pr.o pvalue.o pcomb.o pinterp.o ximage.o: ../common/color.h |
148 |
> |
macbethcal.o pcond2.o pcwarp.o warp3d.o: warp3d.h ../common/lookup.h |
149 |
|
|
150 |
< |
pvalue.o protate.o biq.o ciq.o pinterp.o ximage.o psign.o xshowtrace.o \ |
197 |
< |
pfilt.o image.o: ../common/standard.h ../common/mat4.h ../common/fvect.h |
150 |
> |
pmapgen.o: mx3.h pmap.h |
151 |
|
|
152 |
< |
ximage.o xraster.o: xraster.h |
152 |
> |
nclrtab.o: neuclrtab.o |
153 |
> |
ln neuclrtab.c nclrtab.c |
154 |
> |
$(CC) $(CFLAGS) -DCOMPAT_MODE -c nclrtab.c |
155 |
> |
rm -f nclrtab.c |
156 |
|
|
157 |
+ |
pcomb.o: ../common/calcomp.h |
158 |
+ |
|
159 |
+ |
pf2.o ra_ps.o ra_t16.o: ../common/random.h |
160 |
+ |
|
161 |
+ |
neuclrtab.o clrtab.o pfilt.o pf2.o pf3.o ttyimage.o \ |
162 |
+ |
psign.o protate.o ra_hexbit.o pextrem.o pcompos.o \ |
163 |
+ |
pflip.o ra_t8.o ra_t16.o ra_tiff.o ra_pict.o \ |
164 |
+ |
ra_ps.o pvalue.o pcomb.o pinterp.o: ../common/color.h |
165 |
+ |
|
166 |
+ |
neuclrtab.o pvalue.o protate.o pinterp.o psign.o \ |
167 |
+ |
xshowtrace.o clrtab.o pcomb.o pfilt.o pf3.o image.o: ../common/standard.h \ |
168 |
+ |
../common/rtmisc.h ../common/rtio.h \ |
169 |
+ |
../common/rtmath.h ../common/mat4.h ../common/fvect.h \ |
170 |
+ |
../common/rterror.h ../common/tifftypes.h |
171 |
+ |
|
172 |
|
x11image.o x11raster.o: x11raster.h |
173 |
|
|
174 |
+ |
x11image.o: ../common/tonemap.h ../common/color.h |
175 |
+ |
|
176 |
|
ra_t8.o: ../common/targa.h |
177 |
|
|
178 |
< |
aedimage.o ximage.o ra_t8.o ra_pr.o: pic.h |
178 |
> |
ra_tiff.o normtiff.o: ../common/tiff.h ../common/tiffio.h |
179 |
|
|
180 |
< |
ciq.o cut.o closest.o biq.o: pic.h ciq.h |
180 |
> |
ra_t8.o: pic.h |
181 |
|
|
182 |
< |
pinterp.o ximage.o x11showtrace.o image.o: ../common/view.h |
182 |
> |
pcomb.o pfilt.o pinterp.o x11image.o x11showtrace.o \ |
183 |
> |
image.o: ../common/view.h ../common/resolu.h |
184 |
|
|
185 |
|
ra_pict.o: pict.h |
186 |
|
|
187 |
< |
mt160r.o oki20c.o paintjet.o pcomb.o pcompos.o pfilt.o pflip.o \ |
188 |
< |
pinterp.o protate.o pvalue.o ra_bn.o ra_pict.o ra_pixar.o \ |
189 |
< |
ra_ppm.o ra_pr.o ra_pr24.o ra_rgbe.o ra_t16.o ra_t8.o glimage.o \ |
190 |
< |
ra_tiff.o ttyimage.o ximage.o x11image.o: ../common/resolu.h |
187 |
> |
pcompos.o pfilt.o pflip.o \ |
188 |
> |
pinterp.o protate.o pvalue.o ra_pict.o ra_hexbit.o \ |
189 |
> |
ra_ppm.o ra_rgbe.o ra_t16.o ra_t8.o \ |
190 |
> |
ra_tiff.o ttyimage.o: ../common/resolu.h |
191 |
|
|
192 |
< |
pfilt.o psign.o: ../common/paths.h |
192 |
> |
pfilt.o: ../common/paths.h |
193 |
> |
|
194 |
> |
psign.o: ../common/font.h |
195 |
> |
|
196 |
> |
pcond.o pcond2.o pcond3.o pcond4.o: pcond.h ../common/standard.h \ |
197 |
> |
../common/rtmisc.h ../common/rtio.h \ |
198 |
> |
../common/rtmath.h ../common/mat4.h ../common/fvect.h \ |
199 |
> |
../common/rterror.h ../common/tifftypes.h \ |
200 |
> |
../common/color.h ../common/view.h ../common/resolu.h |
201 |
> |
|
202 |
> |
normtiff.o: ../common/color.h ../common/tonemap.h ../common/resolu.h |
203 |
> |
|
204 |
> |
ra_bmp.o: ../common/bmpfile.h ../common/color.h \ |
205 |
> |
../common/tonemap.h ../common/resolu.h |
206 |
> |
|
207 |
> |
x11findwind.c: ../common/x11findwind.c |
208 |
> |
cp ../common/x11findwind.c . |