ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/px/Rmakefile
Revision: 2.60
Committed: Tue Jul 26 15:33:13 2005 UTC (18 years, 8 months ago) by greg
Branch: MAIN
CVS Tags: rad3R7P2, rad3R7P1
Changes since 2.59: +2 -5 lines
Log Message:
Fixed TIFF build problems under FreeBSD

File Contents

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