ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/px/Rmakefile
(Generate patch)

Comparing ray/src/px/Rmakefile (file contents):
Revision 1.42 by greg, Thu Jul 18 11:19:19 1991 UTC vs.
Revision 2.22 by greg, Sun Oct 15 14:07:26 1995 UTC

# Line 1 | Line 1
1 + #  Compiles for image processing and display programs
2   # SCCSid "$SunId$ LBL"
2
3   #
4 #  Compiles for image processing and display programs
5 #
4  
5 + ARCH = sun
6   OPT = -O
7 < MACH = -DSTRUCTASSIGN -f68881 /usr/lib/libm.il -DIEEE -DBSD
8 < CFLAGS = $(OPT) $(MACH) -I../common
7 > MACH = -DBSD
8 > SPECIAL = aed tiff
9 > CFLAGS = $(OPT) $(MACH) -I../common -L../lib
10 > CC = cc
11 > MLIB = -lm
12  
13 < INSTDIR = /lumen/lumen/ray/bin.sun3
13 > INSTDIR = /usr/local/bin
14  
15 < LIBDIR = /lumen/lumen/ray/lib
15 > LIBDIR = /usr/local/lib/ray
16  
17   PIXAR_INCLUDE=  -I/usr/pixar/include
18 < PIXAR_LIB=      -L/usr/pixar/host/lib -lpirl -lpicio -lchad -lpixar -lm
18 > PIXAR_LIB=      -L/usr/pixar/host/lib -lpirl -lpicio -lchad -lpixar $(MLIB)
19  
20 < PROGS = pfilt ttyimage oki20c paintjet mt160r getinfo psign \
21 < greyscale pvalue pcompos colorscale prot ra_pr ra_pr24 \
22 < ra_t8 ra_bn ra_t16 pcomb pinterp ximage xshowtrace pflip
20 > PROGS = pfilt ttyimage oki20c oki20 paintjet mt160r getinfo psign \
21 > greyscale pvalue pcompos colorscale protate ra_pr ra_pr24 ra_avs \
22 > ra_t8 ra_bn ra_t16 pcomb pinterp ximage xshowtrace pflip ra_ppm \
23 > ra_rgbe ra_pict ra_ps pextrem ra_gif ra_xyze macbethcal
24  
25 < all:    $(PROGS)
25 > all:    $(PROGS) $(SPECIAL)
26  
27   x10:    x10image
28          cp x10image $(INSTDIR)
# Line 27 | Line 30 | x10:   x10image
30   aed:    aedimage
31          cp aedimage $(INSTDIR)
32  
33 + sgi:    glimage
34 +        cp glimage $(INSTDIR)
35 +
36 + tiff:   ra_tiff
37 +        cp ra_tiff $(INSTDIR)
38 +
39   sun:
40  
41 < install:        $(PROGS) normpat.csh falsecolor.csh
41 > install:        $(PROGS) $(SPECIAL) normpat.csh falsecolor.csh pdfblur.csh
42          cp $(PROGS) $(INSTDIR)
43          cp normpat.csh $(INSTDIR)/normpat
44          cp falsecolor.csh $(INSTDIR)/falsecolor
45 <        chmod 755 $(INSTDIR)/normpat $(INSTDIR)/falsecolor
45 >        cp pdfblur.csh $(INSTDIR)/pdfblur
46 >        chmod 755 $(INSTDIR)/normpat $(INSTDIR)/falsecolor $(INSTDIR)/pdfblur
47  
48   clean:
49 <        set nonomatch; rm -f $(PROGS) aedimage x10image *.o core
49 >        set nonomatch; rm -f x10image aedimage glimage ra_tiff \
50 > $(PROGS) *.o core
51  
52   pfilt:  pfilt.o pf2.o pf3.o
53 <        cc $(CFLAGS) -o pfilt pfilt.o pf2.o pf3.o ../common/librt.a -lm
53 >        $(CC) $(CFLAGS) -o pfilt pfilt.o pf2.o pf3.o -lrt $(MLIB)
54  
55   ttyimage:       ttyimage.o
56 <        cc $(CFLAGS) -o ttyimage ttyimage.o ../common/librt.a -lm
56 >        $(CC) $(CFLAGS) -o ttyimage ttyimage.o -lrt $(MLIB)
57  
58   t4027:  t4027.o
59 <        cc $(CFLAGS) -o t4027 t4027.o ../common/librt.a
59 >        $(CC) $(CFLAGS) -o t4027 t4027.o -lrt
60  
61   glimage:        glimage.o
62 <        cc $(CFLAGS) -o glimage glimage.o ../common/librt.a -lgl_s -lm
62 >        $(CC) $(CFLAGS) -o glimage glimage.o -lrt -lgl_s $(MLIB)
63  
64   aedimage:       aedimage.o ciq.o cut.o closest.o biq.o
65 <        cc $(CFLAGS) -o aedimage aedimage.o ciq.o cut.o closest.o \
66 < biq.o ../common/librt.a -lm
65 >        $(CC) $(CFLAGS) -o aedimage aedimage.o ciq.o cut.o closest.o \
66 > biq.o -lrt $(MLIB)
67  
68   oki20c: oki20c.o
69 <        cc $(CFLAGS) -o oki20c oki20c.o ../common/librt.a -lm
69 >        $(CC) $(CFLAGS) -o oki20c oki20c.o -lrt $(MLIB)
70  
71 + oki20:  oki20.o
72 +        $(CC) $(CFLAGS) -o oki20 oki20.o -lrt $(MLIB)
73 +
74   paintjet:       paintjet.o
75 <        cc $(CFLAGS) -o paintjet paintjet.o ../common/librt.a -lm
75 >        $(CC) $(CFLAGS) -o paintjet paintjet.o -lrt $(MLIB)
76  
77   mt160r: mt160r.o
78 <        cc $(CFLAGS) -o mt160r mt160r.o ../common/librt.a -lm
78 >        $(CC) $(CFLAGS) -o mt160r mt160r.o -lrt $(MLIB)
79  
80   getinfo:        getinfo.o
81 <        cc $(CFLAGS) -n -o getinfo getinfo.o ../common/librt.a
81 >        $(CC) $(CFLAGS) -o getinfo getinfo.o -lrt
82  
83   greyscale:      greyscale.o
84 <        cc $(CFLAGS) -o greyscale greyscale.o ../common/librt.a -lm
84 >        $(CC) $(CFLAGS) -o greyscale greyscale.o -lrt $(MLIB)
85  
86   colorscale:     colorscale.o
87 <        cc $(CFLAGS) -o colorscale colorscale.o ../common/librt.a
87 >        $(CC) $(CFLAGS) -o colorscale colorscale.o -lrt
88  
89   pvalue: pvalue.o
90 <        cc $(CFLAGS) -o pvalue pvalue.o ../common/librt.a -lm
90 >        $(CC) $(CFLAGS) -o pvalue pvalue.o -lrt $(MLIB)
91  
92   psum:   psum.o
93 <        cc $(CFLAGS) -o psum psum.o ../common/librt.a
93 >        $(CC) $(CFLAGS) -o psum psum.o -lrt
94  
95   pcompos:        pcompos.o
96 <        cc $(CFLAGS) -o pcompos pcompos.o ../common/librt.a
96 >        $(CC) $(CFLAGS) -o pcompos pcompos.o -lrt
97  
98   psign:  psign.o
99 <        cc $(CFLAGS) -o psign psign.o ../common/librt.a
99 >        $(CC) $(CFLAGS) -o psign psign.o -lrt
100  
101   d48c:   d48c.o
102 <        cc $(CFLAGS) -o d48c d48c.o ../common/librt.a
102 >        $(CC) $(CFLAGS) -o d48c d48c.o -lrt
103  
104 + ra_gif: ra_gif.o clrtab.o neuclrtab.o
105 +        $(CC) $(CFLAGS) -o ra_gif ra_gif.o clrtab.o neuclrtab.o -lrt $(MLIB)
106 +
107   ra_pr:  ra_pr.o ciq.o cut.o closest.o biq.o
108 <        cc $(CFLAGS) -o ra_pr ra_pr.o ciq.o cut.o closest.o \
109 < biq.o ../common/librt.a -lm
108 >        $(CC) $(CFLAGS) -o ra_pr ra_pr.o ciq.o cut.o closest.o \
109 > biq.o -lrt $(MLIB)
110  
111   ra_pr24:        ra_pr24.o
112 <        cc $(CFLAGS) -o ra_pr24 ra_pr24.o ../common/librt.a -lm
112 >        $(CC) $(CFLAGS) -o ra_pr24 ra_pr24.o -lrt $(MLIB)
113  
114 < ra_t8:  ra_t8.o ciq.o cut.o closest.o biq.o
115 <        cc $(CFLAGS) -o ra_t8 ra_t8.o ciq.o cut.o closest.o \
99 < biq.o ../common/librt.a -lm
114 > ra_avs: ra_avs.o
115 >        $(CC) $(CFLAGS) -o ra_avs ra_avs.o -lrt $(MLIB)
116  
117 + ra_ps:  ra_ps.o
118 +        $(CC) $(CFLAGS) -o ra_ps ra_ps.o -lrt $(MLIB)
119 +
120 + ra_ppm:         ra_ppm.o
121 +        $(CC) $(CFLAGS) -o ra_ppm ra_ppm.o -lrt $(MLIB)
122 +
123 + ra_t8:  ra_t8.o clrtab.o neuclrtab.o
124 +        $(CC) $(CFLAGS) -o ra_t8 ra_t8.o clrtab.o neuclrtab.o -lrt $(MLIB)
125 +
126   ra_t16: ra_t16.o
127 <        cc $(CFLAGS) -o ra_t16 ra_t16.o ../common/librt.a -lm
127 >        $(CC) $(CFLAGS) -o ra_t16 ra_t16.o -lrt $(MLIB)
128  
129   ra_im: ra_im.o
130 <        cc $(CFLAGS) -n -o ra_im ra_im.o
130 >        $(CC) $(CFLAGS) -o ra_im ra_im.o
131  
132   ra_bn: ra_bn.o
133 <        cc $(CFLAGS) -o ra_bn ra_bn.o ../common/librt.a -lm
133 >        $(CC) $(CFLAGS) -o ra_bn ra_bn.o -lrt $(MLIB)
134  
135 + ra_rgbe:        ra_rgbe.o
136 +        $(CC) $(CFLAGS) -o ra_rgbe ra_rgbe.o -lrt $(MLIB)
137 +
138 + ra_pict:    ra_pict.o
139 +        $(CC) $(CFLAGS) -o ra_pict ra_pict.o -lrt $(MLIB)
140 +
141 +
142   x10image:       ximage.o ciq.o cut.o closest.o xraster.o biq.o
143 <        cc $(CFLAGS) -o x10image ximage.o xraster.o \
144 < ciq.o cut.o closest.o biq.o -lX ../common/librt.a -lm
143 >        $(CC) $(CFLAGS) -o x10image ximage.o xraster.o \
144 > ciq.o cut.o closest.o biq.o -lX -lrt $(MLIB)
145  
146 < ximage: x11image.o ciq.o cut.o closest.o x11raster.o biq.o
147 <        cc $(CFLAGS) -o ximage x11image.o x11raster.o \
148 < ciq.o cut.o closest.o biq.o -lX11 ../common/librt.a -lm
146 > ximage: x11image.o x11raster.o clrtab.o
147 >        $(CC) $(CFLAGS) -o ximage x11image.o x11raster.o \
148 > clrtab.o -lX11 -lrt $(MLIB)
149  
150 < prot:           prot.o
151 <        cc $(CFLAGS) -o prot prot.o ../common/librt.a
150 > protate:                protate.o
151 >        $(CC) $(CFLAGS) -o protate protate.o -lrt
152  
153 + pextrem:        pextrem.o
154 +        $(CC) $(CFLAGS) -o pextrem pextrem.o -lrt
155 +
156   pflip:          pflip.o
157 <        cc $(CFLAGS) -o pflip pflip.o ../common/librt.a
157 >        $(CC) $(CFLAGS) -o pflip pflip.o -lrt
158  
159   panim:  panim.o client/libclient.a
160 <        cc $(CFLAGS) -o panim panim.o \
161 < ../common/librt.a client/libclient.a -lrpcsvc -lm
160 >        $(CC) $(CFLAGS) -o panim panim.o \
161 > -lrt client/libclient.a -lrpcsvc $(MLIB)
162  
163   pcomb:  pcomb.o
164 <        cc $(CFLAGS) -o pcomb pcomb.o ../common/librt.a -lm
164 >        $(CC) $(CFLAGS) -o pcomb pcomb.o -lrt $(MLIB)
165  
166   pinterp:        pinterp.o
167 <        cc $(CFLAGS) -o pinterp pinterp.o ../common/librt.a -lm
167 >        $(CC) $(CFLAGS) -o pinterp pinterp.o -lrt $(MLIB)
168  
169 + ra_xyze:        ra_xyze.o
170 +        $(CC) $(CFLAGS) -o ra_xyze ra_xyze.o -lrt $(MLIB)
171 +
172 + ra_tiff:        ra_tiff.o ../lib/libtiff.a
173 +        $(CC) $(CFLAGS) -o ra_tiff ra_tiff.o -lrt -ltiff $(MLIB)
174 +
175 + ra_tiff.o:      ra_tiff.c
176 +        $(CC) $(CFLAGS) -Ilibtiff -c ra_tiff.c
177 +
178 + ../lib/libtiff.a:
179 +        cd libtiff ; make -f Makefile.$(ARCH) ; \
180 +        mv libtiff.a ../../lib ; make clean
181 +
182   ra_pixar:       ra_pixar.o ra_pixar.c
183 <        cc $(CFLAGS) $(PIXAR_INCLUDE) -o $@ ra_pixar.o ../common/librt.a \
183 >        $(CC) $(CFLAGS) $(PIXAR_INCLUDE) -o $@ ra_pixar.o -lrt \
184   $(PIXAR_LIB)
185  
186   ra_pixar.o:     ra_pixar.c
187 <        cc $(CFLAGS) $(PIXAR_INCLUDE) -c ra_pixar.c
187 >        $(CC) $(CFLAGS) $(PIXAR_INCLUDE) -c ra_pixar.c
188  
189   xshowtrace:     xshowtrace.o x11findwind.o
190 <        cc $(CFLAGS) -o xshowtrace xshowtrace.o \
191 < x11findwind.o ../common/librt.a -lm -lX11
190 >        $(CC) $(CFLAGS) -o xshowtrace xshowtrace.o \
191 > x11findwind.o -lrt $(MLIB) -lX11
192  
193 < xshowtrace.o:   ../common/view.h ../common/standard.h \
194 < ../common/mat4.h ../common/fvect.h
193 > macbethcal:     macbethcal.o pmapgen.o mx3.o
194 >        $(CC) $(CFLAGS) -o macbethcal macbethcal.o pmapgen.o mx3.o -lrt $(MLIB)
195  
196 +
197 + macbethcal.o:   pmap.h
198 +
199 + pmapgen.o:      mx3.h pmap.h
200 +
201 + nclrtab.o:      neuclrtab.o
202 +        ln neuclrtab.c nclrtab.c
203 +        $(CC) $(CFLAGS) -DCOMPAT_MODE -c nclrtab.c
204 +        rm -f nclrtab.c
205 +
206   pcomb.o:        ../common/calcomp.h
207  
208   panim.o:        client/scan.h ../common/color.h ../common/random.h
209  
210 < pf2.o bnoise.o ra_t16.o:        ../common/random.h
210 > pf2.o bnoise.o ra_ps.o ra_t16.o:        ../common/random.h
211  
212 < pfilt.o pf2.o ttyimage.o t4027.o mt160r.o psum.o psign.o prot.o ra_pr24.o \
213 < d48c.o aedimage.o pcompos.o color.o resolu.o colrops.o pflip.o \
214 < greyscale.o ra_t8.o glimage.o ra_bn.o ra_t16.o \
215 < ra_pr.o pvalue.o pcomb.o pinterp.o ximage.o:    ../common/color.h
212 > neuclrtab.o clrtab.o pfilt.o pf2.o pf3.o ttyimage.o t4027.o mt160r.o \
213 > psum.o psign.o protate.o \
214 > pextrem.o ra_pr24.o d48c.o aedimage.o pcompos.o color.o resolu.o colrops.o \
215 > pflip.o greyscale.o ra_t8.o glimage.o ra_bn.o ra_t16.o ra_tiff.o ra_pict.o \
216 > ra_ps.o ra_pr.o pvalue.o pcomb.o pinterp.o ximage.o:    ../common/color.h
217  
218 < prot.o biq.o ciq.o pinterp.o ximage.o \
219 < image.o:        ../common/standard.h ../common/mat4.h ../common/fvect.h
218 > neuclrtab.o pvalue.o protate.o biq.o ciq.o pinterp.o ximage.o psign.o \
219 > xshowtrace.o clrtab.o pcomb.o pfilt.o pf3.o image.o:    ../common/standard.h \
220 > ../common/mat4.h ../common/fvect.h
221  
222 < ximage.o x11raster.o:   xraster.h
222 > ximage.o xraster.o:     xraster.h
223  
224   x11image.o x11raster.o: x11raster.h
225  
# Line 169 | Line 229 | aedimage.o ximage.o ra_t8.o ra_pr.o:   pic.h
229  
230   ciq.o cut.o closest.o biq.o:    pic.h ciq.h
231  
232 < pinterp.o ximage.o image.o:     ../common/view.h
232 > pinterp.o ximage.o x11showtrace.o image.o:      ../common/view.h
233 >
234 > ra_pict.o:      pict.h
235 >
236 > mt160r.o oki20c.o paintjet.o pcomb.o pcompos.o pfilt.o pflip.o \
237 > pinterp.o protate.o pvalue.o ra_bn.o ra_pict.o ra_pixar.o \
238 > ra_ppm.o ra_pr.o ra_pr24.o ra_rgbe.o ra_t16.o ra_t8.o glimage.o \
239 > ra_tiff.o ttyimage.o ximage.o x11image.o:       ../common/resolu.h
240 >
241 > pfilt.o:        ../common/paths.h
242 >
243 > psign.o:        ../common/font.h

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines