home *** CD-ROM | disk | FTP | other *** search
/ Otherware / Otherware_1_SB_Development.iso / mac / developm / scnote / tesample.002 / Makefile < prev    next >
Makefile  |  1989-06-01  |  3KB  |  78 lines

  1. #
  2. #    Apple Macintosh Developer Technical Support
  3. #
  4. #    MultiFinder-Aware Simple TextEdit Sample Application
  5. #
  6. #    TESample
  7. #
  8. #    CTESample.make    -    Make Source
  9. #
  10. #    Copyright ⌐ 1989 Apple Computer, Inc.
  11. #    All rights reserved.
  12. #
  13. #    Versions:    
  14. #                1.00                08/88
  15. #                1.01                11/88
  16. #                1.02                04/89
  17. #                1.03                06/89
  18. #
  19. #    Components:
  20. #                TESample.p            June 1, 1989
  21. #                TESample.c            June 1, 1989
  22. #                TESampleGlue.a        June 1, 1989    -MPW only-
  23. #                TESample.r            June 1, 1989
  24. #                TESample.h            June 1, 1989
  25. #                PTESample.make        June 1, 1989    -MPW only-
  26. #                CTESample.make        June 1, 1989    -MPW only-
  27. #                TESampleGlue.s        June 1, 1989    -A/UX only-
  28. #                TESampleAUX.r        June 1, 1989    -A/UX only-
  29. #                Makefile            June 1, 1989    -A/UX only-
  30. #
  31. #    TESample is an example application that demonstrates how 
  32. #    to initialize the commonly used toolbox managers, operate 
  33. #    successfully under MultiFinder, handle desk accessories and 
  34. #    create, grow, and zoom windows. The fundamental TextEdit 
  35. #    toolbox calls and TextEdit autoscroll are demonstrated. It 
  36. #    also shows how to create and maintain scrollbar controls.
  37. #
  38. #    It does not by any means demonstrate all the techniques you 
  39. #    need for a large application. In particular, Sample does not 
  40. #    cover exception handling, multiple windows/documents, 
  41. #    sophisticated memory management, printing, or undo. All of 
  42. #    these are vital parts of a normal full-sized application.
  43. #
  44. #    This application is an example of the form of a Macintosh 
  45. #    application; it is NOT a template. It is NOT intended to be 
  46. #    used as a foundation for the next world-class, best-selling, 
  47. #    600K application. A stick figure drawing of the human body may 
  48. #    be a good example of the form for a painting, but that does not 
  49. #    mean it should be used as the basis for the next Mona Lisa.
  50. #
  51. #    We recommend that you review this program or Sample before 
  52. #    beginning a new application. Sample is a simple app. which doesn't 
  53. #    use TextEdit or the Control Manager.
  54. #
  55.  
  56. SHELL =        /bin/sh
  57. CFLAGS =    -I/usr/include/mac -B /usr/lib/big/ -g
  58. REZ =        /usr/toolboxbin/rez -i /usr/lib/mac/rincludes -d AUX
  59.  
  60. # The next entry builds the "TESample" program.  Note that this application
  61. # consists of two files, "TESample" and "%TESample".  Both of these files
  62. # must reside in the same directory when TESample is run.  
  63.  
  64. TESample:    TESample.o TESampleGlue.o %TESample
  65.         ld /usr/lib/maccrt0.o -o TESample TESample.o TESampleGlue.o \
  66.         /usr/lib/low.o -lmac -lat -lc /usr/lib/low.ld
  67.  
  68. TESample.o:    TESample.c
  69.         cc ${CFLAGS} -DAUX -c TESample.c
  70.  
  71. TESampleGlue.o:    TESampleGlue.s
  72.         as -o TESampleGlue.o TESampleGlue.s
  73.  
  74. %TESample:    TESample.r TESampleAUX.r
  75.         ${REZ} TESample.r
  76.         mv %Rez.out %TESample
  77.         rm -f Rez.out
  78.