home *** CD-ROM | disk | FTP | other *** search
/ Media Share 9 / MEDIASHARE_09.ISO / graphics / gif-util.zip / MAKEFILE.1 < prev    next >
Text File  |  1989-08-01  |  5KB  |  161 lines

  1. #
  2. # This is the make file for the util subdirectory of the GIF library
  3. # In order to run it tcc is assumed to be available, in addition to
  4. # tlib and borland make.
  5. #
  6. # Usage: "make [-DMDL=model]" where model can be l (large) or c (compact) etc.
  7. # Note the MDL is optional with large model as default.
  8. #
  9. #
  10. # This make file requires:
  11. # 1. Setting the TC libraries directory as CC_LIBS below. Make sure this
  12. #    is really short (because of DOS stupid limit on command line length).
  13. # 2. Setting the executables destination directory as DEST below. Make
  14. #    sure that directory do exists.
  15. # 2. Making new library named graphbgi.lib holds the drivers for the different
  16. #    devices (using bgiobj.exe and tlib.exe utilities).
  17. #
  18. #                Gershon Elber, Jun 1989
  19. #
  20.  
  21. # Your C compiler
  22. CC = tcc
  23.  
  24. # MDL set?
  25. !if !$d(MDL)
  26. MDL=l
  27. !endif
  28.  
  29. # Where all the include files are:
  30. INC = ..\lib
  31.  
  32. # And libararies:
  33. GIF_LIB = ..\lib\gif_lib$(MDL).lib
  34. CC_LIBS = f:\\
  35.  
  36. # Where to copy executables to:
  37. DEST = \gif\exe
  38.  
  39. # Note the tcc xxxxxx.tc files enables ALL warnings for more strict tests so
  40. # you should use them during debuging. I didnt add it here as command lines
  41. # are limited to 128 chars...
  42. FLAGS = -m$(MDL) -a- -f- -G -O -r -c -d -w
  43. FLAGSMAT = -m$(MDL) -a- -f -G -O -r -c -d -w
  44.  
  45. ALL = $(DEST)\gif2epsn.exe $(DEST)\gif2herc.exe $(DEST)\gifasm.exe \
  46.     $(DEST)\gifbg.exe $(DEST)\gifclip.exe $(DEST)\gifclrmp.exe \
  47.     $(DEST)\gifcomb.exe $(DEST)\gifflip.exe $(DEST)\gifhisto.exe \
  48.     $(DEST)\gifinter.exe $(DEST)\gifinto.exe $(DEST)\gifpos.exe \
  49.     $(DEST)\gifrsize.exe $(DEST)\giftext.exe $(DEST)\herc2gif.exe
  50.  
  51. .c.obj:
  52.     $(CC) -I$(INC) $(FLAGS) $<
  53.  
  54. all.exe: $(ALL)
  55.  
  56. $(DEST)\gif2epsn.exe: gif2epsn.obj $(GIF_LIB)
  57.     tlink $(CC_LIBS)c0$(MDL).obj gif2epsn.obj, gif2epsn,, $(GIF_LIB) \
  58.     $(CC_LIBS)graphics.lib $(CC_LIBS)graphbgi.lib $(CC_LIBS)c$(MDL).lib /x
  59.     copy gif2epsn.exe $(DEST)
  60.     del gif2epsn.exe
  61. gif2epsn.obj: $(INC)\gif_lib.h $(INC)\getarg.h
  62.  
  63. $(DEST)\gif2herc.exe: gif2herc.obj $(GIF_LIB)
  64.     tlink $(CC_LIBS)c0$(MDL).obj gif2herc.obj, gif2herc,, $(GIF_LIB) \
  65.     $(CC_LIBS)graphics.lib $(CC_LIBS)graphbgi.lib $(CC_LIBS)c$(MDL).lib /x
  66.     copy gif2herc.exe $(DEST)
  67.     del gif2herc.exe
  68. gif2herc.obj: $(INC)\gif_lib.h $(INC)\getarg.h
  69.  
  70. $(DEST)\gifasm.exe: gifasm.obj $(GIF_LIB)
  71.     tlink $(CC_LIBS)c0$(MDL).obj gifasm.obj, gifasm,, $(GIF_LIB) \
  72.     $(CC_LIBS)c$(MDL).lib /x
  73.     copy gifasm.exe $(DEST)
  74.     del gifasm.exe
  75. gifasm.obj: $(INC)\gif_lib.h $(INC)\getarg.h
  76.  
  77. $(DEST)\gifbg.exe: gifbg.obj $(GIF_LIB)
  78.     tlink $(CC_LIBS)c0$(MDL).obj gifbg.obj, gifbg,, $(GIF_LIB) \
  79.     $(CC_LIBS)c$(MDL).lib /x
  80.     copy gifbg.exe $(DEST)
  81.     del gifbg.exe
  82. gifbg.obj: $(INC)\gif_lib.h $(INC)\getarg.h
  83.  
  84. $(DEST)\gifclip.exe: gifclip.obj $(GIF_LIB)
  85.     tlink $(CC_LIBS)c0$(MDL).obj gifclip.obj, gifclip,, $(GIF_LIB) \
  86.     $(CC_LIBS)c$(MDL).lib /x
  87.     copy gifclip.exe $(DEST)
  88.     del gifclip.exe
  89. gifclip.obj: $(INC)\gif_lib.h $(INC)\getarg.h
  90.  
  91. $(DEST)\gifclrmp.exe: gifclrmp.c gifclrmp.obj $(GIF_LIB)
  92.     $(CC) -I$(INC) $(FLAGSMAT) gifclrmp.c
  93.     tlink $(CC_LIBS)c0$(MDL).obj gifclrmp.obj, gifclrmp,, $(GIF_LIB) \
  94.     $(CC_LIBS)emu $(CC_LIBS)math$(MDL) $(CC_LIBS)c$(MDL) /x
  95.     copy gifclrmp.exe $(DEST)
  96.     del gifclrmp.exe
  97. gifclrmp.obj: $(INC)\gif_lib.h $(INC)\getarg.h
  98.  
  99. $(DEST)\gifcomb.exe: gifcomb.obj $(GIF_LIB)
  100.     tlink $(CC_LIBS)c0$(MDL).obj gifcomb.obj, gifcomb,, $(GIF_LIB) \
  101.     $(CC_LIBS)c$(MDL).lib /x
  102.     copy gifcomb.exe $(DEST)
  103.     del gifcomb.exe
  104. gifcomb.obj: $(INC)\gif_lib.h $(INC)\getarg.h
  105.  
  106. $(DEST)\gifflip.exe: gifflip.obj $(GIF_LIB)
  107.     tlink $(CC_LIBS)c0$(MDL).obj gifflip.obj, gifflip,, $(GIF_LIB) \
  108.     $(CC_LIBS)c$(MDL).lib /x
  109.     copy gifflip.exe $(DEST)
  110.     del gifflip.exe
  111. gifflip.obj: $(INC)\gif_lib.h $(INC)\getarg.h
  112.  
  113. $(DEST)\gifhisto.exe: gifhisto.obj $(GIF_LIB)
  114.     tlink $(CC_LIBS)c0$(MDL).obj gifhisto.obj, gifhisto,, $(GIF_LIB) \
  115.     $(CC_LIBS)c$(MDL).lib /x
  116.     copy gifhisto.exe $(DEST)
  117.     del gifhisto.exe
  118. gifhisto.obj: $(INC)\gif_lib.h $(INC)\getarg.h
  119.  
  120. $(DEST)\gifinter.exe: gifinter.obj $(GIF_LIB)
  121.     tlink $(CC_LIBS)c0$(MDL).obj gifinter.obj, gifinter,, $(GIF_LIB) \
  122.     $(CC_LIBS)c$(MDL).lib /x
  123.     copy gifinter.exe $(DEST)
  124.     del gifinter.exe
  125. gifinter.obj: $(INC)\gif_lib.h $(INC)\getarg.h
  126.  
  127. $(DEST)\gifinto.exe: gifinto.obj $(GIF_LIB)
  128.     tlink $(CC_LIBS)c0$(MDL).obj gifinto.obj, gifinto,, $(GIF_LIB) \
  129.     $(CC_LIBS)c$(MDL).lib /x
  130.     copy gifinto.exe $(DEST)
  131.     del gifinto.exe
  132. gifinto.obj: $(INC)\gif_lib.h $(INC)\getarg.h
  133.  
  134. $(DEST)\gifpos.exe: gifpos.obj $(GIF_LIB)
  135.     tlink $(CC_LIBS)c0$(MDL).obj gifpos.obj, gifpos,, $(GIF_LIB) \
  136.     $(CC_LIBS)c$(MDL).lib /x
  137.     copy gifpos.exe $(DEST)
  138.     del gifpos.exe
  139. gifpos.obj: $(INC)\gif_lib.h $(INC)\getarg.h
  140.  
  141. $(DEST)\gifrsize.exe: gifrsize.obj $(GIF_LIB)
  142.     tlink $(CC_LIBS)c0$(MDL).obj gifrsize.obj, gifrsize,, $(GIF_LIB) \
  143.     $(CC_LIBS)c$(MDL).lib /x
  144.     copy gifrsize.exe $(DEST)
  145.     del gifrsize.exe
  146. gifrsize.obj: $(INC)\gif_lib.h $(INC)\getarg.h
  147.  
  148. $(DEST)\giftext.exe: giftext.obj $(GIF_LIB)
  149.     tlink $(CC_LIBS)c0$(MDL).obj giftext.obj, giftext,, $(GIF_LIB) \
  150.     $(CC_LIBS)c$(MDL).lib /x
  151.     copy giftext.exe $(DEST)
  152.     del giftext.exe
  153. giftext.obj: $(INC)\gif_lib.h $(INC)\getarg.h
  154.  
  155. $(DEST)\herc2gif.exe: herc2gif.obj $(GIF_LIB)
  156.     tlink $(CC_LIBS)c0$(MDL).obj herc2gif.obj, herc2gif,, $(GIF_LIB) \
  157.     $(CC_LIBS)c$(MDL).lib /x
  158.     copy herc2gif.exe $(DEST)
  159.     del herc2gif.exe
  160. herc2gif.obj: $(INC)\gif_lib.h
  161.