home *** CD-ROM | disk | FTP | other *** search
/ Graphics 16,000 / graphics-16000.iso / msdos / viewers / giflib12 / util / makefile.unx < prev    next >
Makefile  |  1991-08-05  |  5KB  |  190 lines

  1. #
  2. # This is the make file for the util subdirectory of the GIF library
  3. # In order to run it gcc is assumed to be available (gnu c compiler)
  4. # You may try other c compilers but the must support ansi c!
  5. #
  6. # Usage: "make -f makefile.unx [all] [rle] [iris]
  7. #
  8. # This make file is for Unix BSD type of machines.
  9. #
  10. #                Gershon Elber, Dec 1989
  11. #
  12.  
  13. #
  14. # If you have the utah raster tool kit and wants conversion routines to and
  15. # from it set the ones below properly.
  16. #
  17. RLE_INC = -I/u/urt/urt3.0/include
  18. RLE_LIB = /u/urt/urt3.0/lib/librle.a
  19. X_LIB_DIR = /server/sun4/usr/new/lib/X11R4
  20.  
  21. # Where are all the include files and libraryies for the gif utils:
  22. INC = -I../lib
  23. GIF_LIB = ../lib/libgif.a
  24. GIF_LIB_DEPEND = ../lib/libgif.a ../lib/gif_lib.h ../lib/getarg.h
  25.  
  26. # Where to copy executables to:
  27. DEST = ../bin
  28.  
  29. #
  30. # These are the flags for gcc, in BSD4.3 or Sun O.S. 4.0.3
  31. #
  32. # If your system has all function prototypes for gcc, replace all
  33. # the -Wxxx with -Wall. I can not add -Wimplicit as my system uses old cc
  34. # h files.
  35. #
  36. #
  37. # CC = gcc
  38. #
  39. # CFLAGS = -O -c -W -Wreturn-type -Wcomment
  40. # CFLAGS = -g -pg -c -W -Wreturn-type -Wcomment
  41. #
  42. # for sun 4 (gunnars@ifi.uib.no). Tested using gcc 1.39.
  43. #
  44. # CFLAGS = -O -c -sun4 -W -Wreturn-type -Wcomment -DUSE_VARARGS
  45. # CFLAGS = -g -c -sun4 -W -Wreturn-type -Wcomment -DUSE_VARARGS
  46. #
  47. # MORELIBS =
  48.  
  49. #
  50. # These are the flags for cc on SGI iris4d. O.S. IRIX 3.2. Note you must
  51. # Define MORELIBS as well.
  52. #
  53. CC = cc
  54. #
  55. CFLAGS = -O -c -DSYSV -DNO_VOID_PTR -Olimit 1000 -Wf,-XNh5000 -Wf,-XNd5000 -G 4
  56. # CFLAGS = -g -p -c -DSYSV -DNO_VOID_PTR -Olimit 1000 -Wf,-XNh5000 -Wf,-XNd5000 -G 4
  57. # MORELIBS = -lbsd
  58.  
  59. #
  60. # These are the flags for xlc, ansi compiler for IBM R6000
  61. #
  62. # CC = xlc
  63. #
  64. # CFLAGS = -O -c -qnoro -D_POSIX_SOURCE -D_ALL_SOURCE -DR6000
  65. # CFLAGS = -g -pg -c -qnoro -D_POSIX_SOURCE -D_ALL_SOURCE -DR6000
  66. # MORELIBS =
  67.  
  68.  
  69. ALL =    $(DEST)/gif2epsn $(DEST)/gif2ps $(DEST)/gif2rgb \
  70.     $(DEST)/gif2x11 $(DEST)/gifasm $(DEST)/gifbg \
  71.     $(DEST)/gifclip $(DEST)/gifclrmp $(DEST)/gifcomb \
  72.     $(DEST)/giffix $(DEST)/gifflip $(DEST)/gifhisto \
  73.     $(DEST)/gifinter $(DEST)/gifinto $(DEST)/gifpos \
  74.     $(DEST)/gifrotat $(DEST)/gifrsize $(DEST)/giftext \
  75.     $(DEST)/gifwedge $(DEST)/raw2gif $(DEST)/rgb2gif \
  76.     $(DEST)/text2gif
  77.  
  78. RLE =   $(DEST)/gif2rle $(DEST)/rle2gif
  79.  
  80. IRIS =  $(DEST)/gif2iris
  81.  
  82. .c.o:
  83.     $(CC) $(CFLAGS) $(INC) $(RLE_INC) $<
  84.  
  85. all:    $(ALL)
  86. rle:    $(RLE)
  87. iris:    $(IRIS)
  88.  
  89. $(DEST)/gif2epsn: gif2epsn.o $(GIF_LIB_DEPEND)
  90.     $(CC) gif2epsn.o -o gif2epsn $(GIF_LIB)
  91.     mv -f gif2epsn $(DEST)
  92.  
  93. $(DEST)/gif2iris: gif2iris.o $(GIF_LIB_DEPEND)
  94.     $(CC) gif2iris.o -o gif2iris $(GIF_LIB) -lgl_s
  95.     mv -f gif2iris $(DEST)
  96.  
  97. $(DEST)/gif2ps: gif2ps.o $(GIF_LIB_DEPEND)
  98.     $(CC) gif2ps.o -o gif2ps $(GIF_LIB)
  99.     mv -f gif2ps $(DEST)
  100.  
  101. $(DEST)/gif2rgb: gif2rgb.o $(GIF_LIB_DEPEND)
  102.     $(CC) gif2rgb.o -o gif2rgb $(GIF_LIB)
  103.     mv -f gif2rgb $(DEST)
  104.  
  105. $(DEST)/gif2x11: gif2x11.o $(GIF_LIB_DEPEND)
  106.     $(CC) gif2x11.o -o gif2x11 $(GIF_LIB) -L$(X_LIB_DIR) -lX11 $(MORELIBS)
  107.     mv -f gif2x11 $(DEST)
  108.  
  109. $(DEST)/gifasm: gifasm.o $(GIF_LIB_DEPEND)
  110.     $(CC) gifasm.o -o gifasm $(GIF_LIB)
  111.     mv -f gifasm $(DEST)
  112.  
  113. $(DEST)/gifbg: gifbg.o $(GIF_LIB_DEPEND)
  114.     $(CC) gifbg.o -o gifbg $(GIF_LIB)
  115.     mv -f gifbg $(DEST)
  116.  
  117. $(DEST)/gifclip: gifclip.o $(GIF_LIB_DEPEND)
  118.     $(CC) gifclip.o -o gifclip $(GIF_LIB)
  119.     mv -f gifclip $(DEST)
  120.  
  121. $(DEST)/gifclrmp: gifclrmp.o $(GIF_LIB_DEPEND)
  122.     $(CC) gifclrmp.o -o gifclrmp $(GIF_LIB) -lm
  123.     mv -f gifclrmp $(DEST)
  124.  
  125. $(DEST)/gifcomb: gifcomb.o $(GIF_LIB_DEPEND)
  126.     $(CC) gifcomb.o -o gifcomb $(GIF_LIB)
  127.     mv -f gifcomb $(DEST)
  128.  
  129. $(DEST)/giffix: giffix.o $(GIF_LIB_DEPEND)
  130.     $(CC) giffix.o -o giffix $(GIF_LIB)
  131.     mv -f giffix $(DEST)
  132.  
  133. $(DEST)/gifflip: gifflip.o $(GIF_LIB_DEPEND)
  134.     $(CC) gifflip.o -o gifflip $(GIF_LIB)
  135.     mv -f gifflip $(DEST)
  136.  
  137. $(DEST)/gifhisto: gifhisto.o $(GIF_LIB_DEPEND)
  138.     $(CC) gifhisto.o -o gifhisto $(GIF_LIB)
  139.     mv -f gifhisto $(DEST)
  140.  
  141. $(DEST)/gifinter: gifinter.o $(GIF_LIB_DEPEND)
  142.     $(CC) gifinter.o -o gifinter $(GIF_LIB)
  143.     mv -f gifinter $(DEST)
  144.  
  145. $(DEST)/gifinto: gifinto.o $(GIF_LIB_DEPEND)
  146.     $(CC) gifinto.o -o gifinto $(GIF_LIB)
  147.     mv -f gifinto $(DEST)
  148.  
  149. $(DEST)/gifpos: gifpos.o $(GIF_LIB_DEPEND)
  150.     $(CC) gifpos.o -o gifpos $(GIF_LIB)
  151.     mv -f gifpos $(DEST)
  152.  
  153. $(DEST)/gifrotat: gifrotat.o $(GIF_LIB_DEPEND)
  154.     $(CC) gifrotat.o -o gifrotat $(GIF_LIB) -lm
  155.     mv -f gifrotat $(DEST)
  156.  
  157. $(DEST)/gifrsize: gifrsize.o $(GIF_LIB_DEPEND)
  158.     $(CC) gifrsize.o -o gifrsize $(GIF_LIB)
  159.     mv -f gifrsize $(DEST)
  160.  
  161. $(DEST)/giftext: giftext.o $(GIF_LIB_DEPEND)
  162.     $(CC) giftext.o -o giftext $(GIF_LIB)
  163.     mv -f giftext $(DEST)
  164.  
  165. $(DEST)/gifwedge: gifwedge.o $(GIF_LIB_DEPEND)
  166.     $(CC) gifwedge.o -o gifwedge $(GIF_LIB)
  167.     mv -f gifwedge $(DEST)
  168.  
  169. $(DEST)/raw2gif: raw2gif.o $(GIF_LIB_DEPEND)
  170.     $(CC) raw2gif.o -o raw2gif $(GIF_LIB)
  171.     mv -f raw2gif $(DEST)
  172.  
  173. $(DEST)/text2gif: text2gif.o $(GIF_LIB_DEPEND)
  174.     $(CC) text2gif.o -o text2gif $(GIF_LIB)
  175.     mv -f text2gif $(DEST)
  176.  
  177. $(DEST)/rgb2gif: rgb2gif.o $(GIF_LIB_DEPEND)
  178.     $(CC) rgb2gif.o -o rgb2gif $(GIF_LIB)
  179.     mv -f rgb2gif $(DEST)
  180.  
  181. #
  182. # The utah raster toolkit conversion routines:
  183. #
  184. $(DEST)/gif2rle: gif2rle.o $(GIF_LIB_DEPEND)
  185.     $(CC) gif2rle.o -o gif2rle $(GIF_LIB) $(RLE_LIB)
  186.     mv -f gif2rle $(DEST)
  187. $(DEST)/rle2gif: rle2gif.o $(GIF_LIB_DEPEND)
  188.     $(CC) rle2gif.o -o rle2gif $(GIF_LIB) $(RLE_LIB)
  189.     mv -f rle2gif $(DEST)
  190.