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.41 by greg, Mon Jul 15 13:09:05 1991 UTC vs.
Revision 2.3 by greg, Wed Jun 24 09:17:45 1992 UTC

# Line 1 | Line 1
1 + #  Compiles for image processing and display programs
2   # SCCSid "$SunId$ LBL"
2
3   #
4 #  Compiles for image processing and display programs
5 #
4  
5 + ARCH = sun
6   OPT = -O
7 < MACH = -DSTRUCTASSIGN -f68881 /usr/lib/libm.il -DIEEE -DBSD
8 < CFLAGS = $(OPT) $(MACH) -I../common
7 > MACH = -DBSD
8 > SPECIAL = aed tiff
9 > CFLAGS = $(OPT) $(MACH) -I../common -L../lib
10  
11 < INSTDIR = /lumen/lumen/ray/bin.sun3
11 > INSTDIR = /usr/local/bin
12  
13 < LIBDIR = /lumen/lumen/ray/lib
13 > LIBDIR = /usr/local/lib/ray
14  
15   PIXAR_INCLUDE=  -I/usr/pixar/include
16   PIXAR_LIB=      -L/usr/pixar/host/lib -lpirl -lpicio -lchad -lpixar -lm
17  
18 < 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
18 > PROGS = pfilt ttyimage oki20c oki20 paintjet mt160r getinfo psign \
19 > greyscale pvalue pcompos colorscale protate ra_pr ra_pr24 \
20 > ra_t8 ra_bn ra_t16 pcomb pinterp ximage xshowtrace pflip ra_ppm \
21 > ra_rgbe ra_pict
22  
23 < all:    $(PROGS)
23 > all:    $(PROGS) $(SPECIAL)
24  
25   x10:    x10image
26          cp x10image $(INSTDIR)
# Line 27 | Line 28 | x10:   x10image
28   aed:    aedimage
29          cp aedimage $(INSTDIR)
30  
31 + sgi:    glimage
32 +        cp glimage $(INSTDIR)
33 +
34 + tiff:   ra_tiff
35 +        cp ra_tiff $(INSTDIR)
36 +
37   sun:
38  
39 < install:        $(PROGS) normpat.csh falsecolor.csh
39 > install:        $(PROGS) $(SPECIAL) normpat.csh falsecolor.csh
40          cp $(PROGS) $(INSTDIR)
41          cp normpat.csh $(INSTDIR)/normpat
42          cp falsecolor.csh $(INSTDIR)/falsecolor
43          chmod 755 $(INSTDIR)/normpat $(INSTDIR)/falsecolor
44  
45   clean:
46 <        set nonomatch; rm -f $(PROGS) *.o core
46 >        set nonomatch; rm -f x10image aedimage glimage ra_tiff \
47 > $(PROGS) *.o core
48  
49   pfilt:  pfilt.o pf2.o pf3.o
50 <        cc $(CFLAGS) -o pfilt pfilt.o pf2.o pf3.o ../common/librt.a -lm
50 >        cc $(CFLAGS) -o pfilt pfilt.o pf2.o pf3.o -lrt -lm
51  
52   ttyimage:       ttyimage.o
53 <        cc $(CFLAGS) -o ttyimage ttyimage.o ../common/librt.a -lm
53 >        cc $(CFLAGS) -o ttyimage ttyimage.o -lrt -lm
54  
55   t4027:  t4027.o
56 <        cc $(CFLAGS) -o t4027 t4027.o ../common/librt.a
56 >        cc $(CFLAGS) -o t4027 t4027.o -lrt
57  
58   glimage:        glimage.o
59 <        cc $(CFLAGS) -o glimage glimage.o ../common/librt.a -lgl_s -lm
59 >        cc $(CFLAGS) -o glimage glimage.o -lrt -lgl_s -lm
60  
61   aedimage:       aedimage.o ciq.o cut.o closest.o biq.o
62          cc $(CFLAGS) -o aedimage aedimage.o ciq.o cut.o closest.o \
63 < biq.o ../common/librt.a -lm
63 > biq.o -lrt -lm
64  
65   oki20c: oki20c.o
66 <        cc $(CFLAGS) -o oki20c oki20c.o ../common/librt.a -lm
66 >        cc $(CFLAGS) -o oki20c oki20c.o -lrt -lm
67  
68 + oki20:  oki20.o
69 +        cc $(CFLAGS) -o oki20 oki20.o -lrt -lm
70 +
71   paintjet:       paintjet.o
72 <        cc $(CFLAGS) -o paintjet paintjet.o ../common/librt.a -lm
72 >        cc $(CFLAGS) -o paintjet paintjet.o -lrt -lm
73  
74   mt160r: mt160r.o
75 <        cc $(CFLAGS) -o mt160r mt160r.o ../common/librt.a -lm
75 >        cc $(CFLAGS) -o mt160r mt160r.o -lrt -lm
76  
77   getinfo:        getinfo.o
78 <        cc $(CFLAGS) -n -o getinfo getinfo.o ../common/librt.a
78 >        cc $(CFLAGS) -n -o getinfo getinfo.o -lrt
79  
80   greyscale:      greyscale.o
81 <        cc $(CFLAGS) -o greyscale greyscale.o ../common/librt.a -lm
81 >        cc $(CFLAGS) -o greyscale greyscale.o -lrt -lm
82  
83   colorscale:     colorscale.o
84 <        cc $(CFLAGS) -o colorscale colorscale.o ../common/librt.a
84 >        cc $(CFLAGS) -o colorscale colorscale.o -lrt
85  
86   pvalue: pvalue.o
87 <        cc $(CFLAGS) -o pvalue pvalue.o ../common/librt.a -lm
87 >        cc $(CFLAGS) -o pvalue pvalue.o -lrt -lm
88  
89   psum:   psum.o
90 <        cc $(CFLAGS) -o psum psum.o ../common/librt.a
90 >        cc $(CFLAGS) -o psum psum.o -lrt
91  
92   pcompos:        pcompos.o
93 <        cc $(CFLAGS) -o pcompos pcompos.o ../common/librt.a
93 >        cc $(CFLAGS) -o pcompos pcompos.o -lrt
94  
95   psign:  psign.o
96 <        cc $(CFLAGS) -o psign psign.o ../common/librt.a
96 >        cc $(CFLAGS) -o psign psign.o -lrt
97  
98   d48c:   d48c.o
99 <        cc $(CFLAGS) -o d48c d48c.o ../common/librt.a
99 >        cc $(CFLAGS) -o d48c d48c.o -lrt
100  
101   ra_pr:  ra_pr.o ciq.o cut.o closest.o biq.o
102          cc $(CFLAGS) -o ra_pr ra_pr.o ciq.o cut.o closest.o \
103 < biq.o ../common/librt.a -lm
103 > biq.o -lrt -lm
104  
105   ra_pr24:        ra_pr24.o
106 <        cc $(CFLAGS) -o ra_pr24 ra_pr24.o ../common/librt.a -lm
106 >        cc $(CFLAGS) -o ra_pr24 ra_pr24.o -lrt -lm
107  
108 + ra_ppm:         ra_ppm.o
109 +        cc $(CFLAGS) -o ra_ppm ra_ppm.o -lrt -lm
110 +
111   ra_t8:  ra_t8.o ciq.o cut.o closest.o biq.o
112          cc $(CFLAGS) -o ra_t8 ra_t8.o ciq.o cut.o closest.o \
113 < biq.o ../common/librt.a -lm
113 > biq.o -lrt -lm
114  
115   ra_t16: ra_t16.o
116 <        cc $(CFLAGS) -o ra_t16 ra_t16.o ../common/librt.a -lm
116 >        cc $(CFLAGS) -o ra_t16 ra_t16.o -lrt -lm
117  
118   ra_im: ra_im.o
119          cc $(CFLAGS) -n -o ra_im ra_im.o
120  
121   ra_bn: ra_bn.o
122 <        cc $(CFLAGS) -o ra_bn ra_bn.o ../common/librt.a -lm
122 >        cc $(CFLAGS) -o ra_bn ra_bn.o -lrt -lm
123  
124 + ra_rgbe:        ra_rgbe.o
125 +        cc $(CFLAGS) -o ra_rgbe ra_rgbe.o -lrt -lm
126 +
127 + ra_pict:    ra_pict.o
128 +        cc $(CFLAGS) -o ra_pict ra_pict.o -lrt -lm
129 +
130 +
131   x10image:       ximage.o ciq.o cut.o closest.o xraster.o biq.o
132          cc $(CFLAGS) -o x10image ximage.o xraster.o \
133 < ciq.o cut.o closest.o biq.o -lX ../common/librt.a -lm
133 > ciq.o cut.o closest.o biq.o -lX -lrt -lm
134  
135   ximage: x11image.o ciq.o cut.o closest.o x11raster.o biq.o
136          cc $(CFLAGS) -o ximage x11image.o x11raster.o \
137 < ciq.o cut.o closest.o biq.o -lX11 ../common/librt.a -lm
137 > ciq.o cut.o closest.o biq.o -lX11 -lrt -lm
138  
139 < prot:           prot.o
140 <        cc $(CFLAGS) -o prot prot.o ../common/librt.a
139 > protate:                protate.o
140 >        cc $(CFLAGS) -o protate protate.o -lrt
141  
142   pflip:          pflip.o
143 <        cc $(CFLAGS) -o pflip pflip.o ../common/librt.a
143 >        cc $(CFLAGS) -o pflip pflip.o -lrt
144  
145   panim:  panim.o client/libclient.a
146          cc $(CFLAGS) -o panim panim.o \
147 < ../common/librt.a client/libclient.a -lrpcsvc -lm
147 > -lrt client/libclient.a -lrpcsvc -lm
148  
149   pcomb:  pcomb.o
150 <        cc $(CFLAGS) -o pcomb pcomb.o ../common/librt.a -lm
150 >        cc $(CFLAGS) -o pcomb pcomb.o -lrt -lm
151  
152   pinterp:        pinterp.o
153 <        cc $(CFLAGS) -o pinterp pinterp.o ../common/librt.a -lm
153 >        cc $(CFLAGS) -o pinterp pinterp.o -lrt -lm
154  
155 + ra_tiff:        ra_tiff.o ../lib/libtiff.a
156 +        cc $(CFLAGS) -o ra_tiff ra_tiff.o -lrt -ltiff -lm
157 +
158 + psign.o:        psign.c ../common/font.h
159 +        cc $(CFLAGS) -DDEFPATH=\":$(LIBDIR)\" -c psign.c
160 +
161 + ra_tiff.o:      ra_tiff.c
162 +        cc $(CFLAGS) -Ilibtiff -c ra_tiff.c
163 +
164 + ../lib/libtiff.a:
165 +        cd libtiff ; make -f Makefile.$(ARCH) ; \
166 +        mv libtiff.a ../../lib ; make clean
167 +
168   ra_pixar:       ra_pixar.o ra_pixar.c
169 <        cc $(CFLAGS) $(PIXAR_INCLUDE) -o $@ ra_pixar.o ../common/librt.a \
169 >        cc $(CFLAGS) $(PIXAR_INCLUDE) -o $@ ra_pixar.o -lrt \
170   $(PIXAR_LIB)
171  
172   ra_pixar.o:     ra_pixar.c
# Line 140 | Line 174 | ra_pixar.o:    ra_pixar.c
174  
175   xshowtrace:     xshowtrace.o x11findwind.o
176          cc $(CFLAGS) -o xshowtrace xshowtrace.o \
177 < x11findwind.o ../common/librt.a -lm -lX11
177 > x11findwind.o -lrt -lm -lX11
178  
145 xshowtrace.o:   ../common/view.h ../common/standard.h \
146 ../common/mat4.h ../common/fvect.h
147
179   pcomb.o:        ../common/calcomp.h
180  
181   panim.o:        client/scan.h ../common/color.h ../common/random.h
182  
183   pf2.o bnoise.o ra_t16.o:        ../common/random.h
184  
185 < pfilt.o pf2.o ttyimage.o t4027.o mt160r.o psum.o psign.o prot.o ra_pr24.o \
186 < d48c.o aedimage.o pcompos.o color.o resolu.o colrops.o pflip.o \
187 < greyscale.o ra_t8.o glimage.o ra_bn.o ra_t16.o \
185 > pfilt.o pf2.o ttyimage.o t4027.o mt160r.o psum.o psign.o protate.o \
186 > ra_pr24.o d48c.o aedimage.o pcompos.o color.o resolu.o colrops.o pflip.o \
187 > greyscale.o ra_t8.o glimage.o ra_bn.o ra_t16.o ra_tiff.o ra_pict.o \
188   ra_pr.o pvalue.o pcomb.o pinterp.o ximage.o:    ../common/color.h
189  
190 < prot.o biq.o ciq.o pinterp.o ximage.o \
190 > pvalue.o protate.o biq.o ciq.o pinterp.o ximage.o psign.o xshowtrace.o \
191   image.o:        ../common/standard.h ../common/mat4.h ../common/fvect.h
192  
193 < ximage.o x11raster.o:   xraster.h
193 > ximage.o xraster.o:     xraster.h
194  
195   x11image.o x11raster.o: x11raster.h
196  
# Line 169 | Line 200 | aedimage.o ximage.o ra_t8.o ra_pr.o:   pic.h
200  
201   ciq.o cut.o closest.o biq.o:    pic.h ciq.h
202  
203 < pinterp.o ximage.o image.o:     ../common/view.h
203 > pinterp.o ximage.o x11showtrace.o image.o:      ../common/view.h
204 >
205 > ra_pict.o:      pict.h
206 >
207 > mt160r.o oki20c.o paintjet.o pcomb.o pcompos.o pfilt.o pflip.o \
208 > pinterp.o protate.o pvalue.o ra_bn.o ra_pict.o ra_pixar.o \
209 > ra_ppm.o ra_pr.o ra_pr24.o ra_rgbe.o ra_t16.o ra_t8.o glimage.o \
210 > ra_tiff.o ttyimage.o ximage.o x11image.o:       ../common/resolu.h

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines