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.16 by greg, Thu Dec 9 17:30:40 1993 UTC vs.
Revision 2.62 by greg, Sat Sep 17 05:14:14 2005 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
22  
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
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
29 > install:        $(PROGS) $(SPECIAL) normpat.csh falsecolor.csh \
30 > pdfblur.csh pmblur.csh pmdblur.csh xyzimage.csh pgblur.csh ra_pfm.csh
31          cp $(PROGS) $(INSTDIR)
32          cp normpat.csh $(INSTDIR)/normpat
33          cp falsecolor.csh $(INSTDIR)/falsecolor
34 <        chmod 755 $(INSTDIR)/normpat $(INSTDIR)/falsecolor
34 >        cp pdfblur.csh $(INSTDIR)/pdfblur
35 >        cp pmblur.csh $(INSTDIR)/pmblur
36 >        cp pmdblur.csh $(INSTDIR)/pmdblur
37 >        cp xyzimage.csh $(INSTDIR)/xyzimage
38 >        cp phisto.csh $(INSTDIR)/phisto
39 >        cp pdelta.csh $(INSTDIR)/pdelta
40 >        cp pgblur.csh $(INSTDIR)/pgblur
41 >        cp ra_pfm.csh $(INSTDIR)/ra_pfm
42 >        cp ran2tiff.csh $(INSTDIR)/ran2tiff
43 >        cd $(INSTDIR) ; chmod 755 normpat falsecolor pdfblur pmblur \
44 >        pmdblur xyzimage phisto pdelta pgblur ra_pfm ran2tiff
45  
46   clean:
47 <        set nonomatch; rm -f x10image aedimage glimage ra_tiff \
48 < $(PROGS) *.o core
47 >        rm -f $(PROGS) $(SPECIAL) *.o core
48 >        cd tiff; make distclean
49  
50   pfilt:  pfilt.o pf2.o pf3.o
51          $(CC) $(CFLAGS) -o pfilt pfilt.o pf2.o pf3.o -lrt $(MLIB)
52  
53 + pcond:  pcond.o pcond2.o pcond3.o pcond4.o warp3d.o
54 +        $(CC) $(CFLAGS) -o pcond pcond.o pcond2.o pcond3.o pcond4.o warp3d.o \
55 + -lrt $(MLIB)
56 +
57 + pcwarp: pcwarp.o warp3d.o
58 +        $(CC) $(CFLAGS) -o pcwarp pcwarp.o warp3d.o -lrt $(MLIB)
59 +
60   ttyimage:       ttyimage.o
61          $(CC) $(CFLAGS) -o ttyimage ttyimage.o -lrt $(MLIB)
62  
57 t4027:  t4027.o
58        $(CC) $(CFLAGS) -o t4027 t4027.o -lrt
59
60 glimage:        glimage.o
61        $(CC) $(CFLAGS) -o glimage glimage.o -lrt -lgl_s $(MLIB)
62
63 aedimage:       aedimage.o ciq.o cut.o closest.o biq.o
64        $(CC) $(CFLAGS) -o aedimage aedimage.o ciq.o cut.o closest.o \
65 biq.o -lrt $(MLIB)
66
67 oki20c: oki20c.o
68        $(CC) $(CFLAGS) -o oki20c oki20c.o -lrt $(MLIB)
69
70 oki20:  oki20.o
71        $(CC) $(CFLAGS) -o oki20 oki20.o -lrt $(MLIB)
72
73 paintjet:       paintjet.o
74        $(CC) $(CFLAGS) -o paintjet paintjet.o -lrt $(MLIB)
75
76 mt160r: mt160r.o
77        $(CC) $(CFLAGS) -o mt160r mt160r.o -lrt $(MLIB)
78
79 getinfo:        getinfo.o
80        $(CC) $(CFLAGS) -o getinfo getinfo.o -lrt
81
82 greyscale:      greyscale.o
83        $(CC) $(CFLAGS) -o greyscale greyscale.o -lrt $(MLIB)
84
85 colorscale:     colorscale.o
86        $(CC) $(CFLAGS) -o colorscale colorscale.o -lrt
87
63   pvalue: pvalue.o
64          $(CC) $(CFLAGS) -o pvalue pvalue.o -lrt $(MLIB)
65  
91 psum:   psum.o
92        $(CC) $(CFLAGS) -o psum psum.o -lrt
93
66   pcompos:        pcompos.o
67 <        $(CC) $(CFLAGS) -o pcompos pcompos.o -lrt
67 >        $(CC) $(CFLAGS) -o pcompos pcompos.o -lrt $(MLIB)
68  
69   psign:  psign.o
70 <        $(CC) $(CFLAGS) -o psign psign.o -lrt
70 >        $(CC) $(CFLAGS) -o psign psign.o -lrt $(MLIB)
71  
72 < d48c:   d48c.o
73 <        $(CC) $(CFLAGS) -o d48c d48c.o -lrt
72 > ra_gif: ra_gif.o clrtab.o neuclrtab.o
73 >        $(CC) $(CFLAGS) -o ra_gif ra_gif.o clrtab.o neuclrtab.o -lrt $(MLIB)
74  
103 ra_pr:  ra_pr.o ciq.o cut.o closest.o biq.o
104        $(CC) $(CFLAGS) -o ra_pr ra_pr.o ciq.o cut.o closest.o \
105 biq.o -lrt $(MLIB)
106
107 ra_pr24:        ra_pr24.o
108        $(CC) $(CFLAGS) -o ra_pr24 ra_pr24.o -lrt $(MLIB)
109
110 ra_avs: ra_avs.o
111        $(CC) $(CFLAGS) -o ra_avs ra_avs.o -lrt $(MLIB)
112
75   ra_ps:  ra_ps.o
76          $(CC) $(CFLAGS) -o ra_ps ra_ps.o -lrt $(MLIB)
77  
78   ra_ppm:         ra_ppm.o
79          $(CC) $(CFLAGS) -o ra_ppm ra_ppm.o -lrt $(MLIB)
80  
81 < ra_t8:  ra_t8.o clrtab.o
82 <        $(CC) $(CFLAGS) -o ra_t8 ra_t8.o clrtab.o -lrt $(MLIB)
81 > ra_bmp:         ra_bmp.o
82 >        $(CC) $(CFLAGS) -o ra_bmp ra_bmp.o -lrt $(MLIB)
83  
84 + ra_t8:  ra_t8.o clrtab.o neuclrtab.o
85 +        $(CC) $(CFLAGS) -o ra_t8 ra_t8.o clrtab.o neuclrtab.o -lrt $(MLIB)
86 +
87   ra_t16: ra_t16.o
88          $(CC) $(CFLAGS) -o ra_t16 ra_t16.o -lrt $(MLIB)
89  
125 ra_im: ra_im.o
126        $(CC) $(CFLAGS) -o ra_im ra_im.o
127
128 ra_bn: ra_bn.o
129        $(CC) $(CFLAGS) -o ra_bn ra_bn.o -lrt $(MLIB)
130
90   ra_rgbe:        ra_rgbe.o
91          $(CC) $(CFLAGS) -o ra_rgbe ra_rgbe.o -lrt $(MLIB)
92  
93   ra_pict:    ra_pict.o
94          $(CC) $(CFLAGS) -o ra_pict ra_pict.o -lrt $(MLIB)
95  
96 + ra_hexbit:      ra_hexbit.o
97 +        $(CC) $(CFLAGS) -o ra_hexbit ra_hexbit.o -lrt $(MLIB)
98  
138 x10image:       ximage.o ciq.o cut.o closest.o xraster.o biq.o
139        $(CC) $(CFLAGS) -o x10image ximage.o xraster.o \
140 ciq.o cut.o closest.o biq.o -lX -lrt $(MLIB)
141
99   ximage: x11image.o x11raster.o clrtab.o
100          $(CC) $(CFLAGS) -o ximage x11image.o x11raster.o \
101 < clrtab.o -lX11 -lrt $(MLIB)
101 > clrtab.o -lrt -lX11 $(MLIB)
102  
103   protate:                protate.o
104 <        $(CC) $(CFLAGS) -o protate protate.o -lrt
104 >        $(CC) $(CFLAGS) -o protate protate.o -lrt $(MLIB)
105  
106   pextrem:        pextrem.o
107 <        $(CC) $(CFLAGS) -o pextrem pextrem.o -lrt
107 >        $(CC) $(CFLAGS) -o pextrem pextrem.o -lrt $(MLIB)
108  
109   pflip:          pflip.o
110 <        $(CC) $(CFLAGS) -o pflip pflip.o -lrt
110 >        $(CC) $(CFLAGS) -o pflip pflip.o -lrt $(MLIB)
111  
155 panim:  panim.o client/libclient.a
156        $(CC) $(CFLAGS) -o panim panim.o \
157 -lrt client/libclient.a -lrpcsvc $(MLIB)
158
112   pcomb:  pcomb.o
113          $(CC) $(CFLAGS) -o pcomb pcomb.o -lrt $(MLIB)
114  
115   pinterp:        pinterp.o
116          $(CC) $(CFLAGS) -o pinterp pinterp.o -lrt $(MLIB)
117  
118 + ra_xyze:        ra_xyze.o
119 +        $(CC) $(CFLAGS) -o ra_xyze ra_xyze.o -lrt $(MLIB)
120 +
121   ra_tiff:        ra_tiff.o ../lib/libtiff.a
122          $(CC) $(CFLAGS) -o ra_tiff ra_tiff.o -lrt -ltiff $(MLIB)
123  
124 < psign.o:        psign.c ../common/font.h
125 <        $(CC) $(CFLAGS) -DDEFPATH=\":$(LIBDIR)\" -c psign.c
124 > ../common/tiff.h ../common/tiffio.h:    ../lib/libtiff.a
125 >        @chmod u+w ../common/tiff.h ../common/tiffio.h
126 >        @touch ../common/tiff.h ../common/tiffio.h
127  
128 < ra_tiff.o:      ra_tiff.c
129 <        $(CC) $(CFLAGS) -Ilibtiff -c ra_tiff.c
128 > normtiff:       normtiff.o ../lib/libtiff.a
129 >        $(CC) $(CFLAGS) -o normtiff normtiff.o -lrt -ltiff $(MLIB)
130  
131   ../lib/libtiff.a:
132 <        cd libtiff ; make -f Makefile.$(ARCH) ; \
133 <        mv libtiff.a ../../lib ; make clean
132 >        cd tiff ; ./configure -C -quiet -with-CC=$(CC) \
133 >                "--libdir=`pwd`/../../lib" "--includedir=`pwd`/../../common" \
134 >                --enable-static --disable-shared --disable-cxx \
135 >                --enable-logluv --disable-jpeg \
136 >                --disable-zlib --disable-pixarlog \
137 >                "-with-ENVOPTS=$(OPT)" ; \
138 >        cd port ; make all ; \
139 >        cd ../libtiff ; make install
140  
178 ra_pixar:       ra_pixar.o ra_pixar.c
179        $(CC) $(CFLAGS) $(PIXAR_INCLUDE) -o $@ ra_pixar.o -lrt \
180 $(PIXAR_LIB)
181
182 ra_pixar.o:     ra_pixar.c
183        $(CC) $(CFLAGS) $(PIXAR_INCLUDE) -c ra_pixar.c
184
141   xshowtrace:     xshowtrace.o x11findwind.o
142          $(CC) $(CFLAGS) -o xshowtrace xshowtrace.o \
143 < x11findwind.o -lrt $(MLIB) -lX11
143 > x11findwind.o -lrt -lX11 $(MLIB)
144  
145 < pcomb.o:        ../common/calcomp.h
145 > macbethcal:     macbethcal.o pmapgen.o mx3.o warp3d.o
146 >        $(CC) $(CFLAGS) -o macbethcal macbethcal.o pmapgen.o mx3.o warp3d.o \
147 > -lrt $(MLIB)
148  
191 panim.o:        client/scan.h ../common/color.h ../common/random.h
149  
150 < pf2.o bnoise.o ra_ps.o ra_t16.o:        ../common/random.h
150 > macbethcal.o:   pmap.h ../common/color.h ../common/resolu.h
151  
152 < pfilt.o pf2.o pf3.o ttyimage.o t4027.o mt160r.o psum.o psign.o protate.o \
196 < pextrem.o ra_pr24.o d48c.o aedimage.o pcompos.o color.o resolu.o colrops.o \
197 < pflip.o greyscale.o ra_t8.o glimage.o ra_bn.o ra_t16.o ra_tiff.o ra_pict.o \
198 < ra_ps.o ra_pr.o pvalue.o pcomb.o pinterp.o ximage.o:    ../common/color.h
152 > macbethcal.o pcond2.o pcwarp.o warp3d.o:        warp3d.h ../common/lookup.h
153  
154 < pvalue.o protate.o biq.o ciq.o pinterp.o ximage.o psign.o xshowtrace.o \
201 < pcomb.o pfilt.o pf3.o image.o:  ../common/standard.h \
202 < ../common/mat4.h ../common/fvect.h
154 > pmapgen.o:      mx3.h pmap.h
155  
156 < ximage.o xraster.o:     xraster.h
156 > nclrtab.o:      neuclrtab.o
157 >        ln neuclrtab.c nclrtab.c
158 >        $(CC) $(CFLAGS) -DCOMPAT_MODE -c nclrtab.c
159 >        rm -f nclrtab.c
160  
161 + pcomb.o:        ../common/calcomp.h
162 +
163 + pf2.o ra_ps.o ra_t16.o: ../common/random.h
164 +
165 + neuclrtab.o clrtab.o pfilt.o pf2.o pf3.o ttyimage.o \
166 + psign.o protate.o ra_hexbit.o pextrem.o pcompos.o \
167 + pflip.o ra_t8.o ra_t16.o ra_tiff.o ra_pict.o \
168 + ra_ps.o pvalue.o pcomb.o pinterp.o:     ../common/color.h
169 +
170 + neuclrtab.o pvalue.o protate.o pinterp.o psign.o \
171 + xshowtrace.o clrtab.o pcomb.o pfilt.o pf3.o image.o:    ../common/standard.h \
172 + ../common/rtmisc.h ../common/rtio.h \
173 + ../common/rtmath.h ../common/mat4.h ../common/fvect.h \
174 + ../common/rterror.h ../common/tifftypes.h
175 +
176   x11image.o x11raster.o: x11raster.h
177  
178 + x11image.o:     ../common/tonemap.h ../common/color.h
179 +
180   ra_t8.o:        ../common/targa.h
181  
182 < aedimage.o ximage.o ra_t8.o ra_pr.o:    pic.h
182 > ra_tiff.o normtiff.o:   ../common/tiff.h ../common/tiffio.h
183  
184 < ciq.o cut.o closest.o biq.o:    pic.h ciq.h
184 > ra_t8.o:        pic.h
185  
186 < pinterp.o ximage.o x11showtrace.o image.o:      ../common/view.h
186 > pcomb.o pfilt.o pinterp.o x11image.o x11showtrace.o \
187 > image.o:        ../common/view.h ../common/resolu.h
188  
189   ra_pict.o:      pict.h
190  
191 < mt160r.o oki20c.o paintjet.o pcomb.o pcompos.o pfilt.o pflip.o \
192 < pinterp.o protate.o pvalue.o ra_bn.o ra_pict.o ra_pixar.o \
193 < ra_ppm.o ra_pr.o ra_pr24.o ra_rgbe.o ra_t16.o ra_t8.o glimage.o \
194 < ra_tiff.o ttyimage.o ximage.o x11image.o:       ../common/resolu.h
191 > pcompos.o pfilt.o pflip.o \
192 > pinterp.o protate.o pvalue.o ra_pict.o ra_hexbit.o \
193 > ra_ppm.o ra_rgbe.o ra_t16.o ra_t8.o \
194 > ra_tiff.o ttyimage.o:   ../common/resolu.h
195  
196 < pfilt.o psign.o:        ../common/paths.h
196 > pfilt.o:        ../common/paths.h
197 >
198 > psign.o:        ../common/font.h
199 >
200 > pcond.o pcond2.o pcond3.o pcond4.o:     pcond.h ../common/standard.h \
201 > ../common/rtmisc.h ../common/rtio.h \
202 > ../common/rtmath.h ../common/mat4.h ../common/fvect.h \
203 > ../common/rterror.h ../common/tifftypes.h \
204 > ../common/color.h ../common/view.h ../common/resolu.h
205 >
206 > normtiff.o:     ../common/color.h ../common/tonemap.h ../common/resolu.h
207 >
208 > ra_bmp.o:       ../common/bmpfile.h ../common/color.h \
209 > ../common/tonemap.h ../common/resolu.h
210 >
211 > x11findwind.c:  ../common/x11findwind.c
212 >        cp ../common/x11findwind.c .

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines