home *** CD-ROM | disk | FTP | other *** search
/ rtsi.com / 2014.01.www.rtsi.com.tar / www.rtsi.com / OS9 / OSK / NETWORK / netpbm_src.lzh / NETPBM / LIBTIFF / Imakefile < prev    next >
Makefile  |  1996-11-18  |  4KB  |  107 lines

  1. /* Imakefile for tiff library.
  2.  *
  3.  * Copyright (C) 1991 by Rainer Klute.
  4.  */
  5.  
  6. /*
  7.  * Tag Image File Format Library
  8.  *
  9.  * Copyright (c) 1988, 1989, 1990, 1991 Sam Leffler
  10.  * Copyright (c) 1991 Silicon Graphics, Inc.
  11.  * 
  12.  * Permission to use, copy, modify, distribute, and sell this software and 
  13.  * its documentation for any purpose is hereby granted without fee, provided
  14.  * that (i) the above copyright notices and this permission notice appear in
  15.  * all copies of the software and related documentation, and (ii) the names of
  16.  * Sam Leffler and Silicon Graphics may not be used in any advertising or
  17.  * publicity relating to the software without the specific, prior written
  18.  * permission of Stanford and Silicon Graphics.
  19.  * 
  20.  * THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, 
  21.  * EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY 
  22.  * WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.  
  23.  * 
  24.  * IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
  25.  * ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
  26.  * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  27.  * WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF 
  28.  * LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 
  29.  * OF THIS SOFTWARE.
  30.  */
  31.  
  32. /*
  33.  * Library-wide configuration defines:
  34.  *    SUBFILE_COMPAT    include compat code for bad SubFileType tag
  35.  *    JPEG_SUPPORT    add support for C-Cube JPEG tags & JPEG algorithm
  36.  *
  37.  * Compression configuration defines:
  38.  *    CCITT_SUPPORT    add support for CCITT Group 3 & 4 algorithms
  39.  *    PACKBITS_SUPPORT    add support for Macintosh PackBits algorithm
  40.  *    LZW_SUPPORT    add support for LZW algorithm
  41.  *    THUNDER_SUPPORT    add support for ThunderScan 4-bit RLE algorithm
  42.  *    NEXT_SUPPORT    add support for NeXT 2-bit RLE algorithm
  43.  *    JPEG_SUPPORT    add support for C-Cube JPEG tags & JPEG algorithm
  44.  *
  45.  * Note that if you change the library-wide configuration, you'll
  46.  * need to manual force a full rebuild.  Changing the configuration
  47.  * of which compression algorithms are included in the library is
  48.  * automatically handled (i.e. tif_compress.o has a dependency on
  49.  * the Makefile).
  50.  */
  51.  
  52. CONF_COMPRESSION=\
  53.     -DPACKBITS_SUPPORT \
  54.     -DLZW_SUPPORT \
  55.     -DCCITT_SUPPORT \
  56.     -DTHUNDER_SUPPORT  \
  57.     -DNEXT_SUPPORT  \
  58.     ${NULL}
  59. CONF_LIBRARY=\
  60.     -DUSE_VARARGS=1 \
  61.     -DUSE_PROTOTYPES=0 \
  62.     ${NULL}
  63.  
  64.  
  65. #define LibTiff libtiff.a
  66. #define DepLibTiff LibTiff
  67. #include <../Pbmplus.tmpl>
  68.  
  69. DEFINES = ${CONF_LIBRARY}
  70.  
  71. SRCS = tif_aux.c tif_ccittrle.c tif_close.c tif_compress.c tif_dir.c \
  72.        tif_dirinfo.c tif_dirread.c tif_dirwrite.c tif_dumpmode.c tif_error.c \
  73.        tif_fax3.c tif_fax4.c tif_flush.c tif_getimage.c tif_jpeg.c tif_lzw.c \
  74.        tif_machdep.c tif_next.c tif_open.c tif_packbits.c tif_print.c \
  75.        tif_read.c tif_strip.c tif_swab.c tif_thunder.c tif_tile.c tif_unix.c \
  76.        tif_version.c tif_warning.c tif_write.c
  77.  
  78. OBJS= tif_aux.o tif_ccittrle.o tif_close.o tif_compress.o tif_dir.o \
  79.       tif_dirinfo.o tif_dirread.o tif_dirwrite.o tif_dumpmode.o tif_error.o \
  80.       tif_fax3.o tif_fax4.o tif_flush.o tif_getimage.o tif_jpeg.o tif_lzw.o \
  81.       tif_machdep.o tif_next.o tif_open.o tif_packbits.o tif_print.o \
  82.       tif_read.o tif_strip.o tif_swab.o tif_thunder.o tif_tile.o tif_unix.o \
  83.       tif_version.o tif_warning.o tif_write.o
  84.  
  85. AllTarget($(LIBTIFF))
  86.  
  87. includes:: g3states.h
  88.  
  89. g3states.h: mkg3states.c t4.h
  90.     ${CC} -o mkg3states ${CFLAGS} mkg3states.c
  91.     ./mkg3states > g3states.h
  92.  
  93. tif_fax3.c: g3states.h
  94.  
  95. clean::
  96.     $(RM) g3states.h mkg3states
  97.  
  98. DependTarget()
  99.  
  100. NormalLibraryObjectRule()
  101. NormalLibraryTarget(tiff,$(OBJS))
  102. SpecialObjectRule(tif_compress.o,,${CONF_COMPRESSION})
  103.  
  104. #if InstallLibraries
  105. InstallLibrary(tiff,$(PBMPLUSDIR)$(PBMPLUSLIBDIR))
  106. #endif
  107.