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