| 1 | < | #  Compiles for image processing and display programs | 
| 2 | < | # SCCSid "$SunId$ LBL" | 
| 1 | > | # Compiles for image processing and display programs | 
| 2 | > | # SCCSid "$SunId$ SGI" | 
| 3 |  | # | 
| 4 |  |  | 
| 5 |  | ARCH = sun | 
| 17 |  | PIXAR_INCLUDE=  -I/usr/pixar/include | 
| 18 |  | PIXAR_LIB=      -L/usr/pixar/host/lib -lpirl -lpicio -lchad -lpixar $(MLIB) | 
| 19 |  |  | 
| 20 | < | PROGS = pfilt ttyimage oki20c oki20 paintjet mt160r getinfo psign \ | 
| 20 | > | PROGS = pfilt ttyimage oki20c oki20 paintjet mt160r psign \ | 
| 21 |  | greyscale pvalue pcompos colorscale protate ra_pr ra_pr24 ra_avs \ | 
| 22 |  | ra_t8 ra_bn ra_t16 pcomb pinterp ximage xshowtrace pflip ra_ppm \ | 
| 23 | < | ra_rgbe ra_pict ra_ps pextrem ra_gif ra_xyze macbethcal | 
| 23 | > | ra_rgbe ra_pict ra_ps pextrem ra_gif ra_xyze macbethcal pcond pcwarp | 
| 24 |  |  | 
| 25 |  | all:    $(PROGS) $(SPECIAL) | 
| 26 |  |  | 
| 33 |  | sgi:    glimage | 
| 34 |  | cp glimage $(INSTDIR) | 
| 35 |  |  | 
| 36 | – | tiff:   ra_tiff | 
| 37 | – | cp ra_tiff $(INSTDIR) | 
| 38 | – |  | 
| 36 |  | sun: | 
| 37 |  |  | 
| 38 | < | install:        $(PROGS) $(SPECIAL) normpat.csh falsecolor.csh pdfblur.csh | 
| 38 | > | install:        $(PROGS) $(SPECIAL) normpat.csh falsecolor.csh \ | 
| 39 | > | pdfblur.csh pmblur.csh xyzimage.csh | 
| 40 |  | cp $(PROGS) $(INSTDIR) | 
| 41 |  | cp normpat.csh $(INSTDIR)/normpat | 
| 42 |  | cp falsecolor.csh $(INSTDIR)/falsecolor | 
| 43 |  | cp pdfblur.csh $(INSTDIR)/pdfblur | 
| 44 | < | chmod 755 $(INSTDIR)/normpat $(INSTDIR)/falsecolor $(INSTDIR)/pdfblur | 
| 44 | > | cp pmblur.csh $(INSTDIR)/pmblur | 
| 45 | > | cp xyzimage.csh $(INSTDIR)/xyzimage | 
| 46 | > | chmod 755 $(INSTDIR)/normpat $(INSTDIR)/falsecolor \ | 
| 47 | > | $(INSTDIR)/pdfblur $(INSTDIR)/pmblur $(INSTDIR)/xyzimage | 
| 48 |  |  | 
| 49 |  | clean: | 
| 50 |  | set nonomatch; rm -f x10image aedimage glimage ra_tiff \ | 
| 53 |  | pfilt:  pfilt.o pf2.o pf3.o | 
| 54 |  | $(CC) $(CFLAGS) -o pfilt pfilt.o pf2.o pf3.o -lrt $(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 | + | -lrt $(MLIB) | 
| 59 | + |  | 
| 60 | + | pcwarp: pcwarp.o warp3d.o | 
| 61 | + | $(CC) $(CFLAGS) -o pcwarp pcwarp.o warp3d.o -lrt $(MLIB) | 
| 62 | + |  | 
| 63 |  | ttyimage:       ttyimage.o | 
| 64 |  | $(CC) $(CFLAGS) -o ttyimage ttyimage.o -lrt $(MLIB) | 
| 65 |  |  | 
| 85 |  | mt160r: mt160r.o | 
| 86 |  | $(CC) $(CFLAGS) -o mt160r mt160r.o -lrt $(MLIB) | 
| 87 |  |  | 
| 80 | – | getinfo:        getinfo.o | 
| 81 | – | $(CC) $(CFLAGS) -o getinfo getinfo.o -lrt | 
| 82 | – |  | 
| 88 |  | greyscale:      greyscale.o | 
| 89 |  | $(CC) $(CFLAGS) -o greyscale greyscale.o -lrt $(MLIB) | 
| 90 |  |  | 
| 177 |  | ra_tiff:        ra_tiff.o ../lib/libtiff.a | 
| 178 |  | $(CC) $(CFLAGS) -o ra_tiff ra_tiff.o -lrt -ltiff $(MLIB) | 
| 179 |  |  | 
| 180 | < | ra_tiff.o:      ra_tiff.c | 
| 181 | < | $(CC) $(CFLAGS) -Ilibtiff -c ra_tiff.c | 
| 180 | > | ../common/tiff.h ../lib/libtiff.a:      tiff/config.local | 
| 181 | > | cd tiff ; ./configure -quiet -noninteractive ; \ | 
| 182 | > | cd libtiff ; make install ; | 
| 183 | > | #       cd .. ; make distclean | 
| 184 |  |  | 
| 178 | – | ../lib/libtiff.a: | 
| 179 | – | cd libtiff ; make -f Makefile.$(ARCH) ; \ | 
| 180 | – | mv libtiff.a ../../lib ; make clean | 
| 181 | – |  | 
| 185 |  | ra_pixar:       ra_pixar.o ra_pixar.c | 
| 186 |  | $(CC) $(CFLAGS) $(PIXAR_INCLUDE) -o $@ ra_pixar.o -lrt \ | 
| 187 |  | $(PIXAR_LIB) | 
| 193 |  | $(CC) $(CFLAGS) -o xshowtrace xshowtrace.o \ | 
| 194 |  | x11findwind.o -lrt $(MLIB) -lX11 | 
| 195 |  |  | 
| 196 | < | macbethcal:     macbethcal.o pmapgen.o mx3.o | 
| 197 | < | $(CC) $(CFLAGS) -o macbethcal macbethcal.o pmapgen.o mx3.o -lrt $(MLIB) | 
| 196 | > | macbethcal:     macbethcal.o pmapgen.o mx3.o warp3d.o | 
| 197 | > | $(CC) $(CFLAGS) -o macbethcal macbethcal.o pmapgen.o mx3.o warp3d.o \ | 
| 198 | > | -lrt $(MLIB) | 
| 199 |  |  | 
| 200 |  |  | 
| 201 | < | macbethcal.o:   pmap.h | 
| 201 | > | macbethcal.o:   pmap.h ../common/color.h ../common/resolu.h | 
| 202 |  |  | 
| 203 | + | macbethcal.o pcond2.o pcwarp.o warp3d.o:        warp3d.h ../common/lookup.h | 
| 204 | + |  | 
| 205 |  | pmapgen.o:      mx3.h pmap.h | 
| 206 |  |  | 
| 207 |  | nclrtab.o:      neuclrtab.o | 
| 229 |  |  | 
| 230 |  | x11image.o x11raster.o: x11raster.h | 
| 231 |  |  | 
| 232 | + | x11image.o:     ../common/tonemap.h ../common/color.h | 
| 233 | + |  | 
| 234 |  | ra_t8.o:        ../common/targa.h | 
| 235 |  |  | 
| 236 | + | ra_tiff.o:      ../common/tiff.h | 
| 237 | + |  | 
| 238 |  | aedimage.o ximage.o ra_t8.o ra_pr.o:    pic.h | 
| 239 |  |  | 
| 240 |  | ciq.o cut.o closest.o biq.o:    pic.h ciq.h | 
| 248 |  | ra_ppm.o ra_pr.o ra_pr24.o ra_rgbe.o ra_t16.o ra_t8.o glimage.o \ | 
| 249 |  | ra_tiff.o ttyimage.o ximage.o x11image.o:       ../common/resolu.h | 
| 250 |  |  | 
| 251 | < | pfilt.o:        ../common/paths.h | 
| 251 | > | pfilt.o:        ../common/paths.h ../common/view.h | 
| 252 |  |  | 
| 253 |  | psign.o:        ../common/font.h | 
| 254 | + |  | 
| 255 | + | pcond.o pcond2.o pcond3.o pcond4.o:     pcond.h ../common/standard.h \ | 
| 256 | + | ../common/mat4.h ../common/fvect.h \ | 
| 257 | + | ../common/color.h ../common/view.h ../common/resolu.h |