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.44 by greg, Thu Aug 15 13:35:10 1991 UTC vs.
Revision 2.30 by greg, Thu Jan 9 13:56:37 1997 UTC

# Line 1 | Line 1
1 #
2 # SCCSid "$SunId$ LBL"
1   #  Compiles for image processing and display programs
2 + # SCCSid "$SunId$ LBL"
3   #
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 = /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 ra_tiff
20 > PROGS = pfilt ttyimage oki20c oki20 paintjet mt160r 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 pcond
24  
25 < all:    $(PROGS)
25 > all:    $(PROGS) $(SPECIAL)
26  
27   x10:    x10image
28          cp x10image $(INSTDIR)
# Line 26 | 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 \
42 > pdfblur.csh pmblur.csh xyzimage.csh
43          cp $(PROGS) $(INSTDIR)
44          cp normpat.csh $(INSTDIR)/normpat
45          cp falsecolor.csh $(INSTDIR)/falsecolor
46 <        chmod 755 $(INSTDIR)/normpat $(INSTDIR)/falsecolor
46 >        cp pacuity.csh $(INSTDIR)/pacuity
47 >        cp pdfblur.csh $(INSTDIR)/pdfblur
48 >        cp pmblur.csh $(INSTDIR)/pmblur
49 >        cp psquish.csh $(INSTDIR)/psquish
50 >        cp pveil.csh $(INSTDIR)/pveil
51 >        cp xyzimage.csh $(INSTDIR)/xyzimage
52 >        chmod 755 $(INSTDIR)/normpat $(INSTDIR)/falsecolor \
53 > $(INSTDIR)/pdfblur $(INSTDIR)/pmblur $(INSTDIR)/xyzimage \
54 > $(INSTDIR)/pacuity $(INSTDIR)/psquish $(INSTDIR)/pveil
55  
56   clean:
57 <        set nonomatch; rm -f $(PROGS) *.o core
57 >        set nonomatch; rm -f x10image aedimage glimage ra_tiff \
58 > $(PROGS) *.o core
59  
60   pfilt:  pfilt.o pf2.o pf3.o
61 <        cc $(CFLAGS) -o pfilt pfilt.o pf2.o pf3.o ../common/librt.a -lm
61 >        $(CC) $(CFLAGS) -o pfilt pfilt.o pf2.o pf3.o -lrt $(MLIB)
62  
63 + pcond:  pcond.o pcond2.o pcond3.o pcond4.o
64 +        $(CC) $(CFLAGS) -o pcond pcond.o pcond2.o pcond3.o pcond4.o -lrt $(MLIB)
65 +
66   ttyimage:       ttyimage.o
67 <        cc $(CFLAGS) -o ttyimage ttyimage.o ../common/librt.a -lm
67 >        $(CC) $(CFLAGS) -o ttyimage ttyimage.o -lrt $(MLIB)
68  
69   t4027:  t4027.o
70 <        cc $(CFLAGS) -o t4027 t4027.o ../common/librt.a
70 >        $(CC) $(CFLAGS) -o t4027 t4027.o -lrt
71  
72   glimage:        glimage.o
73 <        cc $(CFLAGS) -o glimage glimage.o ../common/librt.a -lgl_s -lm
73 >        $(CC) $(CFLAGS) -o glimage glimage.o -lrt -lgl_s $(MLIB)
74  
75   aedimage:       aedimage.o ciq.o cut.o closest.o biq.o
76 <        cc $(CFLAGS) -o aedimage aedimage.o ciq.o cut.o closest.o \
77 < biq.o ../common/librt.a -lm
76 >        $(CC) $(CFLAGS) -o aedimage aedimage.o ciq.o cut.o closest.o \
77 > biq.o -lrt $(MLIB)
78  
79   oki20c: oki20c.o
80 <        cc $(CFLAGS) -o oki20c oki20c.o ../common/librt.a -lm
80 >        $(CC) $(CFLAGS) -o oki20c oki20c.o -lrt $(MLIB)
81  
82 + oki20:  oki20.o
83 +        $(CC) $(CFLAGS) -o oki20 oki20.o -lrt $(MLIB)
84 +
85   paintjet:       paintjet.o
86 <        cc $(CFLAGS) -o paintjet paintjet.o ../common/librt.a -lm
86 >        $(CC) $(CFLAGS) -o paintjet paintjet.o -lrt $(MLIB)
87  
88   mt160r: mt160r.o
89 <        cc $(CFLAGS) -o mt160r mt160r.o ../common/librt.a -lm
89 >        $(CC) $(CFLAGS) -o mt160r mt160r.o -lrt $(MLIB)
90  
65 getinfo:        getinfo.o
66        cc $(CFLAGS) -n -o getinfo getinfo.o ../common/librt.a
67
91   greyscale:      greyscale.o
92 <        cc $(CFLAGS) -o greyscale greyscale.o ../common/librt.a -lm
92 >        $(CC) $(CFLAGS) -o greyscale greyscale.o -lrt $(MLIB)
93  
94   colorscale:     colorscale.o
95 <        cc $(CFLAGS) -o colorscale colorscale.o ../common/librt.a
95 >        $(CC) $(CFLAGS) -o colorscale colorscale.o -lrt
96  
97   pvalue: pvalue.o
98 <        cc $(CFLAGS) -o pvalue pvalue.o ../common/librt.a -lm
98 >        $(CC) $(CFLAGS) -o pvalue pvalue.o -lrt $(MLIB)
99  
100   psum:   psum.o
101 <        cc $(CFLAGS) -o psum psum.o ../common/librt.a
101 >        $(CC) $(CFLAGS) -o psum psum.o -lrt
102  
103   pcompos:        pcompos.o
104 <        cc $(CFLAGS) -o pcompos pcompos.o ../common/librt.a
104 >        $(CC) $(CFLAGS) -o pcompos pcompos.o -lrt
105  
106   psign:  psign.o
107 <        cc $(CFLAGS) -o psign psign.o ../common/librt.a
107 >        $(CC) $(CFLAGS) -o psign psign.o -lrt
108  
109   d48c:   d48c.o
110 <        cc $(CFLAGS) -o d48c d48c.o ../common/librt.a
110 >        $(CC) $(CFLAGS) -o d48c d48c.o -lrt
111  
112 + ra_gif: ra_gif.o clrtab.o neuclrtab.o
113 +        $(CC) $(CFLAGS) -o ra_gif ra_gif.o clrtab.o neuclrtab.o -lrt $(MLIB)
114 +
115   ra_pr:  ra_pr.o ciq.o cut.o closest.o biq.o
116 <        cc $(CFLAGS) -o ra_pr ra_pr.o ciq.o cut.o closest.o \
117 < biq.o ../common/librt.a -lm
116 >        $(CC) $(CFLAGS) -o ra_pr ra_pr.o ciq.o cut.o closest.o \
117 > biq.o -lrt $(MLIB)
118  
119   ra_pr24:        ra_pr24.o
120 <        cc $(CFLAGS) -o ra_pr24 ra_pr24.o ../common/librt.a -lm
120 >        $(CC) $(CFLAGS) -o ra_pr24 ra_pr24.o -lrt $(MLIB)
121  
122 < ra_t8:  ra_t8.o ciq.o cut.o closest.o biq.o
123 <        cc $(CFLAGS) -o ra_t8 ra_t8.o ciq.o cut.o closest.o \
98 < biq.o ../common/librt.a -lm
122 > ra_avs: ra_avs.o
123 >        $(CC) $(CFLAGS) -o ra_avs ra_avs.o -lrt $(MLIB)
124  
125 + ra_ps:  ra_ps.o
126 +        $(CC) $(CFLAGS) -o ra_ps ra_ps.o -lrt $(MLIB)
127 +
128 + ra_ppm:         ra_ppm.o
129 +        $(CC) $(CFLAGS) -o ra_ppm ra_ppm.o -lrt $(MLIB)
130 +
131 + ra_t8:  ra_t8.o clrtab.o neuclrtab.o
132 +        $(CC) $(CFLAGS) -o ra_t8 ra_t8.o clrtab.o neuclrtab.o -lrt $(MLIB)
133 +
134   ra_t16: ra_t16.o
135 <        cc $(CFLAGS) -o ra_t16 ra_t16.o ../common/librt.a -lm
135 >        $(CC) $(CFLAGS) -o ra_t16 ra_t16.o -lrt $(MLIB)
136  
137   ra_im: ra_im.o
138 <        cc $(CFLAGS) -n -o ra_im ra_im.o
138 >        $(CC) $(CFLAGS) -o ra_im ra_im.o
139  
140   ra_bn: ra_bn.o
141 <        cc $(CFLAGS) -o ra_bn ra_bn.o ../common/librt.a -lm
141 >        $(CC) $(CFLAGS) -o ra_bn ra_bn.o -lrt $(MLIB)
142  
143 + ra_rgbe:        ra_rgbe.o
144 +        $(CC) $(CFLAGS) -o ra_rgbe ra_rgbe.o -lrt $(MLIB)
145 +
146 + ra_pict:    ra_pict.o
147 +        $(CC) $(CFLAGS) -o ra_pict ra_pict.o -lrt $(MLIB)
148 +
149 +
150   x10image:       ximage.o ciq.o cut.o closest.o xraster.o biq.o
151 <        cc $(CFLAGS) -o x10image ximage.o xraster.o \
152 < ciq.o cut.o closest.o biq.o -lX ../common/librt.a -lm
151 >        $(CC) $(CFLAGS) -o x10image ximage.o xraster.o \
152 > ciq.o cut.o closest.o biq.o -lX -lrt $(MLIB)
153  
154 < ximage: x11image.o ciq.o cut.o closest.o x11raster.o biq.o
155 <        cc $(CFLAGS) -o ximage x11image.o x11raster.o \
156 < ciq.o cut.o closest.o biq.o -lX11 ../common/librt.a -lm
154 > ximage: x11image.o x11raster.o clrtab.o
155 >        $(CC) $(CFLAGS) -o ximage x11image.o x11raster.o \
156 > clrtab.o -lX11 -lrt $(MLIB)
157  
158 < prot:           prot.o
159 <        cc $(CFLAGS) -o prot prot.o ../common/librt.a
158 > protate:                protate.o
159 >        $(CC) $(CFLAGS) -o protate protate.o -lrt
160  
161 + pextrem:        pextrem.o
162 +        $(CC) $(CFLAGS) -o pextrem pextrem.o -lrt
163 +
164   pflip:          pflip.o
165 <        cc $(CFLAGS) -o pflip pflip.o ../common/librt.a
165 >        $(CC) $(CFLAGS) -o pflip pflip.o -lrt
166  
167   panim:  panim.o client/libclient.a
168 <        cc $(CFLAGS) -o panim panim.o \
169 < ../common/librt.a client/libclient.a -lrpcsvc -lm
168 >        $(CC) $(CFLAGS) -o panim panim.o \
169 > -lrt client/libclient.a -lrpcsvc $(MLIB)
170  
171   pcomb:  pcomb.o
172 <        cc $(CFLAGS) -o pcomb pcomb.o ../common/librt.a -lm
172 >        $(CC) $(CFLAGS) -o pcomb pcomb.o -lrt $(MLIB)
173  
174   pinterp:        pinterp.o
175 <        cc $(CFLAGS) -o pinterp pinterp.o ../common/librt.a -lm
175 >        $(CC) $(CFLAGS) -o pinterp pinterp.o -lrt $(MLIB)
176  
177 < ra_tiff:        ra_tiff.o libtiff/libtiff.a
178 <        cc $(CFLAGS) -o ra_tiff ra_tiff.o ../common/librt.a \
135 < libtiff/libtiff.a -lm
177 > ra_xyze:        ra_xyze.o
178 >        $(CC) $(CFLAGS) -o ra_xyze ra_xyze.o -lrt $(MLIB)
179  
180 < ra_tiff.o:      ra_tiff.c libtiff/tiffio.h libtiff/tiff.h
181 <        cc $(CFLAGS) -Ilibtiff -c ra_tiff.c
180 > ra_tiff:        ra_tiff.o ../lib/libtiff.a
181 >        $(CC) $(CFLAGS) -o ra_tiff ra_tiff.o -lrt -ltiff $(MLIB)
182  
183 < libtiff/libtiff.a:
184 <        maketiff
183 > ra_tiff.o:      ra_tiff.c
184 >        $(CC) $(CFLAGS) -Ilibtiff -c ra_tiff.c
185  
186 + ../lib/libtiff.a:
187 +        cd libtiff ; make -f Makefile.$(ARCH) ; \
188 +        mv libtiff.a ../../lib ; make clean
189 +
190   ra_pixar:       ra_pixar.o ra_pixar.c
191 <        cc $(CFLAGS) $(PIXAR_INCLUDE) -o $@ ra_pixar.o ../common/librt.a \
191 >        $(CC) $(CFLAGS) $(PIXAR_INCLUDE) -o $@ ra_pixar.o -lrt \
192   $(PIXAR_LIB)
193  
194   ra_pixar.o:     ra_pixar.c
195 <        cc $(CFLAGS) $(PIXAR_INCLUDE) -c ra_pixar.c
195 >        $(CC) $(CFLAGS) $(PIXAR_INCLUDE) -c ra_pixar.c
196  
197   xshowtrace:     xshowtrace.o x11findwind.o
198 <        cc $(CFLAGS) -o xshowtrace xshowtrace.o \
199 < x11findwind.o ../common/librt.a -lm -lX11
198 >        $(CC) $(CFLAGS) -o xshowtrace xshowtrace.o \
199 > x11findwind.o -lrt $(MLIB) -lX11
200  
201 < xshowtrace.o:   ../common/view.h ../common/standard.h \
202 < ../common/mat4.h ../common/fvect.h
201 > macbethcal:     macbethcal.o pmapgen.o mx3.o
202 >        $(CC) $(CFLAGS) -o macbethcal macbethcal.o pmapgen.o mx3.o -lrt $(MLIB)
203  
204 +
205 + macbethcal.o:   pmap.h ../common/color.h ../common/resolu.h
206 +
207 + pmapgen.o:      mx3.h pmap.h
208 +
209 + nclrtab.o:      neuclrtab.o
210 +        ln neuclrtab.c nclrtab.c
211 +        $(CC) $(CFLAGS) -DCOMPAT_MODE -c nclrtab.c
212 +        rm -f nclrtab.c
213 +
214   pcomb.o:        ../common/calcomp.h
215  
216   panim.o:        client/scan.h ../common/color.h ../common/random.h
217  
218 < pf2.o bnoise.o ra_t16.o:        ../common/random.h
218 > pf2.o bnoise.o ra_ps.o ra_t16.o:        ../common/random.h
219  
220 < pfilt.o pf2.o ttyimage.o t4027.o mt160r.o psum.o psign.o prot.o ra_pr24.o \
221 < d48c.o aedimage.o pcompos.o color.o resolu.o colrops.o pflip.o \
222 < greyscale.o ra_t8.o glimage.o ra_bn.o ra_t16.o \
223 < ra_pr.o pvalue.o pcomb.o pinterp.o ximage.o:    ../common/color.h
220 > neuclrtab.o clrtab.o pfilt.o pf2.o pf3.o ttyimage.o t4027.o mt160r.o \
221 > psum.o psign.o protate.o \
222 > pextrem.o ra_pr24.o d48c.o aedimage.o pcompos.o color.o resolu.o colrops.o \
223 > pflip.o greyscale.o ra_t8.o glimage.o ra_bn.o ra_t16.o ra_tiff.o ra_pict.o \
224 > ra_ps.o ra_pr.o pvalue.o pcomb.o pinterp.o ximage.o:    ../common/color.h
225  
226 < prot.o biq.o ciq.o pinterp.o ximage.o \
227 < image.o:        ../common/standard.h ../common/mat4.h ../common/fvect.h
226 > neuclrtab.o pvalue.o protate.o biq.o ciq.o pinterp.o ximage.o psign.o \
227 > xshowtrace.o clrtab.o pcomb.o pfilt.o pf3.o image.o:    ../common/standard.h \
228 > ../common/mat4.h ../common/fvect.h
229  
230   ximage.o xraster.o:     xraster.h
231  
# Line 178 | Line 237 | aedimage.o ximage.o ra_t8.o ra_pr.o:   pic.h
237  
238   ciq.o cut.o closest.o biq.o:    pic.h ciq.h
239  
240 < pinterp.o ximage.o image.o:     ../common/view.h
240 > pinterp.o ximage.o x11showtrace.o image.o:      ../common/view.h
241 >
242 > ra_pict.o:      pict.h
243 >
244 > mt160r.o oki20c.o paintjet.o pcomb.o pcompos.o pfilt.o pflip.o \
245 > pinterp.o protate.o pvalue.o ra_bn.o ra_pict.o ra_pixar.o \
246 > ra_ppm.o ra_pr.o ra_pr24.o ra_rgbe.o ra_t16.o ra_t8.o glimage.o \
247 > ra_tiff.o ttyimage.o ximage.o x11image.o:       ../common/resolu.h
248 >
249 > pfilt.o:        ../common/paths.h ../common/view.h
250 >
251 > psign.o:        ../common/font.h
252 >
253 > pcond.o pcond2.o pcond3.o pcond4.o:     pcond.h ../common/standard.h \
254 > ../common/mat4.h ../common/fvect.h \
255 > ../common/color.h ../common/view.h ../common/resolu.h

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines