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.39 by gwlarson, Tue Jun 9 16:46:57 1998 UTC vs.
Revision 2.58 by greg, Fri Jul 8 16:04:57 2005 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines