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.24 by greg, Wed Dec 13 14:07:08 1995 UTC vs.
Revision 2.54 by greg, Fri Nov 5 03:31:38 2004 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 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 getinfo psign \
22 < greyscale pvalue pcompos colorscale protate ra_pr ra_pr24 ra_avs \
23 < ra_t8 ra_bn ra_t16 pcomb pinterp ximage xshowtrace pflip ra_ppm \
24 < ra_rgbe ra_pict ra_ps pextrem ra_gif ra_xyze macbethcal
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  
28 < x10:    x10image
28 <        cp x10image $(INSTDIR)
28 > ogl:
29  
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
30   sun:
31  
32   install:        $(PROGS) $(SPECIAL) normpat.csh falsecolor.csh \
33 < pdfblur.csh pmblur.csh
33 > pdfblur.csh pmblur.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 <        chmod 755 $(INSTDIR)/normpat $(INSTDIR)/falsecolor \
40 < $(INSTDIR)/pdfblur $(INSTDIR)/pmblur
39 >        cp xyzimage.csh $(INSTDIR)/xyzimage
40 >        cp phisto.csh $(INSTDIR)/phisto
41 >        cp pdelta.csh $(INSTDIR)/pdelta
42 >        cp pgblur.csh $(INSTDIR)/pgblur
43 >        cd $(INSTDIR) ; chmod 755 normpat falsecolor pdfblur \
44 >                pmblur xyzimage phisto pdelta pgblur
45  
46   clean:
47 <        set nonomatch; rm -f x10image aedimage glimage ra_tiff \
48 < $(PROGS) *.o core
47 >        set nonomatch; 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  
61 t4027:  t4027.o
62        $(CC) $(CFLAGS) -o t4027 t4027.o -lrt
63
64 glimage:        glimage.o
65        $(CC) $(CFLAGS) -o glimage glimage.o -lrt -lgl_s $(MLIB)
66
67 aedimage:       aedimage.o ciq.o cut.o closest.o biq.o
68        $(CC) $(CFLAGS) -o aedimage aedimage.o ciq.o cut.o closest.o \
69 biq.o -lrt $(MLIB)
70
71 oki20c: oki20c.o
72        $(CC) $(CFLAGS) -o oki20c oki20c.o -lrt $(MLIB)
73
74 oki20:  oki20.o
75        $(CC) $(CFLAGS) -o oki20 oki20.o -lrt $(MLIB)
76
77 paintjet:       paintjet.o
78        $(CC) $(CFLAGS) -o paintjet paintjet.o -lrt $(MLIB)
79
80 mt160r: mt160r.o
81        $(CC) $(CFLAGS) -o mt160r mt160r.o -lrt $(MLIB)
82
83 getinfo:        getinfo.o
84        $(CC) $(CFLAGS) -o getinfo getinfo.o -lrt
85
86 greyscale:      greyscale.o
87        $(CC) $(CFLAGS) -o greyscale greyscale.o -lrt $(MLIB)
88
89 colorscale:     colorscale.o
90        $(CC) $(CFLAGS) -o colorscale colorscale.o -lrt
91
63   pvalue: pvalue.o
64          $(CC) $(CFLAGS) -o pvalue pvalue.o -lrt $(MLIB)
65  
95 psum:   psum.o
96        $(CC) $(CFLAGS) -o psum psum.o -lrt
97
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  
104 d48c:   d48c.o
105        $(CC) $(CFLAGS) -o d48c d48c.o -lrt
106
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  
110 ra_pr:  ra_pr.o ciq.o cut.o closest.o biq.o
111        $(CC) $(CFLAGS) -o ra_pr ra_pr.o ciq.o cut.o closest.o \
112 biq.o -lrt $(MLIB)
113
114 ra_pr24:        ra_pr24.o
115        $(CC) $(CFLAGS) -o ra_pr24 ra_pr24.o -lrt $(MLIB)
116
117 ra_avs: ra_avs.o
118        $(CC) $(CFLAGS) -o ra_avs ra_avs.o -lrt $(MLIB)
119
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_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  
132 ra_im: ra_im.o
133        $(CC) $(CFLAGS) -o ra_im ra_im.o
134
135 ra_bn: ra_bn.o
136        $(CC) $(CFLAGS) -o ra_bn ra_bn.o -lrt $(MLIB)
137
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  
145 x10image:       ximage.o ciq.o cut.o closest.o xraster.o biq.o
146        $(CC) $(CFLAGS) -o x10image ximage.o xraster.o \
147 ciq.o cut.o closest.o biq.o -lX -lrt $(MLIB)
148
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  
162 panim:  panim.o client/libclient.a
163        $(CC) $(CFLAGS) -o panim panim.o \
164 -lrt client/libclient.a -lrpcsvc $(MLIB)
165
112   pcomb:  pcomb.o
113          $(CC) $(CFLAGS) -o pcomb pcomb.o -lrt $(MLIB)
114  
# Line 175 | Line 121 | ra_xyze:       ra_xyze.o
121   ra_tiff:        ra_tiff.o ../lib/libtiff.a
122          $(CC) $(CFLAGS) -o ra_tiff ra_tiff.o -lrt -ltiff $(MLIB)
123  
124 < ra_tiff.o:      ra_tiff.c
125 <        $(CC) $(CFLAGS) -Ilibtiff -c ra_tiff.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 < ../lib/libtiff.a:
129 <        cd libtiff ; make -f Makefile.$(ARCH) ; \
183 <        mv libtiff.a ../../lib ; make clean
128 > normtiff:       normtiff.o ../lib/libtiff.a
129 >        $(CC) $(CFLAGS) -o normtiff normtiff.o -lrt -ltiff $(MLIB)
130  
131 < ra_pixar:       ra_pixar.o ra_pixar.c
132 <        $(CC) $(CFLAGS) $(PIXAR_INCLUDE) -o $@ ra_pixar.o -lrt \
133 < $(PIXAR_LIB)
131 > ../lib/libtiff.a:       tiff/config.local
132 >        cd tiff ; sh configure -quiet -noninteractive -with-CC=$(CC) \
133 >                "-with-ENVOPTS=$(OPT)" ; \
134 >        cd libtiff ; make install
135  
189 ra_pixar.o:     ra_pixar.c
190        $(CC) $(CFLAGS) $(PIXAR_INCLUDE) -c ra_pixar.c
191
136   xshowtrace:     xshowtrace.o x11findwind.o
137          $(CC) $(CFLAGS) -o xshowtrace xshowtrace.o \
138 < x11findwind.o -lrt $(MLIB) -lX11
138 > x11findwind.o -lrt -lX11 $(MLIB)
139  
140 < macbethcal:     macbethcal.o pmapgen.o mx3.o
141 <        $(CC) $(CFLAGS) -o macbethcal macbethcal.o pmapgen.o mx3.o -lrt $(MLIB)
140 > macbethcal:     macbethcal.o pmapgen.o mx3.o warp3d.o
141 >        $(CC) $(CFLAGS) -o macbethcal macbethcal.o pmapgen.o mx3.o warp3d.o \
142 > -lrt $(MLIB)
143  
144  
145   macbethcal.o:   pmap.h ../common/color.h ../common/resolu.h
146  
147 + macbethcal.o pcond2.o pcwarp.o warp3d.o:        warp3d.h ../common/lookup.h
148 +
149   pmapgen.o:      mx3.h pmap.h
150  
151   nclrtab.o:      neuclrtab.o
# Line 208 | Line 155 | nclrtab.o:     neuclrtab.o
155  
156   pcomb.o:        ../common/calcomp.h
157  
158 < panim.o:        client/scan.h ../common/color.h ../common/random.h
158 > pf2.o ra_ps.o ra_t16.o: ../common/random.h
159  
160 < pf2.o bnoise.o ra_ps.o ra_t16.o:        ../common/random.h
160 > neuclrtab.o clrtab.o pfilt.o pf2.o pf3.o ttyimage.o \
161 > psign.o protate.o ra_hexbit.o pextrem.o pcompos.o \
162 > pflip.o ra_t8.o ra_t16.o ra_tiff.o ra_pict.o \
163 > ra_ps.o pvalue.o pcomb.o pinterp.o:     ../common/color.h
164  
165 < neuclrtab.o clrtab.o pfilt.o pf2.o pf3.o ttyimage.o t4027.o mt160r.o \
216 < psum.o psign.o protate.o \
217 < pextrem.o ra_pr24.o d48c.o aedimage.o pcompos.o color.o resolu.o colrops.o \
218 < pflip.o greyscale.o ra_t8.o glimage.o ra_bn.o ra_t16.o ra_tiff.o ra_pict.o \
219 < ra_ps.o ra_pr.o pvalue.o pcomb.o pinterp.o ximage.o:    ../common/color.h
220 <
221 < neuclrtab.o pvalue.o protate.o biq.o ciq.o pinterp.o ximage.o psign.o \
165 > neuclrtab.o pvalue.o protate.o biq.o ciq.o pinterp.o psign.o \
166   xshowtrace.o clrtab.o pcomb.o pfilt.o pf3.o image.o:    ../common/standard.h \
167 < ../common/mat4.h ../common/fvect.h
167 > ../common/rtmisc.h ../common/rtio.h \
168 > ../common/rtmath.h ../common/mat4.h ../common/fvect.h \
169 > ../common/rterror.h ../common/tifftypes.h
170  
225 ximage.o xraster.o:     xraster.h
226
171   x11image.o x11raster.o: x11raster.h
172  
173 + x11image.o:     ../common/tonemap.h ../common/color.h
174 +
175   ra_t8.o:        ../common/targa.h
176  
177 < aedimage.o ximage.o ra_t8.o ra_pr.o:    pic.h
177 > ra_tiff.o normtiff.o:   ../common/tiff.h ../common/tiffio.h
178  
179 + ra_t8.o:        pic.h
180 +
181   ciq.o cut.o closest.o biq.o:    pic.h ciq.h
182  
183 < pinterp.o ximage.o x11showtrace.o image.o:      ../common/view.h
183 > pcomb.o pfilt.o pinterp.o x11image.o x11showtrace.o \
184 > image.o:        ../common/view.h ../common/resolu.h
185  
186   ra_pict.o:      pict.h
187  
188 < mt160r.o oki20c.o paintjet.o pcomb.o pcompos.o pfilt.o pflip.o \
189 < pinterp.o protate.o pvalue.o ra_bn.o ra_pict.o ra_pixar.o \
190 < ra_ppm.o ra_pr.o ra_pr24.o ra_rgbe.o ra_t16.o ra_t8.o glimage.o \
191 < ra_tiff.o ttyimage.o ximage.o x11image.o:       ../common/resolu.h
188 > pcompos.o pfilt.o pflip.o \
189 > pinterp.o protate.o pvalue.o ra_pict.o ra_hexbit.o \
190 > ra_ppm.o ra_rgbe.o ra_t16.o ra_t8.o \
191 > ra_tiff.o ttyimage.o:   ../common/resolu.h
192  
193   pfilt.o:        ../common/paths.h
194  
195   psign.o:        ../common/font.h
196 +
197 + pcond.o pcond2.o pcond3.o pcond4.o:     pcond.h ../common/standard.h \
198 + ../common/rtmisc.h ../common/rtio.h \
199 + ../common/rtmath.h ../common/mat4.h ../common/fvect.h \
200 + ../common/rterror.h ../common/tifftypes.h \
201 + ../common/color.h ../common/view.h ../common/resolu.h
202 +
203 + normtiff.o:     ../common/color.h ../common/tonemap.h ../common/resolu.h
204 +
205 + ra_bmp.o:       ../common/bmpfile.h ../common/color.h \
206 + ../common/tonemap.h ../common/resolu.h
207 +
208 + x11findwind.c:  ../common/x11findwind.c
209 +        cp ../common/x11findwind.c .

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines