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