1 |
+ |
# Compiles for image processing and display programs |
2 |
|
# SCCSid "$SunId$ LBL" |
2 |
– |
|
3 |
|
# |
4 |
– |
# Compiles for pixel file plotters. |
5 |
– |
# |
4 |
|
|
5 |
+ |
ARCH = sun |
6 |
|
OPT = -O |
7 |
< |
MACH = -DBSD -DSTRUCTASSIGN -f68881 /usr/lib/f68881.il -DIEEE |
8 |
< |
CFLAGS = $(OPT) $(MACH) |
7 |
> |
MACH = -DBSD |
8 |
> |
SPECIAL = aed tiff |
9 |
> |
CFLAGS = $(OPT) $(MACH) -I../common -L../lib |
10 |
> |
CC = cc |
11 |
|
|
12 |
< |
INSTDIR = /usr/local/ray |
12 |
> |
INSTDIR = /usr/local/bin |
13 |
|
|
14 |
< |
CALDEFS = -DFUNCTION -DVARIABLE -DRCONST -DBIGLIB |
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 aedimage oki20c paintjet mt160r getinfo psign \ |
20 |
< |
greyscale pvalue pcompos colorscale ra_pr ximage prot \ |
21 |
< |
ra_t8 ra_bn ra_t16 pcomb pinterp x11image xshowtrace |
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 |
< |
install: $(PROGS) |
26 |
> |
x10: x10image |
27 |
> |
cp x10image $(INSTDIR) |
28 |
> |
|
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) $(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 |
< |
pfilt: pfilt.o pf2.o pf3.o resolu.o color.o header.o |
47 |
< |
cc $(CFLAGS) -o pfilt pfilt.o pf2.o pf3.o resolu.o color.o header.o -lm |
46 |
> |
clean: |
47 |
> |
set nonomatch; rm -f x10image aedimage glimage ra_tiff \ |
48 |
> |
$(PROGS) *.o core |
49 |
|
|
50 |
< |
ttyimage: ttyimage.o resolu.o color.o header.o |
51 |
< |
cc $(CFLAGS) -o ttyimage ttyimage.o resolu.o color.o header.o |
50 |
> |
pfilt: pfilt.o pf2.o pf3.o |
51 |
> |
$(CC) $(CFLAGS) -o pfilt pfilt.o pf2.o pf3.o -lrt -lm |
52 |
|
|
53 |
< |
t4027: t4027.o color.o resolu.o |
54 |
< |
cc $(CFLAGS) -o t4027 t4027.o color.o resolu.o |
53 |
> |
ttyimage: ttyimage.o |
54 |
> |
$(CC) $(CFLAGS) -o ttyimage ttyimage.o -lrt -lm |
55 |
|
|
56 |
< |
glimage: glimage.o color.o resolu.o header.o |
57 |
< |
cc $(CFLAGS) -o glimage glimage.o color.o resolu.o header.o -lgl_s |
56 |
> |
t4027: t4027.o |
57 |
> |
$(CC) $(CFLAGS) -o t4027 t4027.o -lrt |
58 |
|
|
59 |
< |
aedimage: aedimage.o color.o resolu.o ciq.o cut.o closest.o ealloc.o biq.o header.o |
60 |
< |
cc $(CFLAGS) -o aedimage aedimage.o color.o resolu.o ciq.o cut.o \ |
41 |
< |
closest.o ealloc.o biq.o header.o -lm |
59 |
> |
glimage: glimage.o |
60 |
> |
$(CC) $(CFLAGS) -o glimage glimage.o -lrt -lgl_s -lm |
61 |
|
|
62 |
< |
oki20c: oki20c.o color.o resolu.o header.o |
63 |
< |
cc $(CFLAGS) -o oki20c oki20c.o color.o resolu.o header.o |
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 |
< |
paintjet: paintjet.o color.o resolu.o header.o |
67 |
< |
cc $(CFLAGS) -o paintjet paintjet.o color.o resolu.o header.o |
66 |
> |
oki20c: oki20c.o |
67 |
> |
$(CC) $(CFLAGS) -o oki20c oki20c.o -lrt -lm |
68 |
|
|
69 |
< |
mt160r: mt160r.o color.o resolu.o header.o |
70 |
< |
cc $(CFLAGS) -o mt160r mt160r.o color.o resolu.o header.o |
69 |
> |
oki20: oki20.o |
70 |
> |
$(CC) $(CFLAGS) -o oki20 oki20.o -lrt -lm |
71 |
|
|
72 |
< |
getinfo: getinfo.o header.o |
73 |
< |
cc $(CFLAGS) -n -o getinfo getinfo.o header.o |
72 |
> |
paintjet: paintjet.o |
73 |
> |
$(CC) $(CFLAGS) -o paintjet paintjet.o -lrt -lm |
74 |
|
|
75 |
< |
greyscale: greyscale.o color.o resolu.o |
76 |
< |
cc $(CFLAGS) -o greyscale greyscale.o color.o resolu.o -lm |
75 |
> |
mt160r: mt160r.o |
76 |
> |
$(CC) $(CFLAGS) -o mt160r mt160r.o -lrt -lm |
77 |
|
|
78 |
< |
colorscale: colorscale.o color.o resolu.o |
79 |
< |
cc $(CFLAGS) -o colorscale colorscale.o color.o resolu.o |
78 |
> |
getinfo: getinfo.o |
79 |
> |
$(CC) $(CFLAGS) -o getinfo getinfo.o -lrt |
80 |
|
|
81 |
< |
pvalue: pvalue.o color.o resolu.o header.o |
82 |
< |
cc $(CFLAGS) -o pvalue pvalue.o color.o resolu.o header.o |
81 |
> |
greyscale: greyscale.o |
82 |
> |
$(CC) $(CFLAGS) -o greyscale greyscale.o -lrt -lm |
83 |
|
|
84 |
< |
psum: psum.o color.o resolu.o header.o |
85 |
< |
cc $(CFLAGS) -o psum psum.o color.o resolu.o header.o |
84 |
> |
colorscale: colorscale.o |
85 |
> |
$(CC) $(CFLAGS) -o colorscale colorscale.o -lrt |
86 |
|
|
87 |
< |
pcompos: pcompos.o color.o resolu.o header.o |
88 |
< |
cc $(CFLAGS) -o pcompos pcompos.o color.o resolu.o header.o |
87 |
> |
pvalue: pvalue.o |
88 |
> |
$(CC) $(CFLAGS) -o pvalue pvalue.o -lrt -lm |
89 |
|
|
90 |
< |
psign: psign.o color.o resolu.o |
91 |
< |
cc $(CFLAGS) -o psign psign.o color.o resolu.o |
90 |
> |
psum: psum.o |
91 |
> |
$(CC) $(CFLAGS) -o psum psum.o -lrt |
92 |
|
|
93 |
< |
d48c: d48c.o color.o resolu.o |
94 |
< |
cc $(CFLAGS) -o d48c d48c.o color.o resolu.o |
93 |
> |
pcompos: pcompos.o |
94 |
> |
$(CC) $(CFLAGS) -o pcompos pcompos.o -lrt |
95 |
|
|
96 |
< |
ra_pr: ra_pr.o ciq.o cut.o closest.o color.o resolu.o ealloc.o header.o biq.o |
97 |
< |
cc $(CFLAGS) -o ra_pr ra_pr.o ciq.o cut.o closest.o \ |
78 |
< |
color.o resolu.o ealloc.o header.o biq.o -lm |
96 |
> |
psign: psign.o |
97 |
> |
$(CC) $(CFLAGS) -o psign psign.o -lrt |
98 |
|
|
99 |
< |
ra_t8: ra_t8.o ciq.o cut.o closest.o color.o resolu.o ealloc.o header.o biq.o |
100 |
< |
cc $(CFLAGS) -o ra_t8 ra_t8.o ciq.o cut.o closest.o \ |
82 |
< |
color.o resolu.o ealloc.o header.o biq.o -lm |
99 |
> |
d48c: d48c.o |
100 |
> |
$(CC) $(CFLAGS) -o d48c d48c.o -lrt |
101 |
|
|
102 |
< |
ra_t16: ra_t16.o color.o resolu.o ealloc.o header.o |
103 |
< |
cc $(CFLAGS) -o ra_t16 ra_t16.o color.o resolu.o ealloc.o header.o -lm |
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 |
+ |
|
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 -lrt -lm |
123 |
+ |
|
124 |
|
ra_im: ra_im.o |
125 |
< |
cc $(CFLAGS) -n -o ra_im ra_im.o |
125 |
> |
$(CC) $(CFLAGS) -o ra_im ra_im.o |
126 |
|
|
127 |
< |
ra_bn: ra_bn.o color.o resolu.o header.o |
128 |
< |
cc $(CFLAGS) -o ra_bn ra_bn.o color.o resolu.o header.o -lm |
127 |
> |
ra_bn: ra_bn.o |
128 |
> |
$(CC) $(CFLAGS) -o ra_bn ra_bn.o -lrt -lm |
129 |
|
|
130 |
< |
ximage: ximage.o color.o resolu.o ciq.o cut.o closest.o ealloc.o \ |
131 |
< |
xraster.o header.o biq.o image.o fvect.o |
95 |
< |
cc $(CFLAGS) -o ximage ximage.o color.o resolu.o xraster.o \ |
96 |
< |
header.o ciq.o cut.o closest.o ealloc.o biq.o image.o fvect.o -lX -lm |
130 |
> |
ra_rgbe: ra_rgbe.o |
131 |
> |
$(CC) $(CFLAGS) -o ra_rgbe ra_rgbe.o -lrt -lm |
132 |
|
|
133 |
< |
x11image: x11image.o color.o resolu.o ciq.o cut.o closest.o ealloc.o \ |
134 |
< |
x11raster.o header.o biq.o image.o fvect.o |
100 |
< |
cc $(CFLAGS) -o x11image x11image.o color.o resolu.o x11raster.o \ |
101 |
< |
header.o ciq.o cut.o closest.o ealloc.o biq.o image.o fvect.o -lX11 -lm |
133 |
> |
ra_pict: ra_pict.o |
134 |
> |
$(CC) $(CFLAGS) -o ra_pict ra_pict.o -lrt -lm |
135 |
|
|
103 |
– |
prot: prot.o color.o resolu.o header.o |
104 |
– |
cc $(CFLAGS) -o prot prot.o color.o resolu.o header.o |
136 |
|
|
137 |
< |
panim: panim.o color.o resolu.o header.o client/libclient.a |
138 |
< |
cc $(CFLAGS) -o panim panim.o color.o resolu.o header.o \ |
139 |
< |
client/libclient.a -lrpcsvc -lm |
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 -lrt -lm |
140 |
|
|
141 |
< |
pcomb: pcomb.o calexpr.o calfunc.o caldefn.o color.o resolu.o \ |
142 |
< |
header.o ealloc.o savestr.o |
143 |
< |
cc $(CFLAGS) -o pcomb pcomb.o calexpr.o calfunc.o caldefn.o \ |
113 |
< |
color.o resolu.o header.o ealloc.o savestr.o -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 |
< |
pinterp: pinterp.o image.o header.o color.o resolu.o fvect.o mat4.o |
146 |
< |
cc $(CFLAGS) -o pinterp pinterp.o image.o header.o mat4.o \ |
117 |
< |
fvect.o color.o resolu.o -lm |
145 |
> |
protate: protate.o |
146 |
> |
$(CC) $(CFLAGS) -o protate protate.o -lrt |
147 |
|
|
148 |
< |
ra_pixar: ra_pixar.o ra_pixar.c color.o resolu.o header.o |
149 |
< |
cc $(CFLAGS) $(PIXAR_INCLUDE) -o $@ ra_pixar.o color.o resolu.o header.o \ |
121 |
< |
$(PIXAR_LIB) |
148 |
> |
pextrem: pextrem.o |
149 |
> |
$(CC) $(CFLAGS) -o pextrem pextrem.o -lrt |
150 |
|
|
151 |
< |
calexpr.o: calexpr.c |
152 |
< |
cc $(CFLAGS) $(CALDEFS) -c calexpr.c |
151 |
> |
pflip: pflip.o |
152 |
> |
$(CC) $(CFLAGS) -o pflip pflip.o -lrt |
153 |
|
|
154 |
< |
calfunc.o: calfunc.c |
155 |
< |
cc $(CFLAGS) $(CALDEFS) -c calfunc.c |
154 |
> |
panim: panim.o client/libclient.a |
155 |
> |
$(CC) $(CFLAGS) -o panim panim.o \ |
156 |
> |
-lrt client/libclient.a -lrpcsvc -lm |
157 |
|
|
158 |
< |
caldefn.o: caldefn.c |
159 |
< |
cc $(CFLAGS) $(CALDEFS) -c caldefn.c |
158 |
> |
pcomb: pcomb.o |
159 |
> |
$(CC) $(CFLAGS) -o pcomb pcomb.o -lrt -lm |
160 |
|
|
161 |
< |
ra_pixar.o: ra_pixar.c |
162 |
< |
cc $(CFLAGS) $(PIXAR_INCLUDE) -c ra_pixar.c |
161 |
> |
pinterp: pinterp.o |
162 |
> |
$(CC) $(CFLAGS) -o pinterp pinterp.o -lrt -lm |
163 |
|
|
164 |
< |
xshowtrace: xshowtrace.o image.o resolu.o header.o fvect.o |
165 |
< |
cc $(CFLAGS) -o xshowtrace xshowtrace.o image.o resolu.o header.o \ |
137 |
< |
fvect.o -lm -lX11 |
164 |
> |
ra_tiff: ra_tiff.o ../lib/libtiff.a |
165 |
> |
$(CC) $(CFLAGS) -o ra_tiff ra_tiff.o -lrt -ltiff -lm |
166 |
|
|
167 |
< |
xshowtrace.o: view.h standard.h fvect.h |
167 |
> |
psign.o: psign.c ../common/font.h |
168 |
> |
$(CC) $(CFLAGS) -DDEFPATH=\":$(LIBDIR)\" -c psign.c |
169 |
|
|
170 |
< |
pcomb.o calexpr.o calfunc.o caldefn.o: calcomp.h |
170 |
> |
ra_tiff.o: ra_tiff.c |
171 |
> |
$(CC) $(CFLAGS) -Ilibtiff -c ra_tiff.c |
172 |
|
|
173 |
< |
panim.o: client/scan.h color.h random.h |
173 |
> |
../lib/libtiff.a: |
174 |
> |
cd libtiff ; make -f Makefile.$(ARCH) ; \ |
175 |
> |
mv libtiff.a ../../lib ; make clean |
176 |
|
|
177 |
< |
pf2.o bnoise.o: random.h |
177 |
> |
ra_pixar: ra_pixar.o ra_pixar.c |
178 |
> |
$(CC) $(CFLAGS) $(PIXAR_INCLUDE) -o $@ ra_pixar.o -lrt \ |
179 |
> |
$(PIXAR_LIB) |
180 |
|
|
181 |
< |
ra_t16.o: random.h |
181 |
> |
ra_pixar.o: ra_pixar.c |
182 |
> |
$(CC) $(CFLAGS) $(PIXAR_INCLUDE) -c ra_pixar.c |
183 |
|
|
184 |
< |
pfilt.o pf2.o ttyimage.o t4027.o mt160r.o psum.o psign.o prot.o \ |
185 |
< |
d48c.o aedimage.o pcompos.o color.o resolu.o greyscale.o ra_t8.o glimage.o \ |
186 |
< |
ra_bn.o ra_t16.o ra_pr.o pvalue.o pcomb.o pinterp.o ximage.o: color.h |
184 |
> |
xshowtrace: xshowtrace.o x11findwind.o |
185 |
> |
$(CC) $(CFLAGS) -o xshowtrace xshowtrace.o \ |
186 |
> |
x11findwind.o -lrt -lm -lX11 |
187 |
|
|
188 |
< |
pinterp.o ximage.o image.o: standard.h fvect.h |
188 |
> |
pcomb.o: ../common/calcomp.h |
189 |
|
|
190 |
< |
ximage.o x11raster.o: xraster.h |
190 |
> |
panim.o: client/scan.h ../common/color.h ../common/random.h |
191 |
|
|
192 |
< |
x11image.o x11raster.o: x11raster.h |
192 |
> |
pf2.o bnoise.o ra_ps.o ra_t16.o: ../common/random.h |
193 |
|
|
194 |
< |
ra_t8.o: targa.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 |
< |
fvect.o: 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 xraster.o: xraster.h |
204 |
+ |
|
205 |
+ |
x11image.o x11raster.o: x11raster.h |
206 |
+ |
|
207 |
+ |
ra_t8.o: ../common/targa.h |
208 |
+ |
|
209 |
|
aedimage.o ximage.o ra_t8.o ra_pr.o: pic.h |
210 |
|
|
211 |
|
ciq.o cut.o closest.o biq.o: pic.h ciq.h |
212 |
|
|
213 |
< |
pinterp.o ximage.o image.o: 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 |