home *** CD-ROM | disk | FTP | other *** search
/ Otherware / Otherware_1_SB_Development.iso / mac / developm / scnote / cplussmp.014 / CPlusTESample.make next >
Encoding:
Text File  |  1989-10-01  |  2.7 KB  |  102 lines

  1. #------------------------------------------------------------------------------
  2. #
  3. #    Apple Macintosh Developer Technical Support
  4. #
  5. #    MultiFinder-Aware Simple TextEdit Sample Application
  6. #
  7. #    CPlusTESample
  8. #
  9. #    CPlusTESample.make    -    Make source
  10. #
  11. #    Copyright ⌐ 1989 Apple Computer, Inc.
  12. #    All rights reserved.
  13. #
  14. #    Versions:    
  15. #            1.20                    10/89
  16. #            1.10                     07/89
  17. #            1.00                     04/89
  18. #    
  19. #    Components:
  20. #            CPlusTESample.make        October 1, 1989
  21. #            TApplicationCommon.h    October 1, 1989
  22. #            TApplication.h            October 1, 1989
  23. #            TDocument.h                October 1, 1989
  24. #            TECommon.h                October 1, 1989
  25. #            TESample.h                October 1, 1989
  26. #            TEDocument.h            October 1, 1989
  27. #            TApplication.cp            October 1, 1989
  28. #            TDocument.cp            October 1, 1989
  29. #            TESample.cp                October 1, 1989
  30. #            TEDocument.cp            October 1, 1989
  31. #            TESampleGlue.a            October 1, 1989
  32. #            TApplication.r            October 1, 1989
  33. #            TESample.r                October 1, 1989
  34. #
  35. #    CPlusTESample is an example application that demonstrates
  36. #    how to initialize the commonly used toolbox managers,
  37. #    operate successfully under MultiFinder, handle desk
  38. #    accessories and create, grow, and zoom windows. The
  39. #    fundamental TextEdit toolbox calls and TextEdit autoscroll
  40. #    are demonstrated. It also shows how to create and maintain
  41. #    scrollbar controls. 
  42. #
  43. #    This version of TESample has been substantially reworked in
  44. #    C++ to show how a "typical" object oriented program could
  45. #    be written. To this end, what was once a single source code
  46. #    file has been restructured into a set of classes which
  47. #    demonstrate the advantages of object-oriented programming.
  48. #
  49. #------------------------------------------------------------------------------
  50.  
  51. # We need this rule since it is not built into 3.0 Make
  52. # You can comment this line out for MPW 3.1 or higher
  53. .cp.o    ─    .cp
  54.     CPlus {depDir}{default}.cp -o {targDir}{default}.cp.o {CPlusOptions}
  55.  
  56. Objs =    ╢
  57.     TApplication.cp.o ╢
  58.     TDocument.cp.o ╢
  59.     TEDocument.cp.o ╢
  60.     TESample.cp.o ╢
  61.     TESampleGlue.a.o
  62.  
  63. Srcs =    ╢
  64.     TApplication.cp ╢
  65.     TDocument.cp ╢
  66.     TEDocument.cp ╢
  67.     TESample.cp ╢
  68.     TESampleGlue.a
  69.  
  70. Hdrs =    ╢
  71.     TApplicationCommon.h ╢
  72.     TApplication.h ╢
  73.     TECommon.h ╢
  74.     TDocument.h ╢
  75.     TEDocument.h ╢
  76.     TESample.h
  77.  
  78. # set to "-sym on" to turn on SADE symbols
  79. SymOpts = -sym off
  80.  
  81. # C++ options
  82. CPlusOptions = {SymOpts}
  83.  
  84. CPlusTESample ── {Objs} CPlusTESample.make
  85.     Link -d -o {Targ} {SymOpts} ╢
  86.         {Objs} ╢
  87.         "{CLibraries}"CPlusLib.o ╢
  88.         "{CLibraries}"CRuntime.o ╢
  89.         "{CLibraries}"StdCLib.o ╢
  90.         "{CLibraries}"CInterface.o ╢
  91.         "{Libraries}"Interface.o
  92.     SetFile {Targ} -t APPL -c 'MOOT' -a B
  93.  
  94. CPlusTESample ── TESample.r TECommon.h CPlusTESample.make
  95.     Rez -append -o {Targ} TESample.r
  96.  
  97. CPlusTESample ── TApplication.r TApplicationCommon.h CPlusTESample.make
  98.     Rez -append -o {Targ} TApplication.r
  99.  
  100. # if any headers change, recompile everything
  101. {Objs} ── {Hdrs}
  102.