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.52 by greg, Mon Oct 28 16:39:21 1991 UTC vs.
Revision 2.57 by greg, Tue Jan 18 03:59:41 2005 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 -DBSD
9 < SPECIAL = aed tiff
10 < 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 = /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
19 > PIXAR_LIB=      -L/usr/pixar/host/lib -lpirl -lpicio -lchad -lpixar $(MLIB)
20  
21 < PROGS = pfilt ttyimage oki20c paintjet mt160r getinfo psign \
22 < greyscale pvalue pcompos colorscale prot ra_pr ra_pr24 \
23 < ra_t8 ra_bn ra_t16 pcomb pinterp ximage xshowtrace pflip ra_ppm \
24 < ra_rgbe ra_pict
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
27 <        cp x10image $(INSTDIR)
28 > ogl:
29  
29 aed:    aedimage
30        cp aedimage $(INSTDIR)
31
32 tiff:   ra_tiff
33        cp ra_tiff $(INSTDIR)
34
30   sun:
31  
32 < install:        $(PROGS) $(SPECIAL) normpat.csh falsecolor.csh
32 > install:        $(PROGS) $(SPECIAL) normpat.csh falsecolor.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 <        chmod 755 $(INSTDIR)/normpat $(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 >        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 $(PROGS) *.o core
49 >        rm -f $(PROGS) $(SPECIAL) *.o core
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 -lrt $(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 > -lrt $(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 -lrt $(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 -lrt $(MLIB)
64  
58 aedimage:       aedimage.o ciq.o cut.o closest.o biq.o
59        cc $(CFLAGS) -o aedimage aedimage.o ciq.o cut.o closest.o \
60 biq.o -lrt -lm
61
62 oki20c: oki20c.o
63        cc $(CFLAGS) -o oki20c oki20c.o -lrt -lm
64
65 paintjet:       paintjet.o
66        cc $(CFLAGS) -o paintjet paintjet.o -lrt -lm
67
68 mt160r: mt160r.o
69        cc $(CFLAGS) -o mt160r mt160r.o -lrt -lm
70
71 getinfo:        getinfo.o
72        cc $(CFLAGS) -n -o getinfo getinfo.o -lrt
73
74 greyscale:      greyscale.o
75        cc $(CFLAGS) -o greyscale greyscale.o -lrt -lm
76
77 colorscale:     colorscale.o
78        cc $(CFLAGS) -o colorscale colorscale.o -lrt
79
65   pvalue: pvalue.o
66 <        cc $(CFLAGS) -o pvalue pvalue.o -lrt -lm
66 >        $(CC) $(CFLAGS) -o pvalue pvalue.o -lrt $(MLIB)
67  
83 psum:   psum.o
84        cc $(CFLAGS) -o psum psum.o -lrt
85
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
72 >        $(CC) $(CFLAGS) -o psign psign.o -lrt $(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 -lrt $(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 \
97 < biq.o -lrt -lm
77 > ra_ps:  ra_ps.o
78 >        $(CC) $(CFLAGS) -o ra_ps ra_ps.o -lrt $(MLIB)
79  
99 ra_pr24:        ra_pr24.o
100        cc $(CFLAGS) -o ra_pr24 ra_pr24.o -lrt -lm
101
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 -lrt $(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 \
107 < biq.o -lrt -lm
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 -lm
90 >        $(CC) $(CFLAGS) -o ra_t16 ra_t16.o -lrt $(MLIB)
91  
112 ra_im: ra_im.o
113        cc $(CFLAGS) -n -o ra_im ra_im.o
114
115 ra_bn: ra_bn.o
116        cc $(CFLAGS) -o ra_bn ra_bn.o -lrt -lm
117
92   ra_rgbe:        ra_rgbe.o
93 <        cc $(CFLAGS) -o ra_rgbe ra_rgbe.o -lrt -lm
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 -lm
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  
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 -lrt -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 \
131 < ciq.o cut.o closest.o biq.o -lX11 -lrt -lm
105 > protate:                protate.o
106 >        $(CC) $(CFLAGS) -o protate protate.o -lrt $(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 -lrt $(MLIB)
110  
111   pflip:          pflip.o
112 <        cc $(CFLAGS) -o pflip pflip.o -lrt
112 >        $(CC) $(CFLAGS) -o pflip pflip.o -lrt $(MLIB)
113  
139 panim:  panim.o client/libclient.a
140        cc $(CFLAGS) -o panim panim.o \
141 -lrt client/libclient.a -lrpcsvc -lm
142
114   pcomb:  pcomb.o
115 <        cc $(CFLAGS) -o pcomb pcomb.o -lrt -lm
115 >        $(CC) $(CFLAGS) -o pcomb pcomb.o -lrt $(MLIB)
116  
117   pinterp:        pinterp.o
118 <        cc $(CFLAGS) -o pinterp pinterp.o -lrt -lm
118 >        $(CC) $(CFLAGS) -o pinterp pinterp.o -lrt $(MLIB)
119  
120 + ra_xyze:        ra_xyze.o
121 +        $(CC) $(CFLAGS) -o ra_xyze ra_xyze.o -lrt $(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 -lrt -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 < ../lib/libtiff.a:
131 <        cd libtiff ; make -f Makefile.$(ARCH) ; \
157 <        mv libtiff.a ../../lib ; make clean
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:       tiff/config.local
134 >        cd tiff ; sh configure -quiet -noninteractive -with-CC=$(CC) \
135 >                "-with-ENVOPTS=$(OPT)" ; \
136 >        cd libtiff ; make install
137  
163 ra_pixar.o:     ra_pixar.c
164        cc $(CFLAGS) $(PIXAR_INCLUDE) -c ra_pixar.c
165
138   xshowtrace:     xshowtrace.o x11findwind.o
139 <        cc $(CFLAGS) -o xshowtrace xshowtrace.o \
140 < x11findwind.o -lrt -lm -lX11
139 >        $(CC) $(CFLAGS) -o xshowtrace xshowtrace.o \
140 > x11findwind.o -lrt -lX11 $(MLIB)
141  
142 < xshowtrace.o:   ../common/view.h ../common/standard.h \
143 < ../common/mat4.h ../common/fvect.h
142 > macbethcal:     macbethcal.o pmapgen.o mx3.o warp3d.o
143 >        $(CC) $(CFLAGS) -o macbethcal macbethcal.o pmapgen.o mx3.o warp3d.o \
144 > -lrt $(MLIB)
145  
173 pcomb.o:        ../common/calcomp.h
146  
147 < panim.o:        client/scan.h ../common/color.h ../common/random.h
147 > macbethcal.o:   pmap.h ../common/color.h ../common/resolu.h
148  
149 < pf2.o bnoise.o ra_t16.o:        ../common/random.h
149 > macbethcal.o pcond2.o pcwarp.o warp3d.o:        warp3d.h ../common/lookup.h
150  
151 < pfilt.o pf2.o ttyimage.o t4027.o mt160r.o psum.o psign.o prot.o ra_pr24.o \
180 < d48c.o aedimage.o pcompos.o color.o resolu.o colrops.o pflip.o \
181 < greyscale.o ra_t8.o glimage.o ra_bn.o ra_t16.o ra_tiff.o ra_pict.o \
182 < ra_pr.o pvalue.o pcomb.o pinterp.o ximage.o:    ../common/color.h
151 > pmapgen.o:      mx3.h pmap.h
152  
153 < prot.o biq.o ciq.o pinterp.o ximage.o \
154 < image.o:        ../common/standard.h ../common/mat4.h ../common/fvect.h
153 > nclrtab.o:      neuclrtab.o
154 >        ln neuclrtab.c nclrtab.c
155 >        $(CC) $(CFLAGS) -DCOMPAT_MODE -c nclrtab.c
156 >        rm -f nclrtab.c
157  
158 < ximage.o xraster.o:     xraster.h
158 > pcomb.o:        ../common/calcomp.h
159  
160 + pf2.o ra_ps.o ra_t16.o: ../common/random.h
161 +
162 + neuclrtab.o clrtab.o pfilt.o pf2.o pf3.o ttyimage.o \
163 + psign.o protate.o ra_hexbit.o pextrem.o pcompos.o \
164 + pflip.o ra_t8.o ra_t16.o ra_tiff.o ra_pict.o \
165 + ra_ps.o pvalue.o pcomb.o pinterp.o:     ../common/color.h
166 +
167 + neuclrtab.o pvalue.o protate.o pinterp.o psign.o \
168 + xshowtrace.o clrtab.o pcomb.o pfilt.o pf3.o image.o:    ../common/standard.h \
169 + ../common/rtmisc.h ../common/rtio.h \
170 + ../common/rtmath.h ../common/mat4.h ../common/fvect.h \
171 + ../common/rterror.h ../common/tifftypes.h
172 +
173   x11image.o x11raster.o: x11raster.h
174  
175 + x11image.o:     ../common/tonemap.h ../common/color.h
176 +
177   ra_t8.o:        ../common/targa.h
178  
179 < aedimage.o ximage.o ra_t8.o ra_pr.o:    pic.h
179 > ra_tiff.o normtiff.o:   ../common/tiff.h ../common/tiffio.h
180  
181 < ciq.o cut.o closest.o biq.o:    pic.h ciq.h
181 > ra_t8.o:        pic.h
182  
183 < pinterp.o ximage.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 + 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