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