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 ra_pr24 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 \ |
21 |
> |
ra_t8 ra_bn ra_t16 pcomb pinterp ximage xshowtrace pflip ra_ppm \ |
22 |
> |
ra_rgbe ra_pict ra_ps |
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 lamps.o \ |
47 |
< |
rexpr.o fropen.o spec_rgb.o |
48 |
< |
cc $(CFLAGS) -o pfilt pfilt.o pf2.o pf3.o resolu.o color.o \ |
30 |
< |
header.o lamps.o rexpr.o fropen.o spec_rgb.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 colrops.o header.o |
51 |
< |
cc $(CFLAGS) -o ttyimage ttyimage.o resolu.o color.o colrops.o \ |
34 |
< |
header.o -lm |
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 colrops.o resolu.o header.o |
57 |
< |
cc $(CFLAGS) -o glimage glimage.o color.o colrops.o resolu.o \ |
41 |
< |
header.o -lgl_s -lm |
56 |
> |
t4027: t4027.o |
57 |
> |
$(CC) $(CFLAGS) -o t4027 t4027.o -lrt |
58 |
|
|
59 |
< |
aedimage: aedimage.o color.o colrops.o resolu.o ciq.o cut.o closest.o \ |
60 |
< |
ealloc.o biq.o header.o |
45 |
< |
cc $(CFLAGS) -o aedimage aedimage.o color.o colrops.o resolu.o \ |
46 |
< |
ciq.o cut.o 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 colrops.o resolu.o header.o |
63 |
< |
cc $(CFLAGS) -o oki20c oki20c.o color.o colrops.o resolu.o header.o -lm |
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 colrops.o resolu.o header.o |
67 |
< |
cc $(CFLAGS) -o paintjet paintjet.o color.o colrops.o resolu.o \ |
53 |
< |
header.o -lm |
66 |
> |
oki20c: oki20c.o |
67 |
> |
$(CC) $(CFLAGS) -o oki20c oki20c.o -lrt -lm |
68 |
|
|
69 |
< |
mt160r: mt160r.o color.o colrops.o resolu.o header.o |
70 |
< |
cc $(CFLAGS) -o mt160r mt160r.o color.o colrops.o resolu.o header.o -lm |
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) -n -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 fropen.o |
91 |
< |
cc $(CFLAGS) -o psign psign.o color.o resolu.o fropen.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 colrops.o resolu.o ealloc.o \ |
97 |
< |
header.o biq.o |
84 |
< |
cc $(CFLAGS) -o ra_pr ra_pr.o ciq.o cut.o closest.o \ |
85 |
< |
color.o colrops.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_pr24: ra_pr24.o color.o colrops.o resolu.o header.o |
100 |
< |
cc $(CFLAGS) -o ra_pr24 ra_pr24.o color.o colrops.o resolu.o \ |
89 |
< |
header.o -lm |
99 |
> |
d48c: d48c.o |
100 |
> |
$(CC) $(CFLAGS) -o d48c d48c.o -lrt |
101 |
|
|
102 |
< |
ra_t8: ra_t8.o ciq.o cut.o closest.o color.o colrops.o resolu.o \ |
103 |
< |
ealloc.o header.o biq.o |
104 |
< |
cc $(CFLAGS) -o ra_t8 ra_t8.o ciq.o cut.o closest.o \ |
94 |
< |
color.o colrops.o resolu.o ealloc.o header.o biq.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_t16: ra_t16.o color.o colrops.o resolu.o ealloc.o header.o |
107 |
< |
cc $(CFLAGS) -o ra_t16 ra_t16.o color.o colrops.o \ |
98 |
< |
resolu.o ealloc.o header.o -lm |
106 |
> |
ra_pr24: ra_pr24.o |
107 |
> |
$(CC) $(CFLAGS) -o ra_pr24 ra_pr24.o -lrt -lm |
108 |
|
|
109 |
+ |
ra_ps: ra_ps.o |
110 |
+ |
$(CC) $(CFLAGS) -o ra_ps ra_ps.o -lrt -lm |
111 |
+ |
|
112 |
+ |
ra_ppm: ra_ppm.o |
113 |
+ |
$(CC) $(CFLAGS) -o ra_ppm ra_ppm.o -lrt -lm |
114 |
+ |
|
115 |
+ |
ra_t8: ra_t8.o ciq.o cut.o closest.o biq.o |
116 |
+ |
$(CC) $(CFLAGS) -o ra_t8 ra_t8.o ciq.o cut.o closest.o \ |
117 |
+ |
biq.o -lrt -lm |
118 |
+ |
|
119 |
+ |
ra_t16: ra_t16.o |
120 |
+ |
$(CC) $(CFLAGS) -o ra_t16 ra_t16.o -lrt -lm |
121 |
+ |
|
122 |
|
ra_im: ra_im.o |
123 |
< |
cc $(CFLAGS) -n -o ra_im ra_im.o |
123 |
> |
$(CC) $(CFLAGS) -n -o ra_im ra_im.o |
124 |
|
|
125 |
< |
ra_bn: ra_bn.o color.o colrops.o resolu.o header.o |
126 |
< |
cc $(CFLAGS) -o ra_bn ra_bn.o color.o colrops.o resolu.o header.o -lm |
125 |
> |
ra_bn: ra_bn.o |
126 |
> |
$(CC) $(CFLAGS) -o ra_bn ra_bn.o -lrt -lm |
127 |
|
|
128 |
< |
ximage: ximage.o color.o colrops.o resolu.o ciq.o cut.o closest.o ealloc.o \ |
129 |
< |
xraster.o header.o biq.o image.o fvect.o |
108 |
< |
cc $(CFLAGS) -o ximage ximage.o color.o colrops.o resolu.o xraster.o \ |
109 |
< |
header.o ciq.o cut.o closest.o ealloc.o biq.o image.o fvect.o -lX -lm |
128 |
> |
ra_rgbe: ra_rgbe.o |
129 |
> |
$(CC) $(CFLAGS) -o ra_rgbe ra_rgbe.o -lrt -lm |
130 |
|
|
131 |
< |
x11image: x11image.o color.o colrops.o resolu.o ciq.o cut.o closest.o \ |
132 |
< |
ealloc.o x11raster.o header.o biq.o image.o fvect.o |
113 |
< |
cc $(CFLAGS) -o x11image x11image.o color.o colrops.o resolu.o \ |
114 |
< |
x11raster.o header.o ciq.o cut.o closest.o ealloc.o biq.o image.o \ |
115 |
< |
fvect.o -lX11 -lm |
131 |
> |
ra_pict: ra_pict.o |
132 |
> |
$(CC) $(CFLAGS) -o ra_pict ra_pict.o -lrt -lm |
133 |
|
|
117 |
– |
prot: prot.o color.o resolu.o header.o |
118 |
– |
cc $(CFLAGS) -o prot prot.o color.o resolu.o header.o |
134 |
|
|
135 |
< |
panim: panim.o color.o colrops.o resolu.o header.o client/libclient.a |
136 |
< |
cc $(CFLAGS) -o panim panim.o color.o colrops.o resolu.o header.o \ |
137 |
< |
client/libclient.a -lrpcsvc -lm |
135 |
> |
x10image: ximage.o ciq.o cut.o closest.o xraster.o biq.o |
136 |
> |
$(CC) $(CFLAGS) -o x10image ximage.o xraster.o \ |
137 |
> |
ciq.o cut.o closest.o biq.o -lX -lrt -lm |
138 |
|
|
139 |
< |
pcomb: pcomb.o calexpr.o calfunc.o caldefn.o color.o resolu.o \ |
140 |
< |
header.o ealloc.o savestr.o |
141 |
< |
cc $(CFLAGS) -o pcomb pcomb.o calexpr.o calfunc.o caldefn.o \ |
127 |
< |
color.o resolu.o header.o ealloc.o savestr.o -lm |
139 |
> |
ximage: x11image.o ciq.o cut.o closest.o x11raster.o biq.o |
140 |
> |
$(CC) $(CFLAGS) -o ximage x11image.o x11raster.o \ |
141 |
> |
ciq.o cut.o closest.o biq.o -lX11 -lrt -lm |
142 |
|
|
143 |
< |
pinterp: pinterp.o image.o header.o color.o resolu.o fvect.o mat4.o |
144 |
< |
cc $(CFLAGS) -o pinterp pinterp.o image.o header.o mat4.o \ |
131 |
< |
fvect.o color.o resolu.o -lm |
143 |
> |
protate: protate.o |
144 |
> |
$(CC) $(CFLAGS) -o protate protate.o -lrt |
145 |
|
|
146 |
< |
ra_pixar: ra_pixar.o ra_pixar.c color.o resolu.o header.o |
147 |
< |
cc $(CFLAGS) $(PIXAR_INCLUDE) -o $@ ra_pixar.o color.o resolu.o header.o \ |
135 |
< |
$(PIXAR_LIB) |
146 |
> |
pextrem: pextrem.o |
147 |
> |
$(CC) $(CFLAGS) -o pextrem pextrem.o -lrt |
148 |
|
|
149 |
< |
calexpr.o: calexpr.c |
150 |
< |
cc $(CFLAGS) $(CALDEFS) -c calexpr.c |
149 |
> |
pflip: pflip.o |
150 |
> |
$(CC) $(CFLAGS) -o pflip pflip.o -lrt |
151 |
|
|
152 |
< |
calfunc.o: calfunc.c |
153 |
< |
cc $(CFLAGS) $(CALDEFS) -c calfunc.c |
152 |
> |
panim: panim.o client/libclient.a |
153 |
> |
$(CC) $(CFLAGS) -o panim panim.o \ |
154 |
> |
-lrt client/libclient.a -lrpcsvc -lm |
155 |
|
|
156 |
< |
caldefn.o: caldefn.c |
157 |
< |
cc $(CFLAGS) $(CALDEFS) -c caldefn.c |
156 |
> |
pcomb: pcomb.o |
157 |
> |
$(CC) $(CFLAGS) -o pcomb pcomb.o -lrt -lm |
158 |
|
|
159 |
< |
ra_pixar.o: ra_pixar.c |
160 |
< |
cc $(CFLAGS) $(PIXAR_INCLUDE) -c ra_pixar.c |
159 |
> |
pinterp: pinterp.o |
160 |
> |
$(CC) $(CFLAGS) -o pinterp pinterp.o -lrt -lm |
161 |
|
|
162 |
< |
xshowtrace: xshowtrace.o image.o resolu.o header.o fvect.o |
163 |
< |
cc $(CFLAGS) -o xshowtrace xshowtrace.o image.o resolu.o header.o \ |
151 |
< |
fvect.o -lm -lX11 |
162 |
> |
ra_tiff: ra_tiff.o ../lib/libtiff.a |
163 |
> |
$(CC) $(CFLAGS) -o ra_tiff ra_tiff.o -lrt -ltiff -lm |
164 |
|
|
165 |
< |
xshowtrace.o: view.h standard.h fvect.h |
165 |
> |
psign.o: psign.c ../common/font.h |
166 |
> |
$(CC) $(CFLAGS) -DDEFPATH=\":$(LIBDIR)\" -c psign.c |
167 |
|
|
168 |
< |
pcomb.o calexpr.o calfunc.o caldefn.o: calcomp.h |
168 |
> |
ra_tiff.o: ra_tiff.c |
169 |
> |
$(CC) $(CFLAGS) -Ilibtiff -c ra_tiff.c |
170 |
|
|
171 |
< |
panim.o: client/scan.h color.h random.h |
171 |
> |
../lib/libtiff.a: |
172 |
> |
cd libtiff ; make -f Makefile.$(ARCH) ; \ |
173 |
> |
mv libtiff.a ../../lib ; make clean |
174 |
|
|
175 |
< |
pf2.o bnoise.o: random.h |
175 |
> |
ra_pixar: ra_pixar.o ra_pixar.c |
176 |
> |
$(CC) $(CFLAGS) $(PIXAR_INCLUDE) -o $@ ra_pixar.o -lrt \ |
177 |
> |
$(PIXAR_LIB) |
178 |
|
|
179 |
< |
ra_t16.o: random.h |
179 |
> |
ra_pixar.o: ra_pixar.c |
180 |
> |
$(CC) $(CFLAGS) $(PIXAR_INCLUDE) -c ra_pixar.c |
181 |
|
|
182 |
< |
pfilt.o pf2.o ttyimage.o t4027.o mt160r.o psum.o psign.o prot.o ra_pr24.o \ |
183 |
< |
d48c.o aedimage.o pcompos.o color.o resolu.o colrops.o \ |
184 |
< |
greyscale.o ra_t8.o glimage.o \ |
166 |
< |
ra_bn.o ra_t16.o ra_pr.o pvalue.o pcomb.o pinterp.o ximage.o: color.h |
182 |
> |
xshowtrace: xshowtrace.o x11findwind.o |
183 |
> |
$(CC) $(CFLAGS) -o xshowtrace xshowtrace.o \ |
184 |
> |
x11findwind.o -lrt -lm -lX11 |
185 |
|
|
186 |
< |
prot.o biq.o ciq.o pinterp.o ximage.o image.o: standard.h fvect.h |
186 |
> |
pcomb.o: ../common/calcomp.h |
187 |
|
|
188 |
< |
ximage.o x11raster.o: xraster.h |
188 |
> |
panim.o: client/scan.h ../common/color.h ../common/random.h |
189 |
|
|
190 |
< |
x11image.o x11raster.o: x11raster.h |
190 |
> |
pf2.o bnoise.o ra_ps.o ra_t16.o: ../common/random.h |
191 |
|
|
192 |
< |
ra_t8.o: targa.h |
192 |
> |
pfilt.o pf2.o ttyimage.o t4027.o mt160r.o psum.o psign.o protate.o pextrem.o \ |
193 |
> |
ra_pr24.o d48c.o aedimage.o pcompos.o color.o resolu.o colrops.o pflip.o \ |
194 |
> |
greyscale.o ra_t8.o glimage.o ra_bn.o ra_t16.o ra_tiff.o ra_pict.o \ |
195 |
> |
ra_ps.o ra_pr.o pvalue.o pcomb.o pinterp.o ximage.o: ../common/color.h |
196 |
|
|
197 |
< |
fvect.o: fvect.h |
197 |
> |
pvalue.o protate.o biq.o ciq.o pinterp.o ximage.o psign.o xshowtrace.o \ |
198 |
> |
image.o: ../common/standard.h ../common/mat4.h ../common/fvect.h |
199 |
|
|
200 |
+ |
ximage.o xraster.o: xraster.h |
201 |
+ |
|
202 |
+ |
x11image.o x11raster.o: x11raster.h |
203 |
+ |
|
204 |
+ |
ra_t8.o: ../common/targa.h |
205 |
+ |
|
206 |
|
aedimage.o ximage.o ra_t8.o ra_pr.o: pic.h |
207 |
|
|
208 |
|
ciq.o cut.o closest.o biq.o: pic.h ciq.h |
209 |
|
|
210 |
< |
pinterp.o ximage.o image.o: view.h |
210 |
> |
pinterp.o ximage.o x11showtrace.o image.o: ../common/view.h |
211 |
> |
|
212 |
> |
ra_pict.o: pict.h |
213 |
> |
|
214 |
> |
mt160r.o oki20c.o paintjet.o pcomb.o pcompos.o pfilt.o pflip.o \ |
215 |
> |
pinterp.o protate.o pvalue.o ra_bn.o ra_pict.o ra_pixar.o \ |
216 |
> |
ra_ppm.o ra_pr.o ra_pr24.o ra_rgbe.o ra_t16.o ra_t8.o glimage.o \ |
217 |
> |
ra_tiff.o ttyimage.o ximage.o x11image.o: ../common/resolu.h |
218 |
> |
|
219 |
> |
psign.o: ../common/paths.h |