home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-01 / lcppb.zip / LCPP09.ZIP / MAKEC09 < prev    next >
Encoding:
Text File  |  1991-07-08  |  2.7 KB  |  120 lines

  1. #-----------------------------------------------------------------------------
  2. #
  3. # LEARNING C++ (for Borland C++ 2.0)
  4. #
  5. # by Tom Swan
  6. #
  7. # MAKEC09 -- Make file for chapter 9
  8. #
  9. # To compile all programs, make sure C:\BC\BIN is in your
  10. # system path (replace C: with the drive letter where you
  11. # installed Borland C++.) Then enter 
  12. #
  13. #   MAKE -fMAKEC09
  14. #
  15. # Copyright (c) 1991 by Tom Swan. All rights reserved.
  16. #
  17. #-----------------------------------------------------------------------------
  18.  
  19. # IMPORTANT:
  20. # If files DISP.H and DISP.OBJ are not stored in
  21. # \lcppb\lib, change the path in the following definition
  22. # to the location of the two files. Do not end the path
  23. # with a backslash.
  24.  
  25. lib=\lcppb\lib
  26.  
  27.  
  28. # Library and include-file macros. If you change the library
  29. # file name, you'll have to change it in every MAKE file.
  30.  
  31. library=$(lib)\lcpp.lib
  32. include=$(lib)
  33.  
  34.  
  35. # OPTION:
  36. # To examine programs with Turbo Debugger, remove the
  37. # leading # from the beginning of the following command. This
  38. # will increase disk consumption drastically, so you'll
  39. # normally leave the line as is.
  40.  
  41. #debugging = 1
  42.  
  43. # Note: If you change the debugging symbol, delete all .OBJ  
  44. # and .EXE files before remaking.
  45.  
  46.  
  47. # These statements create appropriate macros based on the
  48. # setting of the debugging symbol above. The -v option adds
  49. # debugging information to compiled programs.  
  50.  
  51. !if $d(debugging)
  52. compile=bcc -c -v -I$(include) $(library)
  53. link=bcc -v -I$(include) $(library)
  54. !else
  55. compile=bcc -c -I$(include) $(library)
  56. link=bcc -I$(include) $(library)
  57. !endif
  58.  
  59.  
  60. # --  Force MAKE to recognize various dependencies
  61.  
  62. depends: \
  63. arraylst.exe friend.exe friendfn.exe friendmf.exe mfnptr.exe \
  64. newops.exe overnew.exe pointin.exe pointout.exe strops.exe \
  65. strops2.exe thisis.exe trouble.exe mainbug.obj subbug.obj
  66.  
  67.  
  68. # -- Compile executable programs
  69.  
  70. arraylst.exe: arraylst.cpp
  71.  $(link) arraylst
  72.  
  73. friend.exe: friend.cpp
  74.  $(link) friend
  75.  
  76. friendfn.exe: friendfn.cpp
  77.  $(link) friendfn
  78.  
  79. friendmf.exe: friendmf.cpp
  80.  $(link) friendmf
  81.  
  82. mfnptr.exe: mfnptr.cpp
  83.  $(link) mfnptr
  84.  
  85. newops.exe: newops.cpp
  86.  $(link) newops
  87.  
  88. overnew.exe: overnew.cpp
  89.  $(link) overnew
  90.  
  91. pointin.exe: pointin.cpp
  92.  $(link) pointin
  93.  
  94. pointout.exe: pointout.cpp
  95.  $(link) pointout
  96.  
  97. strops.exe: strops.cpp
  98.  $(link) strops
  99.  
  100. strops2.exe: strops2.cpp
  101.  $(link) strops2
  102.  
  103. thisis.exe: thisis.cpp
  104.  $(link) thisis
  105.  
  106. trouble.exe: trouble.cpp
  107.  $(link) trouble
  108.  
  109.  
  110. # -- The following modules compile but do not link correctly, 
  111. #    demonstrating a benefit of typesafe linkage. This is 
  112. #    normal--it is not a bug. See pages 516-517 in Learning C++ 
  113. #    for a complete explanation.
  114.  
  115. mainbug.obj: mainbug.cpp
  116.  $(compile) mainbug
  117.  
  118. subbug.obj: subbug.cpp
  119.  $(compile) subbug
  120.