ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/px/Rmakefile
Revision: 2.74
Committed: Fri Jan 3 20:05:14 2020 UTC (4 years, 3 months ago) by greg
Branch: MAIN
CVS Tags: rad5R3
Changes since 2.73: +2 -2 lines
Log Message:
Converted phisto.csh to Perl script for Windows

File Contents

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