1 |
+ |
# |
2 |
|
# SCCSid "$SunId$ LBL" |
3 |
< |
|
3 |
> |
# Compiles for image processing and display programs |
4 |
|
# |
4 |
– |
# Compiles for pixel file plotters. |
5 |
– |
# |
5 |
|
|
6 |
+ |
ARCH = sun |
7 |
|
OPT = -O |
8 |
< |
MACH = -DBSD -DSTRUCTASSIGN -f68881 /usr/lib/f68881.il -DIEEE |
9 |
< |
CFLAGS = $(OPT) $(MACH) |
8 |
> |
MACH = -DSTRUCTASSIGN -f68881 /usr/lib/libm.il -DIEEE -DBSD |
9 |
> |
CFLAGS = $(OPT) $(MACH) -I../common -L../lib |
10 |
|
|
11 |
< |
INSTDIR = /usr/local/ray |
11 |
> |
INSTDIR = /lumen/lumen/ray/bin.sun3 |
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 paintjet mt160r getinfo psign \ |
19 |
> |
greyscale pvalue pcompos colorscale prot ra_pr ra_pr24 \ |
20 |
> |
ra_t8 ra_bn ra_t16 pcomb pinterp ximage xshowtrace pflip ra_ppm |
21 |
|
|
22 |
|
all: $(PROGS) |
23 |
|
|
24 |
< |
install: $(PROGS) |
24 |
> |
x10: x10image |
25 |
> |
cp x10image $(INSTDIR) |
26 |
> |
|
27 |
> |
aed: aedimage |
28 |
> |
cp aedimage $(INSTDIR) |
29 |
> |
|
30 |
> |
tiff: ra_tiff |
31 |
> |
cp ra_tiff $(INSTDIR) |
32 |
> |
|
33 |
> |
sun: |
34 |
> |
|
35 |
> |
install: $(PROGS) normpat.csh falsecolor.csh |
36 |
|
cp $(PROGS) $(INSTDIR) |
37 |
+ |
cp normpat.csh $(INSTDIR)/normpat |
38 |
+ |
cp falsecolor.csh $(INSTDIR)/falsecolor |
39 |
+ |
chmod 755 $(INSTDIR)/normpat $(INSTDIR)/falsecolor |
40 |
|
|
41 |
< |
pfilt: pfilt.o pf2.o pf3.o resolu.o color.o header.o |
42 |
< |
cc $(CFLAGS) -o pfilt pfilt.o pf2.o pf3.o resolu.o color.o header.o -lm |
41 |
> |
clean: |
42 |
> |
set nonomatch; rm -f $(PROGS) *.o core |
43 |
|
|
44 |
< |
ttyimage: ttyimage.o resolu.o color.o colrops.o header.o |
45 |
< |
cc $(CFLAGS) -o ttyimage ttyimage.o resolu.o color.o colrops.o \ |
32 |
< |
header.o -lm |
44 |
> |
pfilt: pfilt.o pf2.o pf3.o |
45 |
> |
cc $(CFLAGS) -o pfilt pfilt.o pf2.o pf3.o -lrt -lm |
46 |
|
|
47 |
< |
t4027: t4027.o color.o resolu.o |
48 |
< |
cc $(CFLAGS) -o t4027 t4027.o color.o resolu.o |
47 |
> |
ttyimage: ttyimage.o |
48 |
> |
cc $(CFLAGS) -o ttyimage ttyimage.o -lrt -lm |
49 |
|
|
50 |
< |
glimage: glimage.o color.o colrops.o resolu.o header.o |
51 |
< |
cc $(CFLAGS) -o glimage glimage.o color.o colrops.o resolu.o \ |
39 |
< |
header.o -lgl_s -lm |
50 |
> |
t4027: t4027.o |
51 |
> |
cc $(CFLAGS) -o t4027 t4027.o -lrt |
52 |
|
|
53 |
< |
aedimage: aedimage.o color.o colrops.o resolu.o ciq.o cut.o closest.o \ |
54 |
< |
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 |
53 |
> |
glimage: glimage.o |
54 |
> |
cc $(CFLAGS) -o glimage glimage.o -lrt -lgl_s -lm |
55 |
|
|
56 |
< |
oki20c: oki20c.o color.o colrops.o resolu.o header.o |
57 |
< |
cc $(CFLAGS) -o oki20c oki20c.o color.o colrops.o resolu.o header.o -lm |
56 |
> |
aedimage: aedimage.o ciq.o cut.o closest.o biq.o |
57 |
> |
cc $(CFLAGS) -o aedimage aedimage.o ciq.o cut.o closest.o \ |
58 |
> |
biq.o -lrt -lm |
59 |
|
|
60 |
< |
paintjet: paintjet.o color.o colrops.o resolu.o header.o |
61 |
< |
cc $(CFLAGS) -o paintjet paintjet.o color.o colrops.o resolu.o \ |
51 |
< |
header.o -lm |
60 |
> |
oki20c: oki20c.o |
61 |
> |
cc $(CFLAGS) -o oki20c oki20c.o -lrt -lm |
62 |
|
|
63 |
< |
mt160r: mt160r.o color.o colrops.o resolu.o header.o |
64 |
< |
cc $(CFLAGS) -o mt160r mt160r.o color.o colrops.o resolu.o header.o -lm |
63 |
> |
paintjet: paintjet.o |
64 |
> |
cc $(CFLAGS) -o paintjet paintjet.o -lrt -lm |
65 |
|
|
66 |
< |
getinfo: getinfo.o header.o |
67 |
< |
cc $(CFLAGS) -n -o getinfo getinfo.o header.o |
66 |
> |
mt160r: mt160r.o |
67 |
> |
cc $(CFLAGS) -o mt160r mt160r.o -lrt -lm |
68 |
|
|
69 |
< |
greyscale: greyscale.o color.o resolu.o |
70 |
< |
cc $(CFLAGS) -o greyscale greyscale.o color.o resolu.o -lm |
69 |
> |
getinfo: getinfo.o |
70 |
> |
cc $(CFLAGS) -n -o getinfo getinfo.o -lrt |
71 |
|
|
72 |
< |
colorscale: colorscale.o color.o resolu.o |
73 |
< |
cc $(CFLAGS) -o colorscale colorscale.o color.o resolu.o |
72 |
> |
greyscale: greyscale.o |
73 |
> |
cc $(CFLAGS) -o greyscale greyscale.o -lrt -lm |
74 |
|
|
75 |
< |
pvalue: pvalue.o color.o resolu.o header.o |
76 |
< |
cc $(CFLAGS) -o pvalue pvalue.o color.o resolu.o header.o |
75 |
> |
colorscale: colorscale.o |
76 |
> |
cc $(CFLAGS) -o colorscale colorscale.o -lrt |
77 |
|
|
78 |
< |
psum: psum.o color.o resolu.o header.o |
79 |
< |
cc $(CFLAGS) -o psum psum.o color.o resolu.o header.o |
78 |
> |
pvalue: pvalue.o |
79 |
> |
cc $(CFLAGS) -o pvalue pvalue.o -lrt -lm |
80 |
|
|
81 |
< |
pcompos: pcompos.o color.o resolu.o header.o |
82 |
< |
cc $(CFLAGS) -o pcompos pcompos.o color.o resolu.o header.o |
81 |
> |
psum: psum.o |
82 |
> |
cc $(CFLAGS) -o psum psum.o -lrt |
83 |
|
|
84 |
< |
psign: psign.o color.o resolu.o |
85 |
< |
cc $(CFLAGS) -o psign psign.o color.o resolu.o |
84 |
> |
pcompos: pcompos.o |
85 |
> |
cc $(CFLAGS) -o pcompos pcompos.o -lrt |
86 |
|
|
87 |
< |
d48c: d48c.o color.o resolu.o |
88 |
< |
cc $(CFLAGS) -o d48c d48c.o color.o resolu.o |
87 |
> |
psign: psign.o |
88 |
> |
cc $(CFLAGS) -o psign psign.o -lrt |
89 |
|
|
90 |
< |
ra_pr: ra_pr.o ciq.o cut.o closest.o color.o colrops.o resolu.o ealloc.o \ |
91 |
< |
header.o biq.o |
90 |
> |
d48c: d48c.o |
91 |
> |
cc $(CFLAGS) -o d48c d48c.o -lrt |
92 |
> |
|
93 |
> |
ra_pr: ra_pr.o ciq.o cut.o closest.o biq.o |
94 |
|
cc $(CFLAGS) -o ra_pr ra_pr.o ciq.o cut.o closest.o \ |
95 |
< |
color.o colrops.o resolu.o ealloc.o header.o biq.o -lm |
95 |
> |
biq.o -lrt -lm |
96 |
|
|
97 |
< |
ra_pr24: ra_pr24.o color.o colrops.o resolu.o header.o |
98 |
< |
cc $(CFLAGS) -o ra_pr24 ra_pr24.o color.o colrops.o resolu.o \ |
87 |
< |
header.o -lm |
97 |
> |
ra_pr24: ra_pr24.o |
98 |
> |
cc $(CFLAGS) -o ra_pr24 ra_pr24.o -lrt -lm |
99 |
|
|
100 |
< |
ra_t8: ra_t8.o ciq.o cut.o closest.o color.o colrops.o resolu.o \ |
101 |
< |
ealloc.o header.o biq.o |
100 |
> |
ra_ppm: ra_ppm.o |
101 |
> |
cc $(CFLAGS) -o ra_ppm ra_ppm.o -lrt -lm |
102 |
> |
|
103 |
> |
ra_t8: ra_t8.o ciq.o cut.o closest.o biq.o |
104 |
|
cc $(CFLAGS) -o ra_t8 ra_t8.o ciq.o cut.o closest.o \ |
105 |
< |
color.o colrops.o resolu.o ealloc.o header.o biq.o -lm |
105 |
> |
biq.o -lrt -lm |
106 |
|
|
107 |
< |
ra_t16: ra_t16.o color.o colrops.o resolu.o ealloc.o header.o |
108 |
< |
cc $(CFLAGS) -o ra_t16 ra_t16.o color.o colrops.o \ |
96 |
< |
resolu.o ealloc.o header.o -lm |
107 |
> |
ra_t16: ra_t16.o |
108 |
> |
cc $(CFLAGS) -o ra_t16 ra_t16.o -lrt -lm |
109 |
|
|
110 |
|
ra_im: ra_im.o |
111 |
|
cc $(CFLAGS) -n -o ra_im ra_im.o |
112 |
|
|
113 |
< |
ra_bn: ra_bn.o color.o colrops.o resolu.o header.o |
114 |
< |
cc $(CFLAGS) -o ra_bn ra_bn.o color.o colrops.o resolu.o header.o -lm |
113 |
> |
ra_bn: ra_bn.o |
114 |
> |
cc $(CFLAGS) -o ra_bn ra_bn.o -lrt -lm |
115 |
|
|
116 |
< |
ximage: ximage.o color.o colrops.o resolu.o ciq.o cut.o closest.o ealloc.o \ |
117 |
< |
xraster.o header.o biq.o image.o fvect.o |
118 |
< |
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 |
116 |
> |
x10image: ximage.o ciq.o cut.o closest.o xraster.o biq.o |
117 |
> |
cc $(CFLAGS) -o x10image ximage.o xraster.o \ |
118 |
> |
ciq.o cut.o closest.o biq.o -lX -lrt -lm |
119 |
|
|
120 |
< |
x11image: x11image.o color.o colrops.o resolu.o ciq.o cut.o closest.o \ |
121 |
< |
ealloc.o x11raster.o header.o biq.o image.o fvect.o |
122 |
< |
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 |
120 |
> |
ximage: x11image.o ciq.o cut.o closest.o x11raster.o biq.o |
121 |
> |
cc $(CFLAGS) -o ximage x11image.o x11raster.o \ |
122 |
> |
ciq.o cut.o closest.o biq.o -lX11 -lrt -lm |
123 |
|
|
124 |
< |
prot: prot.o color.o resolu.o header.o |
125 |
< |
cc $(CFLAGS) -o prot prot.o color.o resolu.o header.o |
124 |
> |
prot: prot.o |
125 |
> |
cc $(CFLAGS) -o prot prot.o -lrt |
126 |
|
|
127 |
< |
panim: panim.o color.o colrops.o resolu.o header.o client/libclient.a |
128 |
< |
cc $(CFLAGS) -o panim panim.o color.o colrops.o resolu.o header.o \ |
120 |
< |
client/libclient.a -lrpcsvc -lm |
127 |
> |
pflip: pflip.o |
128 |
> |
cc $(CFLAGS) -o pflip pflip.o -lrt |
129 |
|
|
130 |
< |
pcomb: pcomb.o calexpr.o calfunc.o caldefn.o color.o resolu.o \ |
131 |
< |
header.o ealloc.o savestr.o |
132 |
< |
cc $(CFLAGS) -o pcomb pcomb.o calexpr.o calfunc.o caldefn.o \ |
125 |
< |
color.o resolu.o header.o ealloc.o savestr.o -lm |
130 |
> |
panim: panim.o client/libclient.a |
131 |
> |
cc $(CFLAGS) -o panim panim.o \ |
132 |
> |
-lrt client/libclient.a -lrpcsvc -lm |
133 |
|
|
134 |
< |
pinterp: pinterp.o image.o header.o color.o resolu.o fvect.o mat4.o |
135 |
< |
cc $(CFLAGS) -o pinterp pinterp.o image.o header.o mat4.o \ |
129 |
< |
fvect.o color.o resolu.o -lm |
134 |
> |
pcomb: pcomb.o |
135 |
> |
cc $(CFLAGS) -o pcomb pcomb.o -lrt -lm |
136 |
|
|
137 |
< |
ra_pixar: ra_pixar.o ra_pixar.c color.o resolu.o header.o |
138 |
< |
cc $(CFLAGS) $(PIXAR_INCLUDE) -o $@ ra_pixar.o color.o resolu.o header.o \ |
133 |
< |
$(PIXAR_LIB) |
137 |
> |
pinterp: pinterp.o |
138 |
> |
cc $(CFLAGS) -o pinterp pinterp.o -lrt -lm |
139 |
|
|
140 |
< |
calexpr.o: calexpr.c |
141 |
< |
cc $(CFLAGS) $(CALDEFS) -c calexpr.c |
140 |
> |
ra_tiff: ra_tiff.o ../lib/libtiff.a |
141 |
> |
cc $(CFLAGS) -o ra_tiff ra_tiff.o -lrt -ltiff -lm |
142 |
|
|
143 |
< |
calfunc.o: calfunc.c |
144 |
< |
cc $(CFLAGS) $(CALDEFS) -c calfunc.c |
143 |
> |
ra_tiff.o: ra_tiff.c |
144 |
> |
cc $(CFLAGS) -Ilibtiff -c ra_tiff.c |
145 |
|
|
146 |
< |
caldefn.o: caldefn.c |
147 |
< |
cc $(CFLAGS) $(CALDEFS) -c caldefn.c |
146 |
> |
../lib/libtiff.a: |
147 |
> |
cd libtiff ; make -f Makefile.$(ARCH) ; \ |
148 |
> |
mv libtiff.a ../../lib ; make clean |
149 |
|
|
150 |
+ |
ra_pixar: ra_pixar.o ra_pixar.c |
151 |
+ |
cc $(CFLAGS) $(PIXAR_INCLUDE) -o $@ ra_pixar.o -lrt \ |
152 |
+ |
$(PIXAR_LIB) |
153 |
+ |
|
154 |
|
ra_pixar.o: ra_pixar.c |
155 |
|
cc $(CFLAGS) $(PIXAR_INCLUDE) -c ra_pixar.c |
156 |
|
|
157 |
< |
xshowtrace: xshowtrace.o image.o resolu.o header.o fvect.o |
158 |
< |
cc $(CFLAGS) -o xshowtrace xshowtrace.o image.o resolu.o header.o \ |
159 |
< |
fvect.o -lm -lX11 |
157 |
> |
xshowtrace: xshowtrace.o x11findwind.o |
158 |
> |
cc $(CFLAGS) -o xshowtrace xshowtrace.o \ |
159 |
> |
x11findwind.o -lrt -lm -lX11 |
160 |
|
|
161 |
< |
xshowtrace.o: view.h standard.h fvect.h |
161 |
> |
xshowtrace.o: ../common/view.h ../common/standard.h \ |
162 |
> |
../common/mat4.h ../common/fvect.h |
163 |
|
|
164 |
< |
pcomb.o calexpr.o calfunc.o caldefn.o: calcomp.h |
164 |
> |
pcomb.o: ../common/calcomp.h |
165 |
|
|
166 |
< |
panim.o: client/scan.h color.h random.h |
166 |
> |
panim.o: client/scan.h ../common/color.h ../common/random.h |
167 |
|
|
168 |
< |
pf2.o bnoise.o: random.h |
168 |
> |
pf2.o bnoise.o ra_t16.o: ../common/random.h |
169 |
|
|
159 |
– |
ra_t16.o: random.h |
160 |
– |
|
170 |
|
pfilt.o pf2.o ttyimage.o t4027.o mt160r.o psum.o psign.o prot.o ra_pr24.o \ |
171 |
< |
d48c.o aedimage.o pcompos.o color.o resolu.o colrops.o \ |
172 |
< |
greyscale.o ra_t8.o glimage.o \ |
173 |
< |
ra_bn.o ra_t16.o ra_pr.o pvalue.o pcomb.o pinterp.o ximage.o: color.h |
171 |
> |
d48c.o aedimage.o pcompos.o color.o resolu.o colrops.o pflip.o \ |
172 |
> |
greyscale.o ra_t8.o glimage.o ra_bn.o ra_t16.o \ |
173 |
> |
ra_pr.o pvalue.o pcomb.o pinterp.o ximage.o: ../common/color.h |
174 |
|
|
175 |
< |
pinterp.o ximage.o image.o: standard.h fvect.h |
175 |
> |
prot.o biq.o ciq.o pinterp.o ximage.o \ |
176 |
> |
image.o: ../common/standard.h ../common/mat4.h ../common/fvect.h |
177 |
|
|
178 |
< |
ximage.o x11raster.o: xraster.h |
178 |
> |
ximage.o xraster.o: xraster.h |
179 |
|
|
180 |
|
x11image.o x11raster.o: x11raster.h |
181 |
|
|
182 |
< |
ra_t8.o: targa.h |
182 |
> |
ra_t8.o: ../common/targa.h |
183 |
|
|
174 |
– |
fvect.o: fvect.h |
175 |
– |
|
184 |
|
aedimage.o ximage.o ra_t8.o ra_pr.o: pic.h |
185 |
|
|
186 |
|
ciq.o cut.o closest.o biq.o: pic.h ciq.h |
187 |
|
|
188 |
< |
pinterp.o ximage.o image.o: view.h |
188 |
> |
pinterp.o ximage.o image.o: ../common/view.h |