ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/px/Rmakefile
Revision: 2.75
Committed: Thu Feb 9 00:18:05 2023 UTC (15 months, 1 week ago) by greg
Branch: MAIN
CVS Tags: rad5R4, HEAD
Changes since 2.74: +4 -2 lines
Log Message:
chore: Made support for $(INSTALL) more universal between rmake directories

File Contents

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