home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / c / library / dos / grafik / giflib11 / util / makefile.unx < prev    next >
Encoding:
Makefile  |  1990-10-17  |  4.5 KB  |  165 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/include
  18. RLE_LIB = /u/urt/lib/librle.a
  19.  
  20. # Where are all the include files and libraryies for the gif utils:
  21. INC = -I../lib
  22. GIF_LIB = ../lib/libgif.a
  23. GIF_LIB_DEPEND = ../lib/libgif.a ../lib/gif_lib.h ../lib/getarg.h
  24.  
  25. # Where to copy executables to:
  26. DEST = ../bin
  27.  
  28. #
  29. # These are the flags for gcc, in BSD4.3 or Sun O.S. 4.0.3
  30. #
  31. # If your system has all function prototypes for gcc, replace all
  32. # the -Wxxx with -Wall. I can not add -Wimplicit as my system uses old cc
  33. # h files.
  34. #
  35. #
  36. # CC = cc
  37. # CFLAGS = -O -c -W -Wreturn-type -Wcomment
  38. # CFLAGS = -g -pg -c -W -Wreturn-type -Wcomment
  39. # MORELIBS =
  40.  
  41. #
  42. # These are the flags for cc on SGI iris4d. O.S. IRIX 3.2. Note you must
  43. # Define MORELIBS as well.
  44. #
  45. # CC = cc
  46. #
  47. # CFLAGS = -O -c -DSYSV -DNO_VOID_PTR -Olimit 1000 -Wf,-XNh5000 -Wf,-XNd5000 -G 4
  48. # CFLAGS = -g -p -c -DSYSV -DNO_VOID_PTR -Olimit 1000 -Wf,-XNh5000 -Wf,-XNd5000 -G 4
  49. # MORELIBS = -lbsd
  50.  
  51. #
  52. # These are the flags for xlc, ansi compiler for IBM R6000
  53. #
  54. CC = xlc
  55. #
  56. CFLAGS = -O -c -qnoro -D_POSIX_SOURCE -D_ALL_SOURCE -DR6000
  57. # CFLAGS = -g -pg -c -qnoro -D_POSIX_SOURCE -D_ALL_SOURCE -DR6000
  58. MORELIBS =
  59.  
  60.  
  61. ALL =    $(DEST)/gif2epsn $(DEST)/gif2ps \
  62.     $(DEST)/gif2X11 $(DEST)/gifasm \
  63.     $(DEST)/gifbg $(DEST)/gifclip $(DEST)/gifclrmp \
  64.     $(DEST)/gifcomb $(DEST)/gifflip $(DEST)/gifhisto \
  65.     $(DEST)/gifinter $(DEST)/gifinto $(DEST)/gifpos \
  66.     $(DEST)/gifrsize $(DEST)/giftext $(DEST)/gifwedge \
  67.     $(DEST)/raw2gif $(DEST)/text2gif
  68.  
  69. RLE =   $(DEST)/gif2rle $(DEST)/rle2gif
  70.  
  71. IRIS =  $(DEST)/gif2iris
  72.  
  73. .c.o:
  74.     $(CC) $(CFLAGS) $(INC) $(RLE_INC) $<
  75.  
  76. all:    $(ALL)
  77. rle:    $(RLE)
  78. iris:    $(IRIS)
  79.  
  80. $(DEST)/gif2epsn: gif2epsn.o $(GIF_LIB_DEPEND)
  81.     $(CC) gif2epsn.o -o gif2epsn $(GIF_LIB)
  82.     mv -f gif2epsn $(DEST)
  83.  
  84. $(DEST)/gif2iris: gif2iris.o $(GIF_LIB_DEPEND)
  85.     $(CC) gif2iris.o -o gif2iris $(GIF_LIB) -lgl_s
  86.     mv -f gif2iris $(DEST)
  87.  
  88. $(DEST)/gif2ps: gif2ps.o $(GIF_LIB_DEPEND)
  89.     $(CC) gif2ps.o -o gif2ps $(GIF_LIB)
  90.     mv -f gif2ps $(DEST)
  91.  
  92. $(DEST)/gif2X11: gif2X11.o $(GIF_LIB_DEPEND)
  93.     $(CC) gif2X11.o -o gif2X11 $(GIF_LIB) -lX11 $(MORELIBS)
  94.     mv -f gif2X11 $(DEST)
  95.  
  96. $(DEST)/gifasm: gifasm.o $(GIF_LIB_DEPEND)
  97.     $(CC) gifasm.o -o gifasm $(GIF_LIB)
  98.     mv -f gifasm $(DEST)
  99.  
  100. $(DEST)/gifbg: gifbg.o $(GIF_LIB_DEPEND)
  101.     $(CC) gifbg.o -o gifbg $(GIF_LIB)
  102.     mv -f gifbg $(DEST)
  103.  
  104. $(DEST)/gifclip: gifclip.o $(GIF_LIB_DEPEND)
  105.     $(CC) gifclip.o -o gifclip $(GIF_LIB)
  106.     mv -f gifclip $(DEST)
  107.  
  108. $(DEST)/gifclrmp: gifclrmp.o $(GIF_LIB_DEPEND)
  109.     $(CC) gifclrmp.o -o gifclrmp $(GIF_LIB) -lm
  110.     mv -f gifclrmp $(DEST)
  111.  
  112. $(DEST)/gifcomb: gifcomb.o $(GIF_LIB_DEPEND)
  113.     $(CC) gifcomb.o -o gifcomb $(GIF_LIB)
  114.     mv -f gifcomb $(DEST)
  115.  
  116. $(DEST)/gifflip: gifflip.o $(GIF_LIB_DEPEND)
  117.     $(CC) gifflip.o -o gifflip $(GIF_LIB)
  118.     mv -f gifflip $(DEST)
  119.  
  120. $(DEST)/gifhisto: gifhisto.o $(GIF_LIB_DEPEND)
  121.     $(CC) gifhisto.o -o gifhisto $(GIF_LIB)
  122.     mv -f gifhisto $(DEST)
  123.  
  124. $(DEST)/gifinter: gifinter.o $(GIF_LIB_DEPEND)
  125.     $(CC) gifinter.o -o gifinter $(GIF_LIB)
  126.     mv -f gifinter $(DEST)
  127.  
  128. $(DEST)/gifinto: gifinto.o $(GIF_LIB_DEPEND)
  129.     $(CC) gifinto.o -o gifinto $(GIF_LIB)
  130.     mv -f gifinto $(DEST)
  131.  
  132. $(DEST)/gifpos: gifpos.o $(GIF_LIB_DEPEND)
  133.     $(CC) gifpos.o -o gifpos $(GIF_LIB)
  134.     mv -f gifpos $(DEST)
  135.  
  136. $(DEST)/gifrsize: gifrsize.o $(GIF_LIB_DEPEND)
  137.     $(CC) gifrsize.o -o gifrsize $(GIF_LIB)
  138.     mv -f gifrsize $(DEST)
  139.  
  140. $(DEST)/giftext: giftext.o $(GIF_LIB_DEPEND)
  141.     $(CC) giftext.o -o giftext $(GIF_LIB)
  142.     mv -f giftext $(DEST)
  143.  
  144. $(DEST)/gifwedge: gifwedge.o $(GIF_LIB_DEPEND)
  145.     $(CC) gifwedge.o -o gifwedge $(GIF_LIB)
  146.     mv -f gifwedge $(DEST)
  147.  
  148. $(DEST)/raw2gif: raw2gif.o $(GIF_LIB_DEPEND)
  149.     $(CC) raw2gif.o -o raw2gif $(GIF_LIB)
  150.     mv -f raw2gif $(DEST)
  151.  
  152. $(DEST)/text2gif: text2gif.o $(GIF_LIB_DEPEND)
  153.     $(CC) text2gif.o -o text2gif $(GIF_LIB)
  154.     mv -f text2gif $(DEST)
  155.  
  156. #
  157. # The utah raster toolkit conversion routines:
  158. #
  159. $(DEST)/gif2rle: gif2rle.o $(GIF_LIB_DEPEND)
  160.     $(CC) gif2rle.o -o gif2rle $(GIF_LIB) $(RLE_LIB)
  161.     mv -f gif2rle $(DEST)
  162. $(DEST)/rle2gif: rle2gif.o $(GIF_LIB_DEPEND)
  163.     $(CC) rle2gif.o -o rle2gif $(GIF_LIB) $(RLE_LIB)
  164.     mv -f rle2gif $(DEST)
  165.