home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 January / macformat-020.iso / Shareware City / Developers / apps.to.go / DTS.Lib / DTS.Lib_controls.make < prev    next >
Encoding:
Text File  |  1994-05-04  |  2.7 KB  |  81 lines  |  [TEXT/MPS ]

  1. #------------------------------------------------------------------------------
  2. #
  3. #    Apple Macintosh Developer Technical Support
  4. #
  5. #    Program:    DTS.Lib_controls
  6. #    File:        DTS.Lib_controls.make
  7. #
  8. #    Copyright © 1988-1994 Apple Computer, Inc.
  9. #    All rights reserved.
  10. #
  11. #------------------------------------------------------------------------------
  12.  
  13. #    The three possible targets for this makefile
  14. #    The default name is LibName and builds the 68K library
  15. #    PowerPC library is named .PPC and is built with:
  16. #        make -f DTS.Lib_controls.make DTS.Lib_Controls.PPC
  17. #    The "Fat" version isn't actually fat, it just builds both 68K and 
  18. #        PowerPC versions.  Build it with:
  19. #        make -f DTS.Lib_controls.make DTS.Lib_Controls.FAT
  20. LibName            =    'DTS.Lib_controls'
  21. LibNamePPC        =    'DTS.Lib_controls.PPC'
  22. LibNameFAT        =    'DTS.Lib_controls.FAT'
  23.  
  24. DTS.Lib.hdrs    =   ":DTS.Lib.headers:"
  25. projsrc            =    :
  26. obj                =     :OBJECT:
  27. objppc            =     :OBJECTPPC:
  28.  
  29. #    SymOptions and OptOptions are mutually exclusive.  Enable as appropriate
  30. SymOptions        =    -sym on                # turn this on to debug with SADE/R2Db
  31. COptOptions        =    #-opt on
  32. PPCCOptOptions    =    #-opt speed
  33.  
  34. # CIncludesFolder needs to be set to your Universal Interfaces folder
  35. CIncludesFolder    =    -i "{PPCCIncludes}"
  36. IncludesFolders    =    -i {DTS.Lib.hdrs}
  37. COptions        =    {IncludesFolders} {CIncludesFolder} {SymOptions} {COptOptions} -r -mbg on
  38. PPCCOptions        =    {IncludesFolders} {SymOptions} {PPCCOptOptions} -w conformance -appleext on
  39. LibOptions        =    {SymOptions}
  40. LibOptionsPPC    =    -warn -xm l {SymOptions}
  41.  
  42. #------------------------------------------------------------------------------
  43. # These are modified default build rules.  These allow us to build using both
  44. # MPW C (68K) and PPCC (PowerPC) from the same set of sources
  45. #------------------------------------------------------------------------------
  46. {obj}            ƒ    {projsrc}
  47.  
  48. .c.o            ƒ    .c
  49.     {C} {COptions} {CAltOptions} {DepDir}{Default}.c -o {TargDir}{Default}.c.o
  50.  
  51. {objppc}        ƒ    {projsrc}
  52.  
  53. .o                ƒ    .c
  54.     PPCC {PPCCOptions} {DepDir}{Default}.c -o {TargDir}{Default}.o
  55.  
  56. #------------------------------------------------------------------------------
  57. # These are the objects that we want to include in the library.
  58. #------------------------------------------------------------------------------
  59. LibObjects        =    ∂
  60.                     {obj}CIconControl.c.o ∂
  61.                     {obj}ListControl.c.o ∂
  62.                     {obj}ListVarControl.c.o ∂
  63.                     {obj}PICTControl.c.o ∂
  64.                     {obj}TextEditControl.a.o ∂
  65.                     {obj}TextEditControl.c.o
  66.  
  67. LibObjectsPPC    =    ∂
  68.                     {objppc}CIconControl.o ∂
  69.                     {objppc}ListControl.o ∂
  70.                     {objppc}ListVarControl.o ∂
  71.                     {objppc}PICTControl.o ∂
  72.                     {objppc}TextEditControl.o
  73.  
  74. {LibNameFAT}        ƒ {LibName} {LibNamePPC}
  75.  
  76. {LibName}            ƒƒ {LibObjects}
  77.     Lib {LibObjects} {LibOptions} -o {Targ}
  78.  
  79. {LibNamePPC}        ƒƒ {LibObjectsPPC}
  80.     PPCLink    {LibObjectsPPC} {LibOptionsPPC}    -o {Targ}
  81.