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 2.7 by greg, Tue Sep 8 10:33:56 1992 UTC vs.
Revision 2.41 by gwlarson, Thu Sep 3 10:48:57 1998 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines