ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/px/Rmakefile
Revision: 2.63
Committed: Fri Mar 10 19:40:13 2006 UTC (18 years, 1 month ago) by schorsch
Branch: MAIN
CVS Tags: rad3R8
Changes since 2.62: +28 -28 lines
Log Message:
Renamed librt.a to librtrad.a to avoid conflict on Solaris.

File Contents

# Content
1 # RCSid: $Id: Rmakefile,v 2.62 2005/09/17 05:14:14 greg Exp $
2 #
3 # Compiles for image processing and display programs
4 #
5
6 ARCH = sun
7 OPT = -O
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 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 ra_rgbe ra_pict ra_ps pextrem ra_gif ra_xyze macbethcal pcond pcwarp
22
23 all: $(PROGS) $(SPECIAL)
24
25 ogl:
26
27 sun:
28
29 install: $(PROGS) $(SPECIAL) normpat.csh falsecolor.csh \
30 pdfblur.csh pmblur.csh pmdblur.csh xyzimage.csh pgblur.csh ra_pfm.csh
31 cp $(PROGS) $(INSTDIR)
32 cp normpat.csh $(INSTDIR)/normpat
33 cp falsecolor.csh $(INSTDIR)/falsecolor
34 cp pdfblur.csh $(INSTDIR)/pdfblur
35 cp pmblur.csh $(INSTDIR)/pmblur
36 cp pmdblur.csh $(INSTDIR)/pmdblur
37 cp xyzimage.csh $(INSTDIR)/xyzimage
38 cp phisto.csh $(INSTDIR)/phisto
39 cp pdelta.csh $(INSTDIR)/pdelta
40 cp pgblur.csh $(INSTDIR)/pgblur
41 cp ra_pfm.csh $(INSTDIR)/ra_pfm
42 cp ran2tiff.csh $(INSTDIR)/ran2tiff
43 cd $(INSTDIR) ; chmod 755 normpat falsecolor pdfblur pmblur \
44 pmdblur xyzimage phisto pdelta pgblur ra_pfm ran2tiff
45
46 clean:
47 rm -f $(PROGS) $(SPECIAL) *.o core
48 cd tiff; make distclean
49
50 pfilt: pfilt.o pf2.o pf3.o
51 $(CC) $(CFLAGS) -o pfilt pfilt.o pf2.o pf3.o -lrtrad $(MLIB)
52
53 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 -lrtrad $(MLIB)
56
57 pcwarp: pcwarp.o warp3d.o
58 $(CC) $(CFLAGS) -o pcwarp pcwarp.o warp3d.o -lrtrad $(MLIB)
59
60 ttyimage: ttyimage.o
61 $(CC) $(CFLAGS) -o ttyimage ttyimage.o -lrtrad $(MLIB)
62
63 pvalue: pvalue.o
64 $(CC) $(CFLAGS) -o pvalue pvalue.o -lrtrad $(MLIB)
65
66 pcompos: pcompos.o
67 $(CC) $(CFLAGS) -o pcompos pcompos.o -lrtrad $(MLIB)
68
69 psign: psign.o
70 $(CC) $(CFLAGS) -o psign psign.o -lrtrad $(MLIB)
71
72 ra_gif: ra_gif.o clrtab.o neuclrtab.o
73 $(CC) $(CFLAGS) -o ra_gif ra_gif.o clrtab.o neuclrtab.o -lrtrad $(MLIB)
74
75 ra_ps: ra_ps.o
76 $(CC) $(CFLAGS) -o ra_ps ra_ps.o -lrtrad $(MLIB)
77
78 ra_ppm: ra_ppm.o
79 $(CC) $(CFLAGS) -o ra_ppm ra_ppm.o -lrtrad $(MLIB)
80
81 ra_bmp: ra_bmp.o
82 $(CC) $(CFLAGS) -o ra_bmp ra_bmp.o -lrtrad $(MLIB)
83
84 ra_t8: ra_t8.o clrtab.o neuclrtab.o
85 $(CC) $(CFLAGS) -o ra_t8 ra_t8.o clrtab.o neuclrtab.o -lrtrad $(MLIB)
86
87 ra_t16: ra_t16.o
88 $(CC) $(CFLAGS) -o ra_t16 ra_t16.o -lrtrad $(MLIB)
89
90 ra_rgbe: ra_rgbe.o
91 $(CC) $(CFLAGS) -o ra_rgbe ra_rgbe.o -lrtrad $(MLIB)
92
93 ra_pict: ra_pict.o
94 $(CC) $(CFLAGS) -o ra_pict ra_pict.o -lrtrad $(MLIB)
95
96 ra_hexbit: ra_hexbit.o
97 $(CC) $(CFLAGS) -o ra_hexbit ra_hexbit.o -lrtrad $(MLIB)
98
99 ximage: x11image.o x11raster.o clrtab.o
100 $(CC) $(CFLAGS) -o ximage x11image.o x11raster.o \
101 clrtab.o -lrtrad -lX11 $(MLIB)
102
103 protate: protate.o
104 $(CC) $(CFLAGS) -o protate protate.o -lrtrad $(MLIB)
105
106 pextrem: pextrem.o
107 $(CC) $(CFLAGS) -o pextrem pextrem.o -lrtrad $(MLIB)
108
109 pflip: pflip.o
110 $(CC) $(CFLAGS) -o pflip pflip.o -lrtrad $(MLIB)
111
112 pcomb: pcomb.o
113 $(CC) $(CFLAGS) -o pcomb pcomb.o -lrtrad $(MLIB)
114
115 pinterp: pinterp.o
116 $(CC) $(CFLAGS) -o pinterp pinterp.o -lrtrad $(MLIB)
117
118 ra_xyze: ra_xyze.o
119 $(CC) $(CFLAGS) -o ra_xyze ra_xyze.o -lrtrad $(MLIB)
120
121 ra_tiff: ra_tiff.o ../lib/libtiff.a
122 $(CC) $(CFLAGS) -o ra_tiff ra_tiff.o -lrtrad -ltiff $(MLIB)
123
124 ../common/tiff.h ../common/tiffio.h: ../lib/libtiff.a
125 @chmod u+w ../common/tiff.h ../common/tiffio.h
126 @touch ../common/tiff.h ../common/tiffio.h
127
128 normtiff: normtiff.o ../lib/libtiff.a
129 $(CC) $(CFLAGS) -o normtiff normtiff.o -lrtrad -ltiff $(MLIB)
130
131 ../lib/libtiff.a:
132 cd tiff ; ./configure -C -quiet -with-CC=$(CC) \
133 "--libdir=`pwd`/../../lib" "--includedir=`pwd`/../../common" \
134 --enable-static --disable-shared --disable-cxx \
135 --enable-logluv --disable-jpeg \
136 --disable-zlib --disable-pixarlog \
137 "-with-ENVOPTS=$(OPT)" ; \
138 cd port ; make all ; \
139 cd ../libtiff ; make install
140
141 xshowtrace: xshowtrace.o x11findwind.o
142 $(CC) $(CFLAGS) -o xshowtrace xshowtrace.o \
143 x11findwind.o -lrtrad -lX11 $(MLIB)
144
145 macbethcal: macbethcal.o pmapgen.o mx3.o warp3d.o
146 $(CC) $(CFLAGS) -o macbethcal macbethcal.o pmapgen.o mx3.o warp3d.o \
147 -lrtrad $(MLIB)
148
149
150 macbethcal.o: pmap.h ../common/color.h ../common/resolu.h
151
152 macbethcal.o pcond2.o pcwarp.o warp3d.o: warp3d.h ../common/lookup.h
153
154 pmapgen.o: mx3.h pmap.h
155
156 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 pcomb.o: ../common/calcomp.h
162
163 pf2.o ra_ps.o ra_t16.o: ../common/random.h
164
165 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
170 neuclrtab.o pvalue.o protate.o pinterp.o psign.o \
171 xshowtrace.o clrtab.o pcomb.o pfilt.o pf3.o image.o: ../common/standard.h \
172 ../common/rtmisc.h ../common/rtio.h \
173 ../common/rtmath.h ../common/mat4.h ../common/fvect.h \
174 ../common/rterror.h ../common/tifftypes.h
175
176 x11image.o x11raster.o: x11raster.h
177
178 x11image.o: ../common/tonemap.h ../common/color.h
179
180 ra_t8.o: ../common/targa.h
181
182 ra_tiff.o normtiff.o: ../common/tiff.h ../common/tiffio.h
183
184 ra_t8.o: pic.h
185
186 pcomb.o pfilt.o pinterp.o x11image.o x11showtrace.o \
187 image.o: ../common/view.h ../common/resolu.h
188
189 ra_pict.o: pict.h
190
191 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 ra_tiff.o ttyimage.o: ../common/resolu.h
195
196 pfilt.o: ../common/paths.h
197
198 psign.o: ../common/font.h
199
200 pcond.o pcond2.o pcond3.o pcond4.o: pcond.h ../common/standard.h \
201 ../common/rtmisc.h ../common/rtio.h \
202 ../common/rtmath.h ../common/mat4.h ../common/fvect.h \
203 ../common/rterror.h ../common/tifftypes.h \
204 ../common/color.h ../common/view.h ../common/resolu.h
205
206 normtiff.o: ../common/color.h ../common/tonemap.h ../common/resolu.h
207
208 ra_bmp.o: ../common/bmpfile.h ../common/color.h \
209 ../common/tonemap.h ../common/resolu.h
210
211 x11findwind.c: ../common/x11findwind.c
212 cp ../common/x11findwind.c .