1 |
greg |
1.54 |
# Compiles for image processing and display programs |
2 |
greg |
1.1 |
# SCCSid "$SunId$ LBL" |
3 |
|
|
# |
4 |
|
|
|
5 |
greg |
1.47 |
ARCH = sun |
6 |
greg |
1.8 |
OPT = -O |
7 |
greg |
1.53 |
MACH = -DBSD |
8 |
greg |
1.51 |
SPECIAL = aed tiff |
9 |
greg |
1.48 |
CFLAGS = $(OPT) $(MACH) -I../common -L../lib |
10 |
greg |
2.4 |
CC = cc |
11 |
greg |
1.1 |
|
12 |
greg |
1.50 |
INSTDIR = /usr/local/bin |
13 |
greg |
1.1 |
|
14 |
greg |
1.43 |
LIBDIR = /usr/local/lib/ray |
15 |
greg |
1.28 |
|
16 |
greg |
1.4 |
PIXAR_INCLUDE= -I/usr/pixar/include |
17 |
|
|
PIXAR_LIB= -L/usr/pixar/host/lib -lpirl -lpicio -lchad -lpixar -lm |
18 |
|
|
|
19 |
greg |
2.2 |
PROGS = pfilt ttyimage oki20c oki20 paintjet mt160r getinfo psign \ |
20 |
greg |
1.55 |
greyscale pvalue pcompos colorscale protate ra_pr ra_pr24 \ |
21 |
greg |
1.49 |
ra_t8 ra_bn ra_t16 pcomb pinterp ximage xshowtrace pflip ra_ppm \ |
22 |
greg |
2.5 |
ra_rgbe ra_pict ra_ps |
23 |
greg |
1.1 |
|
24 |
greg |
1.51 |
all: $(PROGS) $(SPECIAL) |
25 |
greg |
1.29 |
|
26 |
greg |
1.34 |
x10: x10image |
27 |
|
|
cp x10image $(INSTDIR) |
28 |
greg |
1.29 |
|
29 |
|
|
aed: aedimage |
30 |
|
|
cp aedimage $(INSTDIR) |
31 |
|
|
|
32 |
greg |
1.54 |
sgi: glimage |
33 |
|
|
cp glimage $(INSTDIR) |
34 |
|
|
|
35 |
greg |
1.47 |
tiff: ra_tiff |
36 |
|
|
cp ra_tiff $(INSTDIR) |
37 |
|
|
|
38 |
greg |
1.29 |
sun: |
39 |
greg |
1.1 |
|
40 |
greg |
1.51 |
install: $(PROGS) $(SPECIAL) normpat.csh falsecolor.csh |
41 |
greg |
1.1 |
cp $(PROGS) $(INSTDIR) |
42 |
greg |
1.25 |
cp normpat.csh $(INSTDIR)/normpat |
43 |
greg |
1.38 |
cp falsecolor.csh $(INSTDIR)/falsecolor |
44 |
|
|
chmod 755 $(INSTDIR)/normpat $(INSTDIR)/falsecolor |
45 |
greg |
1.1 |
|
46 |
greg |
1.28 |
clean: |
47 |
greg |
1.54 |
set nonomatch; rm -f x10image aedimage glimage ra_tiff \ |
48 |
|
|
$(PROGS) *.o core |
49 |
greg |
1.28 |
|
50 |
greg |
1.40 |
pfilt: pfilt.o pf2.o pf3.o |
51 |
greg |
2.4 |
$(CC) $(CFLAGS) -o pfilt pfilt.o pf2.o pf3.o -lrt -lm |
52 |
greg |
1.1 |
|
53 |
greg |
1.40 |
ttyimage: ttyimage.o |
54 |
greg |
2.4 |
$(CC) $(CFLAGS) -o ttyimage ttyimage.o -lrt -lm |
55 |
greg |
1.1 |
|
56 |
greg |
1.40 |
t4027: t4027.o |
57 |
greg |
2.4 |
$(CC) $(CFLAGS) -o t4027 t4027.o -lrt |
58 |
greg |
1.1 |
|
59 |
greg |
1.40 |
glimage: glimage.o |
60 |
greg |
2.4 |
$(CC) $(CFLAGS) -o glimage glimage.o -lrt -lgl_s -lm |
61 |
greg |
1.16 |
|
62 |
greg |
1.40 |
aedimage: aedimage.o ciq.o cut.o closest.o biq.o |
63 |
greg |
2.4 |
$(CC) $(CFLAGS) -o aedimage aedimage.o ciq.o cut.o closest.o \ |
64 |
greg |
1.48 |
biq.o -lrt -lm |
65 |
greg |
1.1 |
|
66 |
greg |
1.40 |
oki20c: oki20c.o |
67 |
greg |
2.4 |
$(CC) $(CFLAGS) -o oki20c oki20c.o -lrt -lm |
68 |
greg |
2.2 |
|
69 |
|
|
oki20: oki20.o |
70 |
greg |
2.4 |
$(CC) $(CFLAGS) -o oki20 oki20.o -lrt -lm |
71 |
greg |
1.7 |
|
72 |
greg |
1.40 |
paintjet: paintjet.o |
73 |
greg |
2.4 |
$(CC) $(CFLAGS) -o paintjet paintjet.o -lrt -lm |
74 |
greg |
1.1 |
|
75 |
greg |
1.40 |
mt160r: mt160r.o |
76 |
greg |
2.4 |
$(CC) $(CFLAGS) -o mt160r mt160r.o -lrt -lm |
77 |
greg |
1.1 |
|
78 |
greg |
1.40 |
getinfo: getinfo.o |
79 |
greg |
2.4 |
$(CC) $(CFLAGS) -n -o getinfo getinfo.o -lrt |
80 |
greg |
1.1 |
|
81 |
greg |
1.40 |
greyscale: greyscale.o |
82 |
greg |
2.4 |
$(CC) $(CFLAGS) -o greyscale greyscale.o -lrt -lm |
83 |
greg |
1.1 |
|
84 |
greg |
1.40 |
colorscale: colorscale.o |
85 |
greg |
2.4 |
$(CC) $(CFLAGS) -o colorscale colorscale.o -lrt |
86 |
greg |
1.1 |
|
87 |
greg |
1.40 |
pvalue: pvalue.o |
88 |
greg |
2.4 |
$(CC) $(CFLAGS) -o pvalue pvalue.o -lrt -lm |
89 |
greg |
1.1 |
|
90 |
greg |
1.40 |
psum: psum.o |
91 |
greg |
2.4 |
$(CC) $(CFLAGS) -o psum psum.o -lrt |
92 |
greg |
1.1 |
|
93 |
greg |
1.40 |
pcompos: pcompos.o |
94 |
greg |
2.4 |
$(CC) $(CFLAGS) -o pcompos pcompos.o -lrt |
95 |
greg |
1.1 |
|
96 |
greg |
1.40 |
psign: psign.o |
97 |
greg |
2.4 |
$(CC) $(CFLAGS) -o psign psign.o -lrt |
98 |
greg |
1.1 |
|
99 |
greg |
1.40 |
d48c: d48c.o |
100 |
greg |
2.4 |
$(CC) $(CFLAGS) -o d48c d48c.o -lrt |
101 |
greg |
1.1 |
|
102 |
greg |
1.40 |
ra_pr: ra_pr.o ciq.o cut.o closest.o biq.o |
103 |
greg |
2.4 |
$(CC) $(CFLAGS) -o ra_pr ra_pr.o ciq.o cut.o closest.o \ |
104 |
greg |
1.48 |
biq.o -lrt -lm |
105 |
greg |
1.1 |
|
106 |
greg |
1.40 |
ra_pr24: ra_pr24.o |
107 |
greg |
2.4 |
$(CC) $(CFLAGS) -o ra_pr24 ra_pr24.o -lrt -lm |
108 |
greg |
1.46 |
|
109 |
greg |
2.5 |
ra_ps: ra_ps.o |
110 |
|
|
$(CC) $(CFLAGS) -o ra_ps ra_ps.o -lrt -lm |
111 |
|
|
|
112 |
greg |
1.46 |
ra_ppm: ra_ppm.o |
113 |
greg |
2.4 |
$(CC) $(CFLAGS) -o ra_ppm ra_ppm.o -lrt -lm |
114 |
greg |
1.19 |
|
115 |
greg |
1.40 |
ra_t8: ra_t8.o ciq.o cut.o closest.o biq.o |
116 |
greg |
2.4 |
$(CC) $(CFLAGS) -o ra_t8 ra_t8.o ciq.o cut.o closest.o \ |
117 |
greg |
1.48 |
biq.o -lrt -lm |
118 |
greg |
1.1 |
|
119 |
greg |
1.40 |
ra_t16: ra_t16.o |
120 |
greg |
2.4 |
$(CC) $(CFLAGS) -o ra_t16 ra_t16.o -lrt -lm |
121 |
greg |
1.1 |
|
122 |
|
|
ra_im: ra_im.o |
123 |
greg |
2.4 |
$(CC) $(CFLAGS) -n -o ra_im ra_im.o |
124 |
greg |
1.1 |
|
125 |
greg |
1.40 |
ra_bn: ra_bn.o |
126 |
greg |
2.4 |
$(CC) $(CFLAGS) -o ra_bn ra_bn.o -lrt -lm |
127 |
greg |
1.49 |
|
128 |
|
|
ra_rgbe: ra_rgbe.o |
129 |
greg |
2.4 |
$(CC) $(CFLAGS) -o ra_rgbe ra_rgbe.o -lrt -lm |
130 |
greg |
1.1 |
|
131 |
greg |
1.50 |
ra_pict: ra_pict.o |
132 |
greg |
2.4 |
$(CC) $(CFLAGS) -o ra_pict ra_pict.o -lrt -lm |
133 |
greg |
1.50 |
|
134 |
|
|
|
135 |
greg |
1.40 |
x10image: ximage.o ciq.o cut.o closest.o xraster.o biq.o |
136 |
greg |
2.4 |
$(CC) $(CFLAGS) -o x10image ximage.o xraster.o \ |
137 |
greg |
1.48 |
ciq.o cut.o closest.o biq.o -lX -lrt -lm |
138 |
greg |
1.1 |
|
139 |
greg |
1.40 |
ximage: x11image.o ciq.o cut.o closest.o x11raster.o biq.o |
140 |
greg |
2.4 |
$(CC) $(CFLAGS) -o ximage x11image.o x11raster.o \ |
141 |
greg |
1.48 |
ciq.o cut.o closest.o biq.o -lX11 -lrt -lm |
142 |
greg |
1.17 |
|
143 |
greg |
1.56 |
protate: protate.o |
144 |
greg |
2.4 |
$(CC) $(CFLAGS) -o protate protate.o -lrt |
145 |
greg |
1.1 |
|
146 |
greg |
2.6 |
pextrem: pextrem.o |
147 |
|
|
$(CC) $(CFLAGS) -o pextrem pextrem.o -lrt |
148 |
|
|
|
149 |
greg |
1.40 |
pflip: pflip.o |
150 |
greg |
2.4 |
$(CC) $(CFLAGS) -o pflip pflip.o -lrt |
151 |
greg |
1.26 |
|
152 |
greg |
1.40 |
panim: panim.o client/libclient.a |
153 |
greg |
2.4 |
$(CC) $(CFLAGS) -o panim panim.o \ |
154 |
greg |
1.48 |
-lrt client/libclient.a -lrpcsvc -lm |
155 |
greg |
1.1 |
|
156 |
greg |
1.41 |
pcomb: pcomb.o |
157 |
greg |
2.4 |
$(CC) $(CFLAGS) -o pcomb pcomb.o -lrt -lm |
158 |
greg |
1.1 |
|
159 |
greg |
1.40 |
pinterp: pinterp.o |
160 |
greg |
2.4 |
$(CC) $(CFLAGS) -o pinterp pinterp.o -lrt -lm |
161 |
greg |
1.44 |
|
162 |
greg |
1.48 |
ra_tiff: ra_tiff.o ../lib/libtiff.a |
163 |
greg |
2.4 |
$(CC) $(CFLAGS) -o ra_tiff ra_tiff.o -lrt -ltiff -lm |
164 |
greg |
1.44 |
|
165 |
greg |
2.3 |
psign.o: psign.c ../common/font.h |
166 |
greg |
2.4 |
$(CC) $(CFLAGS) -DDEFPATH=\":$(LIBDIR)\" -c psign.c |
167 |
greg |
2.3 |
|
168 |
greg |
1.47 |
ra_tiff.o: ra_tiff.c |
169 |
greg |
2.4 |
$(CC) $(CFLAGS) -Ilibtiff -c ra_tiff.c |
170 |
greg |
1.44 |
|
171 |
greg |
1.48 |
../lib/libtiff.a: |
172 |
|
|
cd libtiff ; make -f Makefile.$(ARCH) ; \ |
173 |
|
|
mv libtiff.a ../../lib ; make clean |
174 |
greg |
1.10 |
|
175 |
greg |
1.40 |
ra_pixar: ra_pixar.o ra_pixar.c |
176 |
greg |
2.4 |
$(CC) $(CFLAGS) $(PIXAR_INCLUDE) -o $@ ra_pixar.o -lrt \ |
177 |
greg |
1.4 |
$(PIXAR_LIB) |
178 |
|
|
|
179 |
|
|
ra_pixar.o: ra_pixar.c |
180 |
greg |
2.4 |
$(CC) $(CFLAGS) $(PIXAR_INCLUDE) -c ra_pixar.c |
181 |
greg |
1.1 |
|
182 |
greg |
1.40 |
xshowtrace: xshowtrace.o x11findwind.o |
183 |
greg |
2.4 |
$(CC) $(CFLAGS) -o xshowtrace xshowtrace.o \ |
184 |
greg |
1.48 |
x11findwind.o -lrt -lm -lX11 |
185 |
greg |
1.28 |
|
186 |
greg |
1.41 |
pcomb.o: ../common/calcomp.h |
187 |
greg |
1.18 |
|
188 |
greg |
1.40 |
panim.o: client/scan.h ../common/color.h ../common/random.h |
189 |
greg |
1.24 |
|
190 |
greg |
2.5 |
pf2.o bnoise.o ra_ps.o ra_t16.o: ../common/random.h |
191 |
greg |
1.1 |
|
192 |
greg |
2.6 |
pfilt.o pf2.o ttyimage.o t4027.o mt160r.o psum.o psign.o protate.o pextrem.o \ |
193 |
greg |
1.56 |
ra_pr24.o d48c.o aedimage.o pcompos.o color.o resolu.o colrops.o pflip.o \ |
194 |
greg |
1.52 |
greyscale.o ra_t8.o glimage.o ra_bn.o ra_t16.o ra_tiff.o ra_pict.o \ |
195 |
greg |
2.5 |
ra_ps.o ra_pr.o pvalue.o pcomb.o pinterp.o ximage.o: ../common/color.h |
196 |
greg |
1.1 |
|
197 |
greg |
2.3 |
pvalue.o protate.o biq.o ciq.o pinterp.o ximage.o psign.o xshowtrace.o \ |
198 |
greg |
1.40 |
image.o: ../common/standard.h ../common/mat4.h ../common/fvect.h |
199 |
greg |
1.1 |
|
200 |
greg |
1.43 |
ximage.o xraster.o: xraster.h |
201 |
greg |
1.17 |
|
202 |
|
|
x11image.o x11raster.o: x11raster.h |
203 |
greg |
1.1 |
|
204 |
greg |
1.40 |
ra_t8.o: ../common/targa.h |
205 |
greg |
1.1 |
|
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 |
greg |
2.3 |
pinterp.o ximage.o x11showtrace.o image.o: ../common/view.h |
211 |
greg |
1.50 |
|
212 |
|
|
ra_pict.o: pict.h |
213 |
greg |
1.55 |
|
214 |
|
|
mt160r.o oki20c.o paintjet.o pcomb.o pcompos.o pfilt.o pflip.o \ |
215 |
greg |
1.56 |
pinterp.o protate.o pvalue.o ra_bn.o ra_pict.o ra_pixar.o \ |
216 |
greg |
2.1 |
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 |
greg |
2.7 |
|
219 |
greg |
2.8 |
pfilt.o psign.o: ../common/paths.h |