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