home *** CD-ROM | disk | FTP | other *** search
/ Encyclopedia of Graphics File Formats Companion / GFF_CD.ISO / software / unix / libtiff / lbtif3_3.tar / Makefile < prev    next >
Makefile  |  1993-08-26  |  8KB  |  297 lines

  1. #! smake
  2. #    $Header: /usr/people/sam/tiff/RCS/Makefile,v 1.34 93/08/26 17:16:51 sam Exp $
  3. #
  4. # Tag Image File Format Library
  5. #
  6. # Copyright (c) 1988, 1989, 1990, 1991, 1992 Sam Leffler
  7. # Copyright (c) 1991, 1992 Silicon Graphics, Inc.
  8. # Permission to use, copy, modify, distribute, and sell this software and 
  9. # its documentation for any purpose is hereby granted without fee, provided
  10. # that (i) the above copyright notices and this permission notice appear in
  11. # all copies of the software and related documentation, and (ii) the names of
  12. # Sam Leffler and Silicon Graphics may not be used in any advertising or
  13. # publicity relating to the software without the specific, prior written
  14. # permission of Sam Leffler and Silicon Graphics.
  15. # THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, 
  16. # EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY 
  17. # WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.  
  18. # IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
  19. # ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
  20. # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  21. # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF 
  22. # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 
  23. # OF THIS SOFTWARE.
  24. #
  25. NULL=
  26. MAKE=    make ${MAKEFLAGS}
  27.  
  28. TIFFFILES=\
  29.     Makefile                \
  30.     HOWTO                    \
  31.     README                    \
  32.     CHANGES-v3.0                \
  33.     CHANGES-v3.1                \
  34.     CHANGES-v3.2                \
  35.     CHANGES-v3.3                \
  36.     VERSION                    \
  37.     Copyright                \
  38.     libtiff/README                \
  39.     libtiff/Makefile.aix            \
  40.     libtiff/Makefile.apollo            \
  41.     libtiff/Makefile.gcc            \
  42.     libtiff/Makefile.hpux            \
  43.     libtiff/Makefile.mpw            \
  44.     libtiff/Makefile.next            \
  45.     libtiff/Makefile.sco            \
  46.     libtiff/Makefile.sgi            \
  47.     libtiff/Makefile.sun            \
  48.     libtiff/t4.h                \
  49.     libtiff/tiff.h                \
  50.     libtiff/tiffcomp.h            \
  51.     libtiff/tiffconf.h            \
  52.     libtiff/tiffio.h            \
  53.     libtiff/tiffiop.h            \
  54.     libtiff/mkg3states.c            \
  55.     libtiff/mkspans.c            \
  56.     libtiff/tif_apple.c            \
  57.     libtiff/tif_aux.c            \
  58.     libtiff/tif_ccittrle.c            \
  59.     libtiff/tif_close.c            \
  60.     libtiff/tif_compress.c            \
  61.     libtiff/tif_dir.c            \
  62.     libtiff/tif_dirinfo.c            \
  63.     libtiff/tif_dirread.c            \
  64.     libtiff/tif_dirwrite.c            \
  65.     libtiff/tif_dumpmode.c            \
  66.     libtiff/tif_error.c            \
  67.     libtiff/tif_fax3.c            \
  68.     libtiff/tif_fax3.h            \
  69.     libtiff/tif_fax4.c            \
  70.     libtiff/tif_flush.c            \
  71.     libtiff/tif_getimage.c            \
  72.     libtiff/tif_jpeg.c            \
  73.     libtiff/tif_lzw.c            \
  74.     libtiff/tif_machdep.c            \
  75.     libtiff/tif_msdos.c            \
  76.     libtiff/tif_next.c            \
  77.     libtiff/tif_open.c            \
  78.     libtiff/tif_packbits.c            \
  79.     libtiff/tif_print.c            \
  80.     libtiff/tif_read.c            \
  81.     libtiff/tif_strip.c            \
  82.     libtiff/tif_swab.c            \
  83.     libtiff/tif_thunder.c            \
  84.     libtiff/tif_tile.c            \
  85.     libtiff/tif_unix.c            \
  86.     libtiff/tif_version.c            \
  87.     libtiff/tif_vms.c            \
  88.     libtiff/tif_warning.c            \
  89.     libtiff/tif_write.c            \
  90.     tools/Makefile.aix            \
  91.     tools/Makefile.apollo            \
  92.     tools/Makefile.mpw            \
  93.     tools/Makefile.next            \
  94.     tools/Makefile.sco            \
  95.     tools/Makefile.sgi            \
  96.     tools/Makefile.sun            \
  97.     tools/fax2tiff.c            \
  98.     tools/getopt.c                \
  99.     tools/gif2tiff.c            \
  100.     tools/pal2rgb.c                \
  101.     tools/ppm2tiff.c            \
  102.     tools/ras2tiff.c            \
  103.     tools/rasterfile.h            \
  104.     tools/rgb2ycbcr.c            \
  105.     tools/sgi2tiff.c            \
  106.     tools/sgigt.c                \
  107.     tools/sgisv.c                \
  108.     tools/tiff2bw.c                \
  109.     tools/tiff2ps.c                \
  110.     tools/tiffcmp.c                \
  111.     tools/tiffcp.c                \
  112.     tools/tiffdither.c            \
  113.     tools/tiffdump.c            \
  114.     tools/tiffinfo.c            \
  115.     tools/tiffmedian.c            \
  116.     tools/tiffsplit.c            \
  117.     tools/ycbcr.c                \
  118.     man/man1/fax2tiff.1            \
  119.     man/man1/gif2tiff.1            \
  120.     man/man1/pal2rgb.1            \
  121.     man/man1/ppm2tiff.1            \
  122.     man/man1/ras2tiff.1            \
  123.     man/man1/rgb2ycbcr.1            \
  124.     man/man1/sgi2tiff.1            \
  125.     man/man1/tiff2bw.1            \
  126.     man/man1/tiff2ps.1            \
  127.     man/man1/tiffcmp.1            \
  128.     man/man1/tiffcp.1            \
  129.     man/man1/tiffdither.1            \
  130.     man/man1/tiffdump.1            \
  131.     man/man1/tiffgt.1            \
  132.     man/man1/tiffinfo.1            \
  133.     man/man1/tiffmedian.1            \
  134.     man/man1/tiffsplit.1            \
  135.     man/man1/tiffsv.1            \
  136.     man/man3/TIFFClose.3t            \
  137.     man/man3/TIFFError.3t            \
  138.     man/man3/TIFFFlush.3t            \
  139.     man/man3/TIFFGetField.3t        \
  140.     man/man3/TIFFOpen.3t            \
  141.     man/man3/TIFFPrintDirectory.3t        \
  142.     man/man3/TIFFReadDirectory.3t        \
  143.     man/man3/TIFFReadEncodedStrip.3t    \
  144.     man/man3/TIFFReadEncodedTile.3t        \
  145.     man/man3/TIFFReadRGBAImage.3t        \
  146.     man/man3/TIFFReadRawStrip.3t        \
  147.     man/man3/TIFFReadRawTile.3t        \
  148.     man/man3/TIFFReadScanline.3t        \
  149.     man/man3/TIFFReadTile.3t        \
  150.     man/man3/TIFFSetDirectory.3t        \
  151.     man/man3/TIFFSetField.3t        \
  152.     man/man3/TIFFWarning.3t            \
  153.     man/man3/TIFFWriteDirectory.3t         \
  154.     man/man3/TIFFWriteEncodedStrip.3t    \
  155.     man/man3/TIFFWriteEncodedTile.3t    \
  156.     man/man3/TIFFWriteRawStrip.3t        \
  157.     man/man3/TIFFWriteRawTile.3t        \
  158.     man/man3/TIFFWriteScanline.3t        \
  159.     man/man3/intro.3t            \
  160.     man/man3/query.3t            \
  161.     man/man3/size.3t            \
  162.     man/man3/strip.3t            \
  163.     man/man3/swab.3t            \
  164.     man/man3/tile.3t            \
  165.     ${NULL}
  166. CONTRIBFILES=\
  167.     contrib/dbs/README            \
  168.         contrib/dbs/Imakefile        \
  169.         contrib/dbs/tiff-bi.c        \
  170.         contrib/dbs/tiff-grayscale.c    \
  171.         contrib/dbs/tiff-palette.c        \
  172.         contrib/dbs/tiff-rgb.c        \
  173.         contrib/dbs/xtiff/README        \
  174.         contrib/dbs/xtiff/Imakefile    \
  175.         contrib/dbs/xtiff/patchlevel.h    \
  176.         contrib/dbs/xtiff/xtiff.c    \
  177.         contrib/dbs/xtiff/xtifficon.h    \
  178.     contrib/fax2ps/README             \
  179.         contrib/fax2ps/Makefile         \
  180.         contrib/fax2ps/defs.h        \
  181.         contrib/fax2ps/fax2ps.c        \
  182.         contrib/fax2ps/faxdecode.c        \
  183.         contrib/fax2ps/fax2ps.1         \
  184.     contrib/ras/ras2tif.c            \
  185.     contrib/ras/tif2ras.c            \
  186.     contrib/vms/readme.vms            \
  187.         contrib/vms/libtiff/makevms.com    \
  188.         contrib/vms/libtiff/tiff.opt    \
  189.         contrib/vms/libtiff/tiffshr.opt    \
  190.         contrib/vms/libtiff/tiffvec.mar    \
  191.         contrib/vms/tools/makevms.com    \
  192.     ${NULL}
  193. DOCFILES=\
  194.     doc/ClassF.txt                \
  195.     doc/TIFF6.ps                \
  196.     ${NULL}
  197. DISTFILES=\
  198.     ${TIFFFILES}                \
  199.     tiff.alpha                \
  200.     ${CONTRIBFILES}                \
  201.     ${NULL}
  202.  
  203. default:
  204.     -cd libtiff; ${MAKE}
  205.     -cd tools; ${MAKE}
  206.     -cd contrib/fax2ps; ${MAKE}
  207.     -cd contrib/dbs; ${MAKE}
  208.  
  209. clean:
  210.     -cd libtiff; ${MAKE} clean; rm -f Makefile
  211.     -cd tools; ${MAKE} clean; rm -f Makefile
  212.     -cd contrib/fax2ps; ${MAKE} clean
  213.     -cd contrib/dbs; ${MAKE} clean
  214.     -cd contrib/dbs/xtiff; ${MAKE} clean
  215.     -cd man/man3; ${MAKE} clean
  216.  
  217. #
  218. # These rules are used to create the source distribution images
  219. #
  220. rcsclean:
  221.     rcsclean ${TIFFFILES} && co ${TIFFFILES}
  222.  
  223. alpha:
  224.     ${MAKE} alpha.stamp
  225.     ${MAKE} alpha.tar
  226.  
  227. # stamp relevant files according to current alpha
  228. alpha.stamp:
  229.     VERSION=`awk '{print "Alpha" $$3}' tiff.alpha`;            \
  230.     NOW=`date`;                            \
  231.     for i in ${TIFFFILES}; do                    \
  232.         REV=`rlog -h -d"$$NOW" $$i|fgrep 'head:'|awk '{print $$2}'`;\
  233.         rcs "-N$$VERSION:$$REV" "-sExp:$$REV" $$i && co -sExp $$i;    \
  234.     done
  235.  
  236. purge.alpha.stamp:
  237.     VERSION=`awk '{print "Alpha" $$3}' tiff.alpha`;            \
  238.     NOW=`date`;                            \
  239.     for i in ${TIFFFILES}; do                    \
  240.         REV=`rlog -h -d"$$NOW" $$i|fgrep 'head:'|awk '{print $$2}'`;\
  241.         rcs "-n$$VERSION" "-sExp:$$REV" $$i && co $$i;        \
  242.     done
  243.  
  244. # create alpha distribution archive
  245. alpha.tar:
  246.     VERSION=`awk '{print "alpha"$$3}' tiff.alpha`;            \
  247.     rm -f $$VERSION.tar.Z;                        \
  248.     tar cvf - ${DISTFILES} | compress > $$VERSION.tar.Z
  249.  
  250. release:
  251.     ${MAKE} clobber
  252.     ${MAKE} release.stamp
  253.     ${MAKE} release.tar
  254.  
  255. release.stamp:
  256.     VERSION="Release`sed 's/\./_/g' VERSION`";            \
  257.     NOW=`date`;                            \
  258.     for i in ${TIFFFILES}; do                    \
  259.         REV=`rlog -h -d"$$NOW" $$i|fgrep 'head:'|awk '{print $$2}'`;\
  260.         rcs "-N$$VERSION:$$REV" "-sRel:$$REV" $$i && co -sRel $$i;    \
  261.     done
  262.  
  263. # create release distribution archive
  264. release.tar:
  265.     VERSION=v`cat VERSION`;                        \
  266.     rm -f $$VERSION.src.tar.Z;                    \
  267.     tar cvf - ${DISTFILES} | compress > $$VERSION.src.tar.Z
  268.  
  269. PICS=\
  270.     pics/README         \
  271.     pics/cramps.tif         \
  272.     pics/cramps-tile.tif    \
  273.     pics/fax2d.tif        \
  274.     pics/g3test.tif        \
  275.     pics/jello.tif        \
  276.     pics/jim___cg.tif    \
  277.     pics/jim___dg.tif    \
  278.     pics/jim___gg.tif    \
  279.     pics/jim___ah.tif    \
  280.     pics/strike.tif        \
  281.     pics/oxford.tif        \
  282.     pics/quad-lzw.tif    \
  283.     pics/quad-tile.tif    \
  284.     pics/text.tif        \
  285.     pics/ycbcr-cat.tif    \
  286.     pics/smallliz.tif    \
  287.     pics/zackthecat.tif    \
  288.     pics/fax2d.g3        \
  289.     pics/g3test.g3        \
  290.     ${NULL}
  291.  
  292. pics.tar:
  293.     tar cvf - ${PICS} | compress > tiffpics.tar.Z
  294.