home *** CD-ROM | disk | FTP | other *** search
/ Graphics 16,000 / graphics-16000.iso / msdos / viewers / giflib12 / util / makefile.tc < prev    next >
Makefile  |  1991-08-02  |  4KB  |  154 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.  
  22. # Works only on TC++ 1.0 make and up - swap out make before invoking command.
  23. .SWAP
  24.  
  25. # Your C compiler
  26. CC = tcc
  27.  
  28. # MDL set?
  29. !if !$d(MDL)
  30. MDL=l
  31. !endif
  32.  
  33. # Where all the include files are:
  34. INC = ..\lib
  35. GIF_INC = $(INC)\gif_lib.h $(INC)\getarg.h
  36.  
  37. # And libararies:
  38. GIF_LIB = ..\lib\gif_lib$(MDL).lib
  39. CC_LIBS = c:\tc\lib\\
  40. BGI_LIB = c:\tc\mylib\graphbgi.lib
  41. LIBS = $(GIF_LIB) $(CC_LIBS)graphics.lib $(BGI_LIB) \
  42.     $(CC_LIBS)emu.lib $(CC_LIBS)math$(MDL).lib
  43.  
  44. # Where to copy executables to:
  45. DEST = c:\gif
  46.  
  47. # Note the tcc xxxxxx.tc files enables ALL warnings for more strict tests so
  48. # you should use them during debuging. I didnt add it here as command lines
  49. # are limited to 128 chars...
  50. #
  51. # Optimized version:
  52. CFLAGS = -m$(MDL) -a- -f -G -O -r -c -d -w -v- -y- -k- -M-
  53. #
  54. # Debugging version:
  55. # CFLAGS = -m$(MDL) -a- -f -c -d -w -v -y -k -M-
  56. # LFLAGS = -lvlc
  57.  
  58. ALL =   $(DEST)\gif2bgi.exe $(DEST)\gif2epsn.exe $(DEST)\gif2herc.exe \
  59.     $(DEST)\gif2ps.exe $(DEST)\gif2rgb.exe $(DEST)\gifasm.exe \
  60.     $(DEST)\gifbg.exe $(DEST)\gifclip.exe $(DEST)\gifclrmp.exe \
  61.     $(DEST)\gifcomb.exe $(DEST)\giffix.exe $(DEST)\gifflip.exe \
  62.     $(DEST)\gifhisto.exe $(DEST)\gifinter.exe $(DEST)\gifinto.exe \
  63.     $(DEST)\gifpos.exe $(DEST)\gifrotat.exe $(DEST)\gifrsize.exe \
  64.     $(DEST)\giftext.exe $(DEST)\gifwedge.exe $(DEST)\herc2gif.exe \
  65.     $(DEST)\raw2gif.exe $(DEST)\rgb2gif.exe $(DEST)\text2gif.exe
  66.  
  67. allexe: $(ALL)
  68.  
  69. #
  70. # Note we go all the way to the exe file using this rule.
  71. #
  72. # LZEXE is an EXE compressor program. If you dont have it remove the two
  73. # lines of 'lzexe $&.exe' and 'del $&.old'.
  74. #
  75. .c.obj:
  76.     $(CC) -I$(INC) $(CFLAGS) {$&.c }
  77.     $(CC) -m$(MDL) $(LFLAGS) $&.obj $(LIBS)
  78.     lzexe $&.exe
  79.     del $&.old
  80.     copy $&.exe $(DEST)
  81.     del $&.exe
  82.  
  83. $(DEST)\gif2bgi.exe: gif2bgi.obj
  84. gif2bgi.obj: $(GIF_INC)
  85.  
  86. $(DEST)\gif2epsn.exe: gif2epsn.obj
  87. gif2epsn.obj: $(GIF_INC)
  88.  
  89. $(DEST)\gif2herc.exe: gif2herc.obj $(GIF_LIB)
  90. gif2herc.obj: $(GIF_INC)
  91.  
  92. $(DEST)\gif2ps.exe: gif2ps.obj $(GIF_LIB)
  93. gif2ps.obj: $(GIF_INC)
  94.  
  95. $(DEST)\gif2rgb.exe: gif2rgb.obj $(GIF_LIB)
  96. gif2rgb.obj: $(GIF_INC)
  97.  
  98. $(DEST)\gifasm.exe: gifasm.obj $(GIF_LIB)
  99. gifasm.obj: $(GIF_INC)
  100.  
  101. $(DEST)\gifbg.exe: gifbg.obj $(GIF_LIB)
  102. gifbg.obj: $(GIF_INC)
  103.  
  104. $(DEST)\gifclip.exe: gifclip.obj $(GIF_LIB)
  105. gifclip.obj: $(GIF_INC)
  106.  
  107. $(DEST)\gifclrmp.exe: gifclrmp.c gifclrmp.obj $(GIF_LIB)
  108. gifclrmp.obj: $(GIF_INC)
  109.  
  110. $(DEST)\gifcomb.exe: gifcomb.obj $(GIF_LIB)
  111. gifcomb.obj: $(GIF_INC)
  112.  
  113. $(DEST)\giffix.exe: giffix.obj $(GIF_LIB)
  114. giffix.obj: $(GIF_INC)
  115.  
  116. $(DEST)\gifflip.exe: gifflip.obj $(GIF_LIB)
  117. gifflip.obj: $(GIF_INC)
  118.  
  119. $(DEST)\gifhisto.exe: gifhisto.obj $(GIF_LIB)
  120. gifhisto.obj: $(GIF_INC)
  121.  
  122. $(DEST)\gifinter.exe: gifinter.obj $(GIF_LIB)
  123. gifinter.obj: $(GIF_INC)
  124.  
  125. $(DEST)\gifinto.exe: gifinto.obj $(GIF_LIB)
  126. gifinto.obj: $(GIF_INC)
  127.  
  128. $(DEST)\gifpos.exe: gifpos.obj $(GIF_LIB)
  129. gifpos.obj: $(GIF_INC)
  130.  
  131. $(DEST)\gifrotat.exe: gifrotat.obj $(GIF_LIB)
  132. gifrotat.obj: $(GIF_INC)
  133.  
  134. $(DEST)\gifrsize.exe: gifrsize.obj $(GIF_LIB)
  135. gifrsize.obj: $(GIF_INC)
  136.  
  137. $(DEST)\giftext.exe: giftext.obj $(GIF_LIB)
  138. giftext.obj: $(GIF_INC)
  139.  
  140. $(DEST)\gifwedge.exe: gifwedge.obj $(GIF_LIB)
  141. gifwedge.obj: $(GIF_INC)
  142.  
  143. $(DEST)\herc2gif.exe: herc2gif.obj $(GIF_LIB)
  144. herc2gif.obj: $(GIF_INC)
  145.  
  146. $(DEST)\raw2gif.exe: raw2gif.obj $(GIF_LIB)
  147. raw2gif.obj: $(GIF_INC)
  148.  
  149. $(DEST)\rgb2gif.exe: rgb2gif.obj $(GIF_LIB)
  150. rgb2gif.obj: $(GIF_INC)
  151.  
  152. $(DEST)\text2gif.exe: text2gif.obj $(GIF_LIB)
  153. text2gif.obj: $(GIF_INC)
  154.