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 1.49 by greg, Fri Aug 23 17:37:26 1991 UTC vs.
Revision 2.68 by greg, Sat Dec 4 00:24:43 2010 UTC

# Line 1 | Line 1
1 + # RCSid: $Id$
2   #
3 < # SCCSid "$SunId$ LBL"
3 < #  Compiles for image processing and display programs
3 > # Compiles for image processing and display programs
4   #
5  
6   ARCH = sun
7   OPT = -O
8 < MACH = -DSTRUCTASSIGN -f68881 /usr/lib/libm.il -DIEEE -DBSD
9 < CFLAGS = $(OPT) $(MACH) -I../common -L../lib
8 > MACH = -DBSD
9 > SPECIAL =
10 > CFLAGS = -I../common -L../lib $(OPT) $(MACH)
11 > CC = cc
12 > MLIB = -lm
13  
14 < INSTDIR = /lumen/lumen/ray/bin.sun3
14 > 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 -lm
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  
23 < PROGS = pfilt ttyimage oki20c paintjet mt160r getinfo psign \
19 < greyscale pvalue pcompos colorscale prot ra_pr ra_pr24 \
20 < ra_t8 ra_bn ra_t16 pcomb pinterp ximage xshowtrace pflip ra_ppm \
21 < ra_rgbe
23 > all:    $(PROGS) $(SPECIAL)
24  
25 < all:    $(PROGS)
25 > ogl:
26  
25 x10:    x10image
26        cp x10image $(INSTDIR)
27
28 aed:    aedimage
29        cp aedimage $(INSTDIR)
30
31 tiff:   ra_tiff
32        cp ra_tiff $(INSTDIR)
33
27   sun:
28  
29 < install:        $(PROGS) normpat.csh falsecolor.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
35 <        chmod 755 $(INSTDIR)/normpat $(INSTDIR)/falsecolor
34 >        cp falsecolor.pl $(INSTDIR)/falsecolor
35 >        cp pdfblur.csh $(INSTDIR)/pdfblur
36 >        cp pmblur.csh $(INSTDIR)/pmblur
37 >        cp pmdblur.csh $(INSTDIR)/pmdblur
38 >        cp xyzimage.csh $(INSTDIR)/xyzimage
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 $(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 -lm
53 >        $(CC) $(CFLAGS) -o pfilt pfilt.o pf2.o pf3.o -lrtrad $(MLIB)
54  
55 < ttyimage:       ttyimage.o
56 <        cc $(CFLAGS) -o ttyimage ttyimage.o -lrt -lm
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 < t4027:  t4027.o
60 <        cc $(CFLAGS) -o t4027 t4027.o -lrt
59 > pcwarp: pcwarp.o warp3d.o
60 >        $(CC) $(CFLAGS) -o pcwarp pcwarp.o warp3d.o -lrtrad $(MLIB)
61  
62 < glimage:        glimage.o
63 <        cc $(CFLAGS) -o glimage glimage.o -lrt -lgl_s -lm
62 > ttyimage:       ttyimage.o
63 >        $(CC) $(CFLAGS) -o ttyimage ttyimage.o -lrtrad $(MLIB)
64  
57 aedimage:       aedimage.o ciq.o cut.o closest.o biq.o
58        cc $(CFLAGS) -o aedimage aedimage.o ciq.o cut.o closest.o \
59 biq.o -lrt -lm
60
61 oki20c: oki20c.o
62        cc $(CFLAGS) -o oki20c oki20c.o -lrt -lm
63
64 paintjet:       paintjet.o
65        cc $(CFLAGS) -o paintjet paintjet.o -lrt -lm
66
67 mt160r: mt160r.o
68        cc $(CFLAGS) -o mt160r mt160r.o -lrt -lm
69
70 getinfo:        getinfo.o
71        cc $(CFLAGS) -n -o getinfo getinfo.o -lrt
72
73 greyscale:      greyscale.o
74        cc $(CFLAGS) -o greyscale greyscale.o -lrt -lm
75
76 colorscale:     colorscale.o
77        cc $(CFLAGS) -o colorscale colorscale.o -lrt
78
65   pvalue: pvalue.o
66 <        cc $(CFLAGS) -o pvalue pvalue.o -lrt -lm
66 >        $(CC) $(CFLAGS) -o pvalue pvalue.o -lrtrad $(MLIB)
67  
82 psum:   psum.o
83        cc $(CFLAGS) -o psum psum.o -lrt
84
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  
74 < d48c:   d48c.o
75 <        cc $(CFLAGS) -o d48c d48c.o -lrt
74 > ra_gif: ra_gif.o clrtab.o neuclrtab.o
75 >        $(CC) $(CFLAGS) -o ra_gif ra_gif.o clrtab.o neuclrtab.o -lrtrad $(MLIB)
76  
77 < ra_pr:  ra_pr.o ciq.o cut.o closest.o biq.o
78 <        cc $(CFLAGS) -o ra_pr ra_pr.o ciq.o cut.o closest.o \
96 < biq.o -lrt -lm
77 > ra_ps:  ra_ps.o
78 >        $(CC) $(CFLAGS) -o ra_ps ra_ps.o -lrtrad $(MLIB)
79  
98 ra_pr24:        ra_pr24.o
99        cc $(CFLAGS) -o ra_pr24 ra_pr24.o -lrt -lm
100
80   ra_ppm:         ra_ppm.o
81 <        cc $(CFLAGS) -o ra_ppm ra_ppm.o -lrt -lm
81 >        $(CC) $(CFLAGS) -o ra_ppm ra_ppm.o -lrtrad $(MLIB)
82  
83 < ra_t8:  ra_t8.o ciq.o cut.o closest.o biq.o
84 <        cc $(CFLAGS) -o ra_t8 ra_t8.o ciq.o cut.o closest.o \
106 < biq.o -lrt -lm
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 -lrtrad $(MLIB)
88 +
89   ra_t16: ra_t16.o
90 <        cc $(CFLAGS) -o ra_t16 ra_t16.o -lrt -lm
90 >        $(CC) $(CFLAGS) -o ra_t16 ra_t16.o -lrtrad $(MLIB)
91  
92 < ra_im: ra_im.o
93 <        cc $(CFLAGS) -n -o ra_im ra_im.o
92 > ra_rgbe:        ra_rgbe.o
93 >        $(CC) $(CFLAGS) -o ra_rgbe ra_rgbe.o -lrtrad $(MLIB)
94  
95 < ra_bn: ra_bn.o
96 <        cc $(CFLAGS) -o ra_bn ra_bn.o -lrt -lm
95 > ra_pict:    ra_pict.o
96 >        $(CC) $(CFLAGS) -o ra_pict ra_pict.o -lrtrad $(MLIB)
97  
98 < ra_rgbe:        ra_rgbe.o
99 <        cc $(CFLAGS) -o ra_rgbe ra_rgbe.o -lrt -lm
98 > ra_hexbit:      ra_hexbit.o
99 >        $(CC) $(CFLAGS) -o ra_hexbit ra_hexbit.o -lrtrad $(MLIB)
100  
101 < x10image:       ximage.o ciq.o cut.o closest.o xraster.o biq.o
102 <        cc $(CFLAGS) -o x10image ximage.o xraster.o \
103 < ciq.o cut.o closest.o biq.o -lX -lrt -lm
101 > ximage: x11image.o x11raster.o clrtab.o
102 >        $(CC) $(CFLAGS) -o ximage x11image.o x11raster.o \
103 > clrtab.o -lrtrad -lX11 $(MLIB)
104  
105 < ximage: x11image.o ciq.o cut.o closest.o x11raster.o biq.o
106 <        cc $(CFLAGS) -o ximage x11image.o x11raster.o \
126 < ciq.o cut.o closest.o biq.o -lX11 -lrt -lm
105 > protate:                protate.o
106 >        $(CC) $(CFLAGS) -o protate protate.o -lrtrad $(MLIB)
107  
108 < prot:           prot.o
109 <        cc $(CFLAGS) -o prot prot.o -lrt
108 > pextrem:        pextrem.o
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  
134 panim:  panim.o client/libclient.a
135        cc $(CFLAGS) -o panim panim.o \
136 -lrt client/libclient.a -lrpcsvc -lm
137
114   pcomb:  pcomb.o
115 <        cc $(CFLAGS) -o pcomb pcomb.o -lrt -lm
115 >        $(CC) $(CFLAGS) -o pcomb pcomb.o -lrtrad $(MLIB)
116  
117   pinterp:        pinterp.o
118 <        cc $(CFLAGS) -o pinterp pinterp.o -lrt -lm
118 >        $(CC) $(CFLAGS) -o pinterp pinterp.o -lrtrad $(MLIB)
119  
120 + ra_xyze:        ra_xyze.o
121 +        $(CC) $(CFLAGS) -o ra_xyze ra_xyze.o -lrtrad $(MLIB)
122 +
123   ra_tiff:        ra_tiff.o ../lib/libtiff.a
124 <        cc $(CFLAGS) -o ra_tiff ra_tiff.o -lrt -ltiff -lm
124 >        $(CC) $(CFLAGS) -o ra_tiff ra_tiff.o -lrtrad -ltiff $(MLIB)
125  
126 < ra_tiff.o:      ra_tiff.c
127 <        cc $(CFLAGS) -Ilibtiff -c ra_tiff.c
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 + normtiff:       normtiff.o ../lib/libtiff.a
131 +        $(CC) $(CFLAGS) -o normtiff normtiff.o -lrtrad -ltiff $(MLIB)
132 +
133   ../lib/libtiff.a:
134 <        cd libtiff ; make -f Makefile.$(ARCH) ; \
135 <        mv libtiff.a ../../lib ; make clean
134 >        cd tiff ; ./configure -C -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  
143 < ra_pixar:       ra_pixar.o ra_pixar.c
144 <        cc $(CFLAGS) $(PIXAR_INCLUDE) -o $@ ra_pixar.o -lrt \
145 < $(PIXAR_LIB)
143 > xshowtrace:     xshowtrace.o x11findwind.o
144 >        $(CC) $(CFLAGS) -o xshowtrace xshowtrace.o \
145 > x11findwind.o -lrtrad -lX11 $(MLIB)
146  
147 < ra_pixar.o:     ra_pixar.c
148 <        cc $(CFLAGS) $(PIXAR_INCLUDE) -c ra_pixar.c
147 > macbethcal:     macbethcal.o pmapgen.o mx3.o warp3d.o
148 >        $(CC) $(CFLAGS) -o macbethcal macbethcal.o pmapgen.o mx3.o warp3d.o \
149 > -lrtrad $(MLIB)
150  
161 xshowtrace:     xshowtrace.o x11findwind.o
162        cc $(CFLAGS) -o xshowtrace xshowtrace.o \
163 x11findwind.o -lrt -lm -lX11
151  
152 < xshowtrace.o:   ../common/view.h ../common/standard.h \
166 < ../common/mat4.h ../common/fvect.h
152 > macbethcal.o:   pmap.h ../common/color.h ../common/resolu.h
153  
154 < pcomb.o:        ../common/calcomp.h
154 > macbethcal.o pcond2.o pcwarp.o warp3d.o:        warp3d.h ../common/lookup.h
155  
156 < panim.o:        client/scan.h ../common/color.h ../common/random.h
156 > pmapgen.o:      mx3.h pmap.h
157  
158 < pf2.o bnoise.o ra_t16.o:        ../common/random.h
158 > nclrtab.o:      neuclrtab.o
159 >        ln neuclrtab.c nclrtab.c
160 >        $(CC) $(CFLAGS) -DCOMPAT_MODE -c nclrtab.c
161 >        rm -f nclrtab.c
162  
163 < pfilt.o pf2.o ttyimage.o t4027.o mt160r.o psum.o psign.o prot.o ra_pr24.o \
175 < d48c.o aedimage.o pcompos.o color.o resolu.o colrops.o pflip.o \
176 < greyscale.o ra_t8.o glimage.o ra_bn.o ra_t16.o \
177 < ra_pr.o pvalue.o pcomb.o pinterp.o ximage.o:    ../common/color.h
163 > pcomb.o:        ../common/calcomp.h
164  
165 < prot.o biq.o ciq.o pinterp.o ximage.o \
180 < image.o:        ../common/standard.h ../common/mat4.h ../common/fvect.h
165 > pf2.o ra_ps.o ra_t16.o: ../common/random.h
166  
167 < ximage.o xraster.o:     xraster.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 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/rtmisc.h ../common/rtio.h \
175 + ../common/rtmath.h ../common/mat4.h ../common/fvect.h \
176 + ../common/rterror.h
177 +
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 < aedimage.o ximage.o ra_t8.o ra_pr.o:    pic.h
184 > ra_tiff.o normtiff.o:   ../common/tiff.h ../common/tiffio.h
185  
186 < ciq.o cut.o closest.o biq.o:    pic.h ciq.h
186 > ra_t8.o:        pic.h
187  
188 < pinterp.o ximage.o image.o:     ../common/view.h
188 > pcomb.o pfilt.o pinterp.o x11image.o x11showtrace.o \
189 > image.o:        ../common/view.h ../common/resolu.h
190 >
191 > ra_pict.o:      pict.h
192 >
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
199 >
200 > psign.o:        ../common/font.h
201 >
202 > pcond.o pcond2.o pcond3.o pcond4.o:     pcond.h ../common/standard.h \
203 > ../common/rtmisc.h ../common/rtio.h \
204 > ../common/rtmath.h ../common/mat4.h ../common/fvect.h \
205 > ../common/rterror.h ../common/color.h ../common/view.h ../common/resolu.h
206 >
207 > normtiff.o:     ../common/color.h ../common/tonemap.h ../common/resolu.h
208 >
209 > ra_bmp.o:       ../common/bmpfile.h ../common/color.h \
210 > ../common/tonemap.h ../common/resolu.h
211 >
212 > x11findwind.c:  ../common/x11findwind.c
213 >        cp ../common/x11findwind.c .
214 >
215 > macbethcal.o normtiff.o pcomb.o pcompos.o pcond.o pextrem.o pfilt.o \
216 > pflip.o psign.o pvalue.o ra_bmp.o ra_gif.o ra_pict.o ra_ppm.o ra_ps.o \
217 > ra_rgbe.o ra_skel.o ra_t16.o ra_t8.o ra_tiff.o ra_xyze.o \
218 > ttyimage.o:     ../common/platform.h

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines