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

  1. #    $Header: /usr/people/sam/tiff/tools/RCS/Makefile.apollo,v 1.23 92/10/29 16:03:21 sam Exp $
  2. #
  3. # TIFF Library Tools
  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. # the tools utilities will be installed in DESTDIR/bin
  25. DESTDIR=/progs/bit2bit/tiff
  26. INSTALL= /usr/bin/install
  27.  
  28. NULL=
  29. IPATH=    -I../libtiff
  30. #
  31. # If you don't want the public domain getopt code, then
  32. # simply null this out and you'll get whatever is in your
  33. # libc (or similar).
  34. #
  35. #GETOPT=    getopt.o
  36. #
  37. # Library-wide configuration defines:
  38. # Note that if you change the library-wide configuration, you'll
  39. # need to manual force a full rebuild. 
  40. #
  41. CONF_LIBRARY=\
  42.     -DUSE_VARARGS=1 \
  43.     -DUSE_PROTOTYPES=0 \
  44.     -DUSE_CONST=0 \
  45.     ${NULL}
  46. COPTS=    
  47. CFLAGS=    -O -A nansi ${COPTS} ${IPATH}
  48. #
  49. LIBTIFF=../libtiff/libtiff.a
  50. LIBS=    ${LIBTIFF}
  51. MACHALL=ras2tiff
  52. OBJS=    \
  53.     fax2tiff.o \
  54.     gif2tiff.o \
  55.     pal2rgb.o \
  56.     ppm2tiff.o \
  57.     rgb2ycbcr.o \
  58.     tiff2bw.o \
  59.     tiff2ps.o \
  60.     tiffcmp.o \
  61.     tiffcp.o \
  62.     tiffdither.o \
  63.     tiffdump.o \
  64.     tiffinfo.o \
  65.     tiffmedian.o \
  66.     tiffsplit.o \
  67.     ras2tiff.o \
  68.     ${GETOPT} \
  69.     ${NULL}
  70. ALL=    \
  71.     fax2tiff \
  72.     gif2tiff \
  73.     pal2rgb \
  74.     ppm2tiff \
  75.     rgb2ycbcr \
  76.     tiff2bw \
  77.     tiff2ps \
  78.     tiff2ps \
  79.     tiffcmp \
  80.     tiffcp \
  81.     tiffdither \
  82.     tiffdump \
  83.     tiffinfo \
  84.     tiffmedian \
  85.     tiffsplit \
  86.     ${MACHALL} \
  87.     ${NULL}
  88.  
  89. all:     ${ALL}
  90.  
  91. tiffinfo: tiffinfo.c ${GETOPT} ${LIBTIFF}
  92.     ${CC} -o tiffinfo ${CFLAGS} tiffinfo.c ${GETOPT} ${LIBS}
  93. tiffcmp:tiffcmp.c ${GETOPT} ${LIBTIFF}
  94.     ${CC} -o tiffcmp ${CFLAGS} tiffcmp.c ${GETOPT} ${LIBS}
  95. tiffcp:    tiffcp.c ${LIBTIFF}
  96.     ${CC} -o tiffcp ${CFLAGS} tiffcp.c ${LIBS}
  97. tiffdump: tiffdump.c
  98.     ${CC} -o tiffdump ${CFLAGS} tiffdump.c
  99. tiffmedian: tiffmedian.c ${LIBTIFF}
  100.     ${CC} -o tiffmedian ${CFLAGS} tiffmedian.c ${LIBS}
  101. tiffsplit: tiffsplit.c ${LIBTIFF}
  102.     ${CC} -o tiffsplit ${CFLAGS} tiffsplit.c ${LIBS}
  103. tiff2ps: tiff2ps.c ${LIBTIFF}
  104.     ${CC} -o tiff2ps ${CFLAGS} tiff2ps.c ${LIBS} -lm
  105. # junky stuff...
  106. # convert RGB image to B&W
  107. tiff2bw: tiff2bw.c ${GETOPT} ${LIBTIFF}
  108.     ${CC} -o tiff2bw ${CFLAGS} tiff2bw.c ${GETOPT} ${LIBS}
  109. # convert B&W image to bilevel w/ FS dithering
  110. tiffdither: tiffdither.c ${LIBTIFF}
  111.     ${CC} -o tiffdither ${CFLAGS} tiffdither.c ${LIBS}
  112. # Group 3 FAX file converter
  113. fax2tiff: fax2tiff.c ${GETOPT} ${LIBTIFF}
  114.     ${CC} -o fax2tiff ${CFLAGS} ${CONF_LIBRARY} fax2tiff.c ${GETOPT} ${LIBS}
  115. # convert Palette image to RGB
  116. pal2rgb: pal2rgb.c ${LIBTIFF}
  117.     ${CC} -o pal2rgb ${CFLAGS} pal2rgb.c ${LIBS}
  118. # convert RGB image to YCbCr
  119. rgb2ycbcr: rgb2ycbcr.c ${GETOPT} ${LIBTIFF}
  120.     ${CC} -o rgb2ycbcr ${CFLAGS} rgb2ycbcr.c ${GETOPT} ${LIBS} -lm
  121. # PBM converter
  122. ppm2tiff: ppm2tiff.c ${LIBTIFF}
  123.     ${CC} -o ppm2tiff ${CFLAGS} ppm2tiff.c ${LIBS}
  124. # GIF converter
  125. gif2tiff: gif2tiff.c ${LIBTIFF}
  126.     ${CC} -o gif2tiff ${CFLAGS} gif2tiff.c ${LIBS} -lm
  127. # Sun rasterfile converter
  128. ras2tiff: ras2tiff.c ${LIBTIFF}
  129.     ${CC} -o ras2tiff ${CFLAGS} ras2tiff.c ${LIBS}
  130.  
  131. install: all
  132.     @-mkdir $(DESTDIR)/bin
  133.     -for i in ${ALL}; do \
  134.         ${INSTALL} -c -m 755 $$i ${DESTDIR}/bin/$$i; \
  135.     done
  136.  
  137. clean:
  138.     rm -f ${ALL} ${OBJS} core a.out ycbcr
  139.