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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines