home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / xloadimg.zip / xloadimage.4.1 / tiff / Makefile.vax < prev    next >
Makefile  |  1993-10-21  |  4KB  |  170 lines

  1. #    $Header: /usr/people/sam/tiff/libtiff/RCS/Makefile.vax,v 1.37 92/03/30 18:13:23 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. DESTDIR=.
  25. #
  26. AR=    /bin/ar
  27. RANLIB=    /usr/bin/ranlib
  28. NULL=
  29.  
  30. IPATH=    -I.
  31. #
  32. # Library-wide configuration defines:
  33. #    MMAP_SUPPORT    add support for memory mapping read-only files
  34. #    COLORIMETRY_SUPPORT add support for 6.0 colorimetry tags
  35. #    JPEG_SUPPORT    add support for 6.0 JPEG tags & JPEG algorithms
  36. #    YCBCR_SUPPORT    add support for 6.0 YCbCr tags
  37. #    CMYK_SUPPORT    add support for 6.0 CMYK tags
  38. #
  39. # Compression configuration defines:
  40. #    CCITT_SUPPORT    add support for CCITT Group 3 & 4 algorithms
  41. #    PACKBITS_SUPPORT    add support for Macintosh PackBits algorithm
  42. #    LZW_SUPPORT    add support for LZW algorithm
  43. #    THUNDER_SUPPORT    add support for ThunderScan 4-bit RLE algorithm
  44. #    NEXT_SUPPORT    add support for NeXT 2-bit RLE algorithm
  45. #    JPEG_SUPPORT    add support for JPEG DCT algorithm
  46. #
  47. # Note that if you change the library-wide configuration, you'll
  48. # need to manual force a full rebuild.  Changing the configuration
  49. # of which compression algorithms are included in the library is
  50. # automatically handled (i.e. tif_compress.o has a dependency on
  51. # the Makefile).
  52. #
  53. CONF_COMPRESSION=\
  54.     -DPACKBITS_SUPPORT \
  55.     -DLZW_SUPPORT \
  56.     -DCCITT_SUPPORT \
  57.     -DTHUNDER_SUPPORT  \
  58.     -DNEXT_SUPPORT  \
  59.     ${NULL}
  60. CONF_LIBRARY=\
  61.     -DUSE_VARARGS=1 \
  62.     -DUSE_PROTOTYPES=0 \
  63.     -DHAVE_IEEEFP=0 \
  64.     -DCOLORIMETRY_SUPPORT \
  65.     -DYCBCR_SUPPORT \
  66.     ${NULL}
  67. CFLAGS=    -g ${IPATH} ${CONF_LIBRARY}
  68. #
  69. INCS=    tiff.h tiffio.h
  70. SRCS=    tif_fax3.c \
  71.     tif_fax4.c \
  72.     tif_aux.c \
  73.     tif_ccittrle.c \
  74.     tif_close.c \
  75.     tif_compat.c \
  76.     tif_compress.c \
  77.     tif_dir.c \
  78.     tif_dirinfo.c \
  79.     tif_dirread.c \
  80.     tif_dirwrite.c \
  81.     tif_dumpmode.c \
  82.     tif_error.c \
  83.     tif_getimage.c \
  84.     tif_jpeg.c \
  85.     tif_flush.c \
  86.     tif_lzw.c \
  87.     tif_machdep.c \
  88.     tif_next.c \
  89.     tif_open.c \
  90.     tif_packbits.c \
  91.     tif_print.c \
  92.     tif_read.c \
  93.     tif_swab.c \
  94.     tif_strip.c \
  95.     tif_thunder.c \
  96.     tif_tile.c \
  97.     tif_version.c \
  98.     tif_warning.c \
  99.     tif_write.c \
  100.     ${NULL}
  101. OBJS=    tif_fax3.o \
  102.     tif_fax4.o \
  103.     tif_aux.o \
  104.     tif_ccittrle.o \
  105.     tif_close.o \
  106.     tif_compat.o \
  107.     tif_compress.o \
  108.     tif_dir.o \
  109.     tif_dirinfo.o \
  110.     tif_dirread.o \
  111.     tif_dirwrite.o \
  112.     tif_dumpmode.o \
  113.     tif_error.o \
  114.     tif_getimage.o \
  115.     tif_jpeg.o \
  116.     tif_flush.o \
  117.     tif_lzw.o \
  118.     tif_machdep.o \
  119.     tif_next.o \
  120.     tif_open.o \
  121.     tif_packbits.o \
  122.     tif_print.o \
  123.     tif_read.o \
  124.     tif_strip.o \
  125.     tif_swab.o \
  126.     tif_thunder.o \
  127.     tif_tile.o \
  128.     tif_version.o \
  129.     tif_warning.o \
  130.     tif_write.o \
  131.     ${NULL}
  132. ALL=    libtiff.a
  133.  
  134. all:     ${ALL}
  135.  
  136. ${ALL}:    ${OBJS}
  137.     ${AR} rc libtiff.a $?
  138.     ${RANLIB} libtiff.a
  139.  
  140. ${OBJS}: tiffio.h tiff.h tiffcompat.h tiffioP.h
  141. tif_compress.o: tif_compress.c Makefile
  142.     ${CC} -c ${CFLAGS} ${CONF_COMPRESSION} tif_compress.c
  143. tif_fax3.o: tif_fax3.c g3states.h t4.h tif_fax3.h
  144.  
  145. g3states.h: mkg3states.c t4.h
  146.     ${CC} -o mkg3states ${CFLAGS} mkg3states.c
  147.     ./mkg3states > g3states.h
  148.  
  149. install: all installh
  150.     -for i in ${ALL}; do \
  151.         ${INSTALL} -c -m 644 $$i ${DESTDIR}/lib/$$i; \
  152.         ${RANLIB} ${DESTDIR}/lib/$$i; \
  153.     done
  154.  
  155. installh: ${INCS}
  156.     -for i in ${INCS}; do \
  157.         h=`basename $$i`; \
  158.         cmp -s $$i ${DESTDIR}/include/$$h || \
  159.             ${INSTALL} -c -m 444 $$i ${DESTDIR}/include/$$h; \
  160.     done
  161.  
  162. clean:
  163.     rm -f ${ALL} ${OBJS} core a.out mkg3states g3states.h
  164.  
  165. tags:    ${SRCS}
  166.     ${CTAGS} ${SRCS}
  167.