| 1 | greg | 2.47 | # RCSid: $Id: Rmakefile,v 2.46 2003/04/29 19:09:43 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 | gregl | 2.35 | SPECIAL = aed | 
| 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 | 1.4 | PIXAR_INCLUDE=  -I/usr/pixar/include | 
| 19 | greg | 2.16 | PIXAR_LIB=      -L/usr/pixar/host/lib -lpirl -lpicio -lchad -lpixar $(MLIB) | 
| 20 | greg | 1.4 |  | 
| 21 | greg | 2.45 | PROGS = pfilt ttyimage oki20c oki20 psign ra_tiff normtiff \ | 
| 22 |  |  | pvalue pcompos protate ra_pr ra_pr24 ra_avs ra_hexbit \ | 
| 23 |  |  | ra_t8 ra_bn ra_t16 pcomb pinterp pflip ra_ppm ximage xshowtrace \ | 
| 24 | greg | 2.32 | ra_rgbe ra_pict ra_ps pextrem ra_gif ra_xyze macbethcal pcond pcwarp | 
| 25 | greg | 1.1 |  | 
| 26 | gwlarson | 2.42 | all:    $(PROGS) $(SPECIAL) | 
| 27 | greg | 1.29 |  | 
| 28 | greg | 1.34 | x10:    x10image | 
| 29 |  |  | cp x10image $(INSTDIR) | 
| 30 | greg | 1.29 |  | 
| 31 |  |  | aed:    aedimage | 
| 32 |  |  | cp aedimage $(INSTDIR) | 
| 33 |  |  |  | 
| 34 | greg | 1.54 | sgi:    glimage | 
| 35 |  |  | cp glimage $(INSTDIR) | 
| 36 |  |  |  | 
| 37 | gwlarson | 2.39 | ogl: | 
| 38 |  |  |  | 
| 39 | greg | 1.29 | sun: | 
| 40 | greg | 1.1 |  | 
| 41 | greg | 2.24 | install:        $(PROGS) $(SPECIAL) normpat.csh falsecolor.csh \ | 
| 42 | greg | 2.25 | pdfblur.csh pmblur.csh xyzimage.csh | 
| 43 | greg | 1.1 | cp $(PROGS) $(INSTDIR) | 
| 44 | greg | 1.25 | cp normpat.csh $(INSTDIR)/normpat | 
| 45 | greg | 1.38 | cp falsecolor.csh $(INSTDIR)/falsecolor | 
| 46 | greg | 2.20 | cp pdfblur.csh $(INSTDIR)/pdfblur | 
| 47 | greg | 2.24 | cp pmblur.csh $(INSTDIR)/pmblur | 
| 48 | greg | 2.25 | cp xyzimage.csh $(INSTDIR)/xyzimage | 
| 49 | gwlarson | 2.37 | cp phisto.csh $(INSTDIR)/phisto | 
| 50 | greg | 2.45 | cp pdelta.csh $(INSTDIR)/pdelta | 
| 51 | greg | 2.24 | chmod 755 $(INSTDIR)/normpat $(INSTDIR)/falsecolor \ | 
| 52 | greg | 2.45 | $(INSTDIR)/pdfblur $(INSTDIR)/pmblur $(INSTDIR)/xyzimage \ | 
| 53 |  |  | $(INSTDIR)/phisto $(INSTDIR)/pdelta | 
| 54 | greg | 1.1 |  | 
| 55 | greg | 1.28 | clean: | 
| 56 | gwlarson | 2.39 | set nonomatch; rm -f x10image aedimage glimage \ | 
| 57 | greg | 2.45 | $(PROGS) $(SPECIAL) *.o core | 
| 58 |  |  | -cd tiff; make distclean | 
| 59 | greg | 1.28 |  | 
| 60 | greg | 1.40 | pfilt:  pfilt.o pf2.o pf3.o | 
| 61 | greg | 2.16 | $(CC) $(CFLAGS) -o pfilt pfilt.o pf2.o pf3.o -lrt $(MLIB) | 
| 62 | greg | 1.1 |  | 
| 63 | greg | 2.32 | pcond:  pcond.o pcond2.o pcond3.o pcond4.o warp3d.o | 
| 64 |  |  | $(CC) $(CFLAGS) -o pcond pcond.o pcond2.o pcond3.o pcond4.o warp3d.o \ | 
| 65 |  |  | -lrt $(MLIB) | 
| 66 | greg | 2.29 |  | 
| 67 | greg | 2.32 | pcwarp: pcwarp.o warp3d.o | 
| 68 |  |  | $(CC) $(CFLAGS) -o pcwarp pcwarp.o warp3d.o -lrt $(MLIB) | 
| 69 |  |  |  | 
| 70 | greg | 1.40 | ttyimage:       ttyimage.o | 
| 71 | greg | 2.16 | $(CC) $(CFLAGS) -o ttyimage ttyimage.o -lrt $(MLIB) | 
| 72 | greg | 1.1 |  | 
| 73 | greg | 1.40 | t4027:  t4027.o | 
| 74 | greg | 2.4 | $(CC) $(CFLAGS) -o t4027 t4027.o -lrt | 
| 75 | greg | 1.1 |  | 
| 76 | greg | 1.40 | glimage:        glimage.o | 
| 77 | greg | 2.16 | $(CC) $(CFLAGS) -o glimage glimage.o -lrt -lgl_s $(MLIB) | 
| 78 | greg | 1.16 |  | 
| 79 | greg | 1.40 | aedimage:       aedimage.o ciq.o cut.o closest.o biq.o | 
| 80 | greg | 2.4 | $(CC) $(CFLAGS) -o aedimage aedimage.o ciq.o cut.o closest.o \ | 
| 81 | greg | 2.16 | biq.o -lrt $(MLIB) | 
| 82 | greg | 1.1 |  | 
| 83 | greg | 1.40 | oki20c: oki20c.o | 
| 84 | greg | 2.16 | $(CC) $(CFLAGS) -o oki20c oki20c.o -lrt $(MLIB) | 
| 85 | greg | 2.2 |  | 
| 86 |  |  | oki20:  oki20.o | 
| 87 | greg | 2.16 | $(CC) $(CFLAGS) -o oki20 oki20.o -lrt $(MLIB) | 
| 88 | greg | 1.7 |  | 
| 89 | greg | 1.40 | paintjet:       paintjet.o | 
| 90 | greg | 2.16 | $(CC) $(CFLAGS) -o paintjet paintjet.o -lrt $(MLIB) | 
| 91 | greg | 1.1 |  | 
| 92 | greg | 1.40 | mt160r: mt160r.o | 
| 93 | greg | 2.16 | $(CC) $(CFLAGS) -o mt160r mt160r.o -lrt $(MLIB) | 
| 94 | greg | 1.1 |  | 
| 95 | greg | 1.40 | greyscale:      greyscale.o | 
| 96 | greg | 2.16 | $(CC) $(CFLAGS) -o greyscale greyscale.o -lrt $(MLIB) | 
| 97 | greg | 1.1 |  | 
| 98 | greg | 1.40 | colorscale:     colorscale.o | 
| 99 | gwlarson | 2.44 | $(CC) $(CFLAGS) -o colorscale colorscale.o -lrt $(MLIB) | 
| 100 | greg | 1.1 |  | 
| 101 | greg | 1.40 | pvalue: pvalue.o | 
| 102 | greg | 2.16 | $(CC) $(CFLAGS) -o pvalue pvalue.o -lrt $(MLIB) | 
| 103 | greg | 1.1 |  | 
| 104 | greg | 1.40 | psum:   psum.o | 
| 105 | greg | 2.4 | $(CC) $(CFLAGS) -o psum psum.o -lrt | 
| 106 | greg | 1.1 |  | 
| 107 | greg | 1.40 | pcompos:        pcompos.o | 
| 108 | gwlarson | 2.44 | $(CC) $(CFLAGS) -o pcompos pcompos.o -lrt $(MLIB) | 
| 109 | greg | 1.1 |  | 
| 110 | greg | 1.40 | psign:  psign.o | 
| 111 | gwlarson | 2.44 | $(CC) $(CFLAGS) -o psign psign.o -lrt $(MLIB) | 
| 112 | greg | 1.1 |  | 
| 113 | greg | 1.40 | d48c:   d48c.o | 
| 114 | greg | 2.4 | $(CC) $(CFLAGS) -o d48c d48c.o -lrt | 
| 115 | greg | 2.17 |  | 
| 116 | greg | 2.19 | ra_gif: ra_gif.o clrtab.o neuclrtab.o | 
| 117 |  |  | $(CC) $(CFLAGS) -o ra_gif ra_gif.o clrtab.o neuclrtab.o -lrt $(MLIB) | 
| 118 | greg | 1.1 |  | 
| 119 | greg | 1.40 | ra_pr:  ra_pr.o ciq.o cut.o closest.o biq.o | 
| 120 | greg | 2.4 | $(CC) $(CFLAGS) -o ra_pr ra_pr.o ciq.o cut.o closest.o \ | 
| 121 | greg | 2.16 | biq.o -lrt $(MLIB) | 
| 122 | greg | 1.1 |  | 
| 123 | greg | 1.40 | ra_pr24:        ra_pr24.o | 
| 124 | greg | 2.16 | $(CC) $(CFLAGS) -o ra_pr24 ra_pr24.o -lrt $(MLIB) | 
| 125 | greg | 2.13 |  | 
| 126 |  |  | ra_avs: ra_avs.o | 
| 127 | greg | 2.16 | $(CC) $(CFLAGS) -o ra_avs ra_avs.o -lrt $(MLIB) | 
| 128 | greg | 1.46 |  | 
| 129 | greg | 2.5 | ra_ps:  ra_ps.o | 
| 130 | greg | 2.16 | $(CC) $(CFLAGS) -o ra_ps ra_ps.o -lrt $(MLIB) | 
| 131 | greg | 2.5 |  | 
| 132 | greg | 1.46 | ra_ppm:         ra_ppm.o | 
| 133 | greg | 2.16 | $(CC) $(CFLAGS) -o ra_ppm ra_ppm.o -lrt $(MLIB) | 
| 134 | greg | 1.19 |  | 
| 135 | greg | 2.19 | ra_t8:  ra_t8.o clrtab.o neuclrtab.o | 
| 136 |  |  | $(CC) $(CFLAGS) -o ra_t8 ra_t8.o clrtab.o neuclrtab.o -lrt $(MLIB) | 
| 137 | greg | 1.1 |  | 
| 138 | greg | 1.40 | ra_t16: ra_t16.o | 
| 139 | greg | 2.16 | $(CC) $(CFLAGS) -o ra_t16 ra_t16.o -lrt $(MLIB) | 
| 140 | greg | 1.1 |  | 
| 141 |  |  | ra_im: ra_im.o | 
| 142 | greg | 2.15 | $(CC) $(CFLAGS) -o ra_im ra_im.o | 
| 143 | greg | 1.1 |  | 
| 144 | greg | 1.40 | ra_bn: ra_bn.o | 
| 145 | greg | 2.16 | $(CC) $(CFLAGS) -o ra_bn ra_bn.o -lrt $(MLIB) | 
| 146 | greg | 1.49 |  | 
| 147 |  |  | ra_rgbe:        ra_rgbe.o | 
| 148 | greg | 2.16 | $(CC) $(CFLAGS) -o ra_rgbe ra_rgbe.o -lrt $(MLIB) | 
| 149 | greg | 1.1 |  | 
| 150 | greg | 1.50 | ra_pict:    ra_pict.o | 
| 151 | greg | 2.16 | $(CC) $(CFLAGS) -o ra_pict ra_pict.o -lrt $(MLIB) | 
| 152 | greg | 1.50 |  | 
| 153 | gwlarson | 2.40 | ra_hexbit:      ra_hexbit.o | 
| 154 |  |  | $(CC) $(CFLAGS) -o ra_hexbit ra_hexbit.o -lrt | 
| 155 | greg | 1.50 |  | 
| 156 | greg | 1.40 | x10image:       ximage.o ciq.o cut.o closest.o xraster.o biq.o | 
| 157 | greg | 2.4 | $(CC) $(CFLAGS) -o x10image ximage.o xraster.o \ | 
| 158 | greg | 2.16 | ciq.o cut.o closest.o biq.o -lX -lrt $(MLIB) | 
| 159 | greg | 1.1 |  | 
| 160 | greg | 2.9 | ximage: x11image.o x11raster.o clrtab.o | 
| 161 | greg | 2.4 | $(CC) $(CFLAGS) -o ximage x11image.o x11raster.o \ | 
| 162 | greg | 2.45 | clrtab.o -lrt -lX11 $(MLIB) | 
| 163 | greg | 1.17 |  | 
| 164 | greg | 1.56 | protate:                protate.o | 
| 165 | gwlarson | 2.44 | $(CC) $(CFLAGS) -o protate protate.o -lrt $(MLIB) | 
| 166 | greg | 1.1 |  | 
| 167 | greg | 2.6 | pextrem:        pextrem.o | 
| 168 | gwlarson | 2.44 | $(CC) $(CFLAGS) -o pextrem pextrem.o -lrt $(MLIB) | 
| 169 | greg | 2.6 |  | 
| 170 | greg | 1.40 | pflip:          pflip.o | 
| 171 | gwlarson | 2.44 | $(CC) $(CFLAGS) -o pflip pflip.o -lrt $(MLIB) | 
| 172 | greg | 1.26 |  | 
| 173 | greg | 1.40 | panim:  panim.o client/libclient.a | 
| 174 | greg | 2.4 | $(CC) $(CFLAGS) -o panim panim.o \ | 
| 175 | greg | 2.16 | -lrt client/libclient.a -lrpcsvc $(MLIB) | 
| 176 | greg | 1.1 |  | 
| 177 | greg | 1.41 | pcomb:  pcomb.o | 
| 178 | greg | 2.16 | $(CC) $(CFLAGS) -o pcomb pcomb.o -lrt $(MLIB) | 
| 179 | greg | 1.1 |  | 
| 180 | greg | 1.40 | pinterp:        pinterp.o | 
| 181 | greg | 2.16 | $(CC) $(CFLAGS) -o pinterp pinterp.o -lrt $(MLIB) | 
| 182 | greg | 2.22 |  | 
| 183 |  |  | ra_xyze:        ra_xyze.o | 
| 184 |  |  | $(CC) $(CFLAGS) -o ra_xyze ra_xyze.o -lrt $(MLIB) | 
| 185 | greg | 1.44 |  | 
| 186 | greg | 1.48 | ra_tiff:        ra_tiff.o ../lib/libtiff.a | 
| 187 | greg | 2.16 | $(CC) $(CFLAGS) -o ra_tiff ra_tiff.o -lrt -ltiff $(MLIB) | 
| 188 | greg | 1.44 |  | 
| 189 | gwlarson | 2.43 | ../common/tiff.h ../common/tiffio.h:    ../lib/libtiff.a | 
| 190 | greg | 2.45 | @chmod u+w ../common/tiff.h ../common/tiffio.h | 
| 191 | gwlarson | 2.43 | @touch ../common/tiff.h ../common/tiffio.h | 
| 192 | gregl | 2.36 |  | 
| 193 | greg | 2.45 | normtiff:       normtiff.o ../lib/libtiff.a | 
| 194 |  |  | $(CC) $(CFLAGS) -o normtiff normtiff.o -lrt -ltiff $(MLIB) | 
| 195 | gwlarson | 2.43 |  | 
| 196 | gregl | 2.35 | ../lib/libtiff.a:       tiff/config.local | 
| 197 | greg | 2.46 | cd tiff ; sh configure -quiet -noninteractive -with-CC=$(CC) \ | 
| 198 | gwlarson | 2.42 | "-with-ENVOPTS=$(OPT)" ; \ | 
| 199 | gwlarson | 2.39 | cd libtiff ; make install | 
| 200 | greg | 1.44 |  | 
| 201 | greg | 1.40 | ra_pixar:       ra_pixar.o ra_pixar.c | 
| 202 | greg | 2.4 | $(CC) $(CFLAGS) $(PIXAR_INCLUDE) -o $@ ra_pixar.o -lrt \ | 
| 203 | greg | 1.4 | $(PIXAR_LIB) | 
| 204 |  |  |  | 
| 205 |  |  | ra_pixar.o:     ra_pixar.c | 
| 206 | greg | 2.4 | $(CC) $(CFLAGS) $(PIXAR_INCLUDE) -c ra_pixar.c | 
| 207 | greg | 1.1 |  | 
| 208 | greg | 1.40 | xshowtrace:     xshowtrace.o x11findwind.o | 
| 209 | greg | 2.4 | $(CC) $(CFLAGS) -o xshowtrace xshowtrace.o \ | 
| 210 | greg | 2.45 | x11findwind.o -lrt -lX11 $(MLIB) | 
| 211 | greg | 2.21 |  | 
| 212 | greg | 2.32 | macbethcal:     macbethcal.o pmapgen.o mx3.o warp3d.o | 
| 213 |  |  | $(CC) $(CFLAGS) -o macbethcal macbethcal.o pmapgen.o mx3.o warp3d.o \ | 
| 214 |  |  | -lrt $(MLIB) | 
| 215 | greg | 2.21 |  | 
| 216 |  |  |  | 
| 217 | greg | 2.23 | macbethcal.o:   pmap.h ../common/color.h ../common/resolu.h | 
| 218 | greg | 2.32 |  | 
| 219 |  |  | macbethcal.o pcond2.o pcwarp.o warp3d.o:        warp3d.h ../common/lookup.h | 
| 220 | greg | 2.21 |  | 
| 221 |  |  | pmapgen.o:      mx3.h pmap.h | 
| 222 | greg | 1.28 |  | 
| 223 | greg | 2.19 | nclrtab.o:      neuclrtab.o | 
| 224 |  |  | ln neuclrtab.c nclrtab.c | 
| 225 |  |  | $(CC) $(CFLAGS) -DCOMPAT_MODE -c nclrtab.c | 
| 226 |  |  | rm -f nclrtab.c | 
| 227 |  |  |  | 
| 228 | greg | 1.41 | pcomb.o:        ../common/calcomp.h | 
| 229 | greg | 1.18 |  | 
| 230 | greg | 1.40 | panim.o:        client/scan.h ../common/color.h ../common/random.h | 
| 231 | greg | 1.24 |  | 
| 232 | greg | 2.5 | pf2.o bnoise.o ra_ps.o ra_t16.o:        ../common/random.h | 
| 233 | greg | 1.1 |  | 
| 234 | greg | 2.19 | neuclrtab.o clrtab.o pfilt.o pf2.o pf3.o ttyimage.o t4027.o mt160r.o \ | 
| 235 | gwlarson | 2.40 | psum.o psign.o protate.o ra_hexbit.o \ | 
| 236 | greg | 2.14 | pextrem.o ra_pr24.o d48c.o aedimage.o pcompos.o color.o resolu.o colrops.o \ | 
| 237 |  |  | pflip.o greyscale.o ra_t8.o glimage.o ra_bn.o ra_t16.o ra_tiff.o ra_pict.o \ | 
| 238 | greg | 2.5 | ra_ps.o ra_pr.o pvalue.o pcomb.o pinterp.o ximage.o:    ../common/color.h | 
| 239 | greg | 1.1 |  | 
| 240 | greg | 2.19 | neuclrtab.o pvalue.o protate.o biq.o ciq.o pinterp.o ximage.o psign.o \ | 
| 241 |  |  | xshowtrace.o clrtab.o pcomb.o pfilt.o pf3.o image.o:    ../common/standard.h \ | 
| 242 | greg | 2.47 | ../common/rtmisc.h ../common/rtio.h \ | 
| 243 |  |  | ../common/rtmath.h ../common/mat4.h ../common/fvect.h \ | 
| 244 |  |  | ../common/rterror.h | 
| 245 | greg | 1.1 |  | 
| 246 | greg | 1.43 | ximage.o xraster.o:     xraster.h | 
| 247 | greg | 1.17 |  | 
| 248 |  |  | x11image.o x11raster.o: x11raster.h | 
| 249 | greg | 1.1 |  | 
| 250 | greg | 2.33 | x11image.o:     ../common/tonemap.h ../common/color.h | 
| 251 |  |  |  | 
| 252 | greg | 1.40 | ra_t8.o:        ../common/targa.h | 
| 253 | gregl | 2.34 |  | 
| 254 | greg | 2.45 | ra_tiff.o normtiff.o:   ../common/tiff.h ../common/tiffio.h | 
| 255 | greg | 1.1 |  | 
| 256 |  |  | aedimage.o ximage.o ra_t8.o ra_pr.o:    pic.h | 
| 257 |  |  |  | 
| 258 |  |  | ciq.o cut.o closest.o biq.o:    pic.h ciq.h | 
| 259 |  |  |  | 
| 260 | greg | 2.45 | pcomb.o pfilt.o pinterp.o ximage.o x11image.o x11showtrace.o \ | 
| 261 |  |  | image.o:        ../common/view.h ../common/resolu.h | 
| 262 | greg | 1.50 |  | 
| 263 |  |  | ra_pict.o:      pict.h | 
| 264 | greg | 1.55 |  | 
| 265 | greg | 2.45 | mt160r.o oki20c.o paintjet.o pcompos.o pfilt.o pflip.o \ | 
| 266 | gwlarson | 2.40 | pinterp.o protate.o pvalue.o ra_bn.o ra_pict.o ra_pixar.o ra_hexbit.o \ | 
| 267 | greg | 2.1 | ra_ppm.o ra_pr.o ra_pr24.o ra_rgbe.o ra_t16.o ra_t8.o glimage.o \ | 
| 268 | greg | 2.45 | ra_tiff.o ttyimage.o:   ../common/resolu.h | 
| 269 | greg | 2.7 |  | 
| 270 | greg | 2.45 | pfilt.o:        ../common/paths.h | 
| 271 | greg | 2.18 |  | 
| 272 |  |  | psign.o:        ../common/font.h | 
| 273 | greg | 2.29 |  | 
| 274 |  |  | pcond.o pcond2.o pcond3.o pcond4.o:     pcond.h ../common/standard.h \ | 
| 275 | greg | 2.47 | ../common/rtmisc.h ../common/rtio.h \ | 
| 276 |  |  | ../common/rtmath.h ../common/mat4.h ../common/fvect.h \ | 
| 277 |  |  | ../common/rterror.h \ | 
| 278 | greg | 2.29 | ../common/color.h ../common/view.h ../common/resolu.h | 
| 279 | gwlarson | 2.43 |  | 
| 280 |  |  | normtiff.o:     ../common/color.h ../common/tonemap.h ../common/resolu.h | 
| 281 |  |  |  | 
| 282 | greg | 2.45 | x11findwind.c:  ../common/x11findwind.c | 
| 283 |  |  | cp ../common/x11findwind.c . |