home *** CD-ROM | disk | FTP | other *** search
/ C!T ROM 2 / ctrom_ii_b.zip / ctrom_ii_b / PROGRAM / C / TGE129D / TGELIB.MAK < prev    next >
Text File  |  1993-09-12  |  3KB  |  81 lines

  1. #
  2. # Use this makefile to create a copy of TGE.LIB which is usable by your
  3. # compiler.
  4. #
  5. # By default, debugging information is not stored in the library.  To
  6. # create a copy of TGE.LIB containing debugging information:
  7. #    1. Edit the CC and ASM symbols to include the appropriate command-line
  8. #       switches for your compiler and assembler, respectively.  To add or
  9. #       remove debugging information to or from individual files, refer to
  10. #       the end of this makefile.
  11. #    2. Run MAKELIB.BAT to create a new copy of TGE.LIB (with debugging
  12. #       information).
  13. #
  14. # By default, TGESETUP.C, CLIP.C, and MOUSEPTR.C are compiled as
  15. # overlayable OBJ files.  With the exception of NEWMOUSE.ASM, any of TGE's
  16. # modules may be overlaid; in general, however, only those modules which
  17. # are used infrequently should be overlaid.  It is strongly recommended
  18. # that TGE.C not be overlaid, except under the severest memory
  19. # restrictions, as doing so may degrade performance.  To change the overlay
  20. # status of one or more of TGE's modules, add or remove MAKE dependency and
  21. # building information for the file(s) involved, following the examples at
  22. # the end of this makefile.
  23. #
  24. # This makefile has only been tested with Borland C++ 2.0 to date, and
  25. # assumes that a Borland compiler will be used; you may need to edit this
  26. # file before using it with a non-Borland compiler.
  27. #
  28.  
  29. .autodepend
  30.  
  31. MODEL       = l
  32. CC_OVERLAY  = -Yo
  33. ASM_OVERLAY = /o
  34. CC_DEBUG    = -v
  35. ASM_DEBUG   = /zi
  36. CC          = bcc -c -m$(MODEL)
  37. ASM         = tasm /ml
  38. LIB         = tlib /c /e
  39. OBJFILES    = tge.obj        \
  40.               tgesetup.obj    \
  41.               clip.obj        \
  42.               tgefont.obj    \
  43.               tgemouse.obj    \
  44.               mouseptr.obj    \
  45.               newmouse.obj    \
  46.               scale.obj
  47.  
  48.  
  49. .asm.obj:
  50.      $(ASM) $<
  51. .cpp.obj:
  52.      $(CC) $<
  53. .c.obj:
  54.      $(CC) $<
  55.  
  56.  
  57. tge.lib:  $(OBJFILES)
  58.      $(LIB) ..\lib\tge @tgelib.lst
  59.  
  60.  
  61. #
  62. # To individually change a file's overlay or debugging information status,
  63. # edit this section.  (Of course, the appropriate options may need to be
  64. # passed to the linker for these options to take effect.)  Use the CC and
  65. # CC_OVERLAY symbols for C/C++ source files, and the ASM and ASM_OVERLAY
  66. # symbols for assembly source files.
  67. #
  68.  
  69. tgesetup.obj:  tgesetup.c
  70.      $(CC) $(CC_OVERLAY) tgesetup.c
  71.  
  72. clip.obj:  clip.c
  73.      $(CC) $(CC_OVERLAY) clip.c
  74.  
  75. mouseptr.obj:  mouseptr.c
  76.      $(CC) $(CC_OVERLAY) mouseptr.c
  77.  
  78. # Example of how to overlay an ASM file and include debugging information:
  79. # tgemouse.obj:  tgemouse.asm
  80. #      $(ASM) $(ASM_DEBUG) $(ASM_OVERLAY) tgemouse.asm
  81.