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

  1. #    $Header: /usr/people/sam/tiff/tools/RCS/Makefile.aix,v 1.16 92/10/21 16:30: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. # SHELL, CTAGS, RANLIB and INSTALL is not defined in standard make for AIX
  25. #
  26. RANLIB=/usr/bin/ranlib
  27. SHELL=/bin/sh
  28. CTAGS=ctags -tw
  29. CC=xlc -DBSDTYPES -D_POSIX_SOURCE
  30. #
  31. # The AIX versions of install is execute by root only, or SYSV versions.
  32. # INSTALL=/usr/ucb/install
  33. INSTALL=bsdinstall
  34. BINDIR=/usr/local/bin
  35. #
  36. NULL=
  37. IPATH=    -I../libtiff
  38. #
  39. # If you don't want the public domain getopt code, then
  40. # simply null this out and you'll get whatever is in your
  41. # libc (or similar).
  42. #
  43. GETOPT=    getopt.o
  44. #
  45. # Library-wide configuration defines.
  46. # Note that if you change the library-wide configuration, you'll
  47. # need to manual force a full rebuild. 
  48. #
  49. CONF_LIBRARY=\
  50.     ${NULL}
  51. COPTS=    
  52. CFLAGS=    -O ${COPTS} ${IPATH}
  53. #
  54. LIBTIFF=../libtiff/libtiff.a
  55. LIBS=    ${LIBTIFF}
  56. MACHALL=ras2tiff
  57. OBJS=    \
  58.     fax2tiff.o \
  59.     gif2tiff.o \
  60.     pal2rgb.o \
  61.     ppm2tiff.o \
  62.     rgb2ycbcr.o \
  63.     tiff2bw.o \
  64.     tiff2ps.o \
  65.     tiffcmp.o \
  66.     tiffcp.o \
  67.     tiffdither.o \
  68.     tiffdump.o \
  69.     tiffinfo.o \
  70.     tiffmedian.o \
  71.     tiffsplit.o \
  72.     ras2tiff.o \
  73.     ${GETOPT} \
  74.     ${NULL}
  75. ALL=    \
  76.     fax2tiff \
  77.     gif2tiff \
  78.     pal2rgb \
  79.     ppm2tiff \
  80.     rgb2ycbcr \
  81.     tiff2bw \
  82.     tiff2ps \
  83.     tiffcmp \
  84.     tiffcp \
  85.     tiffdither \
  86.     tiffdump \
  87.     tiffinfo \
  88.     tiffmedian \
  89.     tiffsplit \
  90.     ${MACHALL} \
  91.     ${NULL}
  92.  
  93. all:     ${ALL}
  94.  
  95. tiffinfo: tiffinfo.c ${GETOPT} ${LIBTIFF}
  96.     ${CC} -o tiffinfo ${CFLAGS} tiffinfo.c ${GETOPT} ${LIBS}
  97. tiffcmp:tiffcmp.c ${GETOPT} ${LIBTIFF}
  98.     ${CC} -o tiffcmp ${CFLAGS} tiffcmp.c ${GETOPT} ${LIBS}
  99. tiffcp:    tiffcp.c ${LIBTIFF}
  100.     ${CC} -o tiffcp ${CFLAGS} tiffcp.c ${LIBS}
  101. tiffdump: tiffdump.c
  102.     ${CC} -o tiffdump ${CFLAGS} tiffdump.c
  103. tiffmedian: tiffmedian.c ${LIBTIFF}
  104.     ${CC} -o tiffmedian ${CFLAGS} tiffmedian.c ${LIBS}
  105. tiffsplit: tiffsplit.c ${LIBTIFF}
  106.     ${CC} -o tiffsplit ${CFLAGS} tiffsplit.c ${LIBS}
  107. tiff2ps: tiff2ps.c ${LIBTIFF}
  108.     ${CC} -o tiff2ps ${CFLAGS} tiff2ps.c ${LIBS} -lm
  109. # junky stuff...
  110. # convert RGB image to B&W
  111. tiff2bw: tiff2bw.c ${GETOPT} ${LIBTIFF}
  112.     ${CC} -o tiff2bw ${CFLAGS} tiff2bw.c ${GETOPT} ${LIBS}
  113. # convert B&W image to bilevel w/ FS dithering
  114. tiffdither: tiffdither.c ${GETOPT} ${LIBTIFF}
  115.     ${CC} -o tiffdither ${CFLAGS} tiffdither.c ${GETOPT} ${LIBS}
  116. # Sun rasterfile converter
  117. ras2tiff: ras2tiff.c ${LIBTIFF}
  118.     ${CC} -o ras2tiff ${CFLAGS} ras2tiff.c ${LIBS}
  119. # GIF converter
  120. gif2tiff: gif2tiff.c ${LIBTIFF}
  121.     ${CC} -o gif2tiff ${CFLAGS} gif2tiff.c ${LIBS} -lm
  122. # PBM converter
  123. ppm2tiff: ppm2tiff.c ${LIBTIFF}
  124.     ${CC} -o ppm2tiff ${CFLAGS} ppm2tiff.c ${LIBS}
  125. # SGI image file converter
  126. sgi2tiff: sgi2tiff.c ${LIBTIFF}
  127.     ${CC} -o sgi2tiff ${CFLAGS} sgi2tiff.c -limage ${LIBS}
  128. # Group 3 FAX file converter
  129. fax2tiff: fax2tiff.c ${GETOPT} ${LIBTIFF}
  130.     ${CC} -o fax2tiff ${CFLAGS} ${CONF_LIBRARY} fax2tiff.c ${GETOPT} ${LIBS}
  131. # convert Palette image to RGB
  132. pal2rgb: pal2rgb.c ${LIBTIFF}
  133.     ${CC} -o pal2rgb ${CFLAGS} pal2rgb.c ${LIBS}
  134. # convert RGB image to YCbCr
  135. rgb2ycbcr: rgb2ycbcr.c ${GETOPT} ${LIBTIFF}
  136.     ${CC} -o rgb2ycbcr ${CFLAGS} rgb2ycbcr.c ${GETOPT} ${LIBS} -lm
  137. # SGI versions of tiffgt & tiffsv
  138. tiffgt:    sgigt.c ${GETOPT} ${LIBTIFF}
  139.     ${CC} -o tiffgt ${CFLAGS} sgigt.c ${GETOPT} ${LIBS} -lgutil -lgl_s -lm
  140. tiffsv:    sgisv.c ${LIBTIFF}
  141.     ${CC} -o tiffsv ${CFLAGS} sgisv.c ${LIBS} -lgutil -lgl_s -lm
  142.  
  143. install: all
  144.     @-for i in ${ALL}; do \
  145.         echo ${INSTALL} -c -s $$i ${BINDIR}/$$i; \
  146.         ${INSTALL} -c -s $$i ${BINDIR}/$$i; \
  147.     done
  148.  
  149. clean:
  150.     rm -f ${ALL} ${OBJS} core a.out ycbcr
  151.  
  152. $(LIBTIFF):
  153.     ln -s /usr/local/lib/libtiff.a $@
  154.