1 |
# Compiles for image processing and display programs |
2 |
# SCCSid "$SunId$ LBL" |
3 |
# |
4 |
|
5 |
ARCH = sun |
6 |
OPT = -O |
7 |
MACH = -DBSD |
8 |
SPECIAL = aed tiff |
9 |
CFLAGS = $(OPT) $(MACH) -I../common -L../lib |
10 |
|
11 |
INSTDIR = /usr/local/bin |
12 |
|
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 oki20c 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) $(SPECIAL) |
24 |
|
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 |
clean: |
46 |
set nonomatch; rm -f x10image aedimage glimage ra_tiff \ |
47 |
$(PROGS) *.o core |
48 |
|
49 |
pfilt: pfilt.o pf2.o pf3.o |
50 |
cc $(CFLAGS) -o pfilt pfilt.o pf2.o pf3.o -lrt -lm |
51 |
|
52 |
ttyimage: ttyimage.o |
53 |
cc $(CFLAGS) -o ttyimage ttyimage.o -lrt -lm |
54 |
|
55 |
t4027: t4027.o |
56 |
cc $(CFLAGS) -o t4027 t4027.o -lrt |
57 |
|
58 |
glimage: glimage.o |
59 |
cc $(CFLAGS) -o glimage glimage.o -lrt -lgl_s -lm |
60 |
|
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 |
oki20c: oki20c.o |
66 |
cc $(CFLAGS) -o oki20c oki20c.o -lrt -lm |
67 |
|
68 |
paintjet: paintjet.o |
69 |
cc $(CFLAGS) -o paintjet paintjet.o -lrt -lm |
70 |
|
71 |
mt160r: mt160r.o |
72 |
cc $(CFLAGS) -o mt160r mt160r.o -lrt -lm |
73 |
|
74 |
getinfo: getinfo.o |
75 |
cc $(CFLAGS) -n -o getinfo getinfo.o -lrt |
76 |
|
77 |
greyscale: greyscale.o |
78 |
cc $(CFLAGS) -o greyscale greyscale.o -lrt -lm |
79 |
|
80 |
colorscale: colorscale.o |
81 |
cc $(CFLAGS) -o colorscale colorscale.o -lrt |
82 |
|
83 |
pvalue: pvalue.o |
84 |
cc $(CFLAGS) -o pvalue pvalue.o -lrt -lm |
85 |
|
86 |
psum: psum.o |
87 |
cc $(CFLAGS) -o psum psum.o -lrt |
88 |
|
89 |
pcompos: pcompos.o |
90 |
cc $(CFLAGS) -o pcompos pcompos.o -lrt |
91 |
|
92 |
psign: psign.o |
93 |
cc $(CFLAGS) -o psign psign.o -lrt |
94 |
|
95 |
d48c: d48c.o |
96 |
cc $(CFLAGS) -o d48c d48c.o -lrt |
97 |
|
98 |
ra_pr: ra_pr.o ciq.o cut.o closest.o biq.o |
99 |
cc $(CFLAGS) -o ra_pr ra_pr.o ciq.o cut.o closest.o \ |
100 |
biq.o -lrt -lm |
101 |
|
102 |
ra_pr24: ra_pr24.o |
103 |
cc $(CFLAGS) -o ra_pr24 ra_pr24.o -lrt -lm |
104 |
|
105 |
ra_ppm: ra_ppm.o |
106 |
cc $(CFLAGS) -o ra_ppm ra_ppm.o -lrt -lm |
107 |
|
108 |
ra_t8: ra_t8.o ciq.o cut.o closest.o biq.o |
109 |
cc $(CFLAGS) -o ra_t8 ra_t8.o ciq.o cut.o closest.o \ |
110 |
biq.o -lrt -lm |
111 |
|
112 |
ra_t16: ra_t16.o |
113 |
cc $(CFLAGS) -o ra_t16 ra_t16.o -lrt -lm |
114 |
|
115 |
ra_im: ra_im.o |
116 |
cc $(CFLAGS) -n -o ra_im ra_im.o |
117 |
|
118 |
ra_bn: ra_bn.o |
119 |
cc $(CFLAGS) -o ra_bn ra_bn.o -lrt -lm |
120 |
|
121 |
ra_rgbe: ra_rgbe.o |
122 |
cc $(CFLAGS) -o ra_rgbe ra_rgbe.o -lrt -lm |
123 |
|
124 |
ra_pict: ra_pict.o |
125 |
cc $(CFLAGS) -o ra_pict ra_pict.o -lrt -lm |
126 |
|
127 |
|
128 |
x10image: ximage.o ciq.o cut.o closest.o xraster.o biq.o |
129 |
cc $(CFLAGS) -o x10image ximage.o xraster.o \ |
130 |
ciq.o cut.o closest.o biq.o -lX -lrt -lm |
131 |
|
132 |
ximage: x11image.o ciq.o cut.o closest.o x11raster.o biq.o |
133 |
cc $(CFLAGS) -o ximage x11image.o x11raster.o \ |
134 |
ciq.o cut.o closest.o biq.o -lX11 -lrt -lm |
135 |
|
136 |
protate: protate.o |
137 |
cc $(CFLAGS) -o protate protate.o -lrt |
138 |
|
139 |
pflip: pflip.o |
140 |
cc $(CFLAGS) -o pflip pflip.o -lrt |
141 |
|
142 |
panim: panim.o client/libclient.a |
143 |
cc $(CFLAGS) -o panim panim.o \ |
144 |
-lrt client/libclient.a -lrpcsvc -lm |
145 |
|
146 |
pcomb: pcomb.o |
147 |
cc $(CFLAGS) -o pcomb pcomb.o -lrt -lm |
148 |
|
149 |
pinterp: pinterp.o |
150 |
cc $(CFLAGS) -o pinterp pinterp.o -lrt -lm |
151 |
|
152 |
ra_tiff: ra_tiff.o ../lib/libtiff.a |
153 |
cc $(CFLAGS) -o ra_tiff ra_tiff.o -lrt -ltiff -lm |
154 |
|
155 |
ra_tiff.o: ra_tiff.c |
156 |
cc $(CFLAGS) -Ilibtiff -c ra_tiff.c |
157 |
|
158 |
../lib/libtiff.a: |
159 |
cd libtiff ; make -f Makefile.$(ARCH) ; \ |
160 |
mv libtiff.a ../../lib ; make clean |
161 |
|
162 |
ra_pixar: ra_pixar.o ra_pixar.c |
163 |
cc $(CFLAGS) $(PIXAR_INCLUDE) -o $@ ra_pixar.o -lrt \ |
164 |
$(PIXAR_LIB) |
165 |
|
166 |
ra_pixar.o: ra_pixar.c |
167 |
cc $(CFLAGS) $(PIXAR_INCLUDE) -c ra_pixar.c |
168 |
|
169 |
xshowtrace: xshowtrace.o x11findwind.o |
170 |
cc $(CFLAGS) -o xshowtrace xshowtrace.o \ |
171 |
x11findwind.o -lrt -lm -lX11 |
172 |
|
173 |
xshowtrace.o: ../common/view.h ../common/standard.h \ |
174 |
../common/mat4.h ../common/fvect.h |
175 |
|
176 |
pcomb.o: ../common/calcomp.h |
177 |
|
178 |
panim.o: client/scan.h ../common/color.h ../common/random.h |
179 |
|
180 |
pf2.o bnoise.o ra_t16.o: ../common/random.h |
181 |
|
182 |
pfilt.o pf2.o ttyimage.o t4027.o mt160r.o psum.o psign.o protate.o \ |
183 |
ra_pr24.o d48c.o aedimage.o pcompos.o color.o resolu.o colrops.o pflip.o \ |
184 |
greyscale.o ra_t8.o glimage.o ra_bn.o ra_t16.o ra_tiff.o ra_pict.o \ |
185 |
ra_pr.o pvalue.o pcomb.o pinterp.o ximage.o: ../common/color.h |
186 |
|
187 |
pvalue.o protate.o biq.o ciq.o pinterp.o ximage.o \ |
188 |
image.o: ../common/standard.h ../common/mat4.h ../common/fvect.h |
189 |
|
190 |
ximage.o xraster.o: xraster.h |
191 |
|
192 |
x11image.o x11raster.o: x11raster.h |
193 |
|
194 |
ra_t8.o: ../common/targa.h |
195 |
|
196 |
aedimage.o ximage.o ra_t8.o ra_pr.o: pic.h |
197 |
|
198 |
ciq.o cut.o closest.o biq.o: pic.h ciq.h |
199 |
|
200 |
pinterp.o ximage.o image.o: ../common/view.h |
201 |
|
202 |
ra_pict.o: pict.h |
203 |
|
204 |
mt160r.o oki20c.o paintjet.o pcomb.o pcompos.o pfilt.o pflip.o \ |
205 |
pinterp.o protate.o pvalue.o ra_bn.o ra_pict.o ra_pixar.o \ |
206 |
ra_ppm.o ra_pr.o ra_pr24.o ra_rgbe.o ra_t16.o ra_t8.o \ |
207 |
ra_tiff.o ttyimage.o x11image.o: ../common/resolu.h |