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 1.52 by greg, Mon Oct 28 16:39:21 1991 UTC

# Line 1 | Line 1
1 # SCCSid "$SunId$ LBL"
2
1   #
2 + # SCCSid "$SunId$ LBL"
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
8 > MACH = -DSTRUCTASSIGN -DBSD
9 > SPECIAL = aed tiff
10 > CFLAGS = $(OPT) $(MACH) -I../common -L../lib
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
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 + tiff:   ra_tiff
33 +        cp ra_tiff $(INSTDIR)
34 +
35   sun:
36  
37 < install:        $(PROGS) normpat.csh falsecolor.csh
37 > install:        $(PROGS) $(SPECIAL) normpat.csh falsecolor.csh
38          cp $(PROGS) $(INSTDIR)
39          cp normpat.csh $(INSTDIR)/normpat
40          cp falsecolor.csh $(INSTDIR)/falsecolor
# Line 39 | Line 44 | clean:
44          set nonomatch; rm -f $(PROGS) *.o core
45  
46   pfilt:  pfilt.o pf2.o pf3.o
47 <        cc $(CFLAGS) -o pfilt pfilt.o pf2.o pf3.o ../common/librt.a -lm
47 >        cc $(CFLAGS) -o pfilt pfilt.o pf2.o pf3.o -lrt -lm
48  
49   ttyimage:       ttyimage.o
50 <        cc $(CFLAGS) -o ttyimage ttyimage.o ../common/librt.a -lm
50 >        cc $(CFLAGS) -o ttyimage ttyimage.o -lrt -lm
51  
52   t4027:  t4027.o
53 <        cc $(CFLAGS) -o t4027 t4027.o ../common/librt.a
53 >        cc $(CFLAGS) -o t4027 t4027.o -lrt
54  
55   glimage:        glimage.o
56 <        cc $(CFLAGS) -o glimage glimage.o ../common/librt.a -lgl_s -lm
56 >        cc $(CFLAGS) -o glimage glimage.o -lrt -lgl_s -lm
57  
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 ../common/librt.a -lm
60 > biq.o -lrt -lm
61  
62   oki20c: oki20c.o
63 <        cc $(CFLAGS) -o oki20c oki20c.o ../common/librt.a -lm
63 >        cc $(CFLAGS) -o oki20c oki20c.o -lrt -lm
64  
65   paintjet:       paintjet.o
66 <        cc $(CFLAGS) -o paintjet paintjet.o ../common/librt.a -lm
66 >        cc $(CFLAGS) -o paintjet paintjet.o -lrt -lm
67  
68   mt160r: mt160r.o
69 <        cc $(CFLAGS) -o mt160r mt160r.o ../common/librt.a -lm
69 >        cc $(CFLAGS) -o mt160r mt160r.o -lrt -lm
70  
71   getinfo:        getinfo.o
72 <        cc $(CFLAGS) -n -o getinfo getinfo.o ../common/librt.a
72 >        cc $(CFLAGS) -n -o getinfo getinfo.o -lrt
73  
74   greyscale:      greyscale.o
75 <        cc $(CFLAGS) -o greyscale greyscale.o ../common/librt.a -lm
75 >        cc $(CFLAGS) -o greyscale greyscale.o -lrt -lm
76  
77   colorscale:     colorscale.o
78 <        cc $(CFLAGS) -o colorscale colorscale.o ../common/librt.a
78 >        cc $(CFLAGS) -o colorscale colorscale.o -lrt
79  
80   pvalue: pvalue.o
81 <        cc $(CFLAGS) -o pvalue pvalue.o ../common/librt.a -lm
81 >        cc $(CFLAGS) -o pvalue pvalue.o -lrt -lm
82  
83   psum:   psum.o
84 <        cc $(CFLAGS) -o psum psum.o ../common/librt.a
84 >        cc $(CFLAGS) -o psum psum.o -lrt
85  
86   pcompos:        pcompos.o
87 <        cc $(CFLAGS) -o pcompos pcompos.o ../common/librt.a
87 >        cc $(CFLAGS) -o pcompos pcompos.o -lrt
88  
89   psign:  psign.o
90 <        cc $(CFLAGS) -o psign psign.o ../common/librt.a
90 >        cc $(CFLAGS) -o psign psign.o -lrt
91  
92   d48c:   d48c.o
93 <        cc $(CFLAGS) -o d48c d48c.o ../common/librt.a
93 >        cc $(CFLAGS) -o d48c d48c.o -lrt
94  
95   ra_pr:  ra_pr.o ciq.o cut.o closest.o biq.o
96          cc $(CFLAGS) -o ra_pr ra_pr.o ciq.o cut.o closest.o \
97 < biq.o ../common/librt.a -lm
97 > biq.o -lrt -lm
98  
99   ra_pr24:        ra_pr24.o
100 <        cc $(CFLAGS) -o ra_pr24 ra_pr24.o ../common/librt.a -lm
100 >        cc $(CFLAGS) -o ra_pr24 ra_pr24.o -lrt -lm
101  
102 + ra_ppm:         ra_ppm.o
103 +        cc $(CFLAGS) -o ra_ppm ra_ppm.o -lrt -lm
104 +
105   ra_t8:  ra_t8.o ciq.o cut.o closest.o biq.o
106          cc $(CFLAGS) -o ra_t8 ra_t8.o ciq.o cut.o closest.o \
107 < biq.o ../common/librt.a -lm
107 > biq.o -lrt -lm
108  
109   ra_t16: ra_t16.o
110 <        cc $(CFLAGS) -o ra_t16 ra_t16.o ../common/librt.a -lm
110 >        cc $(CFLAGS) -o ra_t16 ra_t16.o -lrt -lm
111  
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 ../common/librt.a -lm
116 >        cc $(CFLAGS) -o ra_bn ra_bn.o -lrt -lm
117  
118 + ra_rgbe:        ra_rgbe.o
119 +        cc $(CFLAGS) -o ra_rgbe ra_rgbe.o -lrt -lm
120 +
121 + ra_pict:    ra_pict.o
122 +        cc $(CFLAGS) -o ra_pict ra_pict.o -lrt -lm
123 +
124 +
125   x10image:       ximage.o ciq.o cut.o closest.o xraster.o biq.o
126          cc $(CFLAGS) -o x10image ximage.o xraster.o \
127 < ciq.o cut.o closest.o biq.o -lX ../common/librt.a -lm
127 > ciq.o cut.o closest.o biq.o -lX -lrt -lm
128  
129   ximage: x11image.o ciq.o cut.o closest.o x11raster.o biq.o
130          cc $(CFLAGS) -o ximage x11image.o x11raster.o \
131 < ciq.o cut.o closest.o biq.o -lX11 ../common/librt.a -lm
131 > ciq.o cut.o closest.o biq.o -lX11 -lrt -lm
132  
133   prot:           prot.o
134 <        cc $(CFLAGS) -o prot prot.o ../common/librt.a
134 >        cc $(CFLAGS) -o prot prot.o -lrt
135  
136   pflip:          pflip.o
137 <        cc $(CFLAGS) -o pflip pflip.o ../common/librt.a
137 >        cc $(CFLAGS) -o pflip pflip.o -lrt
138  
139   panim:  panim.o client/libclient.a
140          cc $(CFLAGS) -o panim panim.o \
141 < ../common/librt.a client/libclient.a -lrpcsvc -lm
141 > -lrt client/libclient.a -lrpcsvc -lm
142  
143   pcomb:  pcomb.o
144 <        cc $(CFLAGS) -o pcomb pcomb.o ../common/librt.a -lm
144 >        cc $(CFLAGS) -o pcomb pcomb.o -lrt -lm
145  
146   pinterp:        pinterp.o
147 <        cc $(CFLAGS) -o pinterp pinterp.o ../common/librt.a -lm
147 >        cc $(CFLAGS) -o pinterp pinterp.o -lrt -lm
148  
149 + ra_tiff:        ra_tiff.o ../lib/libtiff.a
150 +        cc $(CFLAGS) -o ra_tiff ra_tiff.o -lrt -ltiff -lm
151 +
152 + ra_tiff.o:      ra_tiff.c
153 +        cc $(CFLAGS) -Ilibtiff -c ra_tiff.c
154 +
155 + ../lib/libtiff.a:
156 +        cd libtiff ; make -f Makefile.$(ARCH) ; \
157 +        mv libtiff.a ../../lib ; make clean
158 +
159   ra_pixar:       ra_pixar.o ra_pixar.c
160 <        cc $(CFLAGS) $(PIXAR_INCLUDE) -o $@ ra_pixar.o ../common/librt.a \
160 >        cc $(CFLAGS) $(PIXAR_INCLUDE) -o $@ ra_pixar.o -lrt \
161   $(PIXAR_LIB)
162  
163   ra_pixar.o:     ra_pixar.c
# Line 140 | Line 165 | ra_pixar.o:    ra_pixar.c
165  
166   xshowtrace:     xshowtrace.o x11findwind.o
167          cc $(CFLAGS) -o xshowtrace xshowtrace.o \
168 < x11findwind.o ../common/librt.a -lm -lX11
168 > x11findwind.o -lrt -lm -lX11
169  
170   xshowtrace.o:   ../common/view.h ../common/standard.h \
171   ../common/mat4.h ../common/fvect.h
# Line 153 | Line 178 | pf2.o bnoise.o ra_t16.o:       ../common/random.h
178  
179   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 \
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
183  
184   prot.o biq.o ciq.o pinterp.o ximage.o \
185   image.o:        ../common/standard.h ../common/mat4.h ../common/fvect.h
186  
187 < ximage.o x11raster.o:   xraster.h
187 > ximage.o xraster.o:     xraster.h
188  
189   x11image.o x11raster.o: x11raster.h
190  
# Line 170 | Line 195 | aedimage.o ximage.o ra_t8.o ra_pr.o:   pic.h
195   ciq.o cut.o closest.o biq.o:    pic.h ciq.h
196  
197   pinterp.o ximage.o image.o:     ../common/view.h
198 +
199 + ra_pict.o:      pict.h

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines