home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / vol_300 / 347_01 / tavl_bcc.mak < prev    next >
Text File  |  1991-10-20  |  2KB  |  66 lines

  1. #  Create TAVL library.  Unlike the tavl*.c & tavl*.h source code,
  2. #                        which is "Standard C" and does not depend
  3. #                        on any particular compiler, this MAKEFILE
  4. #                        is geared to Borland C++, Borland's MAKE
  5. #                        and Borland's library utility "TLIB", and
  6. #                        is included purely as a convenience and
  7. #                        for illustrative purposes.
  8. #
  9. #    Naming convention: tavl_t.lib    -  TINY    memory model library
  10. #                       tavl_s.lib    -  SMALL   memory model library
  11. #                       tavl_m.lib    -  MEDIUM  memory model library
  12. #                       tavl_c.lib    -  COMPACT memory model library
  13. #                       tavl_l.lib    -  LARGE   memory model library
  14. #                       tavl_h.lib    -  HUGE    memory model library
  15. #
  16. #
  17. #    Example command line to create compact memory model library:
  18. #        MAKE -DMDL=c -ftavl_bcc.mak
  19. #
  20. !if !$d(MDL)
  21. MDL=s
  22. !endif
  23. #
  24. #
  25. tavl_$(MDL).lib: tavlinit.obj tavlpred.obj tavlsucc.obj tavl_sdt.obj \
  26.                  tavl_rst.obj tavlfree.obj tavlfind.obj tavlrebl.obj \
  27.                  tavl_ins.obj tavl_del.obj tavl_gdt.obj tavldall.obj
  28.   tlib tavl_$(MDL) +tavlinit +tavlpred +tavlsucc +tavl_sdt +tavl_rst +tavldall
  29.   tlib tavl_$(MDL) +tavlfree +tavlfind +tavlrebl +tavl_ins +tavl_del +tavl_gdt
  30. #
  31. #  Don't leave the object files lying around; they will interfere
  32. #  with creating other memory model libraries.
  33. #
  34.   del tavlinit.obj
  35.   del tavlpred.obj
  36.   del tavlsucc.obj
  37.   del tavl_sdt.obj
  38.   del tavl_rst.obj
  39.   del tavlfree.obj
  40.   del tavlfind.obj
  41.   del tavlrebl.obj
  42.   del tavl_ins.obj
  43.   del tavl_del.obj
  44.   del tavl_gdt.obj
  45.   del tavldall.obj
  46. #
  47. #
  48. #
  49. .c.obj:
  50.    bcc -c -m$(MDL) -A -a -P-c -DNDEBUG -G -O -Z $*
  51. #
  52. #  - compiler options:
  53. #
  54. #  -c              compile only (REQUIRED)
  55. #  -m$(MDL)        memory model (REQUIRED)
  56. #  -P-c            default file name extension is ".C"
  57. #  -DNDEBUG        NDEBUG defined - removes assertions (RECOMMENDED)
  58. #  -A              ANSI keywords only
  59. #  -G              optimize for speed
  60. #  -a              word alignment
  61. #  -Z              register optimization ON
  62. #  -O              optimize jumps
  63. #
  64. #  Change the options to suit your needs - these are mine.
  65. #
  66.