# RCSid: $Id: Rmakefile,v 2.60 2005/07/26 15:33:13 greg Exp $ # # Compiles for image processing and display programs # ARCH = sun OPT = -O MACH = -DBSD SPECIAL = CFLAGS = -I../common -L../lib $(OPT) $(MACH) CC = cc MLIB = -lm INSTDIR = /usr/local/bin LIBDIR = /usr/local/lib/ray PROGS = pfilt ttyimage psign ra_tiff normtiff \ pvalue pcompos protate ra_hexbit ra_bmp \ ra_t8 ra_t16 pcomb pinterp pflip ra_ppm ximage xshowtrace \ ra_rgbe ra_pict ra_ps pextrem ra_gif ra_xyze macbethcal pcond pcwarp all: $(PROGS) $(SPECIAL) ogl: sun: install: $(PROGS) $(SPECIAL) normpat.csh falsecolor.csh \ pdfblur.csh pmblur.csh pmdblur.csh xyzimage.csh pgblur.csh cp $(PROGS) $(INSTDIR) cp normpat.csh $(INSTDIR)/normpat cp falsecolor.csh $(INSTDIR)/falsecolor cp pdfblur.csh $(INSTDIR)/pdfblur cp pmblur.csh $(INSTDIR)/pmblur cp pmdblur.csh $(INSTDIR)/pmdblur cp xyzimage.csh $(INSTDIR)/xyzimage cp phisto.csh $(INSTDIR)/phisto cp pdelta.csh $(INSTDIR)/pdelta cp pgblur.csh $(INSTDIR)/pgblur cp ra_pfm.csh $(INSTDIR)/ra_pfm cd $(INSTDIR) ; chmod 755 normpat falsecolor pdfblur \ pmblur pmdblur xyzimage phisto pdelta pgblur ra_pfm clean: rm -f $(PROGS) $(SPECIAL) *.o core cd tiff; make distclean pfilt: pfilt.o pf2.o pf3.o $(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 $(MLIB) pvalue: pvalue.o $(CC) $(CFLAGS) -o pvalue pvalue.o -lrt $(MLIB) pcompos: pcompos.o $(CC) $(CFLAGS) -o pcompos pcompos.o -lrt $(MLIB) psign: psign.o $(CC) $(CFLAGS) -o psign psign.o -lrt $(MLIB) ra_gif: ra_gif.o clrtab.o neuclrtab.o $(CC) $(CFLAGS) -o ra_gif ra_gif.o clrtab.o neuclrtab.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 $(MLIB) ra_bmp: ra_bmp.o $(CC) $(CFLAGS) -o ra_bmp ra_bmp.o -lrt $(MLIB) 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 $(MLIB) ra_rgbe: ra_rgbe.o $(CC) $(CFLAGS) -o ra_rgbe ra_rgbe.o -lrt $(MLIB) ra_pict: ra_pict.o $(CC) $(CFLAGS) -o ra_pict ra_pict.o -lrt $(MLIB) ra_hexbit: ra_hexbit.o $(CC) $(CFLAGS) -o ra_hexbit ra_hexbit.o -lrt $(MLIB) ximage: x11image.o x11raster.o clrtab.o $(CC) $(CFLAGS) -o ximage x11image.o x11raster.o \ clrtab.o -lrt -lX11 $(MLIB) protate: protate.o $(CC) $(CFLAGS) -o protate protate.o -lrt $(MLIB) pextrem: pextrem.o $(CC) $(CFLAGS) -o pextrem pextrem.o -lrt $(MLIB) pflip: pflip.o $(CC) $(CFLAGS) -o pflip pflip.o -lrt $(MLIB) pcomb: pcomb.o $(CC) $(CFLAGS) -o pcomb pcomb.o -lrt $(MLIB) pinterp: pinterp.o $(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 $(MLIB) ../common/tiff.h ../common/tiffio.h: ../lib/libtiff.a @chmod u+w ../common/tiff.h ../common/tiffio.h @touch ../common/tiff.h ../common/tiffio.h normtiff: normtiff.o ../lib/libtiff.a $(CC) $(CFLAGS) -o normtiff normtiff.o -lrt -ltiff $(MLIB) ../lib/libtiff.a: cd tiff ; ./configure -C -quiet -with-CC=$(CC) \ "--libdir=`pwd`/../../lib" "--includedir=`pwd`/../../common" \ --enable-static --disable-shared --disable-cxx \ --enable-logluv --disable-jpeg \ --disable-zlib --disable-pixarlog \ "-with-ENVOPTS=$(OPT)" ; \ cd port ; make all ; \ cd ../libtiff ; make install xshowtrace: xshowtrace.o x11findwind.o $(CC) $(CFLAGS) -o xshowtrace xshowtrace.o \ x11findwind.o -lrt -lX11 $(MLIB) 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 pf2.o ra_ps.o ra_t16.o: ../common/random.h neuclrtab.o clrtab.o pfilt.o pf2.o pf3.o ttyimage.o \ psign.o protate.o ra_hexbit.o pextrem.o pcompos.o \ pflip.o ra_t8.o ra_t16.o ra_tiff.o ra_pict.o \ ra_ps.o pvalue.o pcomb.o pinterp.o: ../common/color.h neuclrtab.o pvalue.o protate.o pinterp.o psign.o \ xshowtrace.o clrtab.o pcomb.o pfilt.o pf3.o image.o: ../common/standard.h \ ../common/rtmisc.h ../common/rtio.h \ ../common/rtmath.h ../common/mat4.h ../common/fvect.h \ ../common/rterror.h ../common/tifftypes.h x11image.o x11raster.o: x11raster.h x11image.o: ../common/tonemap.h ../common/color.h ra_t8.o: ../common/targa.h ra_tiff.o normtiff.o: ../common/tiff.h ../common/tiffio.h ra_t8.o: pic.h pcomb.o pfilt.o pinterp.o x11image.o x11showtrace.o \ image.o: ../common/view.h ../common/resolu.h ra_pict.o: pict.h pcompos.o pfilt.o pflip.o \ pinterp.o protate.o pvalue.o ra_pict.o ra_hexbit.o \ ra_ppm.o ra_rgbe.o ra_t16.o ra_t8.o \ ra_tiff.o ttyimage.o: ../common/resolu.h pfilt.o: ../common/paths.h psign.o: ../common/font.h pcond.o pcond2.o pcond3.o pcond4.o: pcond.h ../common/standard.h \ ../common/rtmisc.h ../common/rtio.h \ ../common/rtmath.h ../common/mat4.h ../common/fvect.h \ ../common/rterror.h ../common/tifftypes.h \ ../common/color.h ../common/view.h ../common/resolu.h normtiff.o: ../common/color.h ../common/tonemap.h ../common/resolu.h ra_bmp.o: ../common/bmpfile.h ../common/color.h \ ../common/tonemap.h ../common/resolu.h x11findwind.c: ../common/x11findwind.c cp ../common/x11findwind.c .