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