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