home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-05-04 | 2.7 KB | 81 lines | [TEXT/MPS ] |
- #------------------------------------------------------------------------------
- #
- # Apple Macintosh Developer Technical Support
- #
- # Program: DTS.Lib_controls
- # File: DTS.Lib_controls.make
- #
- # Copyright © 1988-1994 Apple Computer, Inc.
- # All rights reserved.
- #
- #------------------------------------------------------------------------------
-
- # The three possible targets for this makefile
- # The default name is LibName and builds the 68K library
- # PowerPC library is named .PPC and is built with:
- # make -f DTS.Lib_controls.make DTS.Lib_Controls.PPC
- # The "Fat" version isn't actually fat, it just builds both 68K and
- # PowerPC versions. Build it with:
- # make -f DTS.Lib_controls.make DTS.Lib_Controls.FAT
- LibName = 'DTS.Lib_controls'
- LibNamePPC = 'DTS.Lib_controls.PPC'
- LibNameFAT = 'DTS.Lib_controls.FAT'
-
- DTS.Lib.hdrs = ":DTS.Lib.headers:"
- projsrc = :
- obj = :OBJECT:
- objppc = :OBJECTPPC:
-
- # SymOptions and OptOptions are mutually exclusive. Enable as appropriate
- SymOptions = -sym on # turn this on to debug with SADE/R2Db
- COptOptions = #-opt on
- PPCCOptOptions = #-opt speed
-
- # CIncludesFolder needs to be set to your Universal Interfaces folder
- CIncludesFolder = -i "{PPCCIncludes}"
- IncludesFolders = -i {DTS.Lib.hdrs}
- COptions = {IncludesFolders} {CIncludesFolder} {SymOptions} {COptOptions} -r -mbg on
- PPCCOptions = {IncludesFolders} {SymOptions} {PPCCOptOptions} -w conformance -appleext on
- LibOptions = {SymOptions}
- LibOptionsPPC = -warn -xm l {SymOptions}
-
- #------------------------------------------------------------------------------
- # These are modified default build rules. These allow us to build using both
- # MPW C (68K) and PPCC (PowerPC) from the same set of sources
- #------------------------------------------------------------------------------
- {obj} ƒ {projsrc}
-
- .c.o ƒ .c
- {C} {COptions} {CAltOptions} {DepDir}{Default}.c -o {TargDir}{Default}.c.o
-
- {objppc} ƒ {projsrc}
-
- .o ƒ .c
- PPCC {PPCCOptions} {DepDir}{Default}.c -o {TargDir}{Default}.o
-
- #------------------------------------------------------------------------------
- # These are the objects that we want to include in the library.
- #------------------------------------------------------------------------------
- LibObjects = ∂
- {obj}CIconControl.c.o ∂
- {obj}ListControl.c.o ∂
- {obj}ListVarControl.c.o ∂
- {obj}PICTControl.c.o ∂
- {obj}TextEditControl.a.o ∂
- {obj}TextEditControl.c.o
-
- LibObjectsPPC = ∂
- {objppc}CIconControl.o ∂
- {objppc}ListControl.o ∂
- {objppc}ListVarControl.o ∂
- {objppc}PICTControl.o ∂
- {objppc}TextEditControl.o
-
- {LibNameFAT} ƒ {LibName} {LibNamePPC}
-
- {LibName} ƒƒ {LibObjects}
- Lib {LibObjects} {LibOptions} -o {Targ}
-
- {LibNamePPC} ƒƒ {LibObjectsPPC}
- PPCLink {LibObjectsPPC} {LibOptionsPPC} -o {Targ}
-