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

  1. #    $Header: /usr/people/sam/tiff/tools/RCS/Makefile.sco,v 1.2 93/08/26 15:01:05 sam Exp $
  2. #
  3. # Makefile for SCO Unix 3.2.4 on Intel 386/486.
  4. #
  5. # TIFF Library Tools
  6. #
  7. # Copyright (c) 1988, 1989, 1990, 1991, 1992 Sam Leffler
  8. # Copyright (c) 1991, 1992 Silicon Graphics, Inc.
  9. # Permission to use, copy, modify, distribute, and sell this software and 
  10. # its documentation for any purpose is hereby granted without fee, provided
  11. # that (i) the above copyright notices and this permission notice appear in
  12. # all copies of the software and related documentation, and (ii) the names of
  13. # Sam Leffler and Silicon Graphics may not be used in any advertising or
  14. # publicity relating to the software without the specific, prior written
  15. # permission of Stanford and Silicon Graphics.
  16. # THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, 
  17. # EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY 
  18. # WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.  
  19. # IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
  20. # ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
  21. # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  22. # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF 
  23. # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 
  24. # OF THIS SOFTWARE.
  25. #
  26. NULL=
  27. IPATH=    -I../libtiff
  28. #
  29. # If you don't want the public domain getopt code, then
  30. # simply null this out and you'll get whatever is in your
  31. # libc (or similar).
  32. #
  33. GETOPT=    getopt.o
  34. #
  35. # Library-wide configuration defines:
  36. # Note that if you change the library-wide configuration, you'll
  37. # need to manual force a full rebuild. 
  38. #
  39. CONF_LIBRARY=\
  40.     ${NULL}
  41. COPTS=    -DSYSV
  42. CFLAGS=    -O ${COPTS} ${IPATH}
  43. #
  44. LIBTIFF=../libtiff/libtiff.a
  45. LIBS=    ${LIBTIFF} -lmalloc -lc_s
  46. MACHALL=
  47. OBJS=    \
  48.     fax2tiff.o \
  49.     gif2tiff.o \
  50.     pal2rgb.o \
  51.     ppm2tiff.o \
  52.     rgb2ycbcr.o \
  53.     tiff2bw.o \
  54.     tiff2ps.o \
  55.     tiffcmp.o \
  56.     tiffcp.o \
  57.     tiffdither.o \
  58.     tiffdump.o \
  59.     tiffinfo.o \
  60.     tiffmedian.o \
  61.     tiffsplit.o \
  62.     ras2tiff.o \
  63.     sgigt.o \
  64.     sgisv.o \
  65.     sgi2tiff.o \
  66.     ${GETOPT} \
  67.     ${NULL}
  68. ALL=\
  69.     fax2tiff \
  70.     gif2tiff \
  71.     pal2rgb \
  72.     ppm2tiff \
  73.     rgb2ycbcr \
  74.     tiff2bw \
  75.     tiff2ps \
  76.     tiffcmp \
  77.     tiffcp \
  78.     tiffdither \
  79.     tiffdump \
  80.     tiffinfo \
  81.     tiffmedian \
  82.     tiffsplit \
  83.     ${MACHALL} \
  84.     ${NULL}
  85.  
  86. all:     ${ALL}
  87.  
  88. tiffinfo: tiffinfo.c ${GETOPT} ${LIBTIFF}
  89.     ${CC} -o tiffinfo ${CFLAGS} tiffinfo.c ${GETOPT} ${LIBS}
  90. tiffcmp:tiffcmp.c ${GETOPT} ${LIBTIFF}
  91.     ${CC} -o tiffcmp ${CFLAGS} tiffcmp.c ${GETOPT} ${LIBS}
  92. tiffcp:    tiffcp.c ${LIBTIFF}
  93.     ${CC} -o tiffcp ${CFLAGS} tiffcp.c ${LIBS}
  94. tiffdump: tiffdump.c
  95.     ${CC} -o tiffdump ${CFLAGS} tiffdump.c
  96. tiffmedian: tiffmedian.c ${LIBTIFF}
  97.     ${CC} -o tiffmedian ${CFLAGS} tiffmedian.c ${LIBS}
  98. tiffsplit: tiffsplit.c ${LIBTIFF}
  99.     ${CC} -o tiffsplit ${CFLAGS} tiffsplit.c ${LIBS}
  100. tiff2ps: tiff2ps.c ${LIBTIFF}
  101.     ${CC} -o tiff2ps ${CFLAGS} tiff2ps.c ${LIBS} -lm
  102. # junky stuff...
  103. # convert RGB image to B&W
  104. tiff2bw: tiff2bw.c ${GETOPT} ${LIBTIFF}
  105.     ${CC} -o tiff2bw ${CFLAGS} tiff2bw.c ${GETOPT} ${LIBS}
  106. # convert B&W image to bilevel w/ FS dithering
  107. tiffdither: tiffdither.c ${GETOPT} ${LIBTIFF}
  108.     ${CC} -o tiffdither ${CFLAGS} tiffdither.c ${GETOPT} ${LIBS}
  109. # Sun rasterfile converter
  110. ras2tiff: ras2tiff.c ${LIBTIFF}
  111.     ${CC} -o ras2tiff ${CFLAGS} ras2tiff.c ${LIBS}
  112. # GIF converter
  113. gif2tiff: gif2tiff.c ${LIBTIFF}
  114.     ${CC} -o gif2tiff ${CFLAGS} gif2tiff.c ${LIBS} -lm
  115. # PBM converter
  116. ppm2tiff: ppm2tiff.c ${LIBTIFF}
  117.     ${CC} -o ppm2tiff ${CFLAGS} ppm2tiff.c ${LIBS}
  118. # SGI image file converter
  119. sgi2tiff: sgi2tiff.c ${LIBTIFF}
  120.     ${CC} -o sgi2tiff ${CFLAGS} sgi2tiff.c -limage ${LIBS}
  121. # Group 3 FAX file converter
  122. fax2tiff: fax2tiff.c ${GETOPT} ${LIBTIFF}
  123.     ${CC} -o fax2tiff ${CFLAGS} ${CONF_LIBRARY} fax2tiff.c ${GETOPT} ${LIBS}
  124. # convert Palette image to RGB
  125. pal2rgb: pal2rgb.c ${LIBTIFF}
  126.     ${CC} -o pal2rgb ${CFLAGS} pal2rgb.c ${LIBS}
  127. # convert RGB image to YCbCr
  128. rgb2ycbcr: rgb2ycbcr.c ${GETOPT} ${LIBTIFF}
  129.     ${CC} -o rgb2ycbcr ${CFLAGS} rgb2ycbcr.c ${GETOPT} ${LIBS} -lm
  130. # SGI versions of tiffgt & tiffsv
  131. tiffgt:    sgigt.c ${GETOPT} ${LIBTIFF}
  132.     ${CC} -o tiffgt ${CFLAGS} sgigt.c ${GETOPT} ${LIBS} -lgutil -lgl_s -lm
  133. tiffsv:    sgisv.c ${LIBTIFF}
  134.     ${CC} -o tiffsv ${CFLAGS} sgisv.c ${LIBS} -lgutil -lgl_s -lm
  135.  
  136. install: all
  137.     /etc/install -f /usr/local/bin -m 755 -O ${ALL}
  138.  
  139. clean:
  140.     rm -f ${ALL} ${OBJS} core a.out ycbcr
  141.