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 |
8 |
> |
MACH = -DSTRUCTASSIGN -DBSD |
9 |
> |
SPECIAL = aed tiff |
10 |
> |
CFLAGS = $(OPT) $(MACH) -I../common -L../lib |
11 |
|
|
12 |
< |
INSTDIR = /lumen/lumen/ray/bin.sun3 |
12 |
> |
INSTDIR = /usr/local/bin |
13 |
|
|
14 |
|
LIBDIR = /usr/local/lib/ray |
15 |
|
|
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 |
21 |
> |
ra_t8 ra_bn ra_t16 pcomb pinterp ximage xshowtrace pflip ra_ppm \ |
22 |
> |
ra_rgbe ra_pict |
23 |
|
|
24 |
< |
all: $(PROGS) |
24 |
> |
all: $(PROGS) $(SPECIAL) |
25 |
|
|
26 |
|
x10: x10image |
27 |
|
cp x10image $(INSTDIR) |
29 |
|
aed: aedimage |
30 |
|
cp aedimage $(INSTDIR) |
31 |
|
|
32 |
+ |
tiff: ra_tiff |
33 |
+ |
cp ra_tiff $(INSTDIR) |
34 |
+ |
|
35 |
|
sun: |
36 |
|
|
37 |
< |
install: $(PROGS) normpat.csh falsecolor.csh |
37 |
> |
install: $(PROGS) $(SPECIAL) normpat.csh falsecolor.csh |
38 |
|
cp $(PROGS) $(INSTDIR) |
39 |
|
cp normpat.csh $(INSTDIR)/normpat |
40 |
|
cp falsecolor.csh $(INSTDIR)/falsecolor |
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 ../common/librt.a -lm |
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 ../common/librt.a -lm |
50 |
> |
cc $(CFLAGS) -o ttyimage ttyimage.o -lrt -lm |
51 |
|
|
52 |
|
t4027: t4027.o |
53 |
< |
cc $(CFLAGS) -o t4027 t4027.o ../common/librt.a |
53 |
> |
cc $(CFLAGS) -o t4027 t4027.o -lrt |
54 |
|
|
55 |
|
glimage: glimage.o |
56 |
< |
cc $(CFLAGS) -o glimage glimage.o ../common/librt.a -lgl_s -lm |
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 ../common/librt.a -lm |
60 |
> |
biq.o -lrt -lm |
61 |
|
|
62 |
|
oki20c: oki20c.o |
63 |
< |
cc $(CFLAGS) -o oki20c oki20c.o ../common/librt.a -lm |
63 |
> |
cc $(CFLAGS) -o oki20c oki20c.o -lrt -lm |
64 |
|
|
65 |
|
paintjet: paintjet.o |
66 |
< |
cc $(CFLAGS) -o paintjet paintjet.o ../common/librt.a -lm |
66 |
> |
cc $(CFLAGS) -o paintjet paintjet.o -lrt -lm |
67 |
|
|
68 |
|
mt160r: mt160r.o |
69 |
< |
cc $(CFLAGS) -o mt160r mt160r.o ../common/librt.a -lm |
69 |
> |
cc $(CFLAGS) -o mt160r mt160r.o -lrt -lm |
70 |
|
|
71 |
|
getinfo: getinfo.o |
72 |
< |
cc $(CFLAGS) -n -o getinfo getinfo.o ../common/librt.a |
72 |
> |
cc $(CFLAGS) -n -o getinfo getinfo.o -lrt |
73 |
|
|
74 |
|
greyscale: greyscale.o |
75 |
< |
cc $(CFLAGS) -o greyscale greyscale.o ../common/librt.a -lm |
75 |
> |
cc $(CFLAGS) -o greyscale greyscale.o -lrt -lm |
76 |
|
|
77 |
|
colorscale: colorscale.o |
78 |
< |
cc $(CFLAGS) -o colorscale colorscale.o ../common/librt.a |
78 |
> |
cc $(CFLAGS) -o colorscale colorscale.o -lrt |
79 |
|
|
80 |
|
pvalue: pvalue.o |
81 |
< |
cc $(CFLAGS) -o pvalue pvalue.o ../common/librt.a -lm |
81 |
> |
cc $(CFLAGS) -o pvalue pvalue.o -lrt -lm |
82 |
|
|
83 |
|
psum: psum.o |
84 |
< |
cc $(CFLAGS) -o psum psum.o ../common/librt.a |
84 |
> |
cc $(CFLAGS) -o psum psum.o -lrt |
85 |
|
|
86 |
|
pcompos: pcompos.o |
87 |
< |
cc $(CFLAGS) -o pcompos pcompos.o ../common/librt.a |
87 |
> |
cc $(CFLAGS) -o pcompos pcompos.o -lrt |
88 |
|
|
89 |
|
psign: psign.o |
90 |
< |
cc $(CFLAGS) -o psign psign.o ../common/librt.a |
90 |
> |
cc $(CFLAGS) -o psign psign.o -lrt |
91 |
|
|
92 |
|
d48c: d48c.o |
93 |
< |
cc $(CFLAGS) -o d48c d48c.o ../common/librt.a |
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 ../common/librt.a -lm |
97 |
> |
biq.o -lrt -lm |
98 |
|
|
99 |
|
ra_pr24: ra_pr24.o |
100 |
< |
cc $(CFLAGS) -o ra_pr24 ra_pr24.o ../common/librt.a -lm |
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 ../common/librt.a -lm |
107 |
> |
biq.o -lrt -lm |
108 |
|
|
109 |
|
ra_t16: ra_t16.o |
110 |
< |
cc $(CFLAGS) -o ra_t16 ra_t16.o ../common/librt.a -lm |
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 ../common/librt.a -lm |
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 ../common/librt.a -lm |
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 ../common/librt.a -lm |
131 |
> |
ciq.o cut.o closest.o biq.o -lX11 -lrt -lm |
132 |
|
|
133 |
|
prot: prot.o |
134 |
< |
cc $(CFLAGS) -o prot prot.o ../common/librt.a |
134 |
> |
cc $(CFLAGS) -o prot prot.o -lrt |
135 |
|
|
136 |
|
pflip: pflip.o |
137 |
< |
cc $(CFLAGS) -o pflip pflip.o ../common/librt.a |
137 |
> |
cc $(CFLAGS) -o pflip pflip.o -lrt |
138 |
|
|
139 |
|
panim: panim.o client/libclient.a |
140 |
|
cc $(CFLAGS) -o panim panim.o \ |
141 |
< |
../common/librt.a client/libclient.a -lrpcsvc -lm |
141 |
> |
-lrt client/libclient.a -lrpcsvc -lm |
142 |
|
|
143 |
|
pcomb: pcomb.o |
144 |
< |
cc $(CFLAGS) -o pcomb pcomb.o ../common/librt.a -lm |
144 |
> |
cc $(CFLAGS) -o pcomb pcomb.o -lrt -lm |
145 |
|
|
146 |
|
pinterp: pinterp.o |
147 |
< |
cc $(CFLAGS) -o pinterp pinterp.o ../common/librt.a -lm |
147 |
> |
cc $(CFLAGS) -o pinterp pinterp.o -lrt -lm |
148 |
|
|
149 |
< |
ra_tiff: ra_tiff.o libtiff/libtiff.a |
150 |
< |
cc $(CFLAGS) -o ra_tiff ra_tiff.o ../common/librt.a \ |
135 |
< |
libtiff/libtiff.a -lm |
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 libtiff/tiffio.h libtiff/tiff.h |
152 |
> |
ra_tiff.o: ra_tiff.c |
153 |
|
cc $(CFLAGS) -Ilibtiff -c ra_tiff.c |
154 |
|
|
155 |
< |
libtiff/libtiff.a: |
156 |
< |
maketiff |
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 ../common/librt.a \ |
160 |
> |
cc $(CFLAGS) $(PIXAR_INCLUDE) -o $@ ra_pixar.o -lrt \ |
161 |
|
$(PIXAR_LIB) |
162 |
|
|
163 |
|
ra_pixar.o: ra_pixar.c |
165 |
|
|
166 |
|
xshowtrace: xshowtrace.o x11findwind.o |
167 |
|
cc $(CFLAGS) -o xshowtrace xshowtrace.o \ |
168 |
< |
x11findwind.o ../common/librt.a -lm -lX11 |
168 |
> |
x11findwind.o -lrt -lm -lX11 |
169 |
|
|
170 |
|
xshowtrace.o: ../common/view.h ../common/standard.h \ |
171 |
|
../common/mat4.h ../common/fvect.h |
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 |