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.29 by greg, Thu Oct 3 16:53:17 1996 UTC vs.
Revision 2.69 by greg, Fri Oct 5 00:59:38 2012 UTC

# Line 1 | Line 1
1 < #  Compiles for image processing and display programs
2 < # SCCSid "$SunId$ LBL"
1 > # RCSid: $Id$
2   #
3 + # Compiles for image processing and display programs
4 + #
5  
6   ARCH = sun
7   OPT = -O
8   MACH = -DBSD
9 < SPECIAL = aed tiff
10 < CFLAGS = $(OPT) $(MACH) -I../common -L../lib
9 > SPECIAL =
10 > CFLAGS = -I../common -L../lib $(OPT) $(MACH)
11   CC = cc
12   MLIB = -lm
13  
# Line 14 | Line 15 | INSTDIR = /usr/local/bin
15  
16   LIBDIR = /usr/local/lib/ray
17  
18 < PIXAR_INCLUDE=  -I/usr/pixar/include
19 < PIXAR_LIB=      -L/usr/pixar/host/lib -lpirl -lpicio -lchad -lpixar $(MLIB)
18 > PROGS = pfilt ttyimage psign ra_tiff normtiff \
19 > pvalue pcompos protate ra_hexbit ra_bmp \
20 > ra_t8 ra_t16 pcomb pinterp pflip ra_ppm ximage xshowtrace \
21 > ra_rgbe ra_pict ra_ps pextrem ra_gif ra_xyze macbethcal pcond pcwarp pmblur2
22  
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
23   all:    $(PROGS) $(SPECIAL)
24  
25 < x10:    x10image
28 <        cp x10image $(INSTDIR)
25 > ogl:
26  
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
27   sun:
28  
29 < install:        $(PROGS) $(SPECIAL) normpat.csh falsecolor.csh \
30 < pdfblur.csh pmblur.csh xyzimage.csh
29 > install:        $(PROGS) $(SPECIAL) normpat.csh falsecolor.pl \
30 > pdfblur.csh pmblur.csh pmdblur.csh xyzimage.csh pgblur.csh ra_pfm.csh \
31 > pbilat.csh
32          cp $(PROGS) $(INSTDIR)
33          cp normpat.csh $(INSTDIR)/normpat
34 <        cp falsecolor.csh $(INSTDIR)/falsecolor
46 <        cp pacuity.csh $(INSTDIR)/pacuity
34 >        cp falsecolor.pl $(INSTDIR)/falsecolor
35          cp pdfblur.csh $(INSTDIR)/pdfblur
36          cp pmblur.csh $(INSTDIR)/pmblur
37 <        cp psquish.csh $(INSTDIR)/psquish
50 <        cp pveil.csh $(INSTDIR)/pveil
37 >        cp pmdblur.csh $(INSTDIR)/pmdblur
38          cp xyzimage.csh $(INSTDIR)/xyzimage
39 <        chmod 755 $(INSTDIR)/normpat $(INSTDIR)/falsecolor \
40 < $(INSTDIR)/pdfblur $(INSTDIR)/pmblur $(INSTDIR)/xyzimage \
41 < $(INSTDIR)/pacuity $(INSTDIR)/psquish $(INSTDIR)/pveil
39 >        cp phisto.csh $(INSTDIR)/phisto
40 >        cp pdelta.csh $(INSTDIR)/pdelta
41 >        cp pgblur.csh $(INSTDIR)/pgblur
42 >        cp ra_pfm.csh $(INSTDIR)/ra_pfm
43 >        cp ran2tiff.csh $(INSTDIR)/ran2tiff
44 >        cp pbilat.csh $(INSTDIR)/pbilat
45 >        cd $(INSTDIR) ; chmod 755 normpat falsecolor pdfblur pmblur \
46 >        pmdblur xyzimage phisto pdelta pgblur ra_pfm ran2tiff pbilat
47  
48   clean:
49 <        set nonomatch; rm -f x10image aedimage glimage ra_tiff \
50 < $(PROGS) *.o core
49 >        rm -f $(PROGS) $(SPECIAL) *.o core x11findwind.c
50 >        cd tiff; make distclean
51  
52   pfilt:  pfilt.o pf2.o pf3.o
53 <        $(CC) $(CFLAGS) -o pfilt pfilt.o pf2.o pf3.o -lrt $(MLIB)
53 >        $(CC) $(CFLAGS) -o pfilt pfilt.o pf2.o pf3.o -lrtrad $(MLIB)
54  
55 < pcond:  pcond.o pcond2.o pcond3.o pcond4.o
56 <        $(CC) $(CFLAGS) -o pcond pcond.o pcond2.o pcond3.o pcond4.o -lrt $(MLIB)
55 > pcond:  pcond.o pcond2.o pcond3.o pcond4.o warp3d.o
56 >        $(CC) $(CFLAGS) -o pcond pcond.o pcond2.o pcond3.o pcond4.o warp3d.o \
57 > -lrtrad $(MLIB)
58  
59 + pcwarp: pcwarp.o warp3d.o
60 +        $(CC) $(CFLAGS) -o pcwarp pcwarp.o warp3d.o -lrtrad $(MLIB)
61 +
62   ttyimage:       ttyimage.o
63 <        $(CC) $(CFLAGS) -o ttyimage ttyimage.o -lrt $(MLIB)
63 >        $(CC) $(CFLAGS) -o ttyimage ttyimage.o -lrtrad $(MLIB)
64  
69 t4027:  t4027.o
70        $(CC) $(CFLAGS) -o t4027 t4027.o -lrt
71
72 glimage:        glimage.o
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 -lrt $(MLIB)
78
79 oki20c: oki20c.o
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 -lrt $(MLIB)
87
88 mt160r: mt160r.o
89        $(CC) $(CFLAGS) -o mt160r mt160r.o -lrt $(MLIB)
90
91 greyscale:      greyscale.o
92        $(CC) $(CFLAGS) -o greyscale greyscale.o -lrt $(MLIB)
93
94 colorscale:     colorscale.o
95        $(CC) $(CFLAGS) -o colorscale colorscale.o -lrt
96
65   pvalue: pvalue.o
66 <        $(CC) $(CFLAGS) -o pvalue pvalue.o -lrt $(MLIB)
66 >        $(CC) $(CFLAGS) -o pvalue pvalue.o -lrtrad $(MLIB)
67  
100 psum:   psum.o
101        $(CC) $(CFLAGS) -o psum psum.o -lrt
102
68   pcompos:        pcompos.o
69 <        $(CC) $(CFLAGS) -o pcompos pcompos.o -lrt
69 >        $(CC) $(CFLAGS) -o pcompos pcompos.o -lrtrad $(MLIB)
70  
71   psign:  psign.o
72 <        $(CC) $(CFLAGS) -o psign psign.o -lrt
72 >        $(CC) $(CFLAGS) -o psign psign.o -lrtrad $(MLIB)
73  
109 d48c:   d48c.o
110        $(CC) $(CFLAGS) -o d48c d48c.o -lrt
111
74   ra_gif: ra_gif.o clrtab.o neuclrtab.o
75 <        $(CC) $(CFLAGS) -o ra_gif ra_gif.o clrtab.o neuclrtab.o -lrt $(MLIB)
75 >        $(CC) $(CFLAGS) -o ra_gif ra_gif.o clrtab.o neuclrtab.o -lrtrad $(MLIB)
76  
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 -lrt $(MLIB)
118
119 ra_pr24:        ra_pr24.o
120        $(CC) $(CFLAGS) -o ra_pr24 ra_pr24.o -lrt $(MLIB)
121
122 ra_avs: ra_avs.o
123        $(CC) $(CFLAGS) -o ra_avs ra_avs.o -lrt $(MLIB)
124
77   ra_ps:  ra_ps.o
78 <        $(CC) $(CFLAGS) -o ra_ps ra_ps.o -lrt $(MLIB)
78 >        $(CC) $(CFLAGS) -o ra_ps ra_ps.o -lrtrad $(MLIB)
79  
80   ra_ppm:         ra_ppm.o
81 <        $(CC) $(CFLAGS) -o ra_ppm ra_ppm.o -lrt $(MLIB)
81 >        $(CC) $(CFLAGS) -o ra_ppm ra_ppm.o -lrtrad $(MLIB)
82  
83 + ra_bmp:         ra_bmp.o
84 +        $(CC) $(CFLAGS) -o ra_bmp ra_bmp.o -lrtrad $(MLIB)
85 +
86   ra_t8:  ra_t8.o clrtab.o neuclrtab.o
87 <        $(CC) $(CFLAGS) -o ra_t8 ra_t8.o clrtab.o neuclrtab.o -lrt $(MLIB)
87 >        $(CC) $(CFLAGS) -o ra_t8 ra_t8.o clrtab.o neuclrtab.o -lrtrad $(MLIB)
88  
89   ra_t16: ra_t16.o
90 <        $(CC) $(CFLAGS) -o ra_t16 ra_t16.o -lrt $(MLIB)
90 >        $(CC) $(CFLAGS) -o ra_t16 ra_t16.o -lrtrad $(MLIB)
91  
137 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 -lrt $(MLIB)
142
92   ra_rgbe:        ra_rgbe.o
93 <        $(CC) $(CFLAGS) -o ra_rgbe ra_rgbe.o -lrt $(MLIB)
93 >        $(CC) $(CFLAGS) -o ra_rgbe ra_rgbe.o -lrtrad $(MLIB)
94  
95   ra_pict:    ra_pict.o
96 <        $(CC) $(CFLAGS) -o ra_pict ra_pict.o -lrt $(MLIB)
96 >        $(CC) $(CFLAGS) -o ra_pict ra_pict.o -lrtrad $(MLIB)
97  
98 + ra_hexbit:      ra_hexbit.o
99 +        $(CC) $(CFLAGS) -o ra_hexbit ra_hexbit.o -lrtrad $(MLIB)
100  
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 -lrt $(MLIB)
153
101   ximage: x11image.o x11raster.o clrtab.o
102          $(CC) $(CFLAGS) -o ximage x11image.o x11raster.o \
103 < clrtab.o -lX11 -lrt $(MLIB)
103 > clrtab.o -lrtrad -lX11 $(MLIB)
104  
105   protate:                protate.o
106 <        $(CC) $(CFLAGS) -o protate protate.o -lrt
106 >        $(CC) $(CFLAGS) -o protate protate.o -lrtrad $(MLIB)
107  
108   pextrem:        pextrem.o
109 <        $(CC) $(CFLAGS) -o pextrem pextrem.o -lrt
109 >        $(CC) $(CFLAGS) -o pextrem pextrem.o -lrtrad $(MLIB)
110  
111   pflip:          pflip.o
112 <        $(CC) $(CFLAGS) -o pflip pflip.o -lrt
112 >        $(CC) $(CFLAGS) -o pflip pflip.o -lrtrad $(MLIB)
113  
167 panim:  panim.o client/libclient.a
168        $(CC) $(CFLAGS) -o panim panim.o \
169 -lrt client/libclient.a -lrpcsvc $(MLIB)
170
114   pcomb:  pcomb.o
115 <        $(CC) $(CFLAGS) -o pcomb pcomb.o -lrt $(MLIB)
115 >        $(CC) $(CFLAGS) -o pcomb pcomb.o -lrtrad $(MLIB)
116  
117   pinterp:        pinterp.o
118 <        $(CC) $(CFLAGS) -o pinterp pinterp.o -lrt $(MLIB)
118 >        $(CC) $(CFLAGS) -o pinterp pinterp.o -lrtrad $(MLIB)
119  
120 + pmblur2:        pmblur2.o
121 +        $(CC) $(CFLAGS) -o pmblur2 pmblur2.o -lrtrad $(MLIB)
122 +
123   ra_xyze:        ra_xyze.o
124 <        $(CC) $(CFLAGS) -o ra_xyze ra_xyze.o -lrt $(MLIB)
124 >        $(CC) $(CFLAGS) -o ra_xyze ra_xyze.o -lrtrad $(MLIB)
125  
126   ra_tiff:        ra_tiff.o ../lib/libtiff.a
127 <        $(CC) $(CFLAGS) -o ra_tiff ra_tiff.o -lrt -ltiff $(MLIB)
127 >        $(CC) $(CFLAGS) -o ra_tiff ra_tiff.o -lrtrad -ltiff $(MLIB)
128  
129 < ra_tiff.o:      ra_tiff.c
130 <        $(CC) $(CFLAGS) -Ilibtiff -c ra_tiff.c
129 > ../common/tiff.h ../common/tiffio.h:    ../lib/libtiff.a
130 >        @chmod u+w ../common/tiff.h ../common/tiffio.h
131 >        @touch ../common/tiff.h ../common/tiffio.h
132  
133 + normtiff:       normtiff.o ../lib/libtiff.a
134 +        $(CC) $(CFLAGS) -o normtiff normtiff.o -lrtrad -ltiff $(MLIB)
135 +
136   ../lib/libtiff.a:
137 <        cd libtiff ; make -f Makefile.$(ARCH) ; \
138 <        mv libtiff.a ../../lib ; make clean
137 >        cd tiff ; ./configure -C -quiet -with-CC=$(CC) \
138 >                "--libdir=`pwd`/../../lib" "--includedir=`pwd`/../../common" \
139 >                --enable-static --disable-shared --disable-cxx \
140 >                --enable-logluv --disable-jpeg \
141 >                --disable-zlib --disable-pixarlog \
142 >                "-with-ENVOPTS=$(OPT)" ; \
143 >        cd port ; make all ; \
144 >        cd ../libtiff ; make install
145  
190 ra_pixar:       ra_pixar.o ra_pixar.c
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
196
146   xshowtrace:     xshowtrace.o x11findwind.o
147          $(CC) $(CFLAGS) -o xshowtrace xshowtrace.o \
148 < x11findwind.o -lrt $(MLIB) -lX11
148 > x11findwind.o -lrtrad -lX11 $(MLIB)
149  
150 < macbethcal:     macbethcal.o pmapgen.o mx3.o
151 <        $(CC) $(CFLAGS) -o macbethcal macbethcal.o pmapgen.o mx3.o -lrt $(MLIB)
150 > macbethcal:     macbethcal.o pmapgen.o mx3.o warp3d.o
151 >        $(CC) $(CFLAGS) -o macbethcal macbethcal.o pmapgen.o mx3.o warp3d.o \
152 > -lrtrad $(MLIB)
153  
154  
155   macbethcal.o:   pmap.h ../common/color.h ../common/resolu.h
156  
157 + macbethcal.o pcond2.o pcwarp.o warp3d.o:        warp3d.h ../common/lookup.h
158 +
159   pmapgen.o:      mx3.h pmap.h
160  
161   nclrtab.o:      neuclrtab.o
# Line 213 | Line 165 | nclrtab.o:     neuclrtab.o
165  
166   pcomb.o:        ../common/calcomp.h
167  
168 < panim.o:        client/scan.h ../common/color.h ../common/random.h
168 > pf2.o ra_ps.o ra_t16.o: ../common/random.h
169  
170 < pf2.o bnoise.o ra_ps.o ra_t16.o:        ../common/random.h
170 > neuclrtab.o clrtab.o pfilt.o pf2.o pf3.o ttyimage.o \
171 > psign.o protate.o ra_hexbit.o pextrem.o pcompos.o \
172 > pflip.o ra_t8.o ra_t16.o ra_tiff.o ra_pict.o pmblur2.o \
173 > ra_ps.o pvalue.o pcomb.o pinterp.o:     ../common/color.h
174  
175 < 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 < neuclrtab.o pvalue.o protate.o biq.o ciq.o pinterp.o ximage.o psign.o \
175 > neuclrtab.o pvalue.o protate.o pinterp.o psign.o pmblur2.o \
176   xshowtrace.o clrtab.o pcomb.o pfilt.o pf3.o image.o:    ../common/standard.h \
177 < ../common/mat4.h ../common/fvect.h
177 > ../common/rtmisc.h ../common/rtio.h \
178 > ../common/rtmath.h ../common/mat4.h ../common/fvect.h \
179 > ../common/rterror.h
180  
230 ximage.o xraster.o:     xraster.h
231
181   x11image.o x11raster.o: x11raster.h
182  
183 + x11image.o:     ../common/tonemap.h ../common/color.h
184 +
185   ra_t8.o:        ../common/targa.h
186  
187 < aedimage.o ximage.o ra_t8.o ra_pr.o:    pic.h
187 > ra_tiff.o normtiff.o:   ../common/tiff.h ../common/tiffio.h
188  
189 < ciq.o cut.o closest.o biq.o:    pic.h ciq.h
189 > ra_t8.o:        pic.h
190  
191 < pinterp.o ximage.o x11showtrace.o image.o:      ../common/view.h
191 > pcomb.o pfilt.o pinterp.o x11image.o x11showtrace.o \
192 > image.o:        ../common/view.h ../common/resolu.h
193  
194   ra_pict.o:      pict.h
195  
196 < mt160r.o oki20c.o paintjet.o pcomb.o pcompos.o pfilt.o pflip.o \
197 < pinterp.o protate.o pvalue.o ra_bn.o ra_pict.o ra_pixar.o \
198 < ra_ppm.o ra_pr.o ra_pr24.o ra_rgbe.o ra_t16.o ra_t8.o glimage.o \
199 < ra_tiff.o ttyimage.o ximage.o x11image.o:       ../common/resolu.h
196 > pcompos.o pfilt.o pflip.o \
197 > pinterp.o protate.o pvalue.o ra_pict.o ra_hexbit.o \
198 > ra_ppm.o ra_rgbe.o ra_t16.o ra_t8.o \
199 > ra_tiff.o ttyimage.o:   ../common/resolu.h
200  
201 < pfilt.o:        ../common/paths.h ../common/view.h
201 > pfilt.o:        ../common/paths.h
202  
203   psign.o:        ../common/font.h
204  
205   pcond.o pcond2.o pcond3.o pcond4.o:     pcond.h ../common/standard.h \
206 < ../common/mat4.h ../common/fvect.h \
207 < ../common/color.h ../common/view.h ../common/resolu.h
206 > ../common/rtmisc.h ../common/rtio.h \
207 > ../common/rtmath.h ../common/mat4.h ../common/fvect.h \
208 > ../common/rterror.h ../common/color.h ../common/view.h ../common/resolu.h
209  
210 < pcond.o:        ../common/random.h
210 > normtiff.o:     ../common/color.h ../common/tonemap.h ../common/resolu.h
211 >
212 > ra_bmp.o:       ../common/bmpfile.h ../common/color.h \
213 > ../common/tonemap.h ../common/resolu.h
214 >
215 > x11findwind.c:  ../common/x11findwind.c
216 >        cp ../common/x11findwind.c .
217 >
218 > macbethcal.o normtiff.o pcomb.o pcompos.o pcond.o pextrem.o pfilt.o \
219 > pflip.o psign.o pvalue.o ra_bmp.o ra_gif.o ra_pict.o ra_ppm.o ra_ps.o \
220 > ra_rgbe.o ra_skel.o ra_t16.o ra_t8.o ra_tiff.o ra_xyze.o pmblur2.o \
221 > ttyimage.o:     ../common/platform.h

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines