ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/px/Rmakefile
Revision: 2.62
Committed: Sat Sep 17 05:14:14 2005 UTC (18 years, 7 months ago) by greg
Branch: MAIN
Changes since 2.61: +4 -3 lines
Log Message:
Created ran2tiff script for batch animation exposure and conversion

File Contents

# User Rev Content
1 greg 2.62 # RCSid: $Id: Rmakefile,v 2.61 2005/09/02 04:15:42 greg Exp $
2 greg 2.45 #
3 gregl 2.34 # Compiles for image processing and display programs
4 greg 1.1 #
5    
6 greg 1.47 ARCH = sun
7 greg 1.8 OPT = -O
8 greg 1.53 MACH = -DBSD
9 greg 2.54 SPECIAL =
10 greg 2.45 CFLAGS = -I../common -L../lib $(OPT) $(MACH)
11 greg 2.4 CC = cc
12 greg 2.16 MLIB = -lm
13 greg 1.1
14 greg 1.50 INSTDIR = /usr/local/bin
15 greg 1.1
16 greg 1.43 LIBDIR = /usr/local/lib/ray
17 greg 1.28
18 greg 2.54 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 greg 2.32 ra_rgbe ra_pict ra_ps pextrem ra_gif ra_xyze macbethcal pcond pcwarp
22 greg 1.1
23 gwlarson 2.42 all: $(PROGS) $(SPECIAL)
24 greg 1.29
25 gwlarson 2.39 ogl:
26    
27 greg 1.29 sun:
28 greg 1.1
29 greg 2.24 install: $(PROGS) $(SPECIAL) normpat.csh falsecolor.csh \
30 greg 2.61 pdfblur.csh pmblur.csh pmdblur.csh xyzimage.csh pgblur.csh ra_pfm.csh
31 greg 1.1 cp $(PROGS) $(INSTDIR)
32 greg 1.25 cp normpat.csh $(INSTDIR)/normpat
33 greg 1.38 cp falsecolor.csh $(INSTDIR)/falsecolor
34 greg 2.20 cp pdfblur.csh $(INSTDIR)/pdfblur
35 greg 2.24 cp pmblur.csh $(INSTDIR)/pmblur
36 greg 2.57 cp pmdblur.csh $(INSTDIR)/pmdblur
37 greg 2.25 cp xyzimage.csh $(INSTDIR)/xyzimage
38 gwlarson 2.37 cp phisto.csh $(INSTDIR)/phisto
39 greg 2.45 cp pdelta.csh $(INSTDIR)/pdelta
40 greg 2.49 cp pgblur.csh $(INSTDIR)/pgblur
41 greg 2.56 cp ra_pfm.csh $(INSTDIR)/ra_pfm
42 greg 2.62 cp ran2tiff.csh $(INSTDIR)/ran2tiff
43     cd $(INSTDIR) ; chmod 755 normpat falsecolor pdfblur pmblur \
44     pmdblur xyzimage phisto pdelta pgblur ra_pfm ran2tiff
45 greg 1.1
46 greg 1.28 clean:
47 greg 2.55 rm -f $(PROGS) $(SPECIAL) *.o core
48     cd tiff; make distclean
49 greg 1.28
50 greg 1.40 pfilt: pfilt.o pf2.o pf3.o
51 greg 2.16 $(CC) $(CFLAGS) -o pfilt pfilt.o pf2.o pf3.o -lrt $(MLIB)
52 greg 1.1
53 greg 2.32 pcond: pcond.o pcond2.o pcond3.o pcond4.o warp3d.o
54     $(CC) $(CFLAGS) -o pcond pcond.o pcond2.o pcond3.o pcond4.o warp3d.o \
55     -lrt $(MLIB)
56 greg 2.29
57 greg 2.32 pcwarp: pcwarp.o warp3d.o
58     $(CC) $(CFLAGS) -o pcwarp pcwarp.o warp3d.o -lrt $(MLIB)
59    
60 greg 1.40 ttyimage: ttyimage.o
61 greg 2.16 $(CC) $(CFLAGS) -o ttyimage ttyimage.o -lrt $(MLIB)
62 greg 1.1
63 greg 1.40 pvalue: pvalue.o
64 greg 2.16 $(CC) $(CFLAGS) -o pvalue pvalue.o -lrt $(MLIB)
65 greg 1.1
66 greg 1.40 pcompos: pcompos.o
67 gwlarson 2.44 $(CC) $(CFLAGS) -o pcompos pcompos.o -lrt $(MLIB)
68 greg 1.1
69 greg 1.40 psign: psign.o
70 gwlarson 2.44 $(CC) $(CFLAGS) -o psign psign.o -lrt $(MLIB)
71 greg 1.1
72 greg 2.19 ra_gif: ra_gif.o clrtab.o neuclrtab.o
73     $(CC) $(CFLAGS) -o ra_gif ra_gif.o clrtab.o neuclrtab.o -lrt $(MLIB)
74 greg 1.1
75 greg 2.5 ra_ps: ra_ps.o
76 greg 2.16 $(CC) $(CFLAGS) -o ra_ps ra_ps.o -lrt $(MLIB)
77 greg 2.5
78 greg 1.46 ra_ppm: ra_ppm.o
79 greg 2.16 $(CC) $(CFLAGS) -o ra_ppm ra_ppm.o -lrt $(MLIB)
80 greg 1.19
81 greg 2.51 ra_bmp: ra_bmp.o
82     $(CC) $(CFLAGS) -o ra_bmp ra_bmp.o -lrt $(MLIB)
83    
84 greg 2.19 ra_t8: ra_t8.o clrtab.o neuclrtab.o
85     $(CC) $(CFLAGS) -o ra_t8 ra_t8.o clrtab.o neuclrtab.o -lrt $(MLIB)
86 greg 1.1
87 greg 1.40 ra_t16: ra_t16.o
88 greg 2.16 $(CC) $(CFLAGS) -o ra_t16 ra_t16.o -lrt $(MLIB)
89 greg 1.1
90 greg 1.49 ra_rgbe: ra_rgbe.o
91 greg 2.16 $(CC) $(CFLAGS) -o ra_rgbe ra_rgbe.o -lrt $(MLIB)
92 greg 1.1
93 greg 1.50 ra_pict: ra_pict.o
94 greg 2.16 $(CC) $(CFLAGS) -o ra_pict ra_pict.o -lrt $(MLIB)
95 greg 1.50
96 gwlarson 2.40 ra_hexbit: ra_hexbit.o
97 greg 2.48 $(CC) $(CFLAGS) -o ra_hexbit ra_hexbit.o -lrt $(MLIB)
98 greg 1.50
99 greg 2.9 ximage: x11image.o x11raster.o clrtab.o
100 greg 2.4 $(CC) $(CFLAGS) -o ximage x11image.o x11raster.o \
101 greg 2.45 clrtab.o -lrt -lX11 $(MLIB)
102 greg 1.17
103 greg 1.56 protate: protate.o
104 gwlarson 2.44 $(CC) $(CFLAGS) -o protate protate.o -lrt $(MLIB)
105 greg 1.1
106 greg 2.6 pextrem: pextrem.o
107 gwlarson 2.44 $(CC) $(CFLAGS) -o pextrem pextrem.o -lrt $(MLIB)
108 greg 2.6
109 greg 1.40 pflip: pflip.o
110 gwlarson 2.44 $(CC) $(CFLAGS) -o pflip pflip.o -lrt $(MLIB)
111 greg 1.26
112 greg 1.41 pcomb: pcomb.o
113 greg 2.16 $(CC) $(CFLAGS) -o pcomb pcomb.o -lrt $(MLIB)
114 greg 1.1
115 greg 1.40 pinterp: pinterp.o
116 greg 2.16 $(CC) $(CFLAGS) -o pinterp pinterp.o -lrt $(MLIB)
117 greg 2.22
118     ra_xyze: ra_xyze.o
119     $(CC) $(CFLAGS) -o ra_xyze ra_xyze.o -lrt $(MLIB)
120 greg 1.44
121 greg 1.48 ra_tiff: ra_tiff.o ../lib/libtiff.a
122 greg 2.16 $(CC) $(CFLAGS) -o ra_tiff ra_tiff.o -lrt -ltiff $(MLIB)
123 greg 1.44
124 gwlarson 2.43 ../common/tiff.h ../common/tiffio.h: ../lib/libtiff.a
125 greg 2.45 @chmod u+w ../common/tiff.h ../common/tiffio.h
126 gwlarson 2.43 @touch ../common/tiff.h ../common/tiffio.h
127 gregl 2.36
128 greg 2.45 normtiff: normtiff.o ../lib/libtiff.a
129     $(CC) $(CFLAGS) -o normtiff normtiff.o -lrt -ltiff $(MLIB)
130 gwlarson 2.43
131 greg 2.58 ../lib/libtiff.a:
132 greg 2.60 cd tiff ; ./configure -C -quiet -with-CC=$(CC) \
133 greg 2.58 "--libdir=`pwd`/../../lib" "--includedir=`pwd`/../../common" \
134     --enable-static --disable-shared --disable-cxx \
135     --enable-logluv --disable-jpeg \
136     --disable-zlib --disable-pixarlog \
137 gwlarson 2.42 "-with-ENVOPTS=$(OPT)" ; \
138 greg 2.58 cd port ; make all ; \
139     cd ../libtiff ; make install
140 greg 1.44
141 greg 1.40 xshowtrace: xshowtrace.o x11findwind.o
142 greg 2.4 $(CC) $(CFLAGS) -o xshowtrace xshowtrace.o \
143 greg 2.45 x11findwind.o -lrt -lX11 $(MLIB)
144 greg 2.21
145 greg 2.32 macbethcal: macbethcal.o pmapgen.o mx3.o warp3d.o
146     $(CC) $(CFLAGS) -o macbethcal macbethcal.o pmapgen.o mx3.o warp3d.o \
147     -lrt $(MLIB)
148 greg 2.21
149    
150 greg 2.23 macbethcal.o: pmap.h ../common/color.h ../common/resolu.h
151 greg 2.32
152     macbethcal.o pcond2.o pcwarp.o warp3d.o: warp3d.h ../common/lookup.h
153 greg 2.21
154     pmapgen.o: mx3.h pmap.h
155 greg 1.28
156 greg 2.19 nclrtab.o: neuclrtab.o
157     ln neuclrtab.c nclrtab.c
158     $(CC) $(CFLAGS) -DCOMPAT_MODE -c nclrtab.c
159     rm -f nclrtab.c
160    
161 greg 1.41 pcomb.o: ../common/calcomp.h
162 greg 1.18
163 greg 2.54 pf2.o ra_ps.o ra_t16.o: ../common/random.h
164 greg 1.1
165 greg 2.54 neuclrtab.o clrtab.o pfilt.o pf2.o pf3.o ttyimage.o \
166     psign.o protate.o ra_hexbit.o pextrem.o pcompos.o \
167     pflip.o ra_t8.o ra_t16.o ra_tiff.o ra_pict.o \
168     ra_ps.o pvalue.o pcomb.o pinterp.o: ../common/color.h
169 greg 1.1
170 greg 2.55 neuclrtab.o pvalue.o protate.o pinterp.o psign.o \
171 greg 2.19 xshowtrace.o clrtab.o pcomb.o pfilt.o pf3.o image.o: ../common/standard.h \
172 greg 2.47 ../common/rtmisc.h ../common/rtio.h \
173     ../common/rtmath.h ../common/mat4.h ../common/fvect.h \
174 greg 2.53 ../common/rterror.h ../common/tifftypes.h
175 greg 1.1
176 greg 1.17 x11image.o x11raster.o: x11raster.h
177 greg 1.1
178 greg 2.33 x11image.o: ../common/tonemap.h ../common/color.h
179    
180 greg 1.40 ra_t8.o: ../common/targa.h
181 gregl 2.34
182 greg 2.45 ra_tiff.o normtiff.o: ../common/tiff.h ../common/tiffio.h
183 greg 1.1
184 greg 2.54 ra_t8.o: pic.h
185 greg 1.1
186 greg 2.54 pcomb.o pfilt.o pinterp.o x11image.o x11showtrace.o \
187 greg 2.45 image.o: ../common/view.h ../common/resolu.h
188 greg 1.50
189     ra_pict.o: pict.h
190 greg 1.55
191 greg 2.54 pcompos.o pfilt.o pflip.o \
192     pinterp.o protate.o pvalue.o ra_pict.o ra_hexbit.o \
193     ra_ppm.o ra_rgbe.o ra_t16.o ra_t8.o \
194 greg 2.45 ra_tiff.o ttyimage.o: ../common/resolu.h
195 greg 2.7
196 greg 2.45 pfilt.o: ../common/paths.h
197 greg 2.18
198     psign.o: ../common/font.h
199 greg 2.29
200     pcond.o pcond2.o pcond3.o pcond4.o: pcond.h ../common/standard.h \
201 greg 2.47 ../common/rtmisc.h ../common/rtio.h \
202     ../common/rtmath.h ../common/mat4.h ../common/fvect.h \
203 greg 2.53 ../common/rterror.h ../common/tifftypes.h \
204 greg 2.29 ../common/color.h ../common/view.h ../common/resolu.h
205 gwlarson 2.43
206     normtiff.o: ../common/color.h ../common/tonemap.h ../common/resolu.h
207    
208 greg 2.52 ra_bmp.o: ../common/bmpfile.h ../common/color.h \
209     ../common/tonemap.h ../common/resolu.h
210 greg 2.51
211 greg 2.45 x11findwind.c: ../common/x11findwind.c
212     cp ../common/x11findwind.c .