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

  1. #    $Header: /usr/people/sam/tiff/tools/RCS/Makefile.mpw,v 1.2 93/08/26 15:00:51 sam Exp $
  2. #
  3. # Tag Image File Format Library
  4. #
  5. # Copyright (c) 1988, 1989, 1990, 1991, 1992 Sam Leffler
  6. # Copyright (c) 1991, 1992 Silicon Graphics, Inc.
  7. # Permission to use, copy, modify, distribute, and sell this software and 
  8. # its documentation for any purpose is hereby granted without fee, provided
  9. # that (i) the above copyright notices and this permission notice appear in
  10. # all copies of the software and related documentation, and (ii) the names of
  11. # Sam Leffler and Silicon Graphics may not be used in any advertising or
  12. # publicity relating to the software without the specific, prior written
  13. # permission of Stanford and Silicon Graphics.
  14. # THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, 
  15. # EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY 
  16. # WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.  
  17. # IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
  18. # ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
  19. # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  20. # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF 
  21. # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 
  22. # OF THIS SOFTWARE.
  23. #
  24.  
  25. #
  26. # Makefile for Mac using MPW 3.2.3 and MPW C 3.2.4
  27. #
  28. .c.o  .c
  29.     {C} {COptions} {CFLAGS} -s {Default} {DepDir}{Default}.c -o {TargDir}{Default}.c.o
  30.  
  31. CONF_LIBRARY=
  32.     -d USE_CONST=0
  33.     -d BSDTYPES
  34.  
  35. IPATH= -i ::libtiff
  36.  
  37. CFLAGS=    -w -m {IPATH} {CONF_LIBRARY}
  38.  
  39. GETOPT=    getopt.c.o
  40.  
  41. LOptions= -w -srt -d -c 'MPS ' -t MPST
  42.  
  43. LIBTIFF= ::libtiff:libtiff.o {GETOPT}
  44.  
  45. LIBS=    {LIBTIFF} 
  46.         "{CLibraries}"CSANELib.o 
  47.         "{CLibraries}"Math.o 
  48.         #"{CLibraries}"Complex.o 
  49.         "{CLibraries}"StdClib.o 
  50.         "{Libraries}"Stubs.o 
  51.         "{Libraries}"Runtime.o 
  52.         "{Libraries}"Interface.o 
  53.         "{Libraries}"ToolLibs.o 
  54.  
  55. SRCS=
  56.     pal2rgb.c 
  57.     ras2tiff.c 
  58.     tiff2bw.c 
  59.     tiff2ps.c 
  60.     tiffcmp.c 
  61.     tiffcp.c 
  62.     tiffdither.c 
  63.     tiffdump.c 
  64.     tiffinfo.c 
  65.     tiffmedian.c 
  66.     
  67. MACHALL=ras2tiff
  68.  
  69. ALL=
  70.     tiffinfo 
  71.     tiffcmp 
  72.     tiffcp 
  73.     tiffdump 
  74.     tiffmedian 
  75.     tiff2bw 
  76.     tiffdither 
  77.     tiff2ps 
  78.     pal2rgb 
  79.     gif2tiff 
  80.     {MACHALL}
  81.  
  82. all      {ALL}
  83.  
  84. tiffinfo  tiffinfo.c.o {LIBTIFF} 
  85.     Link {LOptions} tiffinfo.c.o {LIBS} -o tiffinfo
  86.     
  87. tiffcmp  tiffcmp.c.o {LIBTIFF}
  88.     Link {LOptions} tiffcmp.c.o {LIBS} -o tiffcmp
  89.     
  90. tiffcp  tiffcp.c.o {LIBTIFF}
  91.     Link {LOptions} tiffcp.c.o {LIBS} -o tiffcp
  92.     
  93. tiffdump  tiffdump.c.o {LIBTIFF}
  94.     Link {LOptions} tiffdump.c.o {LIBS} -o tiffdump
  95.     
  96. tiffmedian  tiffmedian.c.o {LIBTIFF}
  97.     Link {LOptions} tiffmedian.c.o {LIBS} -o tiffmedian
  98.     
  99. tiff2ps  tiff2ps.c.o {LIBTIFF}
  100.     Link {LOptions} tiff2ps.c.o {LIBS} -o tiff2ps
  101.     
  102. # junky stuff...
  103. # convert RGB image to B&W
  104. tiff2bw  tiff2bw.c.o {LIBTIFF}
  105.     Link {LOptions} tiff2bw.c.o {LIBS} -o tiff2bw
  106.     
  107. # convert B&W image to bilevel w/ FS dithering
  108. tiffdither  tiffdither.c.o {LIBTIFF}
  109.     Link {LOptions} tiffdither.c.o {LIBS} -o tiffdither
  110.     
  111. # GIF converter
  112. gif2tiff  gif2tiff.c.o {LIBTIFF}
  113.     Link {LOptions} gif2tiff.c.o {LIBS} -o gif2tiff
  114.     
  115. # convert Palette image to RGB
  116. pal2rgb  pal2rgb.c.o {LIBTIFF}
  117.     Link {LOptions} pal2rgb.c.o {LIBS} -o pal2rgb
  118.     
  119. # Sun rasterfile converter
  120. ras2tiff  ras2tiff.c.o {LIBTIFF}
  121.     Link {LOptions} ras2tiff.c.o {LIBS} -o ras2tiff
  122.     
  123. clean 
  124.     delete -i {ALL} .c.o ycbcr
  125.