axmol/cocos2dx/platform/third_party/airplay/expat/lib/Makefile.MPW

207 lines
4.5 KiB
Makefile
Raw Normal View History

# File: Makefile.MPW
# Targets: All, Dynamic, Static (and Clean, Clean-All)
# Created: Tuesday, July 02, 2002
#
# MPW Makefile for building expat under the "classic" (i.e. pre-X) Mac OS
# Copyright <20> 2002 Daryle Walker
# Portions Copyright <20> 2002 Thomas Wegner
# See the COPYING file for distribution information
#
# Description:
# This Makefile lets you build static, dynamic (i.e. shared) and stub
# versions of the expat library as well as the elements.c and outline.c
# examples (built as tools for MPW). This is for PPC only; it should be
# no problem to build a 68K version of the expat library, though.
#
# Usage:
# Buildprogram All
# or Buildprogram Dynamic
# or Buildprogram Static
#
# Note: You first have to rename this file to "Makefile", or the Buildprogram
# commando will not recognize it.
#
MAKEFILE = Makefile
<EFBFBD>MondoBuild<EFBFBD> = {MAKEFILE} # Make blank to avoid rebuilds when makefile is modified
ObjDir = :
SrcDir = :
HdrDir = :
ToolDir = ::examples:
Includes = -i {HdrDir}
Sym-PPC = -sym off
Defines = -d MACOS_CLASSIC
PPCCOptions = {Includes} {Sym-PPC} -w 35 {Defines}
FragName = libexpat
### Source Files ###
SrcFiles = <20>
"{SrcDir}xmlparse.c" <20>
"{SrcDir}xmlrole.c" <20>
"{SrcDir}xmltok.c"
ToolSrcFiles = <20>
"{ToolDir}elements.c" <20>
"{ToolDir}outline.c"
### Object Files ###
ObjFiles-PPC = <20>
"{ObjDir}xmlparse.c.o" <20>
"{ObjDir}xmlrole.c.o" <20>
"{ObjDir}xmltok.c.o"
ElementToolObjFile = "{ObjDir}elements.c.o"
OutlineToolObjFile = "{ObjDir}outline.c.o"
### Libraries ###
StLibFiles-PPC = <20>
"{PPCLibraries}StdCRuntime.o" <20>
"{PPCLibraries}PPCCRuntime.o" <20>
"{PPCLibraries}PPCToolLibs.o"
ShLibFiles-PPC = <20>
"{SharedLibraries}InterfaceLib" <20>
"{SharedLibraries}StdCLib" <20>
"{SharedLibraries}MathLib"
LibFiles-PPC = <20>
{StLibFiles-PPC} <20>
{ShLibFiles-PPC}
### Special Files ###
ExportFile = "{ObjDir}{FragName}.exp"
StLibFile = "{ObjDir}{FragName}.MrC.o"
ShLibFile = "{ObjDir}{FragName}"
StubFile = "{ObjDir}{FragName}.stub"
ElementsTool = "{ToolDir}elements"
OutlineTool = "{ToolDir}outline"
### Default Rules ###
.c.o <EFBFBD> .c {<EFBFBD>MondoBuild<EFBFBD>}
{PPCC} {depDir}{default}.c -o {targDir}{default}.c.o {PPCCOptions}
### Build Rules ###
All <EFBFBD> Dynamic {ElementsTool} {OutlineTool}
Static <EFBFBD> {StLibFile}
Dynamic <EFBFBD> Static {ShLibFile} {StubFile}
{StLibFile} <EFBFBD><EFBFBD> {ObjFiles-PPC} {StLibFiles-PPC} {<EFBFBD>MondoBuild<EFBFBD>}
PPCLink <20>
-o {Targ} <20>
{ObjFiles-PPC} <20>
{StLibFiles-PPC} <20>
{Sym-PPC} <20>
-mf -d <20>
-t 'XCOF' <20>
-c 'MPS ' <20>
-xm l
{ShLibFile} <EFBFBD><EFBFBD> {StLibFile} {ShLibFiles-PPC} {ExportFile} {<EFBFBD>MondoBuild<EFBFBD>}
PPCLink <20>
-o {Targ} <20>
{StLibFile} <20>
{ShLibFiles-PPC} <20>
{Sym-PPC} <20>
-@export {ExportFile} <20>
-fragname {FragName} <20>
-mf -d <20>
-t 'shlb' <20>
-c '????' <20>
-xm s
{StubFile} <EFBFBD><EFBFBD> {ShLibFile} {<EFBFBD>MondoBuild<EFBFBD>}
shlb2stub -o {Targ} {ShLibFile}
{ElementsTool} <EFBFBD><EFBFBD> {ElementToolObjFile} {StubFile} {LibFiles-PPC} {<EFBFBD>MondoBuild<EFBFBD>}
PPCLink <20>
-o {Targ} <20>
{ElementToolObjFile} <20>
{StLibFile} <20>
{LibFiles-PPC} <20>
{Sym-PPC} <20>
-mf -d <20>
-t 'MPST' <20>
-c 'MPS '
{OutlineTool} <EFBFBD><EFBFBD> {OutlineToolObjFile} {StubFile} {LibFiles-PPC} {<EFBFBD>MondoBuild<EFBFBD>}
PPCLink <20>
-o {Targ} <20>
{OutlineToolObjFile} <20>
{StLibFile} <20>
{LibFiles-PPC} <20>
{Sym-PPC} <20>
-mf -d <20>
-t 'MPST' <20>
-c 'MPS '
### Special Rules ###
{ExportFile} <EFBFBD><EFBFBD> "{HdrDir}expat.h" {<EFBFBD>MondoBuild<EFBFBD>}
StreamEdit -d <20>
-e "/<2F>('XMLPARSEAPI('<27>') ')<29>0,1<>'XML_'([A-Za-z0-9_]+)<29>1'('/ Print 'XML_' <20>1" <20>
"{HdrDir}expat.h" > {Targ}
### Required Dependencies ###
"{ObjDir}xmlparse.c.o" <EFBFBD> "{SrcDir}xmlparse.c"
"{ObjDir}xmlrole.c.o" <EFBFBD> "{SrcDir}xmlrole.c"
"{ObjDir}xmltok.c.o" <EFBFBD> "{SrcDir}xmltok.c"
"{ObjDir}elements.c.o" <EFBFBD> "{ToolDir}elements.c"
"{ObjDir}outline.c.o" <EFBFBD> "{ToolDir}outline.c"
### Optional Dependencies ###
### Build this target to clean out generated intermediate files. ###
Clean <EFBFBD>
Delete {ObjFiles-PPC} {ExportFile} {ElementToolObjFile} {OutlineToolObjFile}
### Build this target to clean out all generated files. ###
Clean-All <EFBFBD> Clean
Delete {StLibFile} {ShLibFile} {StubFile} {ElementsTool} {OutlineTool}
### Build this target to generate "include file" dependencies. ###
Dependencies <EFBFBD> $OutOfDate
MakeDepend <20>
-append {MAKEFILE} <20>
-ignore "{CIncludes}" <20>
-objdir "{ObjDir}" <20>
-objext .o <20>
{Defines} <20>
{Includes} <20>
{SrcFiles}