--- ray/src/px/Rmakefile 1991/10/23 09:33:13 1.50 +++ ray/src/px/Rmakefile 1997/08/29 15:35:28 2.36 @@ -1,26 +1,28 @@ +# Compiles for image processing and display programs +# SCCSid "$SunId$ SGI" # -# SCCSid "$SunId$ LBL" -# Compiles for image processing and display programs -# ARCH = sun OPT = -O -MACH = -DSTRUCTASSIGN -DBSD +MACH = -DBSD +SPECIAL = aed CFLAGS = $(OPT) $(MACH) -I../common -L../lib +CC = cc +MLIB = -lm INSTDIR = /usr/local/bin LIBDIR = /usr/local/lib/ray PIXAR_INCLUDE= -I/usr/pixar/include -PIXAR_LIB= -L/usr/pixar/host/lib -lpirl -lpicio -lchad -lpixar -lm +PIXAR_LIB= -L/usr/pixar/host/lib -lpirl -lpicio -lchad -lpixar $(MLIB) -PROGS = pfilt ttyimage oki20c paintjet mt160r getinfo psign \ -greyscale pvalue pcompos colorscale prot ra_pr ra_pr24 \ +PROGS = pfilt ttyimage oki20c oki20 paintjet mt160r psign \ +pvalue pcompos protate ra_pr ra_pr24 ra_avs \ ra_t8 ra_bn ra_t16 pcomb pinterp ximage xshowtrace pflip ra_ppm \ -ra_rgbe ra_pict +ra_rgbe ra_pict ra_ps pextrem ra_gif ra_xyze macbethcal pcond pcwarp -all: $(PROGS) +all: $(PROGS) $(SPECIAL) x10: x10image cp x10image $(INSTDIR) @@ -28,171 +30,230 @@ x10: x10image aed: aedimage cp aedimage $(INSTDIR) -tiff: ra_tiff - cp ra_tiff $(INSTDIR) +sgi: glimage + cp glimage $(INSTDIR) sun: -install: $(PROGS) normpat.csh falsecolor.csh +install: $(PROGS) $(SPECIAL) normpat.csh falsecolor.csh \ +pdfblur.csh pmblur.csh xyzimage.csh cp $(PROGS) $(INSTDIR) cp normpat.csh $(INSTDIR)/normpat cp falsecolor.csh $(INSTDIR)/falsecolor - chmod 755 $(INSTDIR)/normpat $(INSTDIR)/falsecolor + cp pdfblur.csh $(INSTDIR)/pdfblur + cp pmblur.csh $(INSTDIR)/pmblur + cp xyzimage.csh $(INSTDIR)/xyzimage + chmod 755 $(INSTDIR)/normpat $(INSTDIR)/falsecolor \ +$(INSTDIR)/pdfblur $(INSTDIR)/pmblur $(INSTDIR)/xyzimage clean: - set nonomatch; rm -f $(PROGS) *.o core + set nonomatch; rm -f x10image aedimage glimage ra_tiff \ +$(PROGS) *.o core pfilt: pfilt.o pf2.o pf3.o - cc $(CFLAGS) -o pfilt pfilt.o pf2.o pf3.o -lrt -lm + $(CC) $(CFLAGS) -o pfilt pfilt.o pf2.o pf3.o -lrt $(MLIB) +pcond: pcond.o pcond2.o pcond3.o pcond4.o warp3d.o + $(CC) $(CFLAGS) -o pcond pcond.o pcond2.o pcond3.o pcond4.o warp3d.o \ +-lrt $(MLIB) + +pcwarp: pcwarp.o warp3d.o + $(CC) $(CFLAGS) -o pcwarp pcwarp.o warp3d.o -lrt $(MLIB) + ttyimage: ttyimage.o - cc $(CFLAGS) -o ttyimage ttyimage.o -lrt -lm + $(CC) $(CFLAGS) -o ttyimage ttyimage.o -lrt $(MLIB) t4027: t4027.o - cc $(CFLAGS) -o t4027 t4027.o -lrt + $(CC) $(CFLAGS) -o t4027 t4027.o -lrt glimage: glimage.o - cc $(CFLAGS) -o glimage glimage.o -lrt -lgl_s -lm + $(CC) $(CFLAGS) -o glimage glimage.o -lrt -lgl_s $(MLIB) aedimage: aedimage.o ciq.o cut.o closest.o biq.o - cc $(CFLAGS) -o aedimage aedimage.o ciq.o cut.o closest.o \ -biq.o -lrt -lm + $(CC) $(CFLAGS) -o aedimage aedimage.o ciq.o cut.o closest.o \ +biq.o -lrt $(MLIB) oki20c: oki20c.o - cc $(CFLAGS) -o oki20c oki20c.o -lrt -lm + $(CC) $(CFLAGS) -o oki20c oki20c.o -lrt $(MLIB) +oki20: oki20.o + $(CC) $(CFLAGS) -o oki20 oki20.o -lrt $(MLIB) + paintjet: paintjet.o - cc $(CFLAGS) -o paintjet paintjet.o -lrt -lm + $(CC) $(CFLAGS) -o paintjet paintjet.o -lrt $(MLIB) mt160r: mt160r.o - cc $(CFLAGS) -o mt160r mt160r.o -lrt -lm + $(CC) $(CFLAGS) -o mt160r mt160r.o -lrt $(MLIB) -getinfo: getinfo.o - cc $(CFLAGS) -n -o getinfo getinfo.o -lrt - greyscale: greyscale.o - cc $(CFLAGS) -o greyscale greyscale.o -lrt -lm + $(CC) $(CFLAGS) -o greyscale greyscale.o -lrt $(MLIB) colorscale: colorscale.o - cc $(CFLAGS) -o colorscale colorscale.o -lrt + $(CC) $(CFLAGS) -o colorscale colorscale.o -lrt -lm pvalue: pvalue.o - cc $(CFLAGS) -o pvalue pvalue.o -lrt -lm + $(CC) $(CFLAGS) -o pvalue pvalue.o -lrt $(MLIB) psum: psum.o - cc $(CFLAGS) -o psum psum.o -lrt + $(CC) $(CFLAGS) -o psum psum.o -lrt pcompos: pcompos.o - cc $(CFLAGS) -o pcompos pcompos.o -lrt + $(CC) $(CFLAGS) -o pcompos pcompos.o -lrt psign: psign.o - cc $(CFLAGS) -o psign psign.o -lrt + $(CC) $(CFLAGS) -o psign psign.o -lrt -lm d48c: d48c.o - cc $(CFLAGS) -o d48c d48c.o -lrt + $(CC) $(CFLAGS) -o d48c d48c.o -lrt +ra_gif: ra_gif.o clrtab.o neuclrtab.o + $(CC) $(CFLAGS) -o ra_gif ra_gif.o clrtab.o neuclrtab.o -lrt $(MLIB) + ra_pr: ra_pr.o ciq.o cut.o closest.o biq.o - cc $(CFLAGS) -o ra_pr ra_pr.o ciq.o cut.o closest.o \ -biq.o -lrt -lm + $(CC) $(CFLAGS) -o ra_pr ra_pr.o ciq.o cut.o closest.o \ +biq.o -lrt $(MLIB) ra_pr24: ra_pr24.o - cc $(CFLAGS) -o ra_pr24 ra_pr24.o -lrt -lm + $(CC) $(CFLAGS) -o ra_pr24 ra_pr24.o -lrt $(MLIB) +ra_avs: ra_avs.o + $(CC) $(CFLAGS) -o ra_avs ra_avs.o -lrt $(MLIB) + +ra_ps: ra_ps.o + $(CC) $(CFLAGS) -o ra_ps ra_ps.o -lrt $(MLIB) + ra_ppm: ra_ppm.o - cc $(CFLAGS) -o ra_ppm ra_ppm.o -lrt -lm + $(CC) $(CFLAGS) -o ra_ppm ra_ppm.o -lrt $(MLIB) -ra_t8: ra_t8.o ciq.o cut.o closest.o biq.o - cc $(CFLAGS) -o ra_t8 ra_t8.o ciq.o cut.o closest.o \ -biq.o -lrt -lm +ra_t8: ra_t8.o clrtab.o neuclrtab.o + $(CC) $(CFLAGS) -o ra_t8 ra_t8.o clrtab.o neuclrtab.o -lrt $(MLIB) ra_t16: ra_t16.o - cc $(CFLAGS) -o ra_t16 ra_t16.o -lrt -lm + $(CC) $(CFLAGS) -o ra_t16 ra_t16.o -lrt $(MLIB) ra_im: ra_im.o - cc $(CFLAGS) -n -o ra_im ra_im.o + $(CC) $(CFLAGS) -o ra_im ra_im.o ra_bn: ra_bn.o - cc $(CFLAGS) -o ra_bn ra_bn.o -lrt -lm + $(CC) $(CFLAGS) -o ra_bn ra_bn.o -lrt $(MLIB) ra_rgbe: ra_rgbe.o - cc $(CFLAGS) -o ra_rgbe ra_rgbe.o -lrt -lm + $(CC) $(CFLAGS) -o ra_rgbe ra_rgbe.o -lrt $(MLIB) ra_pict: ra_pict.o - cc $(CFLAGS) -o ra_pict ra_pict.o -lrt -lm + $(CC) $(CFLAGS) -o ra_pict ra_pict.o -lrt $(MLIB) x10image: ximage.o ciq.o cut.o closest.o xraster.o biq.o - cc $(CFLAGS) -o x10image ximage.o xraster.o \ -ciq.o cut.o closest.o biq.o -lX -lrt -lm + $(CC) $(CFLAGS) -o x10image ximage.o xraster.o \ +ciq.o cut.o closest.o biq.o -lX -lrt $(MLIB) -ximage: x11image.o ciq.o cut.o closest.o x11raster.o biq.o - cc $(CFLAGS) -o ximage x11image.o x11raster.o \ -ciq.o cut.o closest.o biq.o -lX11 -lrt -lm +ximage: x11image.o x11raster.o clrtab.o + $(CC) $(CFLAGS) -o ximage x11image.o x11raster.o \ +clrtab.o -lX11 -lrt $(MLIB) -prot: prot.o - cc $(CFLAGS) -o prot prot.o -lrt +protate: protate.o + $(CC) $(CFLAGS) -o protate protate.o -lrt -lm +pextrem: pextrem.o + $(CC) $(CFLAGS) -o pextrem pextrem.o -lrt -lm + pflip: pflip.o - cc $(CFLAGS) -o pflip pflip.o -lrt + $(CC) $(CFLAGS) -o pflip pflip.o -lrt -lm panim: panim.o client/libclient.a - cc $(CFLAGS) -o panim panim.o \ --lrt client/libclient.a -lrpcsvc -lm + $(CC) $(CFLAGS) -o panim panim.o \ +-lrt client/libclient.a -lrpcsvc $(MLIB) pcomb: pcomb.o - cc $(CFLAGS) -o pcomb pcomb.o -lrt -lm + $(CC) $(CFLAGS) -o pcomb pcomb.o -lrt $(MLIB) pinterp: pinterp.o - cc $(CFLAGS) -o pinterp pinterp.o -lrt -lm + $(CC) $(CFLAGS) -o pinterp pinterp.o -lrt $(MLIB) +ra_xyze: ra_xyze.o + $(CC) $(CFLAGS) -o ra_xyze ra_xyze.o -lrt $(MLIB) + ra_tiff: ra_tiff.o ../lib/libtiff.a - cc $(CFLAGS) -o ra_tiff ra_tiff.o -lrt -ltiff -lm + $(CC) $(CFLAGS) -o ra_tiff ra_tiff.o -lrt -ltiff $(MLIB) -ra_tiff.o: ra_tiff.c - cc $(CFLAGS) -Ilibtiff -c ra_tiff.c +../common/tiff.h: ../lib/libtiff.a -../lib/libtiff.a: - cd libtiff ; make -f Makefile.$(ARCH) ; \ - mv libtiff.a ../../lib ; make clean +../lib/libtiff.a: tiff/config.local + cd tiff ; ./configure -quiet -noninteractive ; \ + cd libtiff ; make install ; +# cd .. ; make distclean ra_pixar: ra_pixar.o ra_pixar.c - cc $(CFLAGS) $(PIXAR_INCLUDE) -o $@ ra_pixar.o -lrt \ + $(CC) $(CFLAGS) $(PIXAR_INCLUDE) -o $@ ra_pixar.o -lrt \ $(PIXAR_LIB) ra_pixar.o: ra_pixar.c - cc $(CFLAGS) $(PIXAR_INCLUDE) -c ra_pixar.c + $(CC) $(CFLAGS) $(PIXAR_INCLUDE) -c ra_pixar.c xshowtrace: xshowtrace.o x11findwind.o - cc $(CFLAGS) -o xshowtrace xshowtrace.o \ -x11findwind.o -lrt -lm -lX11 + $(CC) $(CFLAGS) -o xshowtrace xshowtrace.o \ +x11findwind.o -lrt $(MLIB) -lX11 -xshowtrace.o: ../common/view.h ../common/standard.h \ -../common/mat4.h ../common/fvect.h +macbethcal: macbethcal.o pmapgen.o mx3.o warp3d.o + $(CC) $(CFLAGS) -o macbethcal macbethcal.o pmapgen.o mx3.o warp3d.o \ +-lrt $(MLIB) + +macbethcal.o: pmap.h ../common/color.h ../common/resolu.h + +macbethcal.o pcond2.o pcwarp.o warp3d.o: warp3d.h ../common/lookup.h + +pmapgen.o: mx3.h pmap.h + +nclrtab.o: neuclrtab.o + ln neuclrtab.c nclrtab.c + $(CC) $(CFLAGS) -DCOMPAT_MODE -c nclrtab.c + rm -f nclrtab.c + pcomb.o: ../common/calcomp.h panim.o: client/scan.h ../common/color.h ../common/random.h -pf2.o bnoise.o ra_t16.o: ../common/random.h +pf2.o bnoise.o ra_ps.o ra_t16.o: ../common/random.h -pfilt.o pf2.o ttyimage.o t4027.o mt160r.o psum.o psign.o prot.o ra_pr24.o \ -d48c.o aedimage.o pcompos.o color.o resolu.o colrops.o pflip.o \ -greyscale.o ra_t8.o glimage.o ra_bn.o ra_t16.o \ -ra_pr.o pvalue.o pcomb.o pinterp.o ximage.o: ../common/color.h +neuclrtab.o clrtab.o pfilt.o pf2.o pf3.o ttyimage.o t4027.o mt160r.o \ +psum.o psign.o protate.o \ +pextrem.o ra_pr24.o d48c.o aedimage.o pcompos.o color.o resolu.o colrops.o \ +pflip.o greyscale.o ra_t8.o glimage.o ra_bn.o ra_t16.o ra_tiff.o ra_pict.o \ +ra_ps.o ra_pr.o pvalue.o pcomb.o pinterp.o ximage.o: ../common/color.h -prot.o biq.o ciq.o pinterp.o ximage.o \ -image.o: ../common/standard.h ../common/mat4.h ../common/fvect.h +neuclrtab.o pvalue.o protate.o biq.o ciq.o pinterp.o ximage.o psign.o \ +xshowtrace.o clrtab.o pcomb.o pfilt.o pf3.o image.o: ../common/standard.h \ +../common/mat4.h ../common/fvect.h ximage.o xraster.o: xraster.h x11image.o x11raster.o: x11raster.h +x11image.o: ../common/tonemap.h ../common/color.h + ra_t8.o: ../common/targa.h +ra_tiff.o: ../common/tiff.h + aedimage.o ximage.o ra_t8.o ra_pr.o: pic.h ciq.o cut.o closest.o biq.o: pic.h ciq.h -pinterp.o ximage.o image.o: ../common/view.h +pinterp.o ximage.o x11showtrace.o image.o: ../common/view.h ra_pict.o: pict.h + +mt160r.o oki20c.o paintjet.o pcomb.o pcompos.o pfilt.o pflip.o \ +pinterp.o protate.o pvalue.o ra_bn.o ra_pict.o ra_pixar.o \ +ra_ppm.o ra_pr.o ra_pr24.o ra_rgbe.o ra_t16.o ra_t8.o glimage.o \ +ra_tiff.o ttyimage.o ximage.o x11image.o: ../common/resolu.h + +pfilt.o: ../common/paths.h ../common/view.h + +psign.o: ../common/font.h + +pcond.o pcond2.o pcond3.o pcond4.o: pcond.h ../common/standard.h \ +../common/mat4.h ../common/fvect.h \ +../common/color.h ../common/view.h ../common/resolu.h