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