home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-05-04 | 2.4 KB | 72 lines | [TEXT/MPS ] |
- #------------------------------------------------------------------------------
- #
- # Apple Macintosh Developer Technical Support
- #
- # Program: DTS.Lib_strings
- # File: DTS.Lib_strings.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_strings.make DTS.Lib_strings.PPC
- # The "Fat" version isn't actually fat, it just builds both 68K and
- # PowerPC versions. Build it with:
- # make -f DTS.Lib_strings.make DTS.Lib_strings.FAT
- LibName = 'DTS.Lib_strings'
- LibNamePPC = 'DTS.Lib_strings.PPC'
- LibNameFAT = 'DTS.Lib_strings.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}StringUtils.c.o
-
- LibObjectsPPC = ∂
- {objppc}StringUtils.o
-
- {LibNameFAT} ƒ {LibName} {LibNamePPC}
-
- {LibName} ƒƒ {LibObjects}
- Lib {LibObjects} {LibOptions} -o {Targ}
-
- {LibNamePPC} ƒƒ {LibObjectsPPC}
- PPCLink {LibObjectsPPC} {LibOptionsPPC} -o {Targ}
-