home *** CD-ROM | disk | FTP | other *** search
/ Graphics 16,000 / graphics-16000.iso / msdos / viewers / giflib12 / util / makdebug.tc < prev    next >
Text File  |  1990-12-01  |  2KB  |  73 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 - 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 = g:\\
  40. LIBS = $(GIF_LIB) $(CC_LIBS)graphics.lib $(CC_LIBS)graphbgi.lib \
  41.     $(CC_LIBS)emu.lib $(CC_LIBS)math$(MDL).lib
  42.  
  43. # Note the tcc xxxxxx.tc files enables ALL warnings for more strict tests so
  44. # you should use them during debuging. I didnt add it here as command lines
  45. # are limited to 128 chars...
  46. #
  47. # Optimized version:
  48. # CFLAGS = -m$(MDL) -a- -f -G -O -r -c -d -w -v- -y- -k- -M-
  49. CFLAGS = -ml -a- -f -G  -O- -r  -c -d -w -v- -y- -k- -M-
  50. #
  51. # Debugging version:
  52. # CFLAGS = -m$(MDL) -a- -f -c -d -w -v -y -k -M-
  53. # LFLAGS = -lvlc
  54.  
  55. ALL =   gifdebug.exe
  56.  
  57. all: $(ALL)
  58.  
  59. #
  60. # Note we go all the way to the exe file using this rule.
  61. #
  62. # LZEXE is an EXE compressor program. If you dont have it remove the two
  63. # lines of 'lzexe $&.exe' and 'del $&.old'.
  64. #
  65. .c.obj:
  66.     $(CC) -I$(INC) $(CFLAGS) {$&.c }
  67.     $(CC) -m$(MDL) $(LFLAGS) $&.obj $(LIBS)
  68.     del gifdebug.exe
  69.     ren gifhn.exe gifdebug.exe
  70.  
  71. gifdebug.exe: gifhn.obj
  72. gifhn.obj: $(GIF_INC)
  73.